Lines Matching refs:kobj
149 struct kobject *kobj, struct attribute *attr, int n) \
151 if (n == 0 && !name##_group_visible(kobj)) \
153 return name##_attr_visible(kobj, attr, n); \
181 struct kobject *kobj, struct attribute *a, int n) \
183 if (n == 0 && !name##_group_visible(kobj)) \
196 struct kobject *kobj, struct bin_attribute *attr, int n) \
198 if (n == 0 && !name##_group_visible(kobj)) \
200 return name##_attr_visible(kobj, attr, n); \
205 struct kobject *kobj, struct bin_attribute *a, int n) \
207 if (n == 0 && !name##_group_visible(kobj)) \
392 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
393 void sysfs_remove_dir(struct kobject *kobj);
394 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
396 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
404 int __must_check sysfs_create_file_ns(struct kobject *kobj,
407 int __must_check sysfs_create_files(struct kobject *kobj,
409 int __must_check sysfs_chmod_file(struct kobject *kobj,
411 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
414 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
416 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
417 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
419 int __must_check sysfs_create_bin_file(struct kobject *kobj,
421 void sysfs_remove_bin_file(struct kobject *kobj,
424 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
426 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
429 void sysfs_remove_link(struct kobject *kobj, const char *name);
431 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
438 int __must_check sysfs_create_group(struct kobject *kobj,
440 int __must_check sysfs_create_groups(struct kobject *kobj,
442 int __must_check sysfs_update_groups(struct kobject *kobj,
444 int sysfs_update_group(struct kobject *kobj,
446 void sysfs_remove_group(struct kobject *kobj,
448 void sysfs_remove_groups(struct kobject *kobj,
450 int sysfs_add_file_to_group(struct kobject *kobj,
452 void sysfs_remove_file_from_group(struct kobject *kobj,
454 int sysfs_merge_group(struct kobject *kobj,
456 void sysfs_unmerge_group(struct kobject *kobj,
458 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
460 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
462 int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
467 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
476 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
478 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
479 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
481 int sysfs_groups_change_owner(struct kobject *kobj,
484 int sysfs_group_change_owner(struct kobject *kobj,
492 ssize_t sysfs_bin_attr_simple_read(struct file *file, struct kobject *kobj,
498 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns() argument
503 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir() argument
507 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns() argument
513 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns() argument
531 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns() argument
538 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files() argument
544 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file() argument
551 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection() argument
561 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns() argument
567 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self() argument
573 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files() argument
578 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file() argument
584 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file() argument
589 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link() argument
595 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn() argument
602 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link() argument
618 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group() argument
624 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups() argument
630 static inline int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups() argument
636 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group() argument
642 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group() argument
647 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups() argument
652 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group() argument
658 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group() argument
663 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group() argument
669 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group() argument
674 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group() argument
681 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group() argument
686 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, in compat_only_sysfs_link_entry_to_kobj() argument
694 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify() argument
708 static inline int sysfs_file_change_owner(struct kobject *kobj, in sysfs_file_change_owner() argument
715 static inline int sysfs_link_change_owner(struct kobject *kobj, in sysfs_link_change_owner() argument
723 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument
728 static inline int sysfs_groups_change_owner(struct kobject *kobj, in sysfs_groups_change_owner() argument
735 static inline int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner() argument
755 struct kobject *kobj, in sysfs_bin_attr_simple_read() argument
764 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file() argument
767 return sysfs_create_file_ns(kobj, attr, NULL); in sysfs_create_file()
770 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file() argument
773 sysfs_remove_file_ns(kobj, attr, NULL); in sysfs_remove_file()
776 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link() argument
779 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL); in sysfs_rename_link()