Lines Matching refs:kobject
25 struct kobject;
101 umode_t (*is_visible)(struct kobject *,
103 umode_t (*is_bin_visible)(struct kobject *,
105 size_t (*bin_size)(struct kobject *,
160 struct kobject *kobj, struct attribute *attr, int n) \
192 struct kobject *kobj, struct attribute *a, int n) \
207 struct kobject *kobj, const struct bin_attribute *attr, int n) \
216 struct kobject *kobj, const struct bin_attribute *a, int n) \
309 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
311 ssize_t (*read_new)(struct file *, struct kobject *, const struct bin_attribute *,
313 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
315 ssize_t (*write_new)(struct file *, struct kobject *,
317 loff_t (*llseek)(struct file *, struct kobject *, const struct bin_attribute *,
319 int (*mmap)(struct file *, struct kobject *, const struct bin_attribute *attr,
335 typedef ssize_t __sysfs_bin_rw_handler_new(struct file *, struct kobject *,
407 ssize_t (*show)(struct kobject *, struct attribute *, char *);
408 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
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,
418 struct kobject *new_parent_kobj,
420 int __must_check sysfs_create_mount_point(struct kobject *parent_kobj,
422 void sysfs_remove_mount_point(struct kobject *parent_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,
448 struct kobject *target,
450 void sysfs_remove_link(struct kobject *kobj, const char *name);
452 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
456 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
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,
480 struct kobject *target, const char *link_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,
484 struct kobject *target_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()
524 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
528 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns()
534 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns()
535 struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
541 static inline int sysfs_create_mount_point(struct kobject *parent_kobj, in sysfs_create_mount_point()
547 static inline void sysfs_remove_mount_point(struct kobject *parent_kobj, in sysfs_remove_mount_point()
552 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns()
559 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files()
565 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file()
572 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection()
582 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns()
588 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self()
594 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files()
599 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file()
605 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file()
610 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link()
611 struct kobject *target, const char *name) in sysfs_create_link()
616 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn()
617 struct kobject *target, in sysfs_create_link_nowarn()
623 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
627 static inline int sysfs_rename_link_ns(struct kobject *k, struct kobject *t, in sysfs_rename_link_ns()
634 static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, in sysfs_delete_link()
639 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
645 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
651 static inline int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups()
657 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
663 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
668 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
673 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group()
679 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group()
684 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
690 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
695 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group()
696 const char *group_name, struct kobject *target, in sysfs_add_link_to_group()
702 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group()
707 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, in compat_only_sysfs_link_entry_to_kobj()
708 struct kobject *target_kobj, in compat_only_sysfs_link_entry_to_kobj()
715 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify()
729 static inline int sysfs_file_change_owner(struct kobject *kobj, in sysfs_file_change_owner()
736 static inline int sysfs_link_change_owner(struct kobject *kobj, in sysfs_link_change_owner()
737 struct kobject *targ, in sysfs_link_change_owner()
744 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner()
749 static inline int sysfs_groups_change_owner(struct kobject *kobj, in sysfs_groups_change_owner()
756 static inline int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner()
776 struct kobject *kobj, in sysfs_bin_attr_simple_read()
785 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file()
791 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file()
797 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link()