Lines Matching refs:kobject

64 struct kobject {  struct
67 struct kobject *parent; argument
83 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument
85 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
88 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name()
93 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
95 int kobject_add(struct kobject *kobj, struct kobject *parent,
98 int kobject_init_and_add(struct kobject *kobj,
99 struct kobj_type *ktype, struct kobject *parent,
102 extern void kobject_del(struct kobject *kobj);
104 extern struct kobject * __must_check kobject_create(void);
105 extern struct kobject * __must_check kobject_create_and_add(const char *name,
106 struct kobject *parent);
108 extern int __must_check kobject_rename(struct kobject *, const char *new_name);
109 extern int __must_check kobject_move(struct kobject *, struct kobject *);
111 extern struct kobject *kobject_get(struct kobject *kobj);
112 extern struct kobject * __must_check kobject_get_unless_zero(
113 struct kobject *kobj);
114 extern void kobject_put(struct kobject *kobj);
116 extern const void *kobject_namespace(struct kobject *kobj);
117 extern void kobject_get_ownership(struct kobject *kobj,
119 extern char *kobject_get_path(struct kobject *kobj, gfp_t flag);
131 static inline bool kobject_has_children(struct kobject *kobj) in kobject_has_children()
139 void (*release)(struct kobject *kobj);
143 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj);
144 const void *(*namespace)(struct kobject *kobj);
145 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);
157 int (* const filter)(struct kset *kset, struct kobject *kobj);
158 const char *(* const name)(struct kset *kset, struct kobject *kobj);
159 int (* const uevent)(struct kset *kset, struct kobject *kobj,
165 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
167 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
195 struct kobject kobj;
204 struct kobject *parent_kobj);
206 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
221 static inline struct kobj_type *get_ktype(struct kobject *kobj) in get_ktype()
226 extern struct kobject *kset_find_obj(struct kset *, const char *);
229 extern struct kobject *kernel_kobj;
231 extern struct kobject *mm_kobj;
233 extern struct kobject *hypervisor_kobj;
235 extern struct kobject *power_kobj;
237 extern struct kobject *firmware_kobj;
239 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
240 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
242 int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count);