Lines Matching refs:name
41 if (pde->name != pde->inline_name) in pde_free()
42 kfree(pde->name); in pde_free()
46 static int proc_match(const char *name, struct proc_dir_entry *de, unsigned int len) in proc_match() argument
53 return memcmp(name, de->name, len); in proc_match()
69 const char *name, in pde_subdir_find() argument
78 int result = proc_match(name, de, len); in pde_subdir_find()
101 int result = proc_match(de->name, this, de->namelen); in pde_subdir_insert()
157 static int __xlate_proc_name(const char *name, struct proc_dir_entry **ret, in __xlate_proc_name() argument
160 const char *cp = name, *next; in __xlate_proc_name()
176 WARN(1, "name '%s'\n", name); in __xlate_proc_name()
186 static int xlate_proc_name(const char *name, struct proc_dir_entry **ret, in xlate_proc_name() argument
192 rv = __xlate_proc_name(name, ret, residual); in xlate_proc_name()
253 de = pde_subdir_find(de, dentry->d_name.name, dentry->d_name.len); in proc_lookup_de()
308 if (!dir_emit(ctx, de->name, de->namelen, in proc_readdir_de()
361 dir->name, dp->name); in proc_register()
376 const char *name, in __proc_create() argument
384 if (xlate_proc_name(name, parent, &fn) != 0) in __proc_create()
386 qstr.name = fn; in __proc_create()
401 WARN(1, "create '/proc/%s' by hand\n", qstr.name); in __proc_create()
414 ent->name = ent->inline_name; in __proc_create()
416 ent->name = kmalloc(qstr.len + 1, GFP_KERNEL); in __proc_create()
417 if (!ent->name) { in __proc_create()
423 memcpy(ent->name, fn, qstr.len + 1); in __proc_create()
439 struct proc_dir_entry *proc_symlink(const char *name, in proc_symlink() argument
444 ent = __proc_create(&parent, name, in proc_symlink()
462 struct proc_dir_entry *proc_mkdir_data(const char *name, umode_t mode, in proc_mkdir_data() argument
470 ent = __proc_create(&parent, name, S_IFDIR | mode, 2); in proc_mkdir_data()
484 struct proc_dir_entry *proc_mkdir_mode(const char *name, umode_t mode, in proc_mkdir_mode() argument
487 return proc_mkdir_data(name, mode, parent, NULL); in proc_mkdir_mode()
491 struct proc_dir_entry *proc_mkdir(const char *name, in proc_mkdir() argument
494 return proc_mkdir_data(name, 0, parent, NULL); in proc_mkdir()
498 struct proc_dir_entry *proc_create_mount_point(const char *name) in proc_create_mount_point() argument
503 ent = __proc_create(&parent, name, mode, 2); in proc_create_mount_point()
517 struct proc_dir_entry *proc_create_reg(const char *name, umode_t mode, in proc_create_reg() argument
529 p = __proc_create(parent, name, mode, 1); in proc_create_reg()
537 struct proc_dir_entry *proc_create_data(const char *name, umode_t mode, in proc_create_data() argument
545 p = proc_create_reg(name, mode, &parent, data); in proc_create_data()
553 struct proc_dir_entry *proc_create(const char *name, umode_t mode, in proc_create() argument
557 return proc_create_data(name, mode, parent, proc_fops, NULL); in proc_create()
586 struct proc_dir_entry *proc_create_seq_private(const char *name, umode_t mode, in proc_create_seq_private() argument
592 p = proc_create_reg(name, mode, &parent, data); in proc_create_seq_private()
616 struct proc_dir_entry *proc_create_single_data(const char *name, umode_t mode, in proc_create_single_data() argument
622 p = proc_create_reg(name, mode, &parent, data); in proc_create_single_data()
655 void remove_proc_entry(const char *name, struct proc_dir_entry *parent) in remove_proc_entry() argument
658 const char *fn = name; in remove_proc_entry()
662 if (__xlate_proc_name(name, &parent, &fn) != 0) { in remove_proc_entry()
673 WARN(1, "name '%s'\n", name); in remove_proc_entry()
684 __func__, de->parent->name, de->name, pde_subdir_first(de)->name); in remove_proc_entry()
689 int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) in remove_proc_subtree() argument
692 const char *fn = name; in remove_proc_subtree()
696 if (__xlate_proc_name(name, &parent, &fn) != 0) { in remove_proc_subtree()
746 remove_proc_subtree(de->name, de->parent); in proc_remove()