Home
last modified time | relevance | path

Searched refs:devices_kset (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/base/
Dbase.h42 struct kset *devices_kset; member
161 extern struct kset *devices_kset;
Dbus.c455 error = sysfs_create_link(&bus->p->devices_kset->kobj, in bus_add_device()
468 sysfs_remove_link(&bus->p->devices_kset->kobj, dev_name(dev)); in bus_add_device()
525 sysfs_remove_link(&dev->bus->p->devices_kset->kobj, in bus_remove_device()
835 priv->devices_kset = kset_create_and_add("devices", NULL, in bus_register()
837 if (!priv->devices_kset) { in bus_register()
870 kset_unregister(bus->p->devices_kset); in bus_register()
897 kset_unregister(bus->p->devices_kset); in bus_unregister()
1196 system_kset = kset_create_and_add("system", NULL, &devices_kset->kobj); in buses_init()
Dcore.c2273 struct kset *devices_kset; variable
2282 if (!devices_kset) in devices_kset_move_before()
2286 spin_lock(&devices_kset->list_lock); in devices_kset_move_before()
2288 spin_unlock(&devices_kset->list_lock); in devices_kset_move_before()
2298 if (!devices_kset) in devices_kset_move_after()
2302 spin_lock(&devices_kset->list_lock); in devices_kset_move_after()
2304 spin_unlock(&devices_kset->list_lock); in devices_kset_move_after()
2313 if (!devices_kset) in devices_kset_move_last()
2316 spin_lock(&devices_kset->list_lock); in devices_kset_move_last()
2317 list_move_tail(&dev->kobj.entry, &devices_kset->list); in devices_kset_move_last()
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/
Ddevice_link.rst221 dpm_list. During shutdown it is determined by the devices_kset. With