Lines Matching defs:kobj
67 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target,
72 if (!kobj)
75 parent = kobj->sd;
85 * @kobj: object whose directory we're creating the link in.
89 int sysfs_create_link(struct kobject *kobj, struct kobject *target,
92 return sysfs_do_create_link(kobj, target, name, 1);
98 * @kobj: object whose directory we're creating the link in.
105 int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target,
108 return sysfs_do_create_link(kobj, target, name, 0);
114 * @kobj: object we're acting for.
121 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ,
132 if (targ->sd && kernfs_ns_enabled(kobj->sd))
135 kernfs_remove_by_name_ns(kobj->sd, name, ns);
140 * @kobj: object we're acting for.
143 void sysfs_remove_link(struct kobject *kobj, const char *name)
147 if (!kobj)
150 parent = kobj->sd;
158 * @kobj: object we're acting for.
166 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ,
173 if (!kobj)
176 parent = kobj->sd;