Searched +defs:kobject +path:include +path:linux +path:kobject +path:. +path:h (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/include/linux/ |
H A D | kobject.h | 2 * kobject.h - generic kernel object infrastructure. 11 * Please read Documentation/kobject.txt before using the kobject 40 /* counter to tag the uevent, read only except for the kobject core */ 63 struct kobject { struct 66 struct kobject *parent; 82 int kobject_set_name(struct kobject *kobj, const char *name, ...); 83 extern int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, 86 static inline const char *kobject_name(const struct kobject *kobj) kobject_name() 91 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype); 93 int kobject_add(struct kobject *kobj, struct kobject *parent, 96 int kobject_init_and_add(struct kobject *kobj, 97 struct kobj_type *ktype, struct kobject *parent, 100 extern void kobject_del(struct kobject *kobj); 102 extern struct kobject * __must_check kobject_create(void); 103 extern struct kobject * __must_check kobject_create_and_add(const char *name, 104 struct kobject *parent); 106 extern int __must_check kobject_rename(struct kobject *, const char *new_name); 107 extern int __must_check kobject_move(struct kobject *, struct kobject *); 109 extern struct kobject *kobject_get(struct kobject *kobj); 110 extern void kobject_put(struct kobject *kobj); 112 extern const void *kobject_namespace(struct kobject *kobj); 113 extern char *kobject_get_path(struct kobject *kobj, gfp_t flag); 116 void (*release)(struct kobject *kobj); 119 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj); 120 const void *(*namespace)(struct kobject *kobj); 132 int (* const filter)(struct kset *kset, struct kobject *kobj); 133 const char *(* const name)(struct kset *kset, struct kobject *kobj); 134 int (* const uevent)(struct kset *kset, struct kobject *kobj, 140 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr, 142 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr, 157 * a kobject. 161 * @kobj: the embedded kobject for this kset (recursion, isn't it fun...) 163 * called whenever a kobject has something happen to it so that the kset 170 struct kobject kobj; 179 struct kobject *parent_kobj); 181 static inline struct kset *to_kset(struct kobject *kobj) to_kset() 196 static inline struct kobj_type *get_ktype(struct kobject *kobj) get_ktype() 201 extern struct kobject *kset_find_obj(struct kset *, const char *); 203 /* The global /sys/kernel/ kobject for people to chain off of */ 204 extern struct kobject *kernel_kobj; 205 /* The global /sys/kernel/mm/ kobject for people to chain off of */ 206 extern struct kobject *mm_kobj; 207 /* The global /sys/hypervisor/ kobject for people to chain off of */ 208 extern struct kobject *hypervisor_kobj; 209 /* The global /sys/power/ kobject for people to chain off of */ 210 extern struct kobject *power_kobj; 211 /* The global /sys/firmware/ kobject for people to chain off of */ 212 extern struct kobject *firmware_kobj; 214 int kobject_uevent(struct kobject *kobj, enum kobject_action action); 215 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
|
Completed in 63 milliseconds