Lines Matching refs:kobj

84 __printf(2, 3) int kobject_set_name(struct kobject *kobj, const char *name, ...);
85 __printf(2, 0) int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list vargs);
87 static inline const char *kobject_name(const struct kobject *kobj) in kobject_name() argument
89 return kobj->name; in kobject_name()
92 void kobject_init(struct kobject *kobj, const struct kobj_type *ktype);
93 __printf(3, 4) __must_check int kobject_add(struct kobject *kobj,
96 __printf(4, 5) __must_check int kobject_init_and_add(struct kobject *kobj,
101 void kobject_del(struct kobject *kobj);
108 struct kobject *kobject_get(struct kobject *kobj);
109 struct kobject * __must_check kobject_get_unless_zero(struct kobject *kobj);
110 void kobject_put(struct kobject *kobj);
112 const void *kobject_namespace(const struct kobject *kobj);
113 void kobject_get_ownership(const struct kobject *kobj, kuid_t *uid, kgid_t *gid);
114 char *kobject_get_path(const struct kobject *kobj, gfp_t flag);
117 void (*release)(struct kobject *kobj);
120 const struct kobj_ns_type_operations *(*child_ns_type)(const struct kobject *kobj);
121 const void *(*namespace)(const struct kobject *kobj);
122 void (*get_ownership)(const struct kobject *kobj, kuid_t *uid, kgid_t *gid);
134 int (* const filter)(const struct kobject *kobj);
135 const char *(* const name)(const struct kobject *kobj);
136 int (* const uevent)(const struct kobject *kobj, struct kobj_uevent_env *env);
141 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
143 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
171 struct kobject kobj; member
181 static inline struct kset *to_kset(struct kobject *kobj) in to_kset() argument
183 return kobj ? container_of(kobj, struct kset, kobj) : NULL; in to_kset()
188 return k ? to_kset(kobject_get(&k->kobj)) : NULL; in kset_get()
193 kobject_put(&k->kobj); in kset_put()
196 static inline const struct kobj_type *get_ktype(const struct kobject *kobj) in get_ktype() argument
198 return kobj->ktype; in get_ktype()
214 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
215 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
217 int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count);