Lines Matching refs:kobject
25 struct kobject;
86 umode_t (*is_visible)(struct kobject *,
88 umode_t (*is_bin_visible)(struct kobject *,
165 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
167 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
169 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
215 ssize_t (*show)(struct kobject *, struct attribute *, char *);
216 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
221 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
222 void sysfs_remove_dir(struct kobject *kobj);
223 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
225 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
226 struct kobject *new_parent_kobj,
228 int __must_check sysfs_create_mount_point(struct kobject *parent_kobj,
230 void sysfs_remove_mount_point(struct kobject *parent_kobj,
233 int __must_check sysfs_create_file_ns(struct kobject *kobj,
236 int __must_check sysfs_create_files(struct kobject *kobj,
238 int __must_check sysfs_chmod_file(struct kobject *kobj,
240 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
243 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
245 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
246 void sysfs_remove_files(struct kobject *kobj, const struct attribute **attr);
248 int __must_check sysfs_create_bin_file(struct kobject *kobj,
250 void sysfs_remove_bin_file(struct kobject *kobj,
253 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
255 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
256 struct kobject *target,
258 void sysfs_remove_link(struct kobject *kobj, const char *name);
260 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
264 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
267 int __must_check sysfs_create_group(struct kobject *kobj,
269 int __must_check sysfs_create_groups(struct kobject *kobj,
271 int sysfs_update_group(struct kobject *kobj,
273 void sysfs_remove_group(struct kobject *kobj,
275 void sysfs_remove_groups(struct kobject *kobj,
277 int sysfs_add_file_to_group(struct kobject *kobj,
279 void sysfs_remove_file_from_group(struct kobject *kobj,
281 int sysfs_merge_group(struct kobject *kobj,
283 void sysfs_unmerge_group(struct kobject *kobj,
285 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
286 struct kobject *target, const char *link_name);
287 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
289 int __compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
290 struct kobject *target_kobj,
293 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
304 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
309 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
313 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns()
319 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns()
320 struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
326 static inline int sysfs_create_mount_point(struct kobject *parent_kobj, in sysfs_create_mount_point()
332 static inline void sysfs_remove_mount_point(struct kobject *parent_kobj, in sysfs_remove_mount_point()
337 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns()
344 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files()
350 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file()
357 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection()
367 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns()
373 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self()
379 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files()
384 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file()
390 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file()
395 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link()
396 struct kobject *target, const char *name) in sysfs_create_link()
401 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn()
402 struct kobject *target, in sysfs_create_link_nowarn()
408 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
412 static inline int sysfs_rename_link_ns(struct kobject *k, struct kobject *t, in sysfs_rename_link_ns()
419 static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, in sysfs_delete_link()
424 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
430 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
436 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
442 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
447 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
452 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group()
458 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group()
463 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
469 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
474 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group()
475 const char *group_name, struct kobject *target, in sysfs_add_link_to_group()
481 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group()
487 struct kobject *kobj, in __compat_only_sysfs_link_entry_to_kobj()
488 struct kobject *target_kobj, in __compat_only_sysfs_link_entry_to_kobj()
494 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify()
510 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file()
516 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file()
522 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link()