1STRUCT SUBSYS_INTERF(9)  Device drivers infrastructure STRUCT SUBSYS_INTERF(9)
2
3
4

NAME

6       struct_subsys_interface - interfaces to device functions
7

SYNOPSIS

9       struct subsys_interface {
10         const char * name;
11         struct bus_type * subsys;
12         struct list_head node;
13         int (* add_dev) (struct device *dev, struct subsys_interface *sif);
14         void (* remove_dev) (struct device *dev, struct subsys_interface *sif);
15       };
16

MEMBERS

18       name
19           name of the device function
20
21       subsys
22           subsytem of the devices to attach to
23
24       node
25           the list of functions registered at the subsystem
26
27       add_dev
28           device hookup to device function handler
29
30       remove_dev
31           device hookup to device function handler
32

DESCRIPTION

34       Simple interfaces attached to a subsystem. Multiple interfaces can
35       attach to a subsystem and its devices. Unlike drivers, they do not
36       exclusively claim or control devices. Interfaces usually represent a
37       specific functionality of a subsystem/class of devices.
38
40Kernel Hackers Manual 3.10         June 2019           STRUCT SUBSYS_INTERF(9)
Impressum