Home | History | Annotate | Download | only in linux

Lines Matching refs:subsystem

98  *	to a specific subsystem.
105 * A subsystem does not have to be a list of only one type
106 * of object; multiple ksets can belong to one subsystem. All
107 * ksets of a subsystem share the subsystem's lock.
110 * supress the event generation or add subsystem specific
121 struct subsystem * subsys;
169 struct subsystem {
175 struct subsystem _name##_subsys = { \
183 struct subsystem _varname##_subsys = { \
191 /* The global /sys/kernel/ subsystem for people to chain off of */
192 extern struct subsystem kernel_subsys;
193 /* The global /sys/hypervisor/ subsystem */
194 extern struct subsystem hypervisor_subsys;
199 * subsystem. These do no magic, just make the resulting code
206 * @subsys: a subsystem object (not a ptr).
217 * @subsys: a subsystem object (not a ptr).
229 * subsys_set_kset(obj,subsys) - set kset for subsystem
231 * @subsys: a subsystem object (not a ptr).
241 extern void subsystem_init(struct subsystem *);
242 extern int subsystem_register(struct subsystem *);
243 extern void subsystem_unregister(struct subsystem *);
245 static inline struct subsystem * subsys_get(struct subsystem * s)
247 return s ? container_of(kset_get(&s->kset),struct subsystem,kset) : NULL;
250 static inline void subsys_put(struct subsystem * s)
257 ssize_t (*show)(struct subsystem *, char *);
258 ssize_t (*store)(struct subsystem *, const char *, size_t);
261 extern int subsys_create_file(struct subsystem * , struct subsys_attribute *);