1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct subsys_interface</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="devdrivers.html#idp1109043876" title="The Basic Device Driver-Model Structures"><link rel="prev" href="API-struct-device-driver.html" title="struct device_driver"><link rel="next" href="API-struct-class.html" title="struct class"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct subsys_interface</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-struct-device-driver.html">Prev</a>&#160;</td><th width="60%" align="center">The Basic Device Driver-Model Structures </th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-class.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-subsys-interface"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct subsys_interface &#8212; 
2     interfaces to device functions
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct subsys_interface {
5  const char * name;
6  struct bus_type * subsys;
7  struct list_head node;
8  int (* add_dev) (struct device *dev, struct subsys_interface *sif);
9  int (* remove_dev) (struct device *dev, struct subsys_interface *sif);
10};  </pre></div><div class="refsect1"><a name="idp1109095076"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">name</span></dt><dd><p>
11   name of the device function
12      </p></dd><dt><span class="term">subsys</span></dt><dd><p>
13   subsytem of the devices to attach to
14      </p></dd><dt><span class="term">node</span></dt><dd><p>
15   the list of functions registered at the subsystem
16      </p></dd><dt><span class="term">add_dev</span></dt><dd><p>
17   device hookup to device function handler
18      </p></dd><dt><span class="term">remove_dev</span></dt><dd><p>
19   device hookup to device function handler
20      </p></dd></dl></div></div><div class="refsect1"><a name="idp1109099236"></a><h2>Description</h2><p>
21   Simple interfaces attached to a subsystem. Multiple interfaces can
22   attach to a subsystem and its devices. Unlike drivers, they do not
23   exclusively claim or control devices. Interfaces usually represent
24   a specific functionality of a subsystem/class of devices.
25</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-struct-device-driver.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="devdrivers.html#idp1109043876">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-class.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">struct device_driver</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct class</span></td></tr></table></div></body></html>
26