Device Drivers Base
Prev
Chapter 2. Device drivers infrastructure
Next
Device Drivers Base
driver_init
— initialize driver model.
driver_for_each_device
— Iterator for devices bound to a driver.
driver_find_device
— device iterator for locating a particular device.
driver_create_file
— create sysfs file for driver.
driver_remove_file
— remove sysfs file for driver.
driver_register
— register driver with bus
driver_unregister
— remove driver from system.
driver_find
— locate driver on a bus by its name.
dev_driver_string
— Return a device's driver name, if at all possible
device_create_file
— create sysfs attribute file for device.
device_remove_file
— remove sysfs attribute file.
device_remove_file_self
— remove sysfs attribute file from its own method.
device_create_bin_file
— create sysfs binary attribute file for device.
device_remove_bin_file
— remove sysfs binary attribute file
device_initialize
— init device structure.
dev_set_name
— set a device name
device_add
— add device to device hierarchy.
device_register
— register a device with the system.
get_device
— increment reference count for device.
put_device
— decrement reference count.
device_del
— delete device from system.
device_unregister
— unregister device from system.
device_for_each_child
— device child iterator.
device_find_child
— device iterator for locating a particular device.
__root_device_register
— allocate and register a root device
root_device_unregister
— unregister and free a root device
device_create_vargs
— creates a device and registers it with sysfs
device_create
— creates a device and registers it with sysfs
device_create_with_groups
— creates a device and registers it with sysfs
device_destroy
— removes a device that was created with
device_create
device_rename
— renames a device
device_move
— moves a device to a new parent
set_primary_fwnode
— Change the primary firmware node of a given device.
register_syscore_ops
— Register a set of system core operations.
unregister_syscore_ops
— Unregister a set of system core operations.
syscore_suspend
— Execute all the registered system core suspend callbacks.
syscore_resume
— Execute all the registered system core resume callbacks.
__class_create
— create a struct class structure
class_destroy
— destroys a struct class structure
class_dev_iter_init
— initialize class device iterator
class_dev_iter_next
— iterate to the next device
class_dev_iter_exit
— finish iteration
class_for_each_device
— device iterator
class_find_device
— device iterator for locating a particular device
class_compat_register
— register a compatibility class
class_compat_unregister
— unregister a compatibility class
class_compat_create_link
— create a compatibility class device link to a bus device
class_compat_remove_link
— remove a compatibility class device link to a bus device
unregister_node
— unregister a node device
request_firmware
— send firmware request and wait for it
request_firmware_direct
— load firmware directly without usermode helper
release_firmware
— release the resource associated with a firmware image
request_firmware_nowait
— asynchronous version of request_firmware
transport_class_register
— register an initial transport class
transport_class_unregister
— unregister a previously registered class
anon_transport_class_register
— register an anonymous class
anon_transport_class_unregister
— unregister an anon class
transport_setup_device
— declare a new dev for transport class association but don't make it visible yet.
transport_add_device
— declare a new dev for transport class association
transport_configure_device
— configure an already set up device
transport_remove_device
— remove the visibility of a device
transport_destroy_device
— destroy a removed device
device_bind_driver
— bind a driver to one device.
wait_for_device_probe
—
device_attach
— try to attach device to a driver.
driver_attach
— try to bind driver to devices.
device_release_driver
— manually detach device from driver.
platform_device_register_resndata
— add a platform-level device with resources and platform-specific data
platform_device_register_simple
— add a platform-level device and its resources
platform_device_register_data
— add a platform-level device with platform-specific data
platform_get_resource
— get a resource for a device
platform_get_irq
— get an IRQ for a device
platform_get_resource_byname
— get a resource for a device by name
platform_get_irq_byname
— get an IRQ for a device by name
platform_add_devices
— add a numbers of platform devices
platform_device_put
— destroy a platform device
platform_device_alloc
— create a platform device
platform_device_add_resources
— add resources to a platform device
platform_device_add_data
— add platform-specific data to a platform device
platform_device_add
— add a platform device to device hierarchy
platform_device_del
— remove a platform-level device
platform_device_register
— add a platform-level device
platform_device_unregister
— unregister a platform-level device
platform_device_register_full
— add a platform-level device with resources and platform-specific data
__platform_driver_register
— register a driver for platform-level devices
platform_driver_unregister
— unregister a driver for platform-level devices
__platform_driver_probe
— register driver for non-hotpluggable device
__platform_create_bundle
— register driver and create corresponding device
bus_for_each_dev
— device iterator.
bus_find_device
— device iterator for locating a particular device.
bus_find_device_by_name
— device iterator for locating a particular device of a specific name
subsys_find_device_by_id
— find a device with a specific enumeration number
bus_for_each_drv
— driver iterator
bus_rescan_devices
— rescan devices on the bus for possible drivers
device_reprobe
— remove driver for a device and probe for a new driver
bus_register
— register a driver-core subsystem
bus_unregister
— remove a bus from the system
subsys_dev_iter_init
— initialize subsys device iterator
subsys_dev_iter_next
— iterate to the next device
subsys_dev_iter_exit
— finish iteration
subsys_system_register
— register a subsystem at /sys/devices/system/
subsys_virtual_register
— register a subsystem at /sys/devices/virtual/