Lines Matching refs:kobj

83 int kobject_set_name(struct kobject *kobj, const char *name, ...);
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() argument
90 return kobj->name; 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,
102 extern void kobject_del(struct kobject *kobj);
111 extern struct kobject *kobject_get(struct kobject *kobj);
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() argument
133 WARN_ON_ONCE(kref_read(&kobj->kref) == 0); in kobject_has_children()
135 return kobj->sd && kobj->sd->dir.subdirs; 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; member
206 static inline struct kset *to_kset(struct kobject *kobj) in to_kset() argument
208 return kobj ? container_of(kobj, struct kset, kobj) : NULL; in to_kset()
213 return k ? to_kset(kobject_get(&k->kobj)) : NULL; in kset_get()
218 kobject_put(&k->kobj); in kset_put()
221 static inline struct kobj_type *get_ktype(struct kobject *kobj) in get_ktype() argument
223 return kobj->ktype; in get_ktype()
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);