'\" t .\" Title: struct subsys_interface .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "STRUCT SUBSYS_INTERF" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_subsys_interface \- interfaces to device functions .SH "SYNOPSIS" .sp .nf struct subsys_interface { const char * name; struct bus_type * subsys; struct list_head node; int (* add_dev) (struct device *dev, struct subsys_interface *sif); int (* remove_dev) (struct device *dev, struct subsys_interface *sif); }; .fi .SH "MEMBERS" .PP name .RS 4 name of the device function .RE .PP subsys .RS 4 subsytem of the devices to attach to .RE .PP node .RS 4 the list of functions registered at the subsystem .RE .PP add_dev .RS 4 device hookup to device function handler .RE .PP remove_dev .RS 4 device hookup to device function handler .RE .SH "DESCRIPTION" .PP Simple interfaces attached to a subsystem\&. Multiple interfaces can attach to a subsystem and its devices\&. Unlike drivers, they do not exclusively claim or control devices\&. Interfaces usually represent a specific functionality of a subsystem/class of devices\&. .SH "COPYRIGHT" .br