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)) \
396 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
397 void sysfs_remove_dir(struct kobject *kobj);
398 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
400 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
408 int __must_check sysfs_create_file_ns(struct kobject *kobj,
411 int __must_check sysfs_create_files(struct kobject *kobj,
413 int __must_check sysfs_chmod_file(struct kobject *kobj,
415 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
418 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
420 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
421 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
423 int __must_check sysfs_create_bin_file(struct kobject *kobj,
425 void sysfs_remove_bin_file(struct kobject *kobj,
428 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
430 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
433 void sysfs_remove_link(struct kobject *kobj, const char *name);
435 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
442 int __must_check sysfs_create_group(struct kobject *kobj,
444 int __must_check sysfs_create_groups(struct kobject *kobj,
446 int __must_check sysfs_update_groups(struct kobject *kobj,
448 int sysfs_update_group(struct kobject *kobj,
450 void sysfs_remove_group(struct kobject *kobj,
452 void sysfs_remove_groups(struct kobject *kobj,
454 int sysfs_add_file_to_group(struct kobject *kobj,
456 void sysfs_remove_file_from_group(struct kobject *kobj,
458 int sysfs_merge_group(struct kobject *kobj,
460 void sysfs_unmerge_group(struct kobject *kobj,
462 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
464 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
466 int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
471 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
480 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
482 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
483 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
485 int sysfs_groups_change_owner(struct kobject *kobj,
488 int sysfs_group_change_owner(struct kobject *kobj,
496 ssize_t sysfs_bin_attr_simple_read(struct file *file, struct kobject *kobj,
502 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument
507 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir() argument
511 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns() argument
517 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns() argument
535 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns() argument
542 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files() argument
548 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file() argument
555 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection() argument
565 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns() argument
571 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self() argument
577 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files() argument
582 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file() argument
588 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file() argument
593 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link() argument
599 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn() argument
606 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link() argument
622 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group() argument
628 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups() argument
634 static inline int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups() argument
640 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group() argument
646 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group() argument
651 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups() argument
656 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group() argument
662 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group() argument
667 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group() argument
673 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group() argument
678 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group() argument
685 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group() argument
690 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, in compat_only_sysfs_link_entry_to_kobj() argument
698 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify() argument
712 static inline int sysfs_file_change_owner(struct kobject *kobj, in sysfs_file_change_owner() argument
719 static inline int sysfs_link_change_owner(struct kobject *kobj, in sysfs_link_change_owner() argument
727 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument
732 static inline int sysfs_groups_change_owner(struct kobject *kobj, in sysfs_groups_change_owner() argument
739 static inline int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner() argument
759 struct kobject *kobj, in sysfs_bin_attr_simple_read() argument
768 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file() argument
771 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
774 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file() argument
777 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()
780 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link() argument
783 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()