Lines Matching refs:kobject

65 struct kobject {  struct
68 struct kobject *parent; argument
84 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument
86 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
89 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name()
94 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
96 int kobject_add(struct kobject *kobj, struct kobject *parent,
99 int kobject_init_and_add(struct kobject *kobj,
100 struct kobj_type *ktype, struct kobject *parent,
103 extern void kobject_del(struct kobject *kobj);
105 extern struct kobject * __must_check kobject_create(void);
106 extern struct kobject * __must_check kobject_create_and_add(const char *name,
107 struct kobject *parent);
109 extern int __must_check kobject_rename(struct kobject *, const char *new_name);
110 extern int __must_check kobject_move(struct kobject *, struct kobject *);
112 extern struct kobject *kobject_get(struct kobject *kobj);
113 extern struct kobject * __must_check kobject_get_unless_zero(
114 struct kobject *kobj);
115 extern void kobject_put(struct kobject *kobj);
117 extern const void *kobject_namespace(struct kobject *kobj);
118 extern void kobject_get_ownership(struct kobject *kobj,
120 extern char *kobject_get_path(struct kobject *kobj, gfp_t flag);
132 static inline bool kobject_has_children(struct kobject *kobj) in kobject_has_children()
140 void (*release)(struct kobject *kobj);
144 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj);
145 const void *(*namespace)(struct kobject *kobj);
146 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);
158 int (* const filter)(struct kset *kset, struct kobject *kobj);
159 const char *(* const name)(struct kset *kset, struct kobject *kobj);
160 int (* const uevent)(struct kset *kset, struct kobject *kobj,
166 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
168 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
196 struct kobject kobj;
205 struct kobject *parent_kobj);
207 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
222 static inline struct kobj_type *get_ktype(struct kobject *kobj) in get_ktype()
227 extern struct kobject *kset_find_obj(struct kset *, const char *);
230 extern struct kobject *kernel_kobj;
232 extern struct kobject *mm_kobj;
234 extern struct kobject *hypervisor_kobj;
236 extern struct kobject *power_kobj;
238 extern struct kobject *firmware_kobj;
240 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
241 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
243 int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count);