Lines Matching refs:kobj
160 struct kobject *kobj, struct attribute *attr, int n) \
162 if (n == 0 && !name##_group_visible(kobj)) \
164 return name##_attr_visible(kobj, attr, n); \
192 struct kobject *kobj, struct attribute *a, int n) \
194 if (n == 0 && !name##_group_visible(kobj)) \
207 struct kobject *kobj, const struct bin_attribute *attr, int n) \
209 if (n == 0 && !name##_group_visible(kobj)) \
211 return name##_attr_visible(kobj, attr, n); \
216 struct kobject *kobj, const struct bin_attribute *a, int n) \
218 if (n == 0 && !name##_group_visible(kobj)) \
413 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
414 void sysfs_remove_dir(struct kobject *kobj);
415 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
417 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
425 int __must_check sysfs_create_file_ns(struct kobject *kobj,
428 int __must_check sysfs_create_files(struct kobject *kobj,
430 int __must_check sysfs_chmod_file(struct kobject *kobj,
432 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
435 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
437 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
438 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
440 int __must_check sysfs_create_bin_file(struct kobject *kobj,
442 void sysfs_remove_bin_file(struct kobject *kobj,
445 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
447 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
450 void sysfs_remove_link(struct kobject *kobj, const char *name);
452 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
459 int __must_check sysfs_create_group(struct kobject *kobj,
461 int __must_check sysfs_create_groups(struct kobject *kobj,
463 int __must_check sysfs_update_groups(struct kobject *kobj,
465 int sysfs_update_group(struct kobject *kobj,
467 void sysfs_remove_group(struct kobject *kobj,
469 void sysfs_remove_groups(struct kobject *kobj,
471 int sysfs_add_file_to_group(struct kobject *kobj,
473 void sysfs_remove_file_from_group(struct kobject *kobj,
475 int sysfs_merge_group(struct kobject *kobj,
477 void sysfs_unmerge_group(struct kobject *kobj,
479 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
481 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
483 int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
488 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
497 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
499 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
500 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
502 int sysfs_groups_change_owner(struct kobject *kobj,
505 int sysfs_group_change_owner(struct kobject *kobj,
513 ssize_t sysfs_bin_attr_simple_read(struct file *file, struct kobject *kobj,
519 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument
524 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir() argument
528 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns() argument
534 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns() argument
552 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns() argument
559 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files() argument
565 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file() argument
572 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection() argument
582 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns() argument
588 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self() argument
594 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files() argument
599 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file() argument
605 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file() argument
610 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link() argument
616 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn() argument
623 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link() argument
639 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group() argument
645 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups() argument
651 static inline int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups() argument
657 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group() argument
663 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group() argument
668 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups() argument
673 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group() argument
679 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group() argument
684 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group() argument
690 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group() argument
695 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group() argument
702 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group() argument
707 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, in compat_only_sysfs_link_entry_to_kobj() argument
715 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify() argument
729 static inline int sysfs_file_change_owner(struct kobject *kobj, in sysfs_file_change_owner() argument
736 static inline int sysfs_link_change_owner(struct kobject *kobj, in sysfs_link_change_owner() argument
744 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument
749 static inline int sysfs_groups_change_owner(struct kobject *kobj, in sysfs_groups_change_owner() argument
756 static inline int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner() argument
776 struct kobject *kobj, in sysfs_bin_attr_simple_read() argument
785 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file() argument
788 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
791 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file() argument
794 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()
797 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link() argument
800 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()