Lines Matching refs:parent

94 	struct rb_node **new = &root->rb_node, *parent = NULL;  in pde_subdir_insert()  local
103 parent = *new; in pde_subdir_insert()
113 rb_link_node(&de->subdir_node, parent, new); in pde_subdir_insert()
373 dp->parent = dir; in proc_register()
391 static struct proc_dir_entry *__proc_create(struct proc_dir_entry **parent, in __proc_create() argument
400 if (xlate_proc_name(name, parent, &fn) != 0) in __proc_create()
416 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create()
420 if (is_empty_pde(*parent)) { in __proc_create()
447 proc_set_user(ent, (*parent)->uid, (*parent)->gid); in __proc_create()
451 if ((*parent)->proc_dops == &proc_net_dentry_ops) in __proc_create()
459 struct proc_dir_entry *parent, const char *dest) in proc_symlink() argument
463 ent = __proc_create(&parent, name, in proc_symlink()
471 ent = proc_register(parent, ent); in proc_symlink()
482 struct proc_dir_entry *parent, void *data, bool force_lookup) in _proc_mkdir() argument
489 ent = __proc_create(&parent, name, S_IFDIR | mode, 2); in _proc_mkdir()
497 ent = proc_register(parent, ent); in _proc_mkdir()
504 struct proc_dir_entry *parent, void *data) in proc_mkdir_data() argument
506 return _proc_mkdir(name, mode, parent, data, false); in proc_mkdir_data()
511 struct proc_dir_entry *parent) in proc_mkdir_mode() argument
513 return proc_mkdir_data(name, mode, parent, NULL); in proc_mkdir_mode()
518 struct proc_dir_entry *parent) in proc_mkdir() argument
520 return proc_mkdir_data(name, 0, parent, NULL); in proc_mkdir()
527 struct proc_dir_entry *ent, *parent = NULL; in proc_create_mount_point() local
529 ent = __proc_create(&parent, name, mode, 2); in proc_create_mount_point()
534 ent = proc_register(parent, ent); in proc_create_mount_point()
541 struct proc_dir_entry **parent, void *data) in proc_create_reg() argument
552 p = __proc_create(parent, name, mode, 1); in proc_create_reg()
567 struct proc_dir_entry *parent, in proc_create_data() argument
572 p = proc_create_reg(name, mode, &parent, data); in proc_create_data()
577 return proc_register(parent, p); in proc_create_data()
582 struct proc_dir_entry *parent, in proc_create() argument
585 return proc_create_data(name, mode, parent, proc_ops, NULL); in proc_create()
616 struct proc_dir_entry *parent, const struct seq_operations *ops, in proc_create_seq_private() argument
621 p = proc_create_reg(name, mode, &parent, data); in proc_create_seq_private()
627 return proc_register(parent, p); in proc_create_seq_private()
647 struct proc_dir_entry *parent, in proc_create_single_data() argument
652 p = proc_create_reg(name, mode, &parent, data); in proc_create_single_data()
657 return proc_register(parent, p); in proc_create_single_data()
685 void remove_proc_entry(const char *name, struct proc_dir_entry *parent) in remove_proc_entry() argument
692 if (__xlate_proc_name(name, &parent, &fn) != 0) { in remove_proc_entry()
698 de = pde_subdir_find(parent, fn, len); in remove_proc_entry()
704 rb_erase(&de->subdir_node, &parent->subdir); in remove_proc_entry()
706 parent->nlink--; in remove_proc_entry()
719 __func__, de->parent->name, de->name, pde_subdir_first(de)->name); in remove_proc_entry()
724 int remove_proc_subtree(const char *name, struct proc_dir_entry *parent) in remove_proc_subtree() argument
731 if (__xlate_proc_name(name, &parent, &fn) != 0) { in remove_proc_subtree()
737 root = pde_subdir_find(parent, fn, len); in remove_proc_subtree()
745 root->parent->name, root->name); in remove_proc_subtree()
748 rb_erase(&root->subdir_node, &parent->subdir); in remove_proc_subtree()
757 next->parent->name, next->name); in remove_proc_subtree()
764 next = de->parent; in remove_proc_subtree()
785 return de->parent->data; in proc_get_parent_data()
792 remove_proc_subtree(de->name, de->parent); in proc_remove()