Lines Matching refs:kobj
89 int kobject_set_name(struct kobject *kobj, const char *name, ...);
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() argument
96 return kobj->name; 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,
108 extern void kobject_del(struct kobject *kobj);
117 extern struct kobject *kobject_get(struct kobject *kobj);
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,
125 extern char *kobject_get_path(struct kobject *kobj, gfp_t flag);
137 static inline bool kobject_has_children(struct kobject *kobj) in kobject_has_children() argument
139 WARN_ON_ONCE(kref_read(&kobj->kref) == 0); in kobject_has_children()
141 return kobj->sd && kobj->sd->dir.subdirs; in kobject_has_children()
145 void (*release)(struct kobject *kobj);
149 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj);
150 const void *(*namespace)(struct kobject *kobj);
151 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);
168 int (* const filter)(struct kset *kset, struct kobject *kobj);
169 const char *(* const name)(struct kset *kset, struct kobject *kobj);
170 int (* const uevent)(struct kset *kset, struct kobject *kobj,
176 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
178 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
206 struct kobject kobj; member
222 static inline struct kset *to_kset(struct kobject *kobj) in to_kset() argument
224 return kobj ? container_of(kobj, struct kset, kobj) : NULL; in to_kset()
229 return k ? to_kset(kobject_get(&k->kobj)) : NULL; in kset_get()
234 kobject_put(&k->kobj); in kset_put()
237 static inline struct kobj_type *get_ktype(struct kobject *kobj) in get_ktype() argument
239 return kobj->ktype; in get_ktype()
255 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
256 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
258 int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count);