• Home
  • Raw
  • Download

Lines Matching refs:parent

31 	struct kobject *kobj = kn->parent->priv;  in sysfs_file_ops()
46 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_seq_show()
87 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_read()
111 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_read()
137 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_write()
150 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_write()
171 struct kobject *kobj = of->kn->parent->priv; in sysfs_kf_bin_mmap()
249 int sysfs_add_file_mode_ns(struct kernfs_node *parent, in sysfs_add_file_mode_ns() argument
259 struct kobject *kobj = parent->priv; in sysfs_add_file_mode_ns()
308 kn = __kernfs_create_file(parent, attr->name, mode & 0777, size, ops, in sysfs_add_file_mode_ns()
312 sysfs_warn_dup(parent, attr->name); in sysfs_add_file_mode_ns()
318 int sysfs_add_file(struct kernfs_node *parent, const struct attribute *attr, in sysfs_add_file() argument
321 return sysfs_add_file_mode_ns(parent, attr, is_bin, attr->mode, NULL); in sysfs_add_file()
363 struct kernfs_node *parent; in sysfs_add_file_to_group() local
367 parent = kernfs_find_and_get(kobj->sd, group); in sysfs_add_file_to_group()
369 parent = kobj->sd; in sysfs_add_file_to_group()
370 kernfs_get(parent); in sysfs_add_file_to_group()
373 if (!parent) in sysfs_add_file_to_group()
376 error = sysfs_add_file(parent, attr, false); in sysfs_add_file_to_group()
377 kernfs_put(parent); in sysfs_add_file_to_group()
447 struct kobject *kobj = kn->parent->priv; in sysfs_unbreak_active_protection()
466 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_ns() local
468 kernfs_remove_by_name_ns(parent, attr->name, ns); in sysfs_remove_file_ns()
481 struct kernfs_node *parent = kobj->sd; in sysfs_remove_file_self() local
485 kn = kernfs_find_and_get(parent, attr->name); in sysfs_remove_file_self()
512 struct kernfs_node *parent; in sysfs_remove_file_from_group() local
515 parent = kernfs_find_and_get(kobj->sd, group); in sysfs_remove_file_from_group()
517 parent = kobj->sd; in sysfs_remove_file_from_group()
518 kernfs_get(parent); in sysfs_remove_file_from_group()
521 if (parent) { in sysfs_remove_file_from_group()
522 kernfs_remove_by_name(parent, attr->name); in sysfs_remove_file_from_group()
523 kernfs_put(parent); in sysfs_remove_file_from_group()