Lines Matching refs:kobject
65 struct kobject { struct
68 struct kobject *parent; argument
89 int kobject_set_name(struct kobject *kobj, const char *name, ...); argument
91 int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
94 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name()
99 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
101 int kobject_add(struct kobject *kobj, struct kobject *parent,
104 int kobject_init_and_add(struct kobject *kobj,
105 struct kobj_type *ktype, struct kobject *parent,
108 extern void kobject_del(struct kobject *kobj);
110 extern struct kobject * __must_check kobject_create(void);
111 extern struct kobject * __must_check kobject_create_and_add(const char *name,
112 struct kobject *parent);
114 extern int __must_check kobject_rename(struct kobject *, const char *new_name);
115 extern int __must_check kobject_move(struct kobject *, struct kobject *);
117 extern struct kobject *kobject_get(struct kobject *kobj);
118 extern struct kobject * __must_check kobject_get_unless_zero(
119 struct kobject *kobj);
120 extern void kobject_put(struct kobject *kobj);
122 extern const void *kobject_namespace(struct kobject *kobj);
123 extern void kobject_get_ownership(struct kobject *kobj,
126 extern char *kobject_get_path(struct kobject *kobj, gfp_t flag);
128 extern char *kobject_get_path(const struct kobject *kobj, gfp_t flag);
141 static inline bool kobject_has_children(struct kobject *kobj) in kobject_has_children()
149 void (*release)(struct kobject *kobj);
153 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj);
154 const void *(*namespace)(struct kobject *kobj);
155 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);
172 int (* const filter)(struct kset *kset, struct kobject *kobj);
173 const char *(* const name)(struct kset *kset, struct kobject *kobj);
174 int (* const uevent)(struct kset *kset, struct kobject *kobj,
180 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
182 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
210 struct kobject kobj;
224 struct kobject *parent_kobj);
226 static inline struct kset *to_kset(struct kobject *kobj) in to_kset()
241 static inline struct kobj_type *get_ktype(struct kobject *kobj) in get_ktype()
246 extern struct kobject *kset_find_obj(struct kset *, const char *);
249 extern struct kobject *kernel_kobj;
251 extern struct kobject *mm_kobj;
253 extern struct kobject *hypervisor_kobj;
255 extern struct kobject *power_kobj;
257 extern struct kobject *firmware_kobj;
259 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
260 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
262 int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count);