Lines Matching refs:kobj
24 static int sysfs_do_create_link(struct kobject *kobj, struct kobject *target, in sysfs_do_create_link() argument
36 if (!kobj) in sysfs_do_create_link()
39 parent_sd = kobj->sd; in sysfs_do_create_link()
104 int sysfs_create_link(struct kobject *kobj, struct kobject *target, in sysfs_create_link() argument
107 return sysfs_do_create_link(kobj, target, name, 1); in sysfs_create_link()
119 int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, in sysfs_create_link_nowarn() argument
122 return sysfs_do_create_link(kobj, target, name, 0); in sysfs_create_link_nowarn()
134 void sysfs_delete_link(struct kobject *kobj, struct kobject *targ, in sysfs_delete_link() argument
139 if (targ->sd && sysfs_ns_type(kobj->sd)) in sysfs_delete_link()
142 sysfs_hash_and_remove(kobj->sd, ns, name); in sysfs_delete_link()
151 void sysfs_remove_link(struct kobject * kobj, const char * name) in sysfs_remove_link() argument
155 if (!kobj) in sysfs_remove_link()
158 parent_sd = kobj->sd; in sysfs_remove_link()
172 int sysfs_rename_link(struct kobject *kobj, struct kobject *targ, in sysfs_rename_link() argument
179 if (!kobj) in sysfs_rename_link()
182 parent_sd = kobj->sd; in sysfs_rename_link()
195 if (sd->s_symlink.target_sd->s_dir.kobj != targ) in sysfs_rename_link()