Lines Matching defs:kobj

117  * static umode_t example_attr_visible(struct kobject *kobj,
127 * static bool example_group_visible(struct kobject *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); \
164 * static bool example_group_visible(struct kobject *kobj)
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)) \
381 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
382 void sysfs_remove_dir(struct kobject *kobj);
383 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
385 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
393 int __must_check sysfs_create_file_ns(struct kobject *kobj,
396 int __must_check sysfs_create_files(struct kobject *kobj,
398 int __must_check sysfs_chmod_file(struct kobject *kobj,
400 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
403 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
405 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
406 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
408 int __must_check sysfs_create_bin_file(struct kobject *kobj,
410 void sysfs_remove_bin_file(struct kobject *kobj,
413 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
415 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
418 void sysfs_remove_link(struct kobject *kobj, const char *name);
420 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
427 int __must_check sysfs_create_group(struct kobject *kobj,
429 int __must_check sysfs_create_groups(struct kobject *kobj,
431 int __must_check sysfs_update_groups(struct kobject *kobj,
433 int sysfs_update_group(struct kobject *kobj,
435 void sysfs_remove_group(struct kobject *kobj,
437 void sysfs_remove_groups(struct kobject *kobj,
439 int sysfs_add_file_to_group(struct kobject *kobj,
441 void sysfs_remove_file_from_group(struct kobject *kobj,
443 int sysfs_merge_group(struct kobject *kobj,
445 void sysfs_unmerge_group(struct kobject *kobj,
447 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
449 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
451 int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
456 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
465 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
467 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
468 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
470 int sysfs_groups_change_owner(struct kobject *kobj,
473 int sysfs_group_change_owner(struct kobject *kobj,
483 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns)
488 static inline void sysfs_remove_dir(struct kobject *kobj)
492 static inline int sysfs_rename_dir_ns(struct kobject *kobj,
498 static inline int sysfs_move_dir_ns(struct kobject *kobj,
516 static inline int sysfs_create_file_ns(struct kobject *kobj,
523 static inline int sysfs_create_files(struct kobject *kobj,
529 static inline int sysfs_chmod_file(struct kobject *kobj,
536 sysfs_break_active_protection(struct kobject *kobj,
546 static inline void sysfs_remove_file_ns(struct kobject *kobj,
552 static inline bool sysfs_remove_file_self(struct kobject *kobj,
558 static inline void sysfs_remove_files(struct kobject *kobj,
563 static inline int sysfs_create_bin_file(struct kobject *kobj,
569 static inline void sysfs_remove_bin_file(struct kobject *kobj,
574 static inline int sysfs_create_link(struct kobject *kobj,
580 static inline int sysfs_create_link_nowarn(struct kobject *kobj,
587 static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
603 static inline int sysfs_create_group(struct kobject *kobj,
609 static inline int sysfs_create_groups(struct kobject *kobj,
615 static inline int sysfs_update_groups(struct kobject *kobj,
621 static inline int sysfs_update_group(struct kobject *kobj,
627 static inline void sysfs_remove_group(struct kobject *kobj,
632 static inline void sysfs_remove_groups(struct kobject *kobj,
637 static inline int sysfs_add_file_to_group(struct kobject *kobj,
643 static inline void sysfs_remove_file_from_group(struct kobject *kobj,
648 static inline int sysfs_merge_group(struct kobject *kobj,
654 static inline void sysfs_unmerge_group(struct kobject *kobj,
659 static inline int sysfs_add_link_to_group(struct kobject *kobj,
666 static inline void sysfs_remove_link_from_group(struct kobject *kobj,
671 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
679 static inline void sysfs_notify(struct kobject *kobj, const char *dir,
693 static inline int sysfs_file_change_owner(struct kobject *kobj,
700 static inline int sysfs_link_change_owner(struct kobject *kobj,
708 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid)
713 static inline int sysfs_groups_change_owner(struct kobject *kobj,
720 static inline int sysfs_group_change_owner(struct kobject *kobj,
740 static inline int __must_check sysfs_create_file(struct kobject *kobj,
743 return sysfs_create_file_ns(kobj, attr, NULL);
746 static inline void sysfs_remove_file(struct kobject *kobj,
749 sysfs_remove_file_ns(kobj, attr, NULL);
752 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target,
755 return sysfs_rename_link_ns(kobj, target, old_name, new_name, NULL);