• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/

Lines Matching defs:kobject

2  * kobject.h - generic kernel object infrastructure.
11 * Please read Documentation/kobject.txt before using the kobject
37 /* counter to tag the uevent, read only except for the kobject core */
60 struct kobject {
63 struct kobject *parent;
75 extern int kobject_set_name(struct kobject *kobj, const char *name, ...)
77 extern int kobject_set_name_vargs(struct kobject *kobj, const char *fmt,
80 static inline const char *kobject_name(const struct kobject *kobj)
85 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
86 extern int __must_check kobject_add(struct kobject *kobj,
87 struct kobject *parent,
89 extern int __must_check kobject_init_and_add(struct kobject *kobj,
91 struct kobject *parent,
94 extern void kobject_del(struct kobject *kobj);
96 extern struct kobject * __must_check kobject_create(void);
97 extern struct kobject * __must_check kobject_create_and_add(const char *name,
98 struct kobject *parent);
100 extern int __must_check kobject_rename(struct kobject *, const char *new_name);
101 extern int __must_check kobject_move(struct kobject *, struct kobject *);
103 extern struct kobject *kobject_get(struct kobject *kobj);
104 extern void kobject_put(struct kobject *kobj);
106 extern char *kobject_get_path(struct kobject *kobj, gfp_t flag);
109 void (*release)(struct kobject *kobj);
112 const struct kobj_ns_type_operations *(*child_ns_type)(struct kobject *kobj);
113 const void *(*namespace)(struct kobject *kobj);
124 int (* const filter)(struct kset *kset, struct kobject *kobj);
125 const char *(* const name)(struct kset *kset, struct kobject *kobj);
126 int (* const uevent)(struct kset *kset, struct kobject *kobj,
132 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
134 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
149 * a kobject.
153 * @kobj: the embedded kobject for this kset (recursion, isn't it fun...)
155 * called whenever a kobject has something happen to it so that the kset
162 struct kobject kobj;
171 struct kobject *parent_kobj);
173 static inline struct kset *to_kset(struct kobject *kobj)
188 static inline struct kobj_type *get_ktype(struct kobject *kobj)
193 extern struct kobject *kset_find_obj(struct kset *, const char *);
195 /* The global /sys/kernel/ kobject for people to chain off of */
196 extern struct kobject *kernel_kobj;
197 /* The global /sys/kernel/mm/ kobject for people to chain off of */
198 extern struct kobject *mm_kobj;
199 /* The global /sys/hypervisor/ kobject for people to chain off of */
200 extern struct kobject *hypervisor_kobj;
201 /* The global /sys/power/ kobject for people to chain off of */
202 extern struct kobject *power_kobj;
203 /* The global /sys/firmware/ kobject for people to chain off of */
204 extern struct kobject *firmware_kobj;
207 int kobject_uevent(struct kobject *kobj, enum kobject_action action);
208 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
217 static inline int kobject_uevent(struct kobject *kobj,
220 static inline int kobject_uevent_env(struct kobject *kobj,