• Home
  • Raw
  • Download

Lines Matching refs:kn

111 	struct kernfs_node *kn;  in internal_create_group()  local
130 kn = kernfs_find_and_get(kobj->sd, grp->name); in internal_create_group()
131 if (!kn) { in internal_create_group()
137 kn = kernfs_create_dir_ns(kobj->sd, grp->name, in internal_create_group()
140 if (IS_ERR(kn)) { in internal_create_group()
141 if (PTR_ERR(kn) == -EEXIST) in internal_create_group()
143 return PTR_ERR(kn); in internal_create_group()
147 kn = kobj->sd; in internal_create_group()
148 kernfs_get(kn); in internal_create_group()
149 error = create_files(kn, kobj, uid, gid, grp, update); in internal_create_group()
152 kernfs_remove(kn); in internal_create_group()
154 kernfs_put(kn); in internal_create_group()
157 kernfs_put(kn); in internal_create_group()
274 struct kernfs_node *kn; in sysfs_remove_group() local
277 kn = kernfs_find_and_get(parent, grp->name); in sysfs_remove_group()
278 if (!kn) { in sysfs_remove_group()
279 WARN(!kn, KERN_WARNING in sysfs_remove_group()
285 kn = parent; in sysfs_remove_group()
286 kernfs_get(kn); in sysfs_remove_group()
289 remove_files(kn, grp); in sysfs_remove_group()
291 kernfs_remove(kn); in sysfs_remove_group()
293 kernfs_put(kn); in sysfs_remove_group()
472 struct kernfs_node *kn; in sysfs_group_attrs_change_owner() local
479 kn = kernfs_find_and_get(grp_kn, (*attr)->name); in sysfs_group_attrs_change_owner()
480 if (!kn) in sysfs_group_attrs_change_owner()
483 error = kernfs_setattr(kn, newattrs); in sysfs_group_attrs_change_owner()
484 kernfs_put(kn); in sysfs_group_attrs_change_owner()
494 kn = kernfs_find_and_get(grp_kn, (*bin_attr)->attr.name); in sysfs_group_attrs_change_owner()
495 if (!kn) in sysfs_group_attrs_change_owner()
498 error = kernfs_setattr(kn, newattrs); in sysfs_group_attrs_change_owner()
499 kernfs_put(kn); in sysfs_group_attrs_change_owner()