aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r--include/linux/kobject.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 5031565ab30d..0b97b3a53917 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -202,24 +202,6 @@ extern struct kset kernel_subsys;
202/* The global /sys/hypervisor/ subsystem */ 202/* The global /sys/hypervisor/ subsystem */
203extern struct kset hypervisor_subsys; 203extern struct kset hypervisor_subsys;
204 204
205/*
206 * Helpers for setting the kset of registered objects.
207 * Often, a registered object belongs to a kset embedded in a
208 * subsystem. These do no magic, just make the resulting code
209 * easier to follow.
210 */
211
212/**
213 * kobj_set_kset_s(obj,subsys) - set kset for embedded kobject.
214 * @obj: ptr to some object type.
215 * @subsys: a subsystem object (not a ptr).
216 *
217 * Can be used for any object type with an embedded ->kobj.
218 */
219
220#define kobj_set_kset_s(obj,subsys) \
221 (obj)->kobj.kset = &(subsys)
222
223extern int __must_check subsystem_register(struct kset *); 205extern int __must_check subsystem_register(struct kset *);
224extern void subsystem_unregister(struct kset *); 206extern void subsystem_unregister(struct kset *);
225 207