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,
239 ssize_t (*show)(struct kobject *, struct attribute *, char *);
240 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
245 int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns);
246 void sysfs_remove_dir(struct kobject *kobj);
247 int __must_check sysfs_rename_dir_ns(struct kobject *kobj, const char *new_name,
249 int __must_check sysfs_move_dir_ns(struct kobject *kobj,
250 struct kobject *new_parent_kobj,
252 int __must_check sysfs_create_mount_point(struct kobject *parent_kobj,
254 void sysfs_remove_mount_point(struct kobject *parent_kobj,
257 int __must_check sysfs_create_file_ns(struct kobject *kobj,
260 int __must_check sysfs_create_files(struct kobject *kobj,
262 int __must_check sysfs_chmod_file(struct kobject *kobj,
264 struct kernfs_node *sysfs_break_active_protection(struct kobject *kobj,
267 void sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr,
269 bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr);
270 void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr);
272 int __must_check sysfs_create_bin_file(struct kobject *kobj,
274 void sysfs_remove_bin_file(struct kobject *kobj,
277 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
279 int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
280 struct kobject *target,
282 void sysfs_remove_link(struct kobject *kobj, const char *name);
284 int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *target,
288 void sysfs_delete_link(struct kobject *dir, struct kobject *targ,
291 int __must_check sysfs_create_group(struct kobject *kobj,
293 int __must_check sysfs_create_groups(struct kobject *kobj,
295 int __must_check sysfs_update_groups(struct kobject *kobj,
297 int sysfs_update_group(struct kobject *kobj,
299 void sysfs_remove_group(struct kobject *kobj,
301 void sysfs_remove_groups(struct kobject *kobj,
303 int sysfs_add_file_to_group(struct kobject *kobj,
305 void sysfs_remove_file_from_group(struct kobject *kobj,
307 int sysfs_merge_group(struct kobject *kobj,
309 void sysfs_unmerge_group(struct kobject *kobj,
311 int sysfs_add_link_to_group(struct kobject *kobj, const char *group_name,
312 struct kobject *target, const char *link_name);
313 void sysfs_remove_link_from_group(struct kobject *kobj, const char *group_name,
315 int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj,
316 struct kobject *target_kobj,
320 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr);
329 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
331 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
332 int sysfs_link_change_owner(struct kobject *kobj, struct kobject *targ,
334 int sysfs_groups_change_owner(struct kobject *kobj,
337 int sysfs_group_change_owner(struct kobject *kobj,
347 static inline int sysfs_create_dir_ns(struct kobject *kobj, const void *ns) in sysfs_create_dir_ns()
352 static inline void sysfs_remove_dir(struct kobject *kobj) in sysfs_remove_dir()
356 static inline int sysfs_rename_dir_ns(struct kobject *kobj, in sysfs_rename_dir_ns()
362 static inline int sysfs_move_dir_ns(struct kobject *kobj, in sysfs_move_dir_ns()
363 struct kobject *new_parent_kobj, in sysfs_move_dir_ns()
369 static inline int sysfs_create_mount_point(struct kobject *parent_kobj, in sysfs_create_mount_point()
375 static inline void sysfs_remove_mount_point(struct kobject *parent_kobj, in sysfs_remove_mount_point()
380 static inline int sysfs_create_file_ns(struct kobject *kobj, in sysfs_create_file_ns()
387 static inline int sysfs_create_files(struct kobject *kobj, in sysfs_create_files()
393 static inline int sysfs_chmod_file(struct kobject *kobj, in sysfs_chmod_file()
400 sysfs_break_active_protection(struct kobject *kobj, in sysfs_break_active_protection()
410 static inline void sysfs_remove_file_ns(struct kobject *kobj, in sysfs_remove_file_ns()
416 static inline bool sysfs_remove_file_self(struct kobject *kobj, in sysfs_remove_file_self()
422 static inline void sysfs_remove_files(struct kobject *kobj, in sysfs_remove_files()
427 static inline int sysfs_create_bin_file(struct kobject *kobj, in sysfs_create_bin_file()
433 static inline void sysfs_remove_bin_file(struct kobject *kobj, in sysfs_remove_bin_file()
438 static inline int sysfs_create_link(struct kobject *kobj, in sysfs_create_link()
439 struct kobject *target, const char *name) in sysfs_create_link()
444 static inline int sysfs_create_link_nowarn(struct kobject *kobj, in sysfs_create_link_nowarn()
445 struct kobject *target, in sysfs_create_link_nowarn()
451 static inline void sysfs_remove_link(struct kobject *kobj, const char *name) in sysfs_remove_link()
455 static inline int sysfs_rename_link_ns(struct kobject *k, struct kobject *t, in sysfs_rename_link_ns()
462 static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, in sysfs_delete_link()
467 static inline int sysfs_create_group(struct kobject *kobj, in sysfs_create_group()
473 static inline int sysfs_create_groups(struct kobject *kobj, in sysfs_create_groups()
479 static inline int sysfs_update_groups(struct kobject *kobj, in sysfs_update_groups()
485 static inline int sysfs_update_group(struct kobject *kobj, in sysfs_update_group()
491 static inline void sysfs_remove_group(struct kobject *kobj, in sysfs_remove_group()
496 static inline void sysfs_remove_groups(struct kobject *kobj, in sysfs_remove_groups()
501 static inline int sysfs_add_file_to_group(struct kobject *kobj, in sysfs_add_file_to_group()
507 static inline void sysfs_remove_file_from_group(struct kobject *kobj, in sysfs_remove_file_from_group()
512 static inline int sysfs_merge_group(struct kobject *kobj, in sysfs_merge_group()
518 static inline void sysfs_unmerge_group(struct kobject *kobj, in sysfs_unmerge_group()
523 static inline int sysfs_add_link_to_group(struct kobject *kobj, in sysfs_add_link_to_group()
524 const char *group_name, struct kobject *target, in sysfs_add_link_to_group()
530 static inline void sysfs_remove_link_from_group(struct kobject *kobj, in sysfs_remove_link_from_group()
535 static inline int compat_only_sysfs_link_entry_to_kobj(struct kobject *kobj, in compat_only_sysfs_link_entry_to_kobj()
536 struct kobject *target_kobj, in compat_only_sysfs_link_entry_to_kobj()
543 static inline void sysfs_notify(struct kobject *kobj, const char *dir, in sysfs_notify()
557 static inline int sysfs_file_change_owner(struct kobject *kobj, in sysfs_file_change_owner()
564 static inline int sysfs_link_change_owner(struct kobject *kobj, in sysfs_link_change_owner()
565 struct kobject *targ, in sysfs_link_change_owner()
572 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner()
577 static inline int sysfs_groups_change_owner(struct kobject *kobj, in sysfs_groups_change_owner()
584 static inline int sysfs_group_change_owner(struct kobject *kobj, in sysfs_group_change_owner()
604 static inline int __must_check sysfs_create_file(struct kobject *kobj, in sysfs_create_file()
610 static inline void sysfs_remove_file(struct kobject *kobj, in sysfs_remove_file()
616 static inline int sysfs_rename_link(struct kobject *kobj, struct kobject *target, in sysfs_rename_link()