table of contents
STRUCT DEVICE_DRIVER(9) | Device drivers infrastructure | STRUCT DEVICE_DRIVER(9) |
NAME¶
struct_device_driver - The basic device driver structure
SYNOPSIS¶
struct device_driver {
const char * name;
struct bus_type * bus;
struct module * owner;
const char * mod_name;
bool suppress_bind_attrs;
enum probe_type probe_type;
const struct of_device_id * of_match_table;
const struct acpi_device_id * acpi_match_table;
int (* probe) (struct device *dev);
int (* remove) (struct device *dev);
void (* shutdown) (struct device *dev);
int (* suspend) (struct device *dev, pm_message_t state);
int (* resume) (struct device *dev);
const struct attribute_group ** groups;
const struct dev_pm_ops * pm;
struct driver_private * p; };
MEMBERS¶
name
bus
owner
mod_name
suppress_bind_attrs
probe_type
of_match_table
acpi_match_table
probe
remove
shutdown
suspend
resume
groups
pm
p
DESCRIPTION¶
The device driver-model tracks all of the drivers known to the system. The main reason for this tracking is to enable the driver core to match up drivers with new devices. Once drivers are known objects within the system, however, a number of other things become possible. Device drivers can export information and configuration variables that are independent of any specific device.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |