Home
last modified time | relevance | path

Searched refs:new_parent (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/lib/
Dassoc_array.c1463 struct assoc_array_ptr *new_root, *new_parent, **new_ptr_pp; in assoc_array_gc() local
1481 new_root = new_parent = NULL; in assoc_array_gc()
1500 new_s->back_pointer = new_parent; in assoc_array_gc()
1502 *new_ptr_pp = new_parent = assoc_array_shortcut_to_ptr(new_s); in assoc_array_gc()
1513 new_n->back_pointer = new_parent; in assoc_array_gc()
1515 *new_ptr_pp = new_parent = assoc_array_node_to_ptr(new_n); in assoc_array_gc()
1624 new_parent = new_n->back_pointer; in assoc_array_gc()
1627 if (!new_parent) { in assoc_array_gc()
1634 if (assoc_array_ptr_is_shortcut(new_parent)) { in assoc_array_gc()
1637 assoc_array_ptr_to_shortcut(new_parent); in assoc_array_gc()
[all …]
Dkobject.c554 int kobject_move(struct kobject *kobj, struct kobject *new_parent) in kobject_move() argument
565 new_parent = kobject_get(new_parent); in kobject_move()
566 if (!new_parent) { in kobject_move()
568 new_parent = kobject_get(&kobj->kset->kobj); in kobject_move()
585 error = sysfs_move_dir_ns(kobj, new_parent, kobject_namespace(kobj)); in kobject_move()
589 kobj->parent = new_parent; in kobject_move()
590 new_parent = NULL; in kobject_move()
594 kobject_put(new_parent); in kobject_move()
/kernel/linux/linux-5.10/fs/sysfs/
Ddir.c122 struct kernfs_node *new_parent; in sysfs_move_dir_ns() local
124 new_parent = new_parent_kobj && new_parent_kobj->sd ? in sysfs_move_dir_ns()
127 return kernfs_rename_ns(kn, new_parent, kn->name, new_ns); in sysfs_move_dir_ns()
/kernel/linux/linux-5.10/tools/perf/ui/gtk/
Dhists.c106 GtkTreeIter iter, new_parent; in perf_gtk__add_callchain_flat() local
111 new_parent = *parent; in perf_gtk__add_callchain_flat()
119 gtk_tree_store_append(store, &iter, &new_parent); in perf_gtk__add_callchain_flat()
132 new_parent = iter; in perf_gtk__add_callchain_flat()
140 gtk_tree_store_append(store, &iter, &new_parent); in perf_gtk__add_callchain_flat()
153 new_parent = iter; in perf_gtk__add_callchain_flat()
229 GtkTreeIter iter, new_parent; in perf_gtk__add_callchain_graph() local
235 new_parent = *parent; in perf_gtk__add_callchain_graph()
241 gtk_tree_store_append(store, &iter, &new_parent); in perf_gtk__add_callchain_graph()
254 new_parent = iter; in perf_gtk__add_callchain_graph()
/kernel/linux/linux-5.10/drivers/clk/
Dclk.c70 struct clk_core *new_parent; member
1720 static void clk_reparent(struct clk_core *core, struct clk_core *new_parent) in clk_reparent() argument
1726 if (new_parent) { in clk_reparent()
1727 bool becomes_orphan = new_parent->orphan; in clk_reparent()
1730 if (new_parent->new_child == core) in clk_reparent()
1731 new_parent->new_child = NULL; in clk_reparent()
1733 hlist_add_head(&core->child_node, &new_parent->children); in clk_reparent()
1743 core->parent = new_parent; in clk_reparent()
1889 struct clk_core *new_parent, u8 p_index) in clk_calc_subtree() argument
1894 core->new_parent = new_parent; in clk_calc_subtree()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dkernfs.h174 int (*rename)(struct kernfs_node *kn, struct kernfs_node *new_parent,
392 int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent,
496 struct kernfs_node *new_parent, in kernfs_rename_ns() argument
597 struct kernfs_node *new_parent, in kernfs_rename() argument
600 return kernfs_rename_ns(kn, new_parent, new_name, NULL); in kernfs_rename()
Dptrace.h65 struct task_struct *new_parent,
Dclk-provider.h1096 int clk_hw_set_parent(struct clk_hw *hw, struct clk_hw *new_parent);
1116 void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent);
Ddevice.h801 int device_move(struct device *dev, struct device *new_parent,
/kernel/linux/linux-5.10/fs/kernfs/
Ddir.c1156 struct kernfs_node *new_parent = new_dir->i_private; in kernfs_iop_rename() local
1169 if (!kernfs_get_active(new_parent)) { in kernfs_iop_rename()
1174 ret = scops->rename(kn, new_parent, new_dentry->d_name.name); in kernfs_iop_rename()
1176 kernfs_put_active(new_parent); in kernfs_iop_rename()
1533 int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, in kernfs_rename_ns() argument
1547 if (!kernfs_active(kn) || !kernfs_active(new_parent) || in kernfs_rename_ns()
1548 (new_parent->flags & KERNFS_EMPTY_DIR)) in kernfs_rename_ns()
1552 if ((kn->parent == new_parent) && (kn->ns == new_ns) && in kernfs_rename_ns()
1557 if (kernfs_find_ns(new_parent, new_name, new_ns)) in kernfs_rename_ns()
1574 kernfs_get(new_parent); in kernfs_rename_ns()
[all …]
/kernel/linux/linux-5.10/drivers/base/
Dcore.c3807 struct device *new_parent) in device_move_class_links() argument
3813 if (new_parent) in device_move_class_links()
3814 error = sysfs_create_link(&dev->kobj, &new_parent->kobj, in device_move_class_links()
3825 int device_move(struct device *dev, struct device *new_parent, in device_move() argument
3837 new_parent = get_device(new_parent); in device_move()
3838 new_parent_kobj = get_device_parent(dev, new_parent); in device_move()
3841 put_device(new_parent); in device_move()
3846 __func__, new_parent ? dev_name(new_parent) : "<NULL>"); in device_move()
3850 put_device(new_parent); in device_move()
3854 dev->parent = new_parent; in device_move()
[all …]
/kernel/linux/linux-5.10/kernel/cgroup/
Dcgroup-v1.c837 static int cgroup1_rename(struct kernfs_node *kn, struct kernfs_node *new_parent, in cgroup1_rename() argument
849 if (kn->parent != new_parent) in cgroup1_rename()
857 kernfs_break_active_protection(new_parent); in cgroup1_rename()
862 ret = kernfs_rename(kn, new_parent, new_name_str); in cgroup1_rename()
869 kernfs_unbreak_active_protection(new_parent); in cgroup1_rename()
/kernel/linux/linux-5.10/kernel/
Dptrace.c67 void __ptrace_link(struct task_struct *child, struct task_struct *new_parent, in __ptrace_link() argument
71 list_add(&child->ptrace_entry, &new_parent->ptraced); in __ptrace_link()
72 child->parent = new_parent; in __ptrace_link()
82 static void ptrace_link(struct task_struct *child, struct task_struct *new_parent) in ptrace_link() argument
84 __ptrace_link(child, new_parent, current_cred()); in ptrace_link()
/kernel/linux/linux-5.10/security/tomoyo/
Dtomoyo.c273 const struct path *new_parent, in tomoyo_path_rename() argument
277 struct path path2 = { .mnt = new_parent->mnt, .dentry = new_dentry }; in tomoyo_path_rename()
/kernel/linux/linux-5.10/fs/vboxsf/
Ddir.c390 struct inode *new_parent, in vboxsf_dir_rename() argument
396 struct vboxsf_inode *sf_new_parent_i = VBOXSF_I(new_parent); in vboxsf_dir_rename()
/kernel/linux/linux-5.10/drivers/md/persistent-data/
Ddm-btree.c628 struct dm_block *left, *right, *new_parent; in btree_split_beneath() local
632 new_parent = shadow_current(s); in btree_split_beneath()
634 pn = dm_block_data(new_parent); in btree_split_beneath()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_inode.c3157 bool new_parent = (src_dp != target_dp); in xfs_rename() local
3216 if (new_parent) in xfs_rename()
3307 if (new_parent && src_is_directory) { in xfs_rename()
3365 if (new_parent && src_is_directory) { in xfs_rename()
3392 if (src_is_directory && (new_parent || target_ip != NULL)) { in xfs_rename()
3419 if (new_parent) in xfs_rename()
/kernel/liteos_a/fs/fat/os_adapt/
Dfatfs.c1678 int fatfs_rename(struct Vnode *old_vnode, struct Vnode *new_parent, const char *oldname, const char… in fatfs_rename() argument
1704 dp_new->obj.sclust = ((DIR_FILE *)(new_parent->data))->fno.sclst; in fatfs_rename()