Lines Matching refs:kobject
25 struct kobject;
86 umode_t (*is_visible)(struct kobject *,
88 umode_t (*is_bin_visible)(struct kobject *,
180 ssize_t (*read)(struct file *, struct kobject *, struct bin_attribute *,
182 ssize_t (*write)(struct file *, struct kobject *, struct bin_attribute *,
184 int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
255 ssize_t (*show)(struct kobject *, struct attribute *, char *);
256 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
261 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
262 void sysfs_remove_dir(struct kobject *kobj);
263 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
265 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
266 struct kobject *new_parent_kobj,
268 int __must_check sysfs_create_mount_point(struct kobject *parent_kobj,
270 void sysfs_remove_mount_point(struct kobject *parent_kobj,
273 int __must_check sysfs_create_file_ns(struct kobject *kobj,
276 int __must_check sysfs_create_files(struct kobject *kobj,
278 int __must_check sysfs_chmod_file(struct kobject *kobj,
280 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
283 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
285 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
286 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
288 int __must_check sysfs_create_bin_file(struct kobject *kobj,
290 void sysfs_remove_bin_file(struct kobject *kobj,
293 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
295 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
296 struct kobject *target,
298 void sysfs_remove_link(struct kobject *kobj, const char *name);
300 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
304 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
307 int __must_check sysfs_create_group(struct kobject *kobj,
309 int __must_check sysfs_create_groups(struct kobject *kobj,
311 int __must_check sysfs_update_groups(struct kobject *kobj,
313 int sysfs_update_group(struct kobject *kobj,
315 void sysfs_remove_group(struct kobject *kobj,
317 void sysfs_remove_groups(struct kobject *kobj,
319 int sysfs_add_file_to_group(struct kobject *kobj,
321 void sysfs_remove_file_from_group(struct kobject *kobj,
323 int sysfs_merge_group(struct kobject *kobj,
325 void sysfs_unmerge_group(struct kobject *kobj,
327 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
328 struct kobject *target, const char *link_name);
329 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
331 int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
332 struct kobject *target_kobj,
336 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
345 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
347 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
348 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
350 int sysfs_groups_change_owner(struct kobject *kobj,
353 int sysfs_group_change_owner(struct kobject *kobj,
363 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
368 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
372 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns()
378 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns()
379 struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
385 static inline int sysfs_create_mount_point(struct kobject *parent_kobj, in sysfs_create_mount_point()
391 static inline void sysfs_remove_mount_point(struct kobject *parent_kobj, in sysfs_remove_mount_point()
396 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns()
403 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files()
409 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file()
416 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection()
426 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns()
432 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self()
438 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files()
443 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file()
449 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file()
454 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link()
455 struct kobject *target, const char *name) in sysfs_create_link()
460 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn()
461 struct kobject *target, in sysfs_create_link_nowarn()
467 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
471 static inline int sysfs_rename_link_ns(struct kobject *k, struct kobject *t, in sysfs_rename_link_ns()
478 static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, in sysfs_delete_link()
483 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
489 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
495 static inline int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups()
501 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
507 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
512 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
517 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group()
523 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group()
528 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
534 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
539 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group()
540 const char *group_name, struct kobject *target, in sysfs_add_link_to_group()
546 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group()
551 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, in compat_only_sysfs_link_entry_to_kobj()
552 struct kobject *target_kobj, in compat_only_sysfs_link_entry_to_kobj()
559 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify()
573 static inline int sysfs_file_change_owner(struct kobject *kobj, in sysfs_file_change_owner()
580 static inline int sysfs_link_change_owner(struct kobject *kobj, in sysfs_link_change_owner()
581 struct kobject *targ, in sysfs_link_change_owner()
588 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner()
593 static inline int sysfs_groups_change_owner(struct kobject *kobj, in sysfs_groups_change_owner()
600 static inline int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner()
620 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file()
626 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file()
632 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link()