Go to the source code of this file.
|
#define | to_subsys_private(obj) container_of(obj, struct subsys_private, subsys.kobj) |
|
#define | to_driver(obj) container_of(obj, struct driver_private, kobj) |
|
#define | to_device_private_parent(obj) container_of(obj, struct device_private, knode_parent) |
|
#define | to_device_private_driver(obj) container_of(obj, struct device_private, knode_driver) |
|
#define | to_device_private_bus(obj) container_of(obj, struct device_private, knode_bus) |
|
bus_add_device - add device to bus : device being added
- Add device's bus attributes.
- Create links to device's bus.
- Add the device to its bus's list of devices.
Definition at line 495 of file bus.c.
bus_add_driver - Add a driver to the bus. : driver.
Definition at line 691 of file bus.c.
bus_probe_device - probe drivers for a new device : device to probe
- Automatically probe for a driver if the bus allows it.
Definition at line 532 of file bus.c.
bus_remove_device - remove device from bus : device to be removed
- Remove device from all interfaces.
- Remove symlink from bus' directory.
- Delete device from bus's list.
- Detach from its driver.
- Drop reference taken in bus_add_device().
Definition at line 563 of file bus.c.
bus_remove_driver - delete driver from bus's knowledge. : driver.
Detach the driver from the devices it controls, and remove it from its bus's list of drivers. Finally, we drop the reference to the bus we took in bus_add_driver().
Definition at line 765 of file bus.c.
devres_release_all - Release all managed resources : Device to release resources for
Release all resources associated with . This function is called on driver detach.
Definition at line 506 of file devres.c.
Definition at line 120 of file dd.c.
driver_detach - detach driver from all devices it controls. : driver.
Definition at line 535 of file dd.c.
driver_probe_device - attempt to bind device & driver together : driver to bind a device to : device to try to bind to the driver
This function returns -ENODEV if the device is not registered, 1 if the device is bound successfully and 0 otherwise.
This function must be called with lock held. When called for a USB interface, ->parent lock must be held as well.
Definition at line 362 of file dd.c.