sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget-/translations/zh_CN/driver-api/infrastructuremodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/zh_TW/driver-api/infrastructuremodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/it_IT/driver-api/infrastructuremodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/ja_JP/driver-api/infrastructuremodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/ko_KR/driver-api/infrastructuremodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/pt_BR/driver-api/infrastructuremodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget-/translations/sp_SP/driver-api/infrastructuremodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hDevice drivers infrastructureh]hDevice drivers infrastructure}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhG/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure.rsthKubh)}(hhh](h)}(h(The Basic Device Driver-Model Structuresh]h(The Basic Device Driver-Model Structures}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlesubsys_interface (C struct)c.subsys_interfacehNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(hsubsys_interfaceh]hdesc_signature_line)}(hstruct subsys_interfaceh](hdesc_sig_keyword)}(hstructh]hstruct}(hjhhhNhNubah}(h]h ]kah"]h$]h&]uh1hhhhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1jhhhhhjhKubh desc_name)}(hsubsys_interfaceh]h desc_sig_name)}(hhh]hsubsys_interface}(hj)hhhNhNubah}(h]h ]nah"]h$]h&]uh1j'hj#ubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1j!hhhhhjhKubeh}(h]h ]h"]h$]h&]j?j@ add_permalinkuh1hsphinx_line_type declaratorhhhhhjhKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhjhKhhhhubh desc_content)}(hhh]h paragraph)}(hinterfaces to device functionsh]hinterfaces to device functions}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK3hjWhhubah}(h]h ]h"]h$]h&]uh1jUhhhhhjhKubeh}(h]h ](cstructeh"]h$]h&]domainjtobjtypejudesctypejunoindex noindexentrynocontentsentryuh1hhhhhhNhNubh container)}(hX:**Definition**:: struct subsys_interface { const char *name; const struct bus_type *subsys; struct list_head node; int (*add_dev)(struct device *dev, struct subsys_interface *sif); void (*remove_dev)(struct device *dev, struct subsys_interface *sif); }; **Members** ``name`` name of the device function ``subsys`` subsystem of the devices to attach to ``node`` the list of functions registered at the subsystem ``add_dev`` device hookup to device function handler ``remove_dev`` device hookup to device function handlerh](j[)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK7hjubh literal_block)}(hXstruct subsys_interface { const char *name; const struct bus_type *subsys; struct list_head node; int (*add_dev)(struct device *dev, struct subsys_interface *sif); void (*remove_dev)(struct device *dev, struct subsys_interface *sif); };h]hXstruct subsys_interface { const char *name; const struct bus_type *subsys; struct list_head node; int (*add_dev)(struct device *dev, struct subsys_interface *sif); void (*remove_dev)(struct device *dev, struct subsys_interface *sif); };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK9hjubj[)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKAhjubhdefinition_list)}(hhh](hdefinition_list_item)}(h%``name`` name of the device function h](hterm)}(h``name``h]hliteral)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK5hjubh definition)}(hhh]j[)}(hname of the device functionh]hname of the device function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubj)}(h1``subsys`` subsystem of the devices to attach to h](j)}(h ``subsys``h]j)}(hjh]hsubsys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK6hjubj)}(hhh]j[)}(h%subsystem of the devices to attach toh]h%subsystem of the devices to attach to}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hK6hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hK6hjubj)}(h;``node`` the list of functions registered at the subsystem h](j)}(h``node``h]j)}(hjRh]hnode}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK7hjLubj)}(hhh]j[)}(h1the list of functions registered at the subsystemh]h1the list of functions registered at the subsystem}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghK7hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghK7hjubj)}(h5``add_dev`` device hookup to device function handler h](j)}(h ``add_dev``h]j)}(hjh]hadd_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK8hjubj)}(hhh]j[)}(h(device hookup to device function handlerh]h(device hookup to device function handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubj)}(h7``remove_dev`` device hookup to device function handlerh](j)}(h``remove_dev``h]j)}(hjh]h remove_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK8hjubj)}(hhh]j[)}(h(device hookup to device function handlerh]h(device hookup to device function handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj[)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK_show, and **_store** is <_name>_store.h](j[)}(h**Parameters**h]j)}(hj1 h]h Parameters}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj+ ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjP h]h_name}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjJ ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhje hKhjf ubah}(h]h ]h"]h$]h&]uh1jhjJ ubeh}(h]h ]h"]h$]h&]uh1jhje hKhjG ubah}(h]h ]h"]h$]h&]uh1jhj+ ubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj+ ubj[)}(hfLike DEVICE_ATTR(), but **_mode** is 0644, **_show** is <_name>_show, and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hj hhhNhNubj)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is 0644, }(hj hhhNhNubj)}(h **_show**h]h_show}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is <_name>_show, and }(hj hhhNhNubj)}(h **_store**h]h_store}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is <_name>_store.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj+ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_ADMIN_RW (C macro)c.DEVICE_ATTR_ADMIN_RWhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_ADMIN_RWh]h)}(hDEVICE_ATTR_ADMIN_RWh]j")}(hDEVICE_ATTR_ADMIN_RWh]j()}(hj h]hDEVICE_ATTR_ADMIN_RW}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hKubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhj hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj6 j{j6 j|j}j~uh1hhhhhhNhNubj[)}(h ``DEVICE_ATTR_ADMIN_RW (_name)``h]j)}(hj< h]hDEVICE_ATTR_ADMIN_RW (_name)}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h2Define an admin-only read-write device attribute. h]j[)}(h1Define an admin-only read-write device attribute.h]h1Define an admin-only read-write device attribute.}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjR ubah}(h]h ]h"]h$]h&]uh1jNhjd hKhhhhubj)}(hk**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR_RW(), but **_mode** is 0600.h](j[)}(h**Parameters**h]j)}(hjq h]h Parameters}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjk ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj h]h_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjk ubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjk ubj[)}(h-Like DEVICE_ATTR_RW(), but **_mode** is 0600.h](hLike DEVICE_ATTR_RW(), but }(hj hhhNhNubj)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is 0600.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjk ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_RW_NAMED (C macro)c.DEVICE_ATTR_RW_NAMEDhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_RW_NAMEDh]h)}(hDEVICE_ATTR_RW_NAMEDh]j")}(hDEVICE_ATTR_RW_NAMEDh]j()}(hj h]hDEVICE_ATTR_RW_NAMED}(hj& hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj" ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj9 hKubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj9 hKhj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhj9 hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjR j{jR j|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_RW_NAMED (_name, _attrname)``h]j)}(hjX h]h'DEVICE_ATTR_RW_NAMED (_name, _attrname)}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h\Define a read-write device attribute with a sysfs name that differs from the function name. h]j[)}(h[Define a read-write device attribute with a sysfs name that differs from the function name.h]h[Define a read-write device attribute with a sysfs name that differs from the function name.}(hjr hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjn ubah}(h]h ]h"]h$]h&]uh1jNhj hKhhhhubj)}(h**Parameters** ``_name`` Attribute function preface ``_attrname`` Attribute name as it wil be exposed in the sysfs. **Description** Like DEVICE_ATTR_RW(), but allows for reusing names under separate paths in the same driver.h](j[)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh](j)}(h%``_name`` Attribute function preface h](j)}(h ``_name``h]j)}(hj h]h_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j[)}(hAttribute function prefaceh]hAttribute function preface}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h@``_attrname`` Attribute name as it wil be exposed in the sysfs. h](j)}(h ``_attrname``h]j)}(hj h]h _attrname}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j[)}(h1Attribute name as it wil be exposed in the sysfs.h]h1Attribute name as it wil be exposed in the sysfs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h**Description**h]j)}(hj h]h Description}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj[)}(h\Like DEVICE_ATTR_RW(), but allows for reusing names under separate paths in the same driver.h]h\Like DEVICE_ATTR_RW(), but allows for reusing names under separate paths in the same driver.}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_RO (C macro)c.DEVICE_ATTR_ROhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_ROh]h)}(hDEVICE_ATTR_ROh]j")}(hDEVICE_ATTR_ROh]j()}(hj_ h]hDEVICE_ATTR_RO}(hji hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hje ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hja hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj] hhhj| hKubah}(h]jX ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj| hKhjZ hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjZ hhhj| hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_RO (_name)``h]j)}(hj h]hDEVICE_ATTR_RO (_name)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h$Define a readable device attribute. h]j[)}(h#Define a readable device attribute.h]h#Define a readable device attribute.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubah}(h]h ]h"]h$]h&]uh1jNhj hKhhhhubj)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0444 and **_show** is <_name>_show.h](j[)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj h]h_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj[)}(hHLike DEVICE_ATTR(), but **_mode** is 0444 and **_show** is <_name>_show.h](hLike DEVICE_ATTR(), but }(hj@hhhNhNubj)}(h **_mode**h]h_mode}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh is 0444 and }(hj@hhhNhNubj)}(h **_show**h]h_show}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh is <_name>_show.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_ADMIN_RO (C macro)c.DEVICE_ATTR_ADMIN_ROhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_ADMIN_ROh]h)}(hDEVICE_ATTR_ADMIN_ROh]j")}(hDEVICE_ATTR_ADMIN_ROh]j()}(hjh]hDEVICE_ATTR_ADMIN_RO}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h ``DEVICE_ATTR_ADMIN_RO (_name)``h]j)}(hjh]hDEVICE_ATTR_ADMIN_RO (_name)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h0Define an admin-only readable device attribute. h]j[)}(h/Define an admin-only readable device attribute.h]h/Define an admin-only readable device attribute.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubah}(h]h ]h"]h$]h&]uh1jNhjhKhhhhubj)}(hk**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR_RO(), but **_mode** is 0400.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj[)}(h-Like DEVICE_ATTR_RO(), but **_mode** is 0400.h](hLike DEVICE_ATTR_RO(), but }(hjnhhhNhNubj)}(h **_mode**h]h_mode}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubh is 0400.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_RO_NAMED (C macro)c.DEVICE_ATTR_RO_NAMEDhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_RO_NAMEDh]h)}(hDEVICE_ATTR_RO_NAMEDh]j")}(hDEVICE_ATTR_RO_NAMEDh]j()}(hjh]hDEVICE_ATTR_RO_NAMED}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_RO_NAMED (_name, _attrname)``h]j)}(hjh]h'DEVICE_ATTR_RO_NAMED (_name, _attrname)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h[Define a read-only device attribute with a sysfs name that differs from the function name. h]j[)}(hZDefine a read-only device attribute with a sysfs name that differs from the function name.h]hZDefine a read-only device attribute with a sysfs name that differs from the function name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubah}(h]h ]h"]h$]h&]uh1jNhj hKhhhhubj)}(h**Parameters** ``_name`` Attribute function preface ``_attrname`` Attribute name as it wil be exposed in the sysfs. **Description** Like DEVICE_ATTR_RO(), but allows for reusing names under separate paths in the same driver.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh](j)}(h%``_name`` Attribute function preface h](j)}(h ``_name``h]j)}(hj9h]h_name}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj3ubj)}(hhh]j[)}(hAttribute function prefaceh]hAttribute function preface}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhj0ubj)}(h@``_attrname`` Attribute name as it wil be exposed in the sysfs. h](j)}(h ``_attrname``h]j)}(hjrh]h _attrname}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjlubj)}(hhh]j[)}(h1Attribute name as it wil be exposed in the sysfs.h]h1Attribute name as it wil be exposed in the sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhj0ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj[)}(h\Like DEVICE_ATTR_RO(), but allows for reusing names under separate paths in the same driver.h]h\Like DEVICE_ATTR_RO(), but allows for reusing names under separate paths in the same driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_WO (C macro)c.DEVICE_ATTR_WOhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_WOh]h)}(hDEVICE_ATTR_WOh]j")}(hDEVICE_ATTR_WOh]j()}(hjh]hDEVICE_ATTR_WO}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhj hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj"j{j"j|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_WO (_name)``h]j)}(hj(h]hDEVICE_ATTR_WO (_name)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h0Define an admin-only writable device attribute. h]j[)}(h/Define an admin-only writable device attribute.h]h/Define an admin-only writable device attribute.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj>ubah}(h]h ]h"]h$]h&]uh1jNhjPhKhhhhubj)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.h](j[)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjWubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj|h]h_name}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjvubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubah}(h]h ]h"]h$]h&]uh1jhjWubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjWubj[)}(hJLike DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hjhhhNhNubj)}(h **_mode**h]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0200 and }(hjhhhNhNubj)}(h **_store**h]h_store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is <_name>_store.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_WO_NAMED (C macro)c.DEVICE_ATTR_WO_NAMEDhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_WO_NAMEDh]h)}(hDEVICE_ATTR_WO_NAMEDh]j")}(hDEVICE_ATTR_WO_NAMEDh]j()}(hjh]hDEVICE_ATTR_WO_NAMED}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj7hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj7hKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhj7hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjPj{jPj|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_WO_NAMED (_name, _attrname)``h]j)}(hjVh]h'DEVICE_ATTR_WO_NAMED (_name, _attrname)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubjO)}(h[Define a read-only device attribute with a sysfs name that differs from the function name. h]j[)}(hZDefine a read-only device attribute with a sysfs name that differs from the function name.h]hZDefine a read-only device attribute with a sysfs name that differs from the function name.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjlubah}(h]h ]h"]h$]h&]uh1jNhj~hKhhhhubj)}(h**Parameters** ``_name`` Attribute function preface ``_attrname`` Attribute name as it wil be exposed in the sysfs. **Description** Like DEVICE_ATTR_WO(), but allows for reusing names under separate paths in the same driver.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh](j)}(h%``_name`` Attribute function preface h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]j[)}(hAttribute function prefaceh]hAttribute function preface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h@``_attrname`` Attribute name as it wil be exposed in the sysfs. h](j)}(h ``_attrname``h]j)}(hjh]h _attrname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]j[)}(h1Attribute name as it wil be exposed in the sysfs.h]h1Attribute name as it wil be exposed in the sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj[)}(h\Like DEVICE_ATTR_WO(), but allows for reusing names under separate paths in the same driver.h]h\Like DEVICE_ATTR_WO(), but allows for reusing names under separate paths in the same driver.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ULONG_ATTR (C macro)c.DEVICE_ULONG_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ULONG_ATTRh]h)}(hDEVICE_ULONG_ATTRh]j")}(hDEVICE_ULONG_ATTRh]j()}(hj]h]hDEVICE_ULONG_ATTR}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj_hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj[hhhjzhM ubah}(h]jVah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjzhM hjXhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjXhhhjzhM ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h*``DEVICE_ULONG_ATTR (_name, _mode, _var)``h]j)}(hjh]h&DEVICE_ULONG_ATTR (_name, _mode, _var)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hhhhubjO)}(h6Define a device attribute backed by an unsigned long. h]j[)}(h5Define a device attribute backed by an unsigned long.h]h5Define a device attribute backed by an unsigned long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hjubah}(h]h ]h"]h$]h&]uh1jNhjhM hhhhubj)}(hX**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of unsigned long. **Description** Like DEVICE_ATTR(), but **_show** and **_store** are automatically provided such that reads and writes to the attribute from userspace affect **_var**.=h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hj&h]h_mode}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj ubj)}(hhh]j[)}(h File mode.h]h File mode.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hM hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM hjubj)}(h&``_var`` Identifier of unsigned long. h](j)}(h``_var``h]j)}(hj_h]h_var}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hjYubj)}(hhh]j[)}(hIdentifier of unsigned long.h]hIdentifier of unsigned long.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthM hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthM hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj[)}(hLike DEVICE_ATTR(), but **_show** and **_store** are automatically provided such that reads and writes to the attribute from userspace affect **_var**.h](hLike DEVICE_ATTR(), but }(hjhhhNhNubj)}(h **_show**h]h_show}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **_store**h]h_store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh^ are automatically provided such that reads and writes to the attribute from userspace affect }(hjhhhNhNubj)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_INT_ATTR (C macro)c.DEVICE_INT_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_INT_ATTRh]h)}(hDEVICE_INT_ATTRh]j")}(hDEVICE_INT_ATTRh]j()}(hjh]hDEVICE_INT_ATTR}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj,hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj,hMhj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhj,hMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjEj{jEj|j}j~uh1hhhhhhNhNubj[)}(h(``DEVICE_INT_ATTR (_name, _mode, _var)``h]j)}(hjKh]h$DEVICE_INT_ATTR (_name, _mode, _var)}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubjO)}(h,Define a device attribute backed by an int. h]j[)}(h+Define a device attribute backed by an int.h]h+Define a device attribute backed by an int.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjaubah}(h]h ]h"]h$]h&]uh1jNhjshMhhhhubj)}(h**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of int. **Description** Like DEVICE_ULONG_ATTR(), but **_var** is an int.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjzubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hjh]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``_var`` Identifier of int. h](j)}(h``_var``h]j)}(hjh]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj)}(hhh]j[)}(hIdentifier of int.h]hIdentifier of int.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubeh}(h]h ]h"]h$]h&]uh1jhjzubj[)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjzubj[)}(h1Like DEVICE_ULONG_ATTR(), but **_var** is an int.h](hLike DEVICE_ULONG_ATTR(), but }(hjbhhhNhNubj)}(h**_var**h]h_var}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh is an int.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_BOOL_ATTR (C macro)c.DEVICE_BOOL_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_BOOL_ATTRh]h)}(hDEVICE_BOOL_ATTRh]j")}(hDEVICE_BOOL_ATTRh]j()}(hjh]hDEVICE_BOOL_ATTR}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM#ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM#ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM#hjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhM#ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h)``DEVICE_BOOL_ATTR (_name, _mode, _var)``h]j)}(hjh]h%DEVICE_BOOL_ATTR (_name, _mode, _var)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM%hhhhubjO)}(h,Define a device attribute backed by a bool. h]j[)}(h+Define a device attribute backed by a bool.h]h+Define a device attribute backed by a bool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM#hjubah}(h]h ]h"]h$]h&]uh1jNhjhM#hhhhubj)}(h**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of bool. **Description** Like DEVICE_ULONG_ATTR(), but **_var** is a bool.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM'hjubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj-h]h_name}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hj'ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhM$hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM$hj$ubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hjfh]h_mode}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM%hj`ubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hM%hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM%hj$ubj)}(h``_var`` Identifier of bool. h](j)}(h``_var``h]j)}(hjh]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM&hjubj)}(hhh]j[)}(hIdentifier of bool.h]hIdentifier of bool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hj$ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM(hjubj[)}(h1Like DEVICE_ULONG_ATTR(), but **_var** is a bool.h](hLike DEVICE_ULONG_ATTR(), but }(hjhhhNhNubj)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is a bool.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_STRING_ATTR_RO (C macro)c.DEVICE_STRING_ATTR_ROhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_STRING_ATTR_ROh]h)}(hDEVICE_STRING_ATTR_ROh]j")}(hDEVICE_STRING_ATTR_ROh]j()}(hj+h]hDEVICE_STRING_ATTR_RO}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj-hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM/ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj)hhhjHhM/ubah}(h]j$ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjHhM/hj&hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj&hhhjHhM/ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjaj{jaj|j}j~uh1hhhhhhNhNubj[)}(h.``DEVICE_STRING_ATTR_RO (_name, _mode, _var)``h]j)}(hjgh]h*DEVICE_STRING_ATTR_RO (_name, _mode, _var)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM1hhhhubjO)}(h2Define a device attribute backed by a r/o string. h]j[)}(h1Define a device attribute backed by a r/o string.h]h1Define a device attribute backed by a r/o string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM/hj}ubah}(h]h ]h"]h$]h&]uh1jNhjhM/hhhhubj)}(hX**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of string. **Description** Like DEVICE_ULONG_ATTR(), but **_var** is a string. Because the length of the string allocation is unknown, the attribute must be read-only.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM3hjubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM0hjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hjh]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM1hjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hM1hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM1hjubj)}(h``_var`` Identifier of string. h](j)}(h``_var``h]j)}(hj-h]h_var}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM2hj'ubj)}(hhh]j[)}(hIdentifier of string.h]hIdentifier of string.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhM2hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM2hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjhh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4hjubj[)}(hLike DEVICE_ULONG_ATTR(), but **_var** is a string. Because the length of the string allocation is unknown, the attribute must be read-only.h](hLike DEVICE_ULONG_ATTR(), but }(hj~hhhNhNubj)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhf is a string. Because the length of the string allocation is unknown, the attribute must be read-only.}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdl_dev_state (C enum)c.dl_dev_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(h dl_dev_stateh]h)}(henum dl_dev_stateh](h)}(henumh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM9ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM9ubj")}(h dl_dev_stateh]j()}(hjh]h dl_dev_state}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM9ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM9ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM9hjhhubjV)}(hhh]j[)}(h,Device driver presence tracking information.h]h,Device driver presence tracking information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM9ubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(hX**Constants** ``DL_DEV_NO_DRIVER`` There is no driver attached to the device. ``DL_DEV_PROBING`` A driver is probing. ``DL_DEV_DRIVER_BOUND`` The driver has been bound to the device. ``DL_DEV_UNBINDING`` The driver is unbinding from the device.h](j[)}(h **Constants**h]j)}(hj$h]h Constants}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h@``DL_DEV_NO_DRIVER`` There is no driver attached to the device. h](j)}(h``DL_DEV_NO_DRIVER``h]j)}(hjCh]hDL_DEV_NO_DRIVER}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj=ubj)}(hhh]j[)}(h*There is no driver attached to the device.h]h*There is no driver attached to the device.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(h(``DL_DEV_PROBING`` A driver is probing. h](j)}(h``DL_DEV_PROBING``h]j)}(hj|h]hDL_DEV_PROBING}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjvubj)}(hhh]j[)}(hA driver is probing.h]hA driver is probing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(hA``DL_DEV_DRIVER_BOUND`` The driver has been bound to the device. h](j)}(h``DL_DEV_DRIVER_BOUND``h]j)}(hjh]hDL_DEV_DRIVER_BOUND}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h(The driver has been bound to the device.h]h(The driver has been bound to the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(h=``DL_DEV_UNBINDING`` The driver is unbinding from the device.h](j)}(h``DL_DEV_UNBINDING``h]j)}(hjh]hDL_DEV_UNBINDING}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h(The driver is unbinding from the device.h]h(The driver is unbinding from the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_removable (C enum)c.device_removablehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_removableh]h)}(henum device_removableh](h)}(hjh]henum}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjUhMubj")}(hdevice_removableh]j()}(hjBh]hdevice_removable}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjDhhhjUhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj@hhhjUhMubah}(h]j;ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjUhMhj=hhubjV)}(hhh]j[)}(hWhether the device is removable. The criteria for a device to be classified as removable is determined by its subsystem or bus.h]hWhether the device is removable. The criteria for a device to be classified as removable is determined by its subsystem or bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj=hhhjUhMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(hX**Constants** ``DEVICE_REMOVABLE_NOT_SUPPORTED`` This attribute is not supported for this device (default). ``DEVICE_REMOVABLE_UNKNOWN`` Device location is Unknown. ``DEVICE_FIXED`` Device is not removable by the user. ``DEVICE_REMOVABLE`` Device is removable by the user.h](j[)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h^``DEVICE_REMOVABLE_NOT_SUPPORTED`` This attribute is not supported for this device (default). h](j)}(h"``DEVICE_REMOVABLE_NOT_SUPPORTED``h]j)}(hjh]hDEVICE_REMOVABLE_NOT_SUPPORTED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h:This attribute is not supported for this device (default).h]h:This attribute is not supported for this device (default).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``DEVICE_REMOVABLE_UNKNOWN`` Device location is Unknown. h](j)}(h``DEVICE_REMOVABLE_UNKNOWN``h]j)}(hjh]hDEVICE_REMOVABLE_UNKNOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(hDevice location is Unknown.h]hDevice location is Unknown.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``DEVICE_FIXED`` Device is not removable by the user. h](j)}(h``DEVICE_FIXED``h]j)}(hj>h]h DEVICE_FIXED}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8ubj)}(hhh]j[)}(h$Device is not removable by the user.h]h$Device is not removable by the user.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubj)}(h5``DEVICE_REMOVABLE`` Device is removable by the user.h](j)}(h``DEVICE_REMOVABLE``h]j)}(hjwh]hDEVICE_REMOVABLE}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjqubj)}(hhh]j[)}(h Device is removable by the user.h]h Device is removable by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_links_info (C struct)c.dev_links_infohNtauh1hhhhhhNhNubh)}(hhh](h)}(hdev_links_infoh]h)}(hstruct dev_links_infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdev_links_infoh]j()}(hjh]hdev_links_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h$Device data related to device links.h]h$Device data related to device links.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj+j{j+j|j}j~uh1hhhhhhNhNubj)}(hX**Definition**:: struct dev_links_info { struct list_head suppliers; struct list_head consumers; struct list_head defer_sync; enum dl_dev_state status; }; **Members** ``suppliers`` List of links to supplier devices. ``consumers`` List of links to consumer devices. ``defer_sync`` Hook to global list of devices that have deferred sync_state. ``status`` Driver status information.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh:}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj/ubj)}(hstruct dev_links_info { struct list_head suppliers; struct list_head consumers; struct list_head defer_sync; enum dl_dev_state status; };h]hstruct dev_links_info { struct list_head suppliers; struct list_head consumers; struct list_head defer_sync; enum dl_dev_state status; };}hjPsbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj/ubj[)}(h **Members**h]j)}(hjah]hMembers}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj/ubj)}(hhh](j)}(h1``suppliers`` List of links to supplier devices. h](j)}(h ``suppliers``h]j)}(hjh]h suppliers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjzubj)}(hhh]j[)}(h"List of links to supplier devices.h]h"List of links to supplier devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h1``consumers`` List of links to consumer devices. h](j)}(h ``consumers``h]j)}(hjh]h consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h"List of links to consumer devices.h]h"List of links to consumer devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(hM``defer_sync`` Hook to global list of devices that have deferred sync_state. h](j)}(h``defer_sync``h]j)}(hjh]h defer_sync}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h=Hook to global list of devices that have deferred sync_state.h]h=Hook to global list of devices that have deferred sync_state.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjwubj)}(h%``status`` Driver status information.h](j)}(h ``status``h]j)}(hj+h]hstatus}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubj)}(hhh]j[)}(hDriver status information.h]hDriver status information.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjwubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_msi_info (C struct)c.dev_msi_infohNtauh1hhhhhhNhNubh)}(hhh](h)}(h dev_msi_infoh]h)}(hstruct dev_msi_infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h dev_msi_infoh]j()}(hjh]h dev_msi_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj}hhhjhMubah}(h]jxah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjzhhubjV)}(hhh]j[)}(hDevice data related to MSIh]hDevice data related to MSI}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjzhhhjhMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(hX**Definition**:: struct dev_msi_info { #ifdef CONFIG_GENERIC_MSI_IRQ; struct irq_domain *domain; struct msi_device_data *data; #endif; }; **Members** ``domain`` The MSI interrupt domain associated to the device ``data`` Pointer to MSI device datah](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hstruct dev_msi_info { #ifdef CONFIG_GENERIC_MSI_IRQ; struct irq_domain *domain; struct msi_device_data *data; #endif; };h]hstruct dev_msi_info { #ifdef CONFIG_GENERIC_MSI_IRQ; struct irq_domain *domain; struct msi_device_data *data; #endif; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj[)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h=``domain`` The MSI interrupt domain associated to the device h](j)}(h ``domain``h]j)}(hj4h]hdomain}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj.ubj)}(hhh]j[)}(h1The MSI interrupt domain associated to the deviceh]h1The MSI interrupt domain associated to the device}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h#``data`` Pointer to MSI device datah](j)}(h``data``h]j)}(hjmh]hdata}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjgubj)}(hhh]j[)}(hPointer to MSI device datah]hPointer to MSI device data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'device_physical_location_panel (C enum) c.device_physical_location_panelhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_physical_location_panelh]h)}(h#enum device_physical_location_panelh](h)}(hjh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_physical_location_panelh]j()}(hjh]hdevice_physical_location_panel}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h]Describes which panel surface of the system's housing the device connection point resides on.h]h_Describes which panel surface of the system’s housing the device connection point resides on.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj! j{j! j|j}j~uh1hhhhhhNhNubj)}(hX **Constants** ``DEVICE_PANEL_TOP`` Device connection point is on the top panel. ``DEVICE_PANEL_BOTTOM`` Device connection point is on the bottom panel. ``DEVICE_PANEL_LEFT`` Device connection point is on the left panel. ``DEVICE_PANEL_RIGHT`` Device connection point is on the right panel. ``DEVICE_PANEL_FRONT`` Device connection point is on the front panel. ``DEVICE_PANEL_BACK`` Device connection point is on the back panel. ``DEVICE_PANEL_UNKNOWN`` The panel with device connection point is unknown.h](j[)}(h **Constants**h]j)}(hj+ h]h Constants}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj) ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj% ubj)}(hhh](j)}(hB``DEVICE_PANEL_TOP`` Device connection point is on the top panel. h](j)}(h``DEVICE_PANEL_TOP``h]j)}(hjJ h]hDEVICE_PANEL_TOP}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjD ubj)}(hhh]j[)}(h,Device connection point is on the top panel.h]h,Device connection point is on the top panel.}(hjc hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_ hMhj` ubah}(h]h ]h"]h$]h&]uh1jhjD ubeh}(h]h ]h"]h$]h&]uh1jhj_ hMhjA ubj)}(hH``DEVICE_PANEL_BOTTOM`` Device connection point is on the bottom panel. h](j)}(h``DEVICE_PANEL_BOTTOM``h]j)}(hj h]hDEVICE_PANEL_BOTTOM}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj} ubj)}(hhh]j[)}(h/Device connection point is on the bottom panel.h]h/Device connection point is on the bottom panel.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj} ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjA ubj)}(hD``DEVICE_PANEL_LEFT`` Device connection point is on the left panel. h](j)}(h``DEVICE_PANEL_LEFT``h]j)}(hj h]hDEVICE_PANEL_LEFT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj)}(hhh]j[)}(h-Device connection point is on the left panel.h]h-Device connection point is on the left panel.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjA ubj)}(hF``DEVICE_PANEL_RIGHT`` Device connection point is on the right panel. h](j)}(h``DEVICE_PANEL_RIGHT``h]j)}(hj h]hDEVICE_PANEL_RIGHT}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj)}(hhh]j[)}(h.Device connection point is on the right panel.h]h.Device connection point is on the right panel.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj !hMhj !ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj !hMhjA ubj)}(hF``DEVICE_PANEL_FRONT`` Device connection point is on the front panel. h](j)}(h``DEVICE_PANEL_FRONT``h]j)}(hj.!h]hDEVICE_PANEL_FRONT}(hj0!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,!ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj(!ubj)}(hhh]j[)}(h.Device connection point is on the front panel.h]h.Device connection point is on the front panel.}(hjG!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjC!hMhjD!ubah}(h]h ]h"]h$]h&]uh1jhj(!ubeh}(h]h ]h"]h$]h&]uh1jhjC!hMhjA ubj)}(hD``DEVICE_PANEL_BACK`` Device connection point is on the back panel. h](j)}(h``DEVICE_PANEL_BACK``h]j)}(hjg!h]hDEVICE_PANEL_BACK}(hji!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje!ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhja!ubj)}(hhh]j[)}(h-Device connection point is on the back panel.h]h-Device connection point is on the back panel.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|!hMhj}!ubah}(h]h ]h"]h$]h&]uh1jhja!ubeh}(h]h ]h"]h$]h&]uh1jhj|!hMhjA ubj)}(hK``DEVICE_PANEL_UNKNOWN`` The panel with device connection point is unknown.h](j)}(h``DEVICE_PANEL_UNKNOWN``h]j)}(hj!h]hDEVICE_PANEL_UNKNOWN}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj!ubj)}(hhh]j[)}(h2The panel with device connection point is unknown.h]h2The panel with device connection point is unknown.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hMhjA ubeh}(h]h ]h"]h$]h&]uh1jhj% ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h3device_physical_location_vertical_position (C enum),c.device_physical_location_vertical_positionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h*device_physical_location_vertical_positionh]h)}(h/enum device_physical_location_vertical_positionh](h)}(hjh]henum}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj"hMubj")}(h*device_physical_location_vertical_positionh]j()}(hj!h]h*device_physical_location_vertical_position}(hj"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj!hhhj"hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj!hhhj"hMubah}(h]j!ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj"hMhj!hhubjV)}(hhh]j[)}(hPDescribes vertical position of the device connection point on the panel surface.h]hPDescribes vertical position of the device connection point on the panel surface.}(hj<"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj9"hhubah}(h]h ]h"]h$]h&]uh1jUhj!hhhj"hMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzjT"j{jT"j|j}j~uh1hhhhhhNhNubj)}(h**Constants** ``DEVICE_VERT_POS_UPPER`` Device connection point is at upper part of panel. ``DEVICE_VERT_POS_CENTER`` Device connection point is at center part of panel. ``DEVICE_VERT_POS_LOWER`` Device connection point is at lower part of panel.h](j[)}(h **Constants**h]j)}(hj^"h]h Constants}(hj`"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\"ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjX"ubj)}(hhh](j)}(hM``DEVICE_VERT_POS_UPPER`` Device connection point is at upper part of panel. h](j)}(h``DEVICE_VERT_POS_UPPER``h]j)}(hj}"h]hDEVICE_VERT_POS_UPPER}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjw"ubj)}(hhh]j[)}(h2Device connection point is at upper part of panel.h]h2Device connection point is at upper part of panel.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjw"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjt"ubj)}(hO``DEVICE_VERT_POS_CENTER`` Device connection point is at center part of panel. h](j)}(h``DEVICE_VERT_POS_CENTER``h]j)}(hj"h]hDEVICE_VERT_POS_CENTER}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubj)}(hhh]j[)}(h3Device connection point is at center part of panel.h]h3Device connection point is at center part of panel.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjt"ubj)}(hL``DEVICE_VERT_POS_LOWER`` Device connection point is at lower part of panel.h](j)}(h``DEVICE_VERT_POS_LOWER``h]j)}(hj"h]hDEVICE_VERT_POS_LOWER}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubj)}(hhh]j[)}(h2Device connection point is at lower part of panel.h]h2Device connection point is at lower part of panel.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjt"ubeh}(h]h ]h"]h$]h&]uh1jhjX"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h5device_physical_location_horizontal_position (C enum).c.device_physical_location_horizontal_positionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h,device_physical_location_horizontal_positionh]h)}(h1enum device_physical_location_horizontal_positionh](h)}(hjh]henum}(hjI#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE#hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjW#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE#hhhjV#hMubj")}(h,device_physical_location_horizontal_positionh]j()}(hjC#h]h,device_physical_location_horizontal_position}(hji#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hje#ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjE#hhhjV#hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjA#hhhjV#hMubah}(h]j<#ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjV#hMhj>#hhubjV)}(hhh]j[)}(hRDescribes horizontal position of the device connection point on the panel surface.h]hRDescribes horizontal position of the device connection point on the panel surface.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#hhubah}(h]h ]h"]h$]h&]uh1jUhj>#hhhjV#hMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj#j{j#j|j}j~uh1hhhhhhNhNubj)}(h**Constants** ``DEVICE_HORI_POS_LEFT`` Device connection point is at left part of panel. ``DEVICE_HORI_POS_CENTER`` Device connection point is at center part of panel. ``DEVICE_HORI_POS_RIGHT`` Device connection point is at right part of panel.h](j[)}(h **Constants**h]j)}(hj#h]h Constants}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#ubj)}(hhh](j)}(hK``DEVICE_HORI_POS_LEFT`` Device connection point is at left part of panel. h](j)}(h``DEVICE_HORI_POS_LEFT``h]j)}(hj#h]hDEVICE_HORI_POS_LEFT}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#ubj)}(hhh]j[)}(h1Device connection point is at left part of panel.h]h1Device connection point is at left part of panel.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj#ubj)}(hO``DEVICE_HORI_POS_CENTER`` Device connection point is at center part of panel. h](j)}(h``DEVICE_HORI_POS_CENTER``h]j)}(hj$h]hDEVICE_HORI_POS_CENTER}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#ubj)}(hhh]j[)}(h3Device connection point is at center part of panel.h]h3Device connection point is at center part of panel.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj#ubj)}(hL``DEVICE_HORI_POS_RIGHT`` Device connection point is at right part of panel.h](j)}(h``DEVICE_HORI_POS_RIGHT``h]j)}(hj>$h]hDEVICE_HORI_POS_RIGHT}(hj@$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8$ubj)}(hhh]j[)}(h2Device connection point is at right part of panel.h]h2Device connection point is at right part of panel.}(hjW$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjT$ubah}(h]h ]h"]h$]h&]uh1jhj8$ubeh}(h]h ]h"]h$]h&]uh1jhjS$hMhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#device_physical_location (C struct)c.device_physical_locationhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_physical_locationh]h)}(hstruct device_physical_locationh](h)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hMubj")}(hdevice_physical_locationh]j()}(hj$h]hdevice_physical_location}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$hhhj$hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj$hhhj$hMubah}(h]j$ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$hMhj$hhubjV)}(hhh]j[)}(hHDevice data related to physical location of the device connection point.h]hHDevice data related to physical location of the device connection point.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$hhubah}(h]h ]h"]h$]h&]uh1jUhj$hhhj$hMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj$j{j$j|j}j~uh1hhhhhhNhNubj)}(hX **Definition**:: struct device_physical_location { enum device_physical_location_panel panel; enum device_physical_location_vertical_position vertical_position; enum device_physical_location_horizontal_position horizontal_position; bool dock; bool lid; }; **Members** ``panel`` Panel surface of the system's housing that the device connection point resides on. ``vertical_position`` Vertical position of the device connection point within the panel. ``horizontal_position`` Horizontal position of the device connection point within the panel. ``dock`` Set if the device connection point resides in a docking station or port replicator. ``lid`` Set if this device connection point resides on the lid of laptop system.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh:}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$ubj)}(hXstruct device_physical_location { enum device_physical_location_panel panel; enum device_physical_location_vertical_position vertical_position; enum device_physical_location_horizontal_position horizontal_position; bool dock; bool lid; };h]hXstruct device_physical_location { enum device_physical_location_panel panel; enum device_physical_location_vertical_position vertical_position; enum device_physical_location_horizontal_position horizontal_position; bool dock; bool lid; };}hj%sbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$ubj[)}(h **Members**h]j)}(hj(%h]hMembers}(hj*%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&%ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$ubj)}(hhh](j)}(h]``panel`` Panel surface of the system's housing that the device connection point resides on. h](j)}(h ``panel``h]j)}(hjG%h]hpanel}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjA%ubj)}(hhh]j[)}(hRPanel surface of the system's housing that the device connection point resides on.h]hTPanel surface of the system’s housing that the device connection point resides on.}(hj`%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj]%ubah}(h]h ]h"]h$]h&]uh1jhjA%ubeh}(h]h ]h"]h$]h&]uh1jhj\%hMhj>%ubj)}(hY``vertical_position`` Vertical position of the device connection point within the panel. h](j)}(h``vertical_position``h]j)}(hj%h]hvertical_position}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj{%ubj)}(hhh]j[)}(hBVertical position of the device connection point within the panel.h]hBVertical position of the device connection point within the panel.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj{%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj>%ubj)}(h]``horizontal_position`` Horizontal position of the device connection point within the panel. h](j)}(h``horizontal_position``h]j)}(hj%h]hhorizontal_position}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubj)}(hhh]j[)}(hDHorizontal position of the device connection point within the panel.h]hDHorizontal position of the device connection point within the panel.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj>%ubj)}(h]``dock`` Set if the device connection point resides in a docking station or port replicator. h](j)}(h``dock``h]j)}(hj%h]hdock}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubj)}(hhh]j[)}(hSSet if the device connection point resides in a docking station or port replicator.h]hSSet if the device connection point resides in a docking station or port replicator.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj &ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj &hMhj>%ubj)}(hP``lid`` Set if this device connection point resides on the lid of laptop system.h](j)}(h``lid``h]j)}(hj/&h]hlid}(hj1&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj)&ubj)}(hhh]j[)}(hHSet if this device connection point resides on the lid of laptop system.h]hHSet if this device connection point resides on the lid of laptop system.}(hjH&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjD&hMhjE&ubah}(h]h ]h"]h$]h&]uh1jhj)&ubeh}(h]h ]h"]h$]h&]uh1jhjD&hMhj>%ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_device_flags (C enum)c.struct_device_flagshNtauh1hhhhhhNhNubh)}(hhh](h)}(hstruct_device_flagsh]h)}(henum struct_device_flagsh](h)}(hjh]henum}(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hMubj")}(hstruct_device_flagsh]j()}(hj&h]hstruct_device_flags}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj&ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj&hhhj&hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj&hhhj&hMubah}(h]j{&ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj&hMhj}&hhubjV)}(hhh]j[)}(hFlags in struct deviceh]hFlags in struct device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj&hhubah}(h]h ]h"]h$]h&]uh1jUhj}&hhhj&hMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhhhNhNubj)}(h**Constants** ``DEV_FLAG_READY_TO_PROBE`` If set then device_add() has finished enough initialization that probe could be called. ``DEV_FLAG_COUNT`` Number of defined struct_device_flags.h](j[)}(h **Constants**h]j)}(hj&h]h Constants}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj&ubj)}(hhh](j)}(ht``DEV_FLAG_READY_TO_PROBE`` If set then device_add() has finished enough initialization that probe could be called. h](j)}(h``DEV_FLAG_READY_TO_PROBE``h]j)}(hj 'h]hDEV_FLAG_READY_TO_PROBE}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj'ubj)}(hhh]j[)}(hWIf set then device_add() has finished enough initialization that probe could be called.h]hWIf set then device_add() has finished enough initialization that probe could be called.}(hj$'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj!'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj 'hMhj'ubj)}(h9``DEV_FLAG_COUNT`` Number of defined struct_device_flags.h](j)}(h``DEV_FLAG_COUNT``h]j)}(hjE'h]hDEV_FLAG_COUNT}(hjG'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj?'ubj)}(hhh]j[)}(h&Number of defined struct_device_flags.h]h&Number of defined struct_device_flags.}(hj^'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj['ubah}(h]h ]h"]h$]h&]uh1jhj?'ubeh}(h]h ]h"]h$]h&]uh1jhjZ'hMhj'ubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj[)}(h**Description**h]j)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hhhhubj[)}(hlEach flag should have a set of accessor functions created via __create_dev_flag_accessors() for each access.h]hlEach flag should have a set of accessor functions created via __create_dev_flag_accessors() for each access.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice (C struct)c.devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdeviceh]h)}(h struct deviceh](h)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hMubj")}(hdeviceh]j()}(hj'h]hdevice}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj'hhhj'hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'hhhj'hMubah}(h]j'ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj'hMhj'hhubjV)}(hhh]j[)}(hThe basic device structureh]hThe basic device structure}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj(hhubah}(h]h ]h"]h$]h&]uh1jUhj'hhhj'hMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj (j{j (j|j}j~uh1hhhhhhNhNubj)}(hX**Definition**:: struct device { struct kobject kobj; struct device *parent; struct device_private *p; const char *init_name; const struct device_type *type; const struct bus_type *bus; struct device_driver *driver; void *platform_data; void *driver_data; struct { const char *name; spinlock_t lock; } driver_override; struct mutex mutex; struct dev_links_info links; struct dev_pm_info power; struct dev_pm_domain *pm_domain; #ifdef CONFIG_ENERGY_MODEL; struct em_perf_domain *em_pd; #endif; #ifdef CONFIG_PINCTRL; struct dev_pin_info *pins; #endif; struct dev_msi_info msi; #ifdef CONFIG_ARCH_HAS_DMA_OPS; const struct dma_map_ops *dma_ops; #endif; u64 *dma_mask; u64 coherent_dma_mask; u64 bus_dma_limit; const struct bus_dma_region *dma_range_map; struct device_dma_parameters *dma_parms; struct list_head dma_pools; #ifdef CONFIG_DMA_DECLARE_COHERENT; struct dma_coherent_mem *dma_mem; #endif; #ifdef CONFIG_DMA_CMA; struct cma *cma_area; #endif; #ifdef CONFIG_SWIOTLB; struct io_tlb_mem *dma_io_tlb_mem; #endif; #ifdef CONFIG_SWIOTLB_DYNAMIC; struct list_head dma_io_tlb_pools; spinlock_t dma_io_tlb_lock; bool dma_uses_io_tlb; #endif; struct dev_archdata archdata; struct device_node *of_node; struct fwnode_handle *fwnode; #ifdef CONFIG_NUMA; int numa_node; #endif; dev_t devt; u32 id; spinlock_t devres_lock; struct list_head devres_head; const struct class *class; const struct attribute_group **groups; void (*release)(struct device *dev); struct iommu_group *iommu_group; struct dev_iommu *iommu; struct device_physical_location *physical_location; enum device_removable removable; bool offline_disabled:1; bool offline:1; bool of_node_reused:1; bool state_synced:1; bool can_match:1; #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL); bool dma_coherent:1; #endif; #ifdef CONFIG_DMA_OPS_BYPASS; bool dma_ops_bypass : 1; #endif; #ifdef CONFIG_DMA_NEED_SYNC; bool dma_skip_sync:1; #endif; #ifdef CONFIG_IOMMU_DMA; bool dma_iommu:1; #endif; unsigned long flags[BITS_TO_LONGS( DEV_FLAG_COUNT)]; }; **Members** ``kobj`` A top-level, abstract class from which other classes are derived. ``parent`` The device's "parent" device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want. ``p`` Holds the private data of the driver core portions of the device. See the comment of the struct device_private for detail. ``init_name`` Initial name of the device. ``type`` The type of device. This identifies the device type and carries type-specific information. ``bus`` Type of bus device is on. ``driver`` Which driver has allocated this ``platform_data`` Platform data specific to the device. ``driver_data`` Private pointer for driver specific info. ``driver_override`` Driver name to force a match. Do not touch directly; use device_set_driver_override() instead. ``mutex`` Mutex to synchronize calls to its driver. ``links`` Links to suppliers and consumers of this device. ``power`` For device power management. See Documentation/driver-api/pm/devices.rst for details. ``pm_domain`` Provide callbacks that are executed during system suspend, hibernation, system resume and during runtime PM transitions along with subsystem-level and driver-level callbacks. ``em_pd`` device's energy model performance domain ``pins`` For device pin management. See Documentation/driver-api/pin-control.rst for details. ``msi`` MSI related data ``dma_ops`` DMA mapping operations for this device. ``dma_mask`` Dma mask (if dma'ble device). ``coherent_dma_mask`` Like dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors. ``bus_dma_limit`` Limit of an upstream bridge or bus which imposes a smaller DMA limit than the device itself supports. ``dma_range_map`` map for DMA memory ranges relative to that of RAM ``dma_parms`` A low level driver may set these to teach IOMMU code about segment limitations. ``dma_pools`` Dma pools (if dma'ble device). ``dma_mem`` Internal for coherent mem override. ``cma_area`` Contiguous memory area for dma allocations ``dma_io_tlb_mem`` Software IO TLB allocator. Not for driver use. ``dma_io_tlb_pools`` List of transient swiotlb memory pools. ``dma_io_tlb_lock`` Protects changes to the list of active pools. ``dma_uses_io_tlb`` ``true`` if device has used the software IO TLB. ``archdata`` For arch-specific additions. ``of_node`` Associated device tree node. ``fwnode`` Associated device node supplied by platform firmware. ``numa_node`` NUMA node this device is close to. ``devt`` For creating the sysfs "dev". ``id`` device instance ``devres_lock`` Spinlock to protect the resource of the device. ``devres_head`` The resources list of the device. ``class`` The class of the device. ``groups`` Optional attribute groups. ``release`` Callback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device). ``iommu_group`` IOMMU group the device belongs to. ``iommu`` Per device generic IOMMU runtime data ``physical_location`` Describes physical location of the device connection point in the system housing. ``removable`` Whether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device. ``offline_disabled`` If set, the device is permanently online. ``offline`` Set after successful invocation of bus type's .offline(). ``of_node_reused`` Set if the device-tree node is shared with an ancestor device. ``state_synced`` The hardware state of this device has been synced to match the software state of this device by calling the driver/bus sync_state() callback. ``can_match`` The device has matched with a driver at least once or it is in a bus (like AMBA) which can't check for matching drivers until other devices probe successfully. ``dma_coherent`` this particular device is dma coherent, even if the architecture supports non-coherent devices. ``dma_ops_bypass`` If set to ``true`` then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported. ``dma_skip_sync`` DMA sync operations can be skipped for coherent buffers. ``dma_iommu`` Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure. ``flags`` DEV_FLAG_XXX flags. Use atomic bitfield operations to modify.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj,(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj((ubh:}(hj((hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$(ubj)}(hX struct device { struct kobject kobj; struct device *parent; struct device_private *p; const char *init_name; const struct device_type *type; const struct bus_type *bus; struct device_driver *driver; void *platform_data; void *driver_data; struct { const char *name; spinlock_t lock; } driver_override; struct mutex mutex; struct dev_links_info links; struct dev_pm_info power; struct dev_pm_domain *pm_domain; #ifdef CONFIG_ENERGY_MODEL; struct em_perf_domain *em_pd; #endif; #ifdef CONFIG_PINCTRL; struct dev_pin_info *pins; #endif; struct dev_msi_info msi; #ifdef CONFIG_ARCH_HAS_DMA_OPS; const struct dma_map_ops *dma_ops; #endif; u64 *dma_mask; u64 coherent_dma_mask; u64 bus_dma_limit; const struct bus_dma_region *dma_range_map; struct device_dma_parameters *dma_parms; struct list_head dma_pools; #ifdef CONFIG_DMA_DECLARE_COHERENT; struct dma_coherent_mem *dma_mem; #endif; #ifdef CONFIG_DMA_CMA; struct cma *cma_area; #endif; #ifdef CONFIG_SWIOTLB; struct io_tlb_mem *dma_io_tlb_mem; #endif; #ifdef CONFIG_SWIOTLB_DYNAMIC; struct list_head dma_io_tlb_pools; spinlock_t dma_io_tlb_lock; bool dma_uses_io_tlb; #endif; struct dev_archdata archdata; struct device_node *of_node; struct fwnode_handle *fwnode; #ifdef CONFIG_NUMA; int numa_node; #endif; dev_t devt; u32 id; spinlock_t devres_lock; struct list_head devres_head; const struct class *class; const struct attribute_group **groups; void (*release)(struct device *dev); struct iommu_group *iommu_group; struct dev_iommu *iommu; struct device_physical_location *physical_location; enum device_removable removable; bool offline_disabled:1; bool offline:1; bool of_node_reused:1; bool state_synced:1; bool can_match:1; #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL); bool dma_coherent:1; #endif; #ifdef CONFIG_DMA_OPS_BYPASS; bool dma_ops_bypass : 1; #endif; #ifdef CONFIG_DMA_NEED_SYNC; bool dma_skip_sync:1; #endif; #ifdef CONFIG_IOMMU_DMA; bool dma_iommu:1; #endif; unsigned long flags[BITS_TO_LONGS( DEV_FLAG_COUNT)]; };h]hX struct device { struct kobject kobj; struct device *parent; struct device_private *p; const char *init_name; const struct device_type *type; const struct bus_type *bus; struct device_driver *driver; void *platform_data; void *driver_data; struct { const char *name; spinlock_t lock; } driver_override; struct mutex mutex; struct dev_links_info links; struct dev_pm_info power; struct dev_pm_domain *pm_domain; #ifdef CONFIG_ENERGY_MODEL; struct em_perf_domain *em_pd; #endif; #ifdef CONFIG_PINCTRL; struct dev_pin_info *pins; #endif; struct dev_msi_info msi; #ifdef CONFIG_ARCH_HAS_DMA_OPS; const struct dma_map_ops *dma_ops; #endif; u64 *dma_mask; u64 coherent_dma_mask; u64 bus_dma_limit; const struct bus_dma_region *dma_range_map; struct device_dma_parameters *dma_parms; struct list_head dma_pools; #ifdef CONFIG_DMA_DECLARE_COHERENT; struct dma_coherent_mem *dma_mem; #endif; #ifdef CONFIG_DMA_CMA; struct cma *cma_area; #endif; #ifdef CONFIG_SWIOTLB; struct io_tlb_mem *dma_io_tlb_mem; #endif; #ifdef CONFIG_SWIOTLB_DYNAMIC; struct list_head dma_io_tlb_pools; spinlock_t dma_io_tlb_lock; bool dma_uses_io_tlb; #endif; struct dev_archdata archdata; struct device_node *of_node; struct fwnode_handle *fwnode; #ifdef CONFIG_NUMA; int numa_node; #endif; dev_t devt; u32 id; spinlock_t devres_lock; struct list_head devres_head; const struct class *class; const struct attribute_group **groups; void (*release)(struct device *dev); struct iommu_group *iommu_group; struct dev_iommu *iommu; struct device_physical_location *physical_location; enum device_removable removable; bool offline_disabled:1; bool offline:1; bool of_node_reused:1; bool state_synced:1; bool can_match:1; #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL); bool dma_coherent:1; #endif; #ifdef CONFIG_DMA_OPS_BYPASS; bool dma_ops_bypass : 1; #endif; #ifdef CONFIG_DMA_NEED_SYNC; bool dma_skip_sync:1; #endif; #ifdef CONFIG_IOMMU_DMA; bool dma_iommu:1; #endif; unsigned long flags[BITS_TO_LONGS( DEV_FLAG_COUNT)]; };}hjE(sbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$(ubj[)}(h **Members**h]j)}(hjV(h]hMembers}(hjX(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT(ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMghj$(ubj)}(hhh](j)}(hK``kobj`` A top-level, abstract class from which other classes are derived. h](j)}(h``kobj``h]j)}(hju(h]hkobj}(hjw(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjo(ubj)}(hhh]j[)}(hAA top-level, abstract class from which other classes are derived.h]hAA top-level, abstract class from which other classes are derived.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jhjo(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhjl(ubj)}(h``parent`` The device's "parent" device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want. h](j)}(h ``parent``h]j)}(hj(h]hparent}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj(ubj)}(hhh]j[)}(hThe device's "parent" device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want.h]hThe device’s “parent” device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhjl(ubj)}(h``p`` Holds the private data of the driver core portions of the device. See the comment of the struct device_private for detail. h](j)}(h``p``h]j)}(hj(h]hp}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj(ubj)}(hhh]j[)}(hzHolds the private data of the driver core portions of the device. See the comment of the struct device_private for detail.h]hzHolds the private data of the driver core portions of the device. See the comment of the struct device_private for detail.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhjl(ubj)}(h*``init_name`` Initial name of the device. h](j)}(h ``init_name``h]j)}(hj")h]h init_name}(hj$)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj )ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj)ubj)}(hhh]j[)}(hInitial name of the device.h]hInitial name of the device.}(hj;)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7)hMhj8)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj7)hMhjl(ubj)}(hd``type`` The type of device. This identifies the device type and carries type-specific information. h](j)}(h``type``h]j)}(hj[)h]htype}(hj])hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjU)ubj)}(hhh]j[)}(hZThe type of device. This identifies the device type and carries type-specific information.h]hZThe type of device. This identifies the device type and carries type-specific information.}(hjt)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjq)ubah}(h]h ]h"]h$]h&]uh1jhjU)ubeh}(h]h ]h"]h$]h&]uh1jhjp)hMhjl(ubj)}(h"``bus`` Type of bus device is on. h](j)}(h``bus``h]j)}(hj)h]hbus}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj)ubj)}(hhh]j[)}(hType of bus device is on.h]hType of bus device is on.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjl(ubj)}(h+``driver`` Which driver has allocated this h](j)}(h ``driver``h]j)}(hj)h]hdriver}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj)ubj)}(hhh]j[)}(hWhich driver has allocated thish]hWhich driver has allocated this}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjl(ubj)}(h8``platform_data`` Platform data specific to the device. h](j)}(h``platform_data``h]j)}(hj*h]h platform_data}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj*ubj)}(hhh]j[)}(h%Platform data specific to the device.h]h%Platform data specific to the device.}(hj *hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjl(ubj)}(h:``driver_data`` Private pointer for driver specific info. h](j)}(h``driver_data``h]j)}(hj@*h]h driver_data}(hjB*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hj:*ubj)}(hhh]j[)}(h)Private pointer for driver specific info.h]h)Private pointer for driver specific info.}(hjY*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjU*hM$hjV*ubah}(h]h ]h"]h$]h&]uh1jhj:*ubeh}(h]h ]h"]h$]h&]uh1jhjU*hM$hjl(ubj)}(ht``driver_override`` Driver name to force a match. Do not touch directly; use device_set_driver_override() instead. h](j)}(h``driver_override``h]j)}(hjy*h]hdriver_override}(hj{*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM&hjs*ubj)}(hhh]j[)}(h_Driver name to force a match. Do not touch directly; use device_set_driver_override() instead.h]h_Driver name to force a match. Do not touch directly; use device_set_driver_override() instead.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM%hj*ubah}(h]h ]h"]h$]h&]uh1jhjs*ubeh}(h]h ]h"]h$]h&]uh1jhj*hM&hjl(ubj)}(h4``mutex`` Mutex to synchronize calls to its driver. h](j)}(h ``mutex``h]j)}(hj*h]hmutex}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj*ubj)}(hhh]j[)}(h)Mutex to synchronize calls to its driver.h]h)Mutex to synchronize calls to its driver.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjl(ubj)}(h;``links`` Links to suppliers and consumers of this device. h](j)}(h ``links``h]j)}(hj*h]hlinks}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM'hj*ubj)}(hhh]j[)}(h0Links to suppliers and consumers of this device.h]h0Links to suppliers and consumers of this device.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+hM'hj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hM'hjl(ubj)}(h```power`` For device power management. See Documentation/driver-api/pm/devices.rst for details. h](j)}(h ``power``h]j)}(hj%+h]hpower}(hj'+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM)hj+ubj)}(hhh]j[)}(hUFor device power management. See Documentation/driver-api/pm/devices.rst for details.h]hUFor device power management. See Documentation/driver-api/pm/devices.rst for details.}(hj>+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM(hj;+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj:+hM)hjl(ubj)}(h``pm_domain`` Provide callbacks that are executed during system suspend, hibernation, system resume and during runtime PM transitions along with subsystem-level and driver-level callbacks. h](j)}(h ``pm_domain``h]j)}(hj_+h]h pm_domain}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM,hjY+ubj)}(hhh]j[)}(hProvide callbacks that are executed during system suspend, hibernation, system resume and during runtime PM transitions along with subsystem-level and driver-level callbacks.h]hProvide callbacks that are executed during system suspend, hibernation, system resume and during runtime PM transitions along with subsystem-level and driver-level callbacks.}(hjx+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM*hju+ubah}(h]h ]h"]h$]h&]uh1jhjY+ubeh}(h]h ]h"]h$]h&]uh1jhjt+hM,hjl(ubj)}(h3``em_pd`` device's energy model performance domain h](j)}(h ``em_pd``h]j)}(hj+h]hem_pd}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM-hj+ubj)}(hhh]j[)}(h(device's energy model performance domainh]h*device’s energy model performance domain}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+hM-hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM-hjl(ubj)}(h^``pins`` For device pin management. See Documentation/driver-api/pin-control.rst for details. h](j)}(h``pins``h]j)}(hj+h]hpins}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM/hj+ubj)}(hhh]j[)}(hTFor device pin management. See Documentation/driver-api/pin-control.rst for details.h]hTFor device pin management. See Documentation/driver-api/pin-control.rst for details.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM.hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM/hjl(ubj)}(h``msi`` MSI related data h](j)}(h``msi``h]j)}(hj ,h]hmsi}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM0hj,ubj)}(hhh]j[)}(hMSI related datah]hMSI related data}(hj%,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!,hM0hj",ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj!,hM0hjl(ubj)}(h4``dma_ops`` DMA mapping operations for this device. h](j)}(h ``dma_ops``h]j)}(hjE,h]hdma_ops}(hjG,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM2hj?,ubj)}(hhh]j[)}(h'DMA mapping operations for this device.h]h'DMA mapping operations for this device.}(hj^,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZ,hM2hj[,ubah}(h]h ]h"]h$]h&]uh1jhj?,ubeh}(h]h ]h"]h$]h&]uh1jhjZ,hM2hjl(ubj)}(h+``dma_mask`` Dma mask (if dma'ble device). h](j)}(h ``dma_mask``h]j)}(hj~,h]hdma_mask}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM3hjx,ubj)}(hhh]j[)}(hDma mask (if dma'ble device).h]hDma mask (if dma’ble device).}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj,hM3hj,ubah}(h]h ]h"]h$]h&]uh1jhjx,ubeh}(h]h ]h"]h$]h&]uh1jhj,hM3hjl(ubj)}(h``coherent_dma_mask`` Like dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors. h](j)}(h``coherent_dma_mask``h]j)}(hj,h]hcoherent_dma_mask}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM6hj,ubj)}(hhh]j[)}(hLike dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors.h]hLike dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4hj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hM6hjl(ubj)}(hx``bus_dma_limit`` Limit of an upstream bridge or bus which imposes a smaller DMA limit than the device itself supports. h](j)}(h``bus_dma_limit``h]j)}(hj,h]h bus_dma_limit}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM8hj,ubj)}(hhh]j[)}(heLimit of an upstream bridge or bus which imposes a smaller DMA limit than the device itself supports.h]heLimit of an upstream bridge or bus which imposes a smaller DMA limit than the device itself supports.}(hj -hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM7hj-ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj-hM8hjl(ubj)}(hD``dma_range_map`` map for DMA memory ranges relative to that of RAM h](j)}(h``dma_range_map``h]j)}(hj+-h]h dma_range_map}(hj--hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM9hj%-ubj)}(hhh]j[)}(h1map for DMA memory ranges relative to that of RAMh]h1map for DMA memory ranges relative to that of RAM}(hjD-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@-hM9hjA-ubah}(h]h ]h"]h$]h&]uh1jhj%-ubeh}(h]h ]h"]h$]h&]uh1jhj@-hM9hjl(ubj)}(h^``dma_parms`` A low level driver may set these to teach IOMMU code about segment limitations. h](j)}(h ``dma_parms``h]j)}(hjd-h]h dma_parms}(hjf-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM;hj^-ubj)}(hhh]j[)}(hOA low level driver may set these to teach IOMMU code about segment limitations.h]hOA low level driver may set these to teach IOMMU code about segment limitations.}(hj}-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM:hjz-ubah}(h]h ]h"]h$]h&]uh1jhj^-ubeh}(h]h ]h"]h$]h&]uh1jhjy-hM;hjl(ubj)}(h-``dma_pools`` Dma pools (if dma'ble device). h](j)}(h ``dma_pools``h]j)}(hj-h]h dma_pools}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM<hj-ubj)}(hhh]j[)}(hDma pools (if dma'ble device).h]h Dma pools (if dma’ble device).}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-hM<hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM<hjl(ubj)}(h0``dma_mem`` Internal for coherent mem override. h](j)}(h ``dma_mem``h]j)}(hj-h]hdma_mem}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM=hj-ubj)}(hhh]j[)}(h#Internal for coherent mem override.h]h#Internal for coherent mem override.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-hM=hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM=hjl(ubj)}(h8``cma_area`` Contiguous memory area for dma allocations h](j)}(h ``cma_area``h]j)}(hj.h]hcma_area}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM>hj .ubj)}(hhh]j[)}(h*Contiguous memory area for dma allocationsh]h*Contiguous memory area for dma allocations}(hj).hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%.hM>hj&.ubah}(h]h ]h"]h$]h&]uh1jhj .ubeh}(h]h ]h"]h$]h&]uh1jhj%.hM>hjl(ubj)}(hC``dma_io_tlb_mem`` Software IO TLB allocator. Not for driver use. h](j)}(h``dma_io_tlb_mem``h]j)}(hjI.h]hdma_io_tlb_mem}(hjK.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM?hjC.ubj)}(hhh]j[)}(h/Software IO TLB allocator. Not for driver use.h]h/Software IO TLB allocator. Not for driver use.}(hjb.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^.hM?hj_.ubah}(h]h ]h"]h$]h&]uh1jhjC.ubeh}(h]h ]h"]h$]h&]uh1jhj^.hM?hjl(ubj)}(h=``dma_io_tlb_pools`` List of transient swiotlb memory pools. h](j)}(h``dma_io_tlb_pools``h]j)}(hj.h]hdma_io_tlb_pools}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM@hj|.ubj)}(hhh]j[)}(h'List of transient swiotlb memory pools.h]h'List of transient swiotlb memory pools.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hM@hj.ubah}(h]h ]h"]h$]h&]uh1jhj|.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM@hjl(ubj)}(hB``dma_io_tlb_lock`` Protects changes to the list of active pools. h](j)}(h``dma_io_tlb_lock``h]j)}(hj.h]hdma_io_tlb_lock}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMAhj.ubj)}(hhh]j[)}(h-Protects changes to the list of active pools.h]h-Protects changes to the list of active pools.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMAhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMAhjl(ubj)}(hE``dma_uses_io_tlb`` ``true`` if device has used the software IO TLB. h](j)}(h``dma_uses_io_tlb``h]j)}(hj.h]hdma_uses_io_tlb}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMBhj.ubj)}(hhh]j[)}(h0``true`` if device has used the software IO TLB.h](j)}(h``true``h]htrue}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj /ubh( if device has used the software IO TLB.}(hj /hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj /hMBhj /ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj /hMBhjl(ubj)}(h*``archdata`` For arch-specific additions. h](j)}(h ``archdata``h]j)}(hj;/h]harchdata}(hj=/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMChj5/ubj)}(hhh]j[)}(hFor arch-specific additions.h]hFor arch-specific additions.}(hjT/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjP/hMChjQ/ubah}(h]h ]h"]h$]h&]uh1jhj5/ubeh}(h]h ]h"]h$]h&]uh1jhjP/hMChjl(ubj)}(h)``of_node`` Associated device tree node. h](j)}(h ``of_node``h]j)}(hjt/h]hof_node}(hjv/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMDhjn/ubj)}(hhh]j[)}(hAssociated device tree node.h]hAssociated device tree node.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hMDhj/ubah}(h]h ]h"]h$]h&]uh1jhjn/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMDhjl(ubj)}(hA``fwnode`` Associated device node supplied by platform firmware. h](j)}(h ``fwnode``h]j)}(hj/h]hfwnode}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMEhj/ubj)}(hhh]j[)}(h5Associated device node supplied by platform firmware.h]h5Associated device node supplied by platform firmware.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hMEhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMEhjl(ubj)}(h1``numa_node`` NUMA node this device is close to. h](j)}(h ``numa_node``h]j)}(hj/h]h numa_node}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM1hj/ubj)}(hhh]j[)}(h"NUMA node this device is close to.h]h"NUMA node this device is close to.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hM1hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM1hjl(ubj)}(h'``devt`` For creating the sysfs "dev". h](j)}(h``devt``h]j)}(hj0h]hdevt}(hj!0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMFhj0ubj)}(hhh]j[)}(hFor creating the sysfs "dev".h]h!For creating the sysfs “dev”.}(hj80hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj40hMFhj50ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj40hMFhjl(ubj)}(h``id`` device instance h](j)}(h``id``h]j)}(hjX0h]hid}(hjZ0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMGhjR0ubj)}(hhh]j[)}(hdevice instanceh]hdevice instance}(hjq0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjm0hMGhjn0ubah}(h]h ]h"]h$]h&]uh1jhjR0ubeh}(h]h ]h"]h$]h&]uh1jhjm0hMGhjl(ubj)}(h@``devres_lock`` Spinlock to protect the resource of the device. h](j)}(h``devres_lock``h]j)}(hj0h]h devres_lock}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMHhj0ubj)}(hhh]j[)}(h/Spinlock to protect the resource of the device.h]h/Spinlock to protect the resource of the device.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMHhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMHhjl(ubj)}(h2``devres_head`` The resources list of the device. h](j)}(h``devres_head``h]j)}(hj0h]h devres_head}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMIhj0ubj)}(hhh]j[)}(h!The resources list of the device.h]h!The resources list of the device.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMIhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMIhjl(ubj)}(h#``class`` The class of the device. h](j)}(h ``class``h]j)}(hj1h]hclass}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMJhj0ubj)}(hhh]j[)}(hThe class of the device.h]hThe class of the device.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1hMJhj1ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj1hMJhjl(ubj)}(h&``groups`` Optional attribute groups. h](j)}(h ``groups``h]j)}(hj<1h]hgroups}(hj>1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMKhj61ubj)}(hhh]j[)}(hOptional attribute groups.h]hOptional attribute groups.}(hjU1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQ1hMKhjR1ubah}(h]h ]h"]h$]h&]uh1jhj61ubeh}(h]h ]h"]h$]h&]uh1jhjQ1hMKhjl(ubj)}(h``release`` Callback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device). h](j)}(h ``release``h]j)}(hju1h]hrelease}(hjw1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMNhjo1ubj)}(hhh]j[)}(hCallback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device).h]hCallback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device).}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMLhj1ubah}(h]h ]h"]h$]h&]uh1jhjo1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMNhjl(ubj)}(h3``iommu_group`` IOMMU group the device belongs to. h](j)}(h``iommu_group``h]j)}(hj1h]h iommu_group}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMOhj1ubj)}(hhh]j[)}(h"IOMMU group the device belongs to.h]h"IOMMU group the device belongs to.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1hMOhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMOhjl(ubj)}(h0``iommu`` Per device generic IOMMU runtime data h](j)}(h ``iommu``h]j)}(hj1h]hiommu}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMPhj1ubj)}(hhh]j[)}(h%Per device generic IOMMU runtime datah]h%Per device generic IOMMU runtime data}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1hMPhj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMPhjl(ubj)}(hh``physical_location`` Describes physical location of the device connection point in the system housing. h](j)}(h``physical_location``h]j)}(hj!2h]hphysical_location}(hj#2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMRhj2ubj)}(hhh]j[)}(hQDescribes physical location of the device connection point in the system housing.h]hQDescribes physical location of the device connection point in the system housing.}(hj:2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMQhj72ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj62hMRhjl(ubj)}(h``removable`` Whether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device. h](j)}(h ``removable``h]j)}(hj[2h]h removable}(hj]2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMUhjU2ubj)}(hhh]j[)}(hWhether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device.h]hWhether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device.}(hjt2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMShjq2ubah}(h]h ]h"]h$]h&]uh1jhjU2ubeh}(h]h ]h"]h$]h&]uh1jhjp2hMUhjl(ubj)}(h?``offline_disabled`` If set, the device is permanently online. h](j)}(h``offline_disabled``h]j)}(hj2h]hoffline_disabled}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMWhj2ubj)}(hhh]j[)}(h)If set, the device is permanently online.h]h)If set, the device is permanently online.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hMWhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMWhjl(ubj)}(hF``offline`` Set after successful invocation of bus type's .offline(). h](j)}(h ``offline``h]j)}(hj2h]hoffline}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMXhj2ubj)}(hhh]j[)}(h9Set after successful invocation of bus type's .offline().h]h;Set after successful invocation of bus type’s .offline().}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hMXhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMXhjl(ubj)}(hR``of_node_reused`` Set if the device-tree node is shared with an ancestor device. h](j)}(h``of_node_reused``h]j)}(hj3h]hof_node_reused}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMZhj3ubj)}(hhh]j[)}(h>Set if the device-tree node is shared with an ancestor device.h]h>Set if the device-tree node is shared with an ancestor device.}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMYhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMZhjl(ubj)}(h``state_synced`` The hardware state of this device has been synced to match the software state of this device by calling the driver/bus sync_state() callback. h](j)}(h``state_synced``h]j)}(hjA3h]h state_synced}(hjC3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM]hj;3ubj)}(hhh]j[)}(hThe hardware state of this device has been synced to match the software state of this device by calling the driver/bus sync_state() callback.h]hThe hardware state of this device has been synced to match the software state of this device by calling the driver/bus sync_state() callback.}(hjZ3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM[hjW3ubah}(h]h ]h"]h$]h&]uh1jhj;3ubeh}(h]h ]h"]h$]h&]uh1jhjV3hM]hjl(ubj)}(h``can_match`` The device has matched with a driver at least once or it is in a bus (like AMBA) which can't check for matching drivers until other devices probe successfully. h](j)}(h ``can_match``h]j)}(hj{3h]h can_match}(hj}3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM`hju3ubj)}(hhh]j[)}(hThe device has matched with a driver at least once or it is in a bus (like AMBA) which can't check for matching drivers until other devices probe successfully.h]hThe device has matched with a driver at least once or it is in a bus (like AMBA) which can’t check for matching drivers until other devices probe successfully.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM^hj3ubah}(h]h ]h"]h$]h&]uh1jhju3ubeh}(h]h ]h"]h$]h&]uh1jhj3hM`hjl(ubj)}(hq``dma_coherent`` this particular device is dma coherent, even if the architecture supports non-coherent devices. h](j)}(h``dma_coherent``h]j)}(hj3h]h dma_coherent}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMbhj3ubj)}(hhh]j[)}(h_this particular device is dma coherent, even if the architecture supports non-coherent devices.h]h_this particular device is dma coherent, even if the architecture supports non-coherent devices.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMahj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMbhjl(ubj)}(hX``dma_ops_bypass`` If set to ``true`` then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported. h](j)}(h``dma_ops_bypass``h]j)}(hj3h]hdma_ops_bypass}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMghj3ubj)}(hhh]j[)}(hXIf set to ``true`` then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported.h](h If set to }(hj4hhhNhNubj)}(h``true``h]htrue}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMchj4ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hMghjl(ubj)}(hK``dma_skip_sync`` DMA sync operations can be skipped for coherent buffers. h](j)}(h``dma_skip_sync``h]j)}(hj;4h]h dma_skip_sync}(hj=4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj94ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhj54ubj)}(hhh]j[)}(h8DMA sync operations can be skipped for coherent buffers.h]h8DMA sync operations can be skipped for coherent buffers.}(hjT4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjP4hMhhjQ4ubah}(h]h ]h"]h$]h&]uh1jhj54ubeh}(h]h ]h"]h$]h&]uh1jhjP4hMhhjl(ubj)}(hj``dma_iommu`` Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure. h](j)}(h ``dma_iommu``h]j)}(hjt4h]h dma_iommu}(hjv4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMjhjn4ubj)}(hhh]j[)}(h[Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure.h]h]Device is using default IOMMU implementation for DMA and doesn’t rely on dma_ops structure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMihj4ubah}(h]h ]h"]h$]h&]uh1jhjn4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMjhjl(ubj)}(hG``flags`` DEV_FLAG_XXX flags. Use atomic bitfield operations to modify.h](j)}(h ``flags``h]j)}(hj4h]hflags}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMjhj4ubj)}(hhh]j[)}(h=DEV_FLAG_XXX flags. Use atomic bitfield operations to modify.h]h=DEV_FLAG_XXX flags. Use atomic bitfield operations to modify.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMkhj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMjhjl(ubeh}(h]h ]h"]h$]h&]uh1jhj$(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj[)}(h **Example**h]j)}(hj4h]hExample}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMnhhhhubj)}(hhh]j)}(hXFor devices on custom boards, as typical of embedded and SOC based hardware, Linux often uses platform_data to point to board-specific structures describing devices and how they are wired. That can include what ports are available, chip variants, which GPIO pins act in what additional roles, and so on. This shrinks the "Board Support Packages" (BSPs) and minimizes board-specific #ifdefs in drivers. h](j)}(h4For devices on custom boards, as typical of embeddedh]h4For devices on custom boards, as typical of embedded}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM"hj 5ubj)}(hhh]j[)}(hX^and SOC based hardware, Linux often uses platform_data to point to board-specific structures describing devices and how they are wired. That can include what ports are available, chip variants, which GPIO pins act in what additional roles, and so on. This shrinks the "Board Support Packages" (BSPs) and minimizes board-specific #ifdefs in drivers.h]hXband SOC based hardware, Linux often uses platform_data to point to board-specific structures describing devices and how they are wired. That can include what ports are available, chip variants, which GPIO pins act in what additional roles, and so on. This shrinks the “Board Support Packages” (BSPs) and minimizes board-specific #ifdefs in drivers.}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5ubah}(h]h ]h"]h$]h&]uh1jhj 5ubeh}(h]h ]h"]h$]h&]uh1jhj5hM"hj5ubah}(h]h ]h"]h$]h&]uh1jhhhhhNhNubj[)}(h**Description**h]j)}(hjC5h]h Description}(hjE5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA5ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hhhhubj[)}(hXAt the lowest level, every device in a Linux system is represented by an instance of struct device. The device structure contains the information that the device model core needs to model the system. Most subsystems, however, track additional information about the devices they host. As a result, it is rare for devices to be represented by bare device structures; instead, that structure, like kobject structures, is usually embedded within a higher-level representation of the device.h]hXAt the lowest level, every device in a Linux system is represented by an instance of struct device. The device structure contains the information that the device model core needs to model the system. Most subsystems, however, track additional information about the devices they host. As a result, it is rare for devices to be represented by bare device structures; instead, that structure, like kobject structures, is usually embedded within a higher-level representation of the device.}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMkhhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link (C struct) c.device_linkhNtauh1hhhhhhNhNubh)}(hhh](h)}(h device_linkh]h)}(hstruct device_linkh](h)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}5hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMvubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}5hhhj5hMvubj")}(h device_linkh]j()}(hj{5h]h device_link}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj}5hhhj5hMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjy5hhhj5hMvubah}(h]jt5ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj5hMvhjv5hhubjV)}(hhh]j[)}(hDevice link representation.h]hDevice link representation.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5hhubah}(h]h ]h"]h$]h&]uh1jUhjv5hhhj5hMvubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj5j{j5j|j}j~uh1hhhhhhNhNubj)}(hX<**Definition**:: struct device_link { struct device *supplier; struct list_head s_node; struct device *consumer; struct list_head c_node; struct device link_dev; enum device_link_state status; u32 flags; refcount_t rpm_active; struct kref kref; struct work_struct rm_work; bool supplier_preactivated; }; **Members** ``supplier`` The device on the supplier end of the link. ``s_node`` Hook to the supplier device's list of links to consumers. ``consumer`` The device on the consumer end of the link. ``c_node`` Hook to the consumer device's list of links to suppliers. ``link_dev`` device used to expose link details in sysfs ``status`` The state of the link (with respect to the presence of drivers). ``flags`` Link flags. ``rpm_active`` Whether or not the consumer device is runtime-PM-active. ``kref`` Count repeated addition of the same link. ``rm_work`` Work structure used for removing the link. ``supplier_preactivated`` Supplier has been made active before consumer probe. h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh:}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5ubj)}(hXJstruct device_link { struct device *supplier; struct list_head s_node; struct device *consumer; struct list_head c_node; struct device link_dev; enum device_link_state status; u32 flags; refcount_t rpm_active; struct kref kref; struct work_struct rm_work; bool supplier_preactivated; };h]hXJstruct device_link { struct device *supplier; struct list_head s_node; struct device *consumer; struct list_head c_node; struct device link_dev; enum device_link_state status; u32 flags; refcount_t rpm_active; struct kref kref; struct work_struct rm_work; bool supplier_preactivated; };}hj6sbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj5ubj[)}(h **Members**h]j)}(hj6h]hMembers}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5ubj)}(hhh](j)}(h9``supplier`` The device on the supplier end of the link. h](j)}(h ``supplier``h]j)}(hj06h]hsupplier}(hj26hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj*6ubj)}(hhh]j[)}(h+The device on the supplier end of the link.h]h+The device on the supplier end of the link.}(hjI6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjE6hMhjF6ubah}(h]h ]h"]h$]h&]uh1jhj*6ubeh}(h]h ]h"]h$]h&]uh1jhjE6hMhj'6ubj)}(hE``s_node`` Hook to the supplier device's list of links to consumers. h](j)}(h ``s_node``h]j)}(hji6h]hs_node}(hjk6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjc6ubj)}(hhh]j[)}(h9Hook to the supplier device's list of links to consumers.h]h;Hook to the supplier device’s list of links to consumers.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhjc6ubeh}(h]h ]h"]h$]h&]uh1jhj~6hMhj'6ubj)}(h9``consumer`` The device on the consumer end of the link. h](j)}(h ``consumer``h]j)}(hj6h]hconsumer}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj6ubj)}(hhh]j[)}(h+The device on the consumer end of the link.h]h+The device on the consumer end of the link.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj'6ubj)}(hE``c_node`` Hook to the consumer device's list of links to suppliers. h](j)}(h ``c_node``h]j)}(hj6h]hc_node}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj6ubj)}(hhh]j[)}(h9Hook to the consumer device's list of links to suppliers.h]h;Hook to the consumer device’s list of links to suppliers.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hM hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hM hj'6ubj)}(h9``link_dev`` device used to expose link details in sysfs h](j)}(h ``link_dev``h]j)}(hj7h]hlink_dev}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj7ubj)}(hhh]j[)}(h+device used to expose link details in sysfsh]h+device used to expose link details in sysfs}(hj-7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)7hM hj*7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj)7hM hj'6ubj)}(hL``status`` The state of the link (with respect to the presence of drivers). h](j)}(h ``status``h]j)}(hjM7h]hstatus}(hjO7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hjG7ubj)}(hhh]j[)}(h@The state of the link (with respect to the presence of drivers).h]h@The state of the link (with respect to the presence of drivers).}(hjf7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjb7hM hjc7ubah}(h]h ]h"]h$]h&]uh1jhjG7ubeh}(h]h ]h"]h$]h&]uh1jhjb7hM hj'6ubj)}(h``flags`` Link flags. h](j)}(h ``flags``h]j)}(hj7h]hflags}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj7ubj)}(hhh]j[)}(h Link flags.h]h Link flags.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hM hj'6ubj)}(hH``rpm_active`` Whether or not the consumer device is runtime-PM-active. h](j)}(h``rpm_active``h]j)}(hj7h]h rpm_active}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj7ubj)}(hhh]j[)}(h8Whether or not the consumer device is runtime-PM-active.h]h8Whether or not the consumer device is runtime-PM-active.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hM hj'6ubj)}(h3``kref`` Count repeated addition of the same link. h](j)}(h``kref``h]j)}(hj7h]hkref}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj7ubj)}(hhh]j[)}(h)Count repeated addition of the same link.h]h)Count repeated addition of the same link.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj 8hMhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj 8hMhj'6ubj)}(h7``rm_work`` Work structure used for removing the link. h](j)}(h ``rm_work``h]j)}(hj18h]hrm_work}(hj38hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/8ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj+8ubj)}(hhh]j[)}(h*Work structure used for removing the link.h]h*Work structure used for removing the link.}(hjJ8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjF8hMhjG8ubah}(h]h ]h"]h$]h&]uh1jhj+8ubeh}(h]h ]h"]h$]h&]uh1jhjF8hMhj'6ubj)}(hN``supplier_preactivated`` Supplier has been made active before consumer probe.h](j)}(h``supplier_preactivated``h]j)}(hjj8h]hsupplier_preactivated}(hjl8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh8ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjd8ubj)}(hhh]j[)}(h4Supplier has been made active before consumer probe.h]h4Supplier has been made active before consumer probe.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8ubah}(h]h ]h"]h$]h&]uh1jhjd8ubeh}(h]h ]h"]h$]h&]uh1jhj8hMhj'6ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'device_set_driver_override (C function)c.device_set_driver_overridehNtauh1hhhhhhNhNubh)}(hhh](h)}(hBint device_set_driver_override (struct device *dev, const char *s)h]h)}(hAint device_set_driver_override(struct device *dev, const char *s)h](hdesc_sig_keyword_type)}(hinth]hint}(hj8hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j8hj8hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hM$ubj")}(hdevice_set_driver_overrideh]j()}(hdevice_set_driver_overrideh]hdevice_set_driver_override}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhhj8hM$ubhdesc_parameterlist)}(h#(struct device *dev, const char *s)h](hdesc_parameter)}(hstruct device *devh](h)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j()}(hdeviceh]hdevice}(hj&9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj#9ubah}(h]h ]h"]h$]h&] refdomainjtreftype identifier reftargetj(9modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jA9 ASTIdentifier)}j<9j8sbc.device_set_driver_overrideasbuh1hhj9ubj)}(h h]h }(hjN9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubhdesc_sig_punctuation)}(h*h]h*}(hj^9hhhNhNubah}(h]h ]pah"]h$]h&]uh1j\9hj9ubj()}(hdevh]hdev}(hjm9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj8ubj9)}(h const char *sh](h)}(hconsth]hconst}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj8)}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj9ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj]9)}(hj`9h]h*}(hj9hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj9ubj()}(hsh]hs}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj8ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj8hhhj8hM$ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj8hhhj8hM$ubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj8hM$hj8hhubjV)}(hhh]j[)}(h'Helper to set or clear driver override.h]h'Helper to set or clear driver override.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hj9hhubah}(h]h ]h"]h$]h&]uh1jUhj8hhhj8hM$ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj :j{j :j|j}j~uh1hhhhhhNhNubj)}(hXj**Parameters** ``struct device *dev`` Device to change ``const char *s`` NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface). **Description** Helper to set or clear driver override of a device. **Return** 0 on success or a negative error code on failure.h](j[)}(h**Parameters**h]j)}(hj:h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM(hj:ubj)}(hhh](j)}(h(``struct device *dev`` Device to change h](j)}(h``struct device *dev``h]j)}(hj6:h]hstruct device *dev}(hj8:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4:ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM%hj0:ubj)}(hhh]j[)}(hDevice to changeh]hDevice to change}(hjO:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjK:hM%hjL:ubah}(h]h ]h"]h$]h&]uh1jhj0:ubeh}(h]h ]h"]h$]h&]uh1jhjK:hM%hj-:ubj)}(h``const char *s`` NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface). h](j)}(h``const char *s``h]j)}(hjo:h]h const char *s}(hjq:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm:ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM(hji:ubj)}(hhh]j[)}(hNUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface).h]hNUL-terminated string, new driver name to force a match, pass empty string to clear it (”” or “n”, where the latter is only for sysfs interface).}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM&hj:ubah}(h]h ]h"]h$]h&]uh1jhji:ubeh}(h]h ]h"]h$]h&]uh1jhj:hM(hj-:ubeh}(h]h ]h"]h$]h&]uh1jhj:ubj[)}(h**Description**h]j)}(hj:h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM*hj:ubj[)}(h3Helper to set or clear driver override of a device.h]h3Helper to set or clear driver override of a device.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM)hj:ubj[)}(h **Return**h]j)}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM+hj:ubj[)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM,hj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'device_has_driver_override (C function)c.device_has_driver_overridehNtauh1hhhhhhNhNubh)}(hhh](h)}(h4bool device_has_driver_override (struct device *dev)h]h)}(h3bool device_has_driver_override(struct device *dev)h](j8)}(hboolh]hbool}(hj;hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj;hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4ubj)}(h h]h }(hj&;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;hhhj%;hM4ubj")}(hdevice_has_driver_overrideh]j()}(hdevice_has_driver_overrideh]hdevice_has_driver_override}(hj8;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4;ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj;hhhj%;hM4ubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjT;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP;ubj)}(h h]h }(hja;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP;ubh)}(hhh]j()}(hdeviceh]hdevice}(hjr;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjo;ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjt;modnameN classnameNj@9jC9)}jF9]jI9)}j<9j:;sbc.device_has_driver_overrideasbuh1hhjP;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP;ubj]9)}(hj`9h]h*}(hj;hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjP;ubj()}(hdevh]hdev}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjP;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjL;ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj;hhhj%;hM4ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj;hhhj%;hM4ubah}(h]j ;ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj%;hM4hj ;hhubjV)}(hhh]j[)}(h(Check if a driver override has been set.h]h(Check if a driver override has been set.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4hj;hhubah}(h]h ]h"]h$]h&]uh1jUhj ;hhhj%;hM4ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj;j{j;j|j}j~uh1hhhhhhNhNubj)}(h**Parameters** ``struct device *dev`` device to check **Description** Returns true if a driver override has been set for this device.h](j[)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM8hj;ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj<h]hstruct device *dev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM5hj<ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj1<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-<hM5hj.<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj-<hM5hj<ubah}(h]h ]h"]h$]h&]uh1jhj;ubj[)}(h**Description**h]j)}(hjS<h]h Description}(hjU<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ<ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM7hj;ubj[)}(h?Returns true if a driver override has been set for this device.h]h?Returns true if a driver override has been set for this device.}(hji<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM6hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)device_match_driver_override (C function)c.device_match_driver_overridehNtauh1hhhhhhNhNubh)}(hhh](h)}(hVint device_match_driver_override (struct device *dev, const struct device_driver *drv)h]h)}(hUint device_match_driver_override(struct device *dev, const struct device_driver *drv)h](j8)}(hinth]hint}(hj<hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj<hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM@ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhj<hM@ubj")}(hdevice_match_driver_overrideh]j()}(hdevice_match_driver_overrideh]hdevice_match_driver_override}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj<hhhj<hM@ubj8)}(h5(struct device *dev, const struct device_driver *drv)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j()}(hdeviceh]hdevice}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj<modnameN classnameNj@9jC9)}jF9]jI9)}j<9j<sbc.device_match_driver_overrideasbuh1hhj<ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj]9)}(hj`9h]h*}(hj!=hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj<ubj()}(hdevh]hdev}(hj.=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubj9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjG=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjC=ubj)}(h h]h }(hjT=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC=ubh)}(hjh]hstruct}(hjb=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjC=ubj)}(h h]h }(hjo=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC=ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}=ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj=modnameN classnameNj@9jC9)}jF9]j=c.device_match_driver_overrideasbuh1hhjC=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC=ubj]9)}(hj`9h]h*}(hj=hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjC=ubj()}(hdrvh]hdrv}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjC=ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj<hhhj<hM@ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj<hhhj<hM@ubah}(h]j<ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj<hM@hj<hhubjV)}(hhh]j[)}(h4Match a driver against the device's driver_override.h]h6Match a driver against the device’s driver_override.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM@hj=hhubah}(h]h ]h"]h$]h&]uh1jUhj<hhhj<hM@ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj=j{j=j|j}j~uh1hhhhhhNhNubj)}(hX0**Parameters** ``struct device *dev`` device to check ``const struct device_driver *drv`` driver to match against **Description** Returns > 0 if a driver override is set and matches the given driver, 0 if a driver override is set but does not match, or < 0 if a driver override is not set at all.h](j[)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMDhj=ubj)}(hhh](j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj$>h]hstruct device *dev}(hj&>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj">ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMAhj>ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj=>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9>hMAhj:>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj9>hMAhj>ubj)}(h<``const struct device_driver *drv`` driver to match against h](j)}(h#``const struct device_driver *drv``h]j)}(hj]>h]hconst struct device_driver *drv}(hj_>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[>ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMBhjW>ubj)}(hhh]j[)}(hdriver to match againsth]hdriver to match against}(hjv>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjr>hMBhjs>ubah}(h]h ]h"]h$]h&]uh1jhjW>ubeh}(h]h ]h"]h$]h&]uh1jhjr>hMBhj>ubeh}(h]h ]h"]h$]h&]uh1jhj=ubj[)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMDhj=ubj[)}(hReturns > 0 if a driver override is set and matches the given driver, 0 if a driver override is set but does not match, or < 0 if a driver override is not set at all.h]hReturns > 0 if a driver override is set and matches the given driver, 0 if a driver override is set but does not match, or < 0 if a driver override is not set at all.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMChj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h device_iommu_mapped (C function)c.device_iommu_mappedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h-bool device_iommu_mapped (struct device *dev)h]h)}(h,bool device_iommu_mapped(struct device *dev)h](j8)}(hj;h]hbool}(hj>hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj>hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMRubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMRubj")}(hdevice_iommu_mappedh]j()}(hdevice_iommu_mappedh]hdevice_iommu_mapped}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj>hhhj>hMRubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(h h]h }(hj&?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j()}(hdeviceh]hdevice}(hj7?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4?ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj9?modnameN classnameNj@9jC9)}jF9]jI9)}j<9j>sbc.device_iommu_mappedasbuh1hhj?ubj)}(h h]h }(hjW?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj]9)}(hj`9h]h*}(hje?hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj?ubj()}(hdevh]hdev}(hjr?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj>hhhj>hMRubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj>hhhj>hMRubah}(h]j>ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj>hMRhj>hhubjV)}(hhh]j[)}(h:Returns true when the device DMA is translated by an IOMMUh]h:Returns true when the device DMA is translated by an IOMMU}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMRhj?hhubah}(h]h ]h"]h$]h&]uh1jUhj>hhhj>hMRubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj?j{j?j|j}j~uh1hhhhhhNhNubj)}(hG**Parameters** ``struct device *dev`` Device to perform the check onh](j[)}(h**Parameters**h]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMVhj?ubj)}(hhh]j)}(h5``struct device *dev`` Device to perform the check onh](j)}(h``struct device *dev``h]j)}(hj?h]hstruct device *dev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMXhj?ubj)}(hhh]j[)}(hDevice to perform the check onh]hDevice to perform the check on}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMThj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMXhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_name (C function) c.dev_namehNtauh1hhhhhhNhNubh)}(hhh](h)}(h0const char * dev_name (const struct device *dev)h]h)}(h.const char *dev_name(const struct device *dev)h](h)}(hj9h]hconst}(hj7@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3@hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM_ubj)}(h h]h }(hjE@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3@hhhjD@hM_ubj8)}(hcharh]hchar}(hjS@hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj3@hhhjD@hM_ubj)}(h h]h }(hja@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3@hhhjD@hM_ubj]9)}(hj`9h]h*}(hjo@hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj3@hhhjD@hM_ubj")}(hdev_nameh]j()}(hdev_nameh]hdev_name}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|@ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj3@hhhjD@hM_ubj8)}(h(const struct device *dev)h]j9)}(hconst struct device *devh](h)}(hj9h]hconst}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j()}(hdeviceh]hdevice}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj@modnameN classnameNj@9jC9)}jF9]jI9)}j<9j@sb c.dev_nameasbuh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj]9)}(hj`9h]h*}(hjAhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj@ubj()}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj@ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj3@hhhjD@hM_ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj/@hhhjD@hM_ubah}(h]j*@ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjD@hM_hj,@hhubjV)}(hhh]j[)}(hReturn a device's name.h]hReturn a device’s name.}(hj:AhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM_hj7Ahhubah}(h]h ]h"]h$]h&]uh1jUhj,@hhhjD@hM_ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjRAj{jRAj|j}j~uh1hhhhhhNhNubj)}(h**Parameters** ``const struct device *dev`` Device with name to get. **Return** The kobject name of the device, or its initial name if unavailable.h](j[)}(h**Parameters**h]j)}(hj\Ah]h Parameters}(hj^AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZAubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMchjVAubj)}(hhh]j)}(h6``const struct device *dev`` Device with name to get. h](j)}(h``const struct device *dev``h]j)}(hj{Ah]hconst struct device *dev}(hj}AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyAubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM`hjuAubj)}(hhh]j[)}(hDevice with name to get.h]hDevice with name to get.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhM`hjAubah}(h]h ]h"]h$]h&]uh1jhjuAubeh}(h]h ]h"]h$]h&]uh1jhjAhM`hjrAubah}(h]h ]h"]h$]h&]uh1jhjVAubj[)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMbhjVAubj[)}(hCThe kobject name of the device, or its initial name if unavailable.h]hCThe kobject name of the device, or its initial name if unavailable.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMahjVAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_bus_name (C function)c.dev_bus_namehNtauh1hhhhhhNhNubh)}(hhh](h)}(h4const char * dev_bus_name (const struct device *dev)h]h)}(h2const char *dev_bus_name(const struct device *dev)h](h)}(hj9h]hconst}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMmubj)}(h h]h }(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjBhMmubj8)}(hcharh]hchar}(hjBhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjAhhhjBhMmubj)}(h h]h }(hj%BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjBhMmubj]9)}(hj`9h]h*}(hj3BhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjAhhhjBhMmubj")}(h dev_bus_nameh]j()}(h dev_bus_nameh]h dev_bus_name}(hjDBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@Bubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjAhhhjBhMmubj8)}(h(const struct device *dev)h]j9)}(hconst struct device *devh](h)}(hj9h]hconst}(hj`BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\Bubj)}(h h]h }(hjmBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Bubh)}(hjh]hstruct}(hj{BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\Bubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Bubh)}(hhh]j()}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjBmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jFBsbc.dev_bus_nameasbuh1hhj\Bubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Bubj]9)}(hj`9h]h*}(hjBhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj\Bubj()}(hdevh]hdev}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj\Bubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjXBubah}(h]h ]h"]h$]h&]j?j@uh1j8hjAhhhjBhMmubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjAhhhjBhMmubah}(h]jAah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjBhMmhjAhhubjV)}(hhh]j[)}(h4Return a device's bus/class name, if at all possibleh]h6Return a device’s bus/class name, if at all possible}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMmhjBhhubah}(h]h ]h"]h$]h&]uh1jUhjAhhhjBhMmubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjCj{jCj|j}j~uh1hhhhhhNhNubj)}(h**Parameters** ``const struct device *dev`` struct device to get the bus/class name of **Description** Will return the name of the bus/class the device is attached to. If it is not attached to a bus/class, an empty string will be returned.h](j[)}(h**Parameters**h]j)}(hj Ch]h Parameters}(hj"ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMqhjCubj)}(hhh]j)}(hH``const struct device *dev`` struct device to get the bus/class name of h](j)}(h``const struct device *dev``h]j)}(hj?Ch]hconst struct device *dev}(hjAChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Cubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMnhj9Cubj)}(hhh]j[)}(h*struct device to get the bus/class name ofh]h*struct device to get the bus/class name of}(hjXChhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjTChMnhjUCubah}(h]h ]h"]h$]h&]uh1jhj9Cubeh}(h]h ]h"]h$]h&]uh1jhjTChMnhj6Cubah}(h]h ]h"]h$]h&]uh1jhjCubj[)}(h**Description**h]j)}(hjzCh]h Description}(hj|ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxCubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMphjCubj[)}(hWill return the name of the bus/class the device is attached to. If it is not attached to a bus/class, an empty string will be returned.h]hWill return the name of the bus/class the device is attached to. If it is not attached to a bus/class, an empty string will be returned.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMohjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&device_find_child_by_name (C function)c.device_find_child_by_namehNtauh1hhhhhhNhNubh)}(hhh](h)}(hSstruct device * device_find_child_by_name (struct device *parent, const char *name)h]h)}(hQstruct device *device_find_child_by_name(struct device *parent, const char *name)h](h)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMfubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChMfubh)}(hhh]j()}(hdeviceh]hdevice}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjCmodnameN classnameNj@9jC9)}jF9]jI9)}j<9device_find_child_by_namesbc.device_find_child_by_nameasbuh1hhjChhhjChMfubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChMfubj]9)}(hj`9h]h*}(hj DhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjChhhjChMfubj")}(hdevice_find_child_by_nameh]j()}(hjCh]hdevice_find_child_by_name}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjChMfubj8)}(h)(struct device *parent, const char *name)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hj9DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5Dubj)}(h h]h }(hjFDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Dubh)}(hhh]j()}(hdeviceh]hdevice}(hjWDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTDubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjYDmodnameN classnameNj@9jC9)}jF9]jCc.device_find_child_by_nameasbuh1hhj5Dubj)}(h h]h }(hjuDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Dubj]9)}(hj`9h]h*}(hjDhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj5Dubj()}(hparenth]hparent}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5Dubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj1Dubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj8)}(hcharh]hchar}(hjDhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj]9)}(hj`9h]h*}(hjDhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjDubj()}(hnameh]hname}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj1Dubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjChhhjChMfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjChhhjChMfubah}(h]jCah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjChMfhjChhubjV)}(hhh]j[)}(h,device iterator for locating a child device.h]h,device iterator for locating a child device.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMfhjEhhubah}(h]h ]h"]h$]h&]uh1jUhjChhhjChMfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj/Ej{j/Ej|j}j~uh1hhhhhhNhNubj)}(hXM**Parameters** ``struct device *parent`` parent struct device ``const char *name`` name of the child device **Description** This is similar to the device_find_child() function above, but it returns a reference to a device that has the name **name**. **NOTE** you will need to drop the reference with put_device() after use.h](j[)}(h**Parameters**h]j)}(hj9Eh]h Parameters}(hj;EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Eubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMjhj3Eubj)}(hhh](j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hjXEh]hstruct device *parent}(hjZEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVEubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMghjREubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hjqEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmEhMghjnEubah}(h]h ]h"]h$]h&]uh1jhjREubeh}(h]h ]h"]h$]h&]uh1jhjmEhMghjOEubj)}(h.``const char *name`` name of the child device h](j)}(h``const char *name``h]j)}(hjEh]hconst char *name}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhjEubj)}(hhh]j[)}(hname of the child deviceh]hname of the child device}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhMhhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhhjOEubeh}(h]h ]h"]h$]h&]uh1jhj3Eubj[)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMjhj3Eubj[)}(h}This is similar to the device_find_child() function above, but it returns a reference to a device that has the name **name**.h](htThis is similar to the device_find_child() function above, but it returns a reference to a device that has the name }(hjEhhhNhNubj)}(h**name**h]hname}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMihj3Eubj[)}(h**NOTE**h]j)}(hjFh]hNOTE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMlhj3Eubj[)}(h@you will need to drop the reference with put_device() after use.h]h@you will need to drop the reference with put_device() after use.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMmhj3Eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_find_any_child (C function)c.device_find_any_childhNtauh1hhhhhhNhNubh)}(hhh](h)}(h=struct device * device_find_any_child (struct device *parent)h]h)}(h;struct device *device_find_any_child(struct device *parent)h](h)}(hjh]hstruct}(hjJFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFFhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMvubj)}(h h]h }(hjXFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFFhhhjWFhMvubh)}(hhh]j()}(hdeviceh]hdevice}(hjiFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfFubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjkFmodnameN classnameNj@9jC9)}jF9]jI9)}j<9device_find_any_childsbc.device_find_any_childasbuh1hhjFFhhhjWFhMvubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFFhhhjWFhMvubj]9)}(hj`9h]h*}(hjFhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjFFhhhjWFhMvubj")}(hdevice_find_any_childh]j()}(hjFh]hdevice_find_any_child}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjFFhhhjWFhMvubj8)}(h(struct device *parent)h]j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j()}(hdeviceh]hdevice}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjFmodnameN classnameNj@9jC9)}jF9]jFc.device_find_any_childasbuh1hhjFubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj]9)}(hj`9h]h*}(hjGhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjFubj()}(hparenth]hparent}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjFubah}(h]h ]h"]h$]h&]j?j@uh1j8hjFFhhhjWFhMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjBFhhhjWFhMvubah}(h]j=Fah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjWFhMvhj?FhhubjV)}(hhh]j[)}(h4device iterator for locating a child device, if any.h]h4device iterator for locating a child device, if any.}(hjEGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMvhjBGhhubah}(h]h ]h"]h$]h&]uh1jUhj?FhhhjWFhMvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj]Gj{j]Gj|j}j~uh1hhhhhhNhNubj)}(hX**Parameters** ``struct device *parent`` parent struct device **Description** This is similar to the device_find_child() function above, but it returns a reference to a child device, if any. **NOTE** you will need to drop the reference with put_device() after use.h](j[)}(h**Parameters**h]j)}(hjgGh]h Parameters}(hjiGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeGubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMzhjaGubj)}(hhh]j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hjGh]hstruct device *parent}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMwhjGubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMwhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMwhj}Gubah}(h]h ]h"]h$]h&]uh1jhjaGubj[)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMyhjaGubj[)}(hpThis is similar to the device_find_child() function above, but it returns a reference to a child device, if any.h]hpThis is similar to the device_find_child() function above, but it returns a reference to a child device, if any.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMxhjaGubj[)}(h**NOTE**h]j)}(hjGh]hNOTE}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM{hjaGubj[)}(h@you will need to drop the reference with put_device() after use.h]h@you will need to drop the reference with put_device() after use.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM|hjaGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_lock_set_class (C macro)c.device_lock_set_classhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_lock_set_classh]h)}(hdevice_lock_set_classh]j")}(hdevice_lock_set_classh]j()}(hj'Hh]hdevice_lock_set_class}(hj1HhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-Hubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj)Hhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj%HhhhjDHhMubah}(h]j Hah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjDHhMhj"HhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj"HhhhjDHhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj]Hj{j]Hj|j}j~uh1hhhhhhNhNubj[)}(h$``device_lock_set_class (dev, key)``h]j)}(hjcHh]h device_lock_set_class (dev, key)}(hjeHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaHubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubjO)}(hFSpecify a temporary lock class while a device is attached to a driver h]j[)}(hESpecify a temporary lock class while a device is attached to a driverh]hESpecify a temporary lock class while a device is attached to a driver}(hj}HhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjyHubah}(h]h ]h"]h$]h&]uh1jNhjHhMhhhhubj)}(h**Parameters** ``dev`` device to modify ``key`` lock class key data **Description** This must be called with the device_lock() already held, for example from driver ->probe(). Take care to only override the default lockdep_no_validate class.h](j[)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj)}(hhh](j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hjHh]hdev}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj)}(hhh]j[)}(hdevice to modifyh]hdevice to modify}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjHubj)}(h``key`` lock class key data h](j)}(h``key``h]j)}(hjHh]hkey}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj)}(hhh]j[)}(hlock class key datah]hlock class key data}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjHubeh}(h]h ]h"]h$]h&]uh1jhjHubj[)}(h**Description**h]j)}(hj+Ih]h Description}(hj-IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)Iubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj[)}(hThis must be called with the device_lock() already held, for example from driver ->probe(). Take care to only override the default lockdep_no_validate class.h]hThis must be called with the device_lock() already held, for example from driver ->probe(). Take care to only override the default lockdep_no_validate class.}(hjAIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!device_lock_reset_class (C macro)c.device_lock_reset_classhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_lock_reset_classh]h)}(hdevice_lock_reset_classh]j")}(hdevice_lock_reset_classh]j()}(hjjIh]hdevice_lock_reset_class}(hjtIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjlIhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhIhhhjIhMubah}(h]jcIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhMhjeIhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjeIhhhjIhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjIj{jIj|j}j~uh1hhhhhhNhNubj[)}(h!``device_lock_reset_class (dev)``h]j)}(hjIh]hdevice_lock_reset_class (dev)}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubjO)}(h8Return a device to the default lockdep novalidate state h]j[)}(h7Return a device to the default lockdep novalidate stateh]h7Return a device to the default lockdep novalidate state}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjIubah}(h]h ]h"]h$]h&]uh1jNhjIhMhhhhubj)}(h**Parameters** ``dev`` device to modify **Description** This must be called with the device_lock() already held, for example from driver ->remove().h](j[)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjIubj)}(hhh]j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hjIh]hdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjIubj)}(hhh]j[)}(hdevice to modifyh]hdevice to modify}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhMhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjIubah}(h]h ]h"]h$]h&]uh1jhjIubj[)}(h**Description**h]j)}(hj5Jh]h Description}(hj7JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Jubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjIubj[)}(h\This must be called with the device_lock() already held, for example from driver ->remove().h]h\This must be called with the device_lock() already held, for example from driver ->remove().}(hjKJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_type (C struct) c.bus_typehNtauh1hhhhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhNubh)}(hhh](h)}(hbus_typeh]h)}(hstruct bus_typeh](h)}(hjh]hstruct}(hj{JhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwJhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwJhhhjJhKubj")}(hbus_typeh]j()}(hjuJh]hbus_type}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjwJhhhjJhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjsJhhhjJhKubah}(h]jmJah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjJhKhjpJhhubjV)}(hhh]j[)}(hThe bus type of the deviceh]hThe bus type of the device}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjJhhubah}(h]h ]h"]h$]h&]uh1jUhjpJhhhjJhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjJj{jJj|j}j~uh1hhhhhhjoJhNubj)}(hX5**Definition**:: struct bus_type { const char *name; const char *dev_name; const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); void (*sync_state)(struct device *dev); void (*remove)(struct device *dev); void (*shutdown)(struct device *dev); const struct cpumask *(*irq_get_affinity)(struct device *dev, unsigned int irq_vec); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); int (*num_vf)(struct device *dev); int (*dma_configure)(struct device *dev); void (*dma_cleanup)(struct device *dev); const struct dev_pm_ops *pm; bool driver_override; bool need_parent_lock; }; **Members** ``name`` The name of the bus. ``dev_name`` Used for subsystems to enumerate devices like ("foo``u``", dev->id). ``bus_groups`` Default attributes of the bus. ``dev_groups`` Default attributes of the devices on the bus. ``drv_groups`` Default attributes of the device drivers on the bus. ``match`` Called, perhaps multiple times, whenever a new device or driver is added for this bus. It should return a positive value if the given device can be handled by the given driver and zero otherwise. It may also return error code if determining that the driver supports the device is not possible. In case of -EPROBE_DEFER it will queue the device for deferred probing. ``uevent`` Called when a device is added, removed, or a few other things that generate uevents to add the environment variables. ``probe`` Called when a new device or driver add to this bus, and callback the specific driver's probe to initial the matched device. ``sync_state`` Called to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do. ``remove`` Called when a device removed from this bus. ``shutdown`` Called at shut-down time to quiesce the device. ``irq_get_affinity`` Get IRQ affinity mask for the device on this bus. ``online`` Called to put the device back online (after offlining it). ``offline`` Called to put the device offline for hot-removal. May fail. ``suspend`` Called when a device on this bus wants to go to sleep mode. ``resume`` Called to bring a device on this bus out of sleep mode. ``num_vf`` Called to find out how many virtual functions a device on this bus supports. ``dma_configure`` Called to setup DMA configuration on a device on this bus. ``dma_cleanup`` Called to cleanup DMA configuration on a device on this bus. ``pm`` Power management operations of this bus, callback the specific device driver's pm-ops. ``driver_override`` Set to true if this bus supports the driver_override mechanism, which allows userspace to force a specific driver to bind to a device via a sysfs attribute. ``need_parent_lock`` When probing or removing a device on this bus, the device core should lock the device's parent.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh:}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjJubj)}(hXstruct bus_type { const char *name; const char *dev_name; const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); void (*sync_state)(struct device *dev); void (*remove)(struct device *dev); void (*shutdown)(struct device *dev); const struct cpumask *(*irq_get_affinity)(struct device *dev, unsigned int irq_vec); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); int (*num_vf)(struct device *dev); int (*dma_configure)(struct device *dev); void (*dma_cleanup)(struct device *dev); const struct dev_pm_ops *pm; bool driver_override; bool need_parent_lock; };h]hXstruct bus_type { const char *name; const char *dev_name; const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); void (*sync_state)(struct device *dev); void (*remove)(struct device *dev); void (*shutdown)(struct device *dev); const struct cpumask *(*irq_get_affinity)(struct device *dev, unsigned int irq_vec); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); int (*num_vf)(struct device *dev); int (*dma_configure)(struct device *dev); void (*dma_cleanup)(struct device *dev); const struct dev_pm_ops *pm; bool driver_override; bool need_parent_lock; };}hjJsbah}(h]h ]h"]h$]h&]j?j@uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjJubj[)}(h **Members**h]j)}(hj Kh]hMembers}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Kubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK8hjJubj)}(hhh](j)}(h``name`` The name of the bus. h](j)}(h``name``h]j)}(hj*Kh]hname}(hj,KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Kubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj$Kubj)}(hhh]j[)}(hThe name of the bus.h]hThe name of the bus.}(hjCKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?KhKhj@Kubah}(h]h ]h"]h$]h&]uh1jhj$Kubeh}(h]h ]h"]h$]h&]uh1jhj?KhKhj!Kubj)}(hR``dev_name`` Used for subsystems to enumerate devices like ("foo``u``", dev->id). h](j)}(h ``dev_name``h]j)}(hjcKh]hdev_name}(hjeKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaKubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj]Kubj)}(hhh]j[)}(hDUsed for subsystems to enumerate devices like ("foo``u``", dev->id).h]hHUsed for subsystems to enumerate devices like (“foo``u``”, dev->id).}(hj|KhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxKhKhjyKubah}(h]h ]h"]h$]h&]uh1jhj]Kubeh}(h]h ]h"]h$]h&]uh1jhjxKhKhj!Kubj)}(h.``bus_groups`` Default attributes of the bus. h](j)}(h``bus_groups``h]j)}(hjKh]h bus_groups}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjKubj)}(hhh]j[)}(hDefault attributes of the bus.h]hDefault attributes of the bus.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj!Kubj)}(h=``dev_groups`` Default attributes of the devices on the bus. h](j)}(h``dev_groups``h]j)}(hjKh]h dev_groups}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjKubj)}(hhh]j[)}(h-Default attributes of the devices on the bus.h]h-Default attributes of the devices on the bus.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhj!Kubj)}(hD``drv_groups`` Default attributes of the device drivers on the bus. h](j)}(h``drv_groups``h]j)}(hjLh]h drv_groups}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Lubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK hjLubj)}(hhh]j[)}(h4Default attributes of the device drivers on the bus.h]h4Default attributes of the device drivers on the bus.}(hj'LhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#LhK hj$Lubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj#LhK hj!Kubj)}(hXx``match`` Called, perhaps multiple times, whenever a new device or driver is added for this bus. It should return a positive value if the given device can be handled by the given driver and zero otherwise. It may also return error code if determining that the driver supports the device is not possible. In case of -EPROBE_DEFER it will queue the device for deferred probing. h](j)}(h ``match``h]j)}(hjGLh]hmatch}(hjILhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjELubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK&hjALubj)}(hhh]j[)}(hXmCalled, perhaps multiple times, whenever a new device or driver is added for this bus. It should return a positive value if the given device can be handled by the given driver and zero otherwise. It may also return error code if determining that the driver supports the device is not possible. In case of -EPROBE_DEFER it will queue the device for deferred probing.h]hXmCalled, perhaps multiple times, whenever a new device or driver is added for this bus. It should return a positive value if the given device can be handled by the given driver and zero otherwise. It may also return error code if determining that the driver supports the device is not possible. In case of -EPROBE_DEFER it will queue the device for deferred probing.}(hj`LhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK!hj]Lubah}(h]h ]h"]h$]h&]uh1jhjALubeh}(h]h ]h"]h$]h&]uh1jhj\LhK&hj!Kubj)}(h``uevent`` Called when a device is added, removed, or a few other things that generate uevents to add the environment variables. h](j)}(h ``uevent``h]j)}(hjLh]huevent}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK*hj{Lubj)}(hhh]j[)}(huCalled when a device is added, removed, or a few other things that generate uevents to add the environment variables.h]huCalled when a device is added, removed, or a few other things that generate uevents to add the environment variables.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK)hjLubah}(h]h ]h"]h$]h&]uh1jhj{Lubeh}(h]h ]h"]h$]h&]uh1jhjLhK*hj!Kubj)}(h``probe`` Called when a new device or driver add to this bus, and callback the specific driver's probe to initial the matched device. h](j)}(h ``probe``h]j)}(hjLh]hprobe}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK,hjLubj)}(hhh]j[)}(h{Called when a new device or driver add to this bus, and callback the specific driver's probe to initial the matched device.h]h}Called when a new device or driver add to this bus, and callback the specific driver’s probe to initial the matched device.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK+hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK,hj!Kubj)}(hX``sync_state`` Called to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do. h](j)}(h``sync_state``h]j)}(hjLh]h sync_state}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK3hjLubj)}(hhh]j[)}(hXCalled to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do.h]hXCalled to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK-hj Mubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhj MhK3hj!Kubj)}(h7``remove`` Called when a device removed from this bus. h](j)}(h ``remove``h]j)}(hj/Mh]hremove}(hj1MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Mubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK4hj)Mubj)}(hhh]j[)}(h+Called when a device removed from this bus.h]h+Called when a device removed from this bus.}(hjHMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDMhK4hjEMubah}(h]h ]h"]h$]h&]uh1jhj)Mubeh}(h]h ]h"]h$]h&]uh1jhjDMhK4hj!Kubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hjhMh]hshutdown}(hjjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfMubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK5hjbMubj)}(hhh]j[)}(h/Called at shut-down time to quiesce the device.h]h/Called at shut-down time to quiesce the device.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}MhK5hj~Mubah}(h]h ]h"]h$]h&]uh1jhjbMubeh}(h]h ]h"]h$]h&]uh1jhj}MhK5hj!Kubj)}(hG``irq_get_affinity`` Get IRQ affinity mask for the device on this bus. h](j)}(h``irq_get_affinity``h]j)}(hjMh]hirq_get_affinity}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK6hjMubj)}(hhh]j[)}(h1Get IRQ affinity mask for the device on this bus.h]h1Get IRQ affinity mask for the device on this bus.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhK6hjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhK6hj!Kubj)}(hF``online`` Called to put the device back online (after offlining it). h](j)}(h ``online``h]j)}(hjMh]honline}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK8hjMubj)}(hhh]j[)}(h:Called to put the device back online (after offlining it).h]h:Called to put the device back online (after offlining it).}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhK8hjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhK8hj!Kubj)}(hH``offline`` Called to put the device offline for hot-removal. May fail. h](j)}(h ``offline``h]j)}(hjNh]hoffline}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK9hj Nubj)}(hhh]j[)}(h;Called to put the device offline for hot-removal. May fail.h]h;Called to put the device offline for hot-removal. May fail.}(hj,NhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(NhK9hj)Nubah}(h]h ]h"]h$]h&]uh1jhj Nubeh}(h]h ]h"]h$]h&]uh1jhj(NhK9hj!Kubj)}(hH``suspend`` Called when a device on this bus wants to go to sleep mode. h](j)}(h ``suspend``h]j)}(hjLNh]hsuspend}(hjNNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJNubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK;hjFNubj)}(hhh]j[)}(h;Called when a device on this bus wants to go to sleep mode.h]h;Called when a device on this bus wants to go to sleep mode.}(hjeNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjaNhK;hjbNubah}(h]h ]h"]h$]h&]uh1jhjFNubeh}(h]h ]h"]h$]h&]uh1jhjaNhK;hj!Kubj)}(hC``resume`` Called to bring a device on this bus out of sleep mode. h](j)}(h ``resume``h]j)}(hjNh]hresume}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjNubj)}(hhh]j[)}(hLCalled to find out how many virtual functions a device on this bus supports.h]hLCalled to find out how many virtual functions a device on this bus supports.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK=hjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhK>hj!Kubj)}(hM``dma_configure`` Called to setup DMA configuration on a device on this bus. h](j)}(h``dma_configure``h]j)}(hjNh]h dma_configure}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK@hjNubj)}(hhh]j[)}(h:Called to setup DMA configuration on a device on this bus.h]h:Called to setup DMA configuration on a device on this bus.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK?hjOubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhj OhK@hj!Kubj)}(hM``dma_cleanup`` Called to cleanup DMA configuration on a device on this bus. h](j)}(h``dma_cleanup``h]j)}(hj2Oh]h dma_cleanup}(hj4OhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Oubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKBhj,Oubj)}(hhh]j[)}(hhj [ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hK@hj9Yubj)}(hX``sync_state`` Called to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do. h](j)}(h``sync_state``h]j)}(hjD[h]h sync_state}(hjF[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB[ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKGhj>[ubj)}(hhh]j[)}(hXCalled to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do.h]hXCalled to sync device state to software state after all the state tracking consumers linked to this device (present at the time of late_initcall) have successfully bound to a driver. If the device has no consumers, this function will be called at late_initcall_sync level. If the device has consumers that are never bound to a driver, this function will never get called until they do.}(hj][hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKAhjZ[ubah}(h]h ]h"]h$]h&]uh1jhj>[ubeh}(h]h ]h"]h$]h&]uh1jhjY[hKGhj9Yubj)}(hb``remove`` Called when the device is removed from the system to unbind a device from this driver. h](j)}(h ``remove``h]j)}(hj~[h]hremove}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|[ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKIhjx[ubj)}(hhh]j[)}(hVCalled when the device is removed from the system to unbind a device from this driver.h]hVCalled when the device is removed from the system to unbind a device from this driver.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKHhj[ubah}(h]h ]h"]h$]h&]uh1jhjx[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKIhj9Yubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hj[h]hshutdown}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKJhj[ubj)}(hhh]j[)}(h/Called at shut-down time to quiesce the device.h]h/Called at shut-down time to quiesce the device.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj[hKJhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKJhj9Yubj)}(hR``suspend`` Called to put the device to sleep mode. Usually to a low power state. h](j)}(h ``suspend``h]j)}(hj[h]hsuspend}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKLhj[ubj)}(hhh]j[)}(hECalled to put the device to sleep mode. Usually to a low power state.h]hECalled to put the device to sleep mode. Usually to a low power state.}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKKhj\ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hKLhj9Yubj)}(h5``resume`` Called to bring a device from sleep mode. h](j)}(h ``resume``h]j)}(hj+\h]hresume}(hj-\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)\ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKMhj%\ubj)}(hhh]j[)}(h)Called to bring a device from sleep mode.h]h)Called to bring a device from sleep mode.}(hjD\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@\hKMhjA\ubah}(h]h ]h"]h$]h&]uh1jhj%\ubeh}(h]h ]h"]h$]h&]uh1jhj@\hKMhj9Yubj)}(hQ``groups`` Default attributes that get created by the driver core automatically. h](j)}(h ``groups``h]j)}(hjd\h]hgroups}(hjf\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb\ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKOhj^\ubj)}(hhh]j[)}(hEDefault attributes that get created by the driver core automatically.h]hEDefault attributes that get created by the driver core automatically.}(hj}\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKNhjz\ubah}(h]h ]h"]h$]h&]uh1jhj^\ubeh}(h]h ]h"]h$]h&]uh1jhjy\hKOhj9Yubj)}(ha``dev_groups`` Additional attributes attached to device instance once it is bound to the driver. h](j)}(h``dev_groups``h]j)}(hj\h]h dev_groups}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKQhj\ubj)}(hhh]j[)}(hQAdditional attributes attached to device instance once it is bound to the driver.h]hQAdditional attributes attached to device instance once it is bound to the driver.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKPhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hKQhj9Yubj)}(hL``pm`` Power management operations of the device which matched this driver. h](j)}(h``pm``h]j)}(hj\h]hpm}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKShj\ubj)}(hhh]j[)}(hDPower management operations of the device which matched this driver.h]hDPower management operations of the device which matched this driver.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKRhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hKShj9Yubj)}(h``coredump`` Called when sysfs entry is written to. The device driver is expected to call the dev_coredump API resulting in a uevent. h](j)}(h ``coredump``h]j)}(hj]h]hcoredump}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKVhj ]ubj)}(hhh]j[)}(hxCalled when sysfs entry is written to. The device driver is expected to call the dev_coredump API resulting in a uevent.h]hxCalled when sysfs entry is written to. The device driver is expected to call the dev_coredump API resulting in a uevent.}(hj+]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKThj(]ubah}(h]h ]h"]h$]h&]uh1jhj ]ubeh}(h]h ]h"]h$]h&]uh1jhj']hKVhj9Yubj)}(hT``p`` Driver core's private data, no one other than the driver core can touch this. h](j)}(h``p``h]j)}(hjL]h]hp}(hjN]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ]ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKXhjF]ubj)}(hhh]j[)}(hMDriver core's private data, no one other than the driver core can touch this.h]hODriver core’s private data, no one other than the driver core can touch this.}(hje]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKWhjb]ubah}(h]h ]h"]h$]h&]uh1jhjF]ubeh}(h]h ]h"]h$]h&]uh1jhja]hKXhj9Yubj)}(hj``p_cb`` Callbacks private to the driver core; no one other than the driver core is allowed to touch this.h](j)}(h``p_cb``h]j)}(hj]h]hp_cb}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKYhj]ubj)}(hhh]j[)}(haCallbacks private to the driver core; no one other than the driver core is allowed to touch this.h]haCallbacks private to the driver core; no one other than the driver core is allowed to touch this.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]hKYhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hKYhj9Yubeh}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhjVhNubj[)}(h**Description**h]j)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK]hhhhubj[)}(hXThe 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.h]hXThe 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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKZhhhhubeh}(h](the-basic-device-driver-model-structuresah ]h"](the basic device driver-model structuresah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDevice Drivers Baseh]hDevice Drivers Base}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_init (C function) c.driver_inithNtauh1hhj]hhhNhNubh)}(hhh](h)}(hvoid driver_init (void)h]h)}(hvoid driver_init(void)h](j8)}(hvoidh]hvoid}(hj^hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj^hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKubj)}(h h]h }(hj.^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj-^hKubj")}(h driver_inith]j()}(h driver_inith]h driver_init}(hj@^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<^ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj^hhhj-^hKubj8)}(h(void)h]j9)}(hvoidh]j8)}(hvoidh]hvoid}(hj\^hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjX^ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjT^ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj^hhhj-^hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj^hhhj-^hKubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj-^hKhj^hhubjV)}(hhh]j[)}(hinitialize driver model.h]hinitialize driver model.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj^hhubah}(h]h ]h"]h$]h&]uh1jUhj^hhhj-^hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj^j{j^j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``void`` no arguments **Description** Call the driver model init functions to initialize their subsystems. Called early from init/main.c.h](j[)}(h**Parameters**h]j)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj^ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj^h]hvoid}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj^ubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hKhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hKhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubj[)}(h**Description**h]j)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj^ubj[)}(hcCall the driver model init functions to initialize their subsystems. Called early from init/main.c.h]hcCall the driver model init functions to initialize their subsystems. Called early from init/main.c.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'driver_find_device_by_name (C function)c.driver_find_device_by_namehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h^struct device * driver_find_device_by_name (const struct device_driver *drv, const char *name)h]h)}(h\struct device *driver_find_device_by_name(const struct device_driver *drv, const char *name)h](h)}(hjh]hstruct}(hjG_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjC_hhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjU_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC_hhhjT_hKubh)}(hhh]j()}(hdeviceh]hdevice}(hjf_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjc_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjh_modnameN classnameNj@9jC9)}jF9]jI9)}j<9driver_find_device_by_namesbc.driver_find_device_by_nameasbuh1hhjC_hhhjT_hKubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC_hhhjT_hKubj]9)}(hj`9h]h*}(hj_hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjC_hhhjT_hKubj")}(hdriver_find_device_by_nameh]j()}(hj_h]hdriver_find_device_by_name}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjC_hhhjT_hKubj8)}(h3(const struct device_driver *drv, const char *name)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj_modnameN classnameNj@9jC9)}jF9]j_c.driver_find_device_by_nameasbuh1hhj_ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj]9)}(hj`9h]h*}(hj&`hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj_ubj()}(hdrvh]hdrv}(hj3`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj_ubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjL`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH`ubj)}(h h]h }(hjY`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH`ubj8)}(hcharh]hchar}(hjg`hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjH`ubj)}(h h]h }(hju`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH`ubj]9)}(hj`9h]h*}(hj`hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjH`ubj()}(hnameh]hname}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjH`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj_ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjC_hhhjT_hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj?_hhhjT_hKubah}(h]j:_ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjT_hKhj<_hhubjV)}(hhh]j[)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj`hhubah}(h]h ]h"]h$]h&]uh1jUhj<_hhhjT_hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj`j{j`j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const char *name`` name of the device to matchh](j[)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj`ubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hj`h]hconst struct device_driver *drv}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj`ubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahKhjaubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjahKhj`ubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hj4ah]hconst char *name}(hj6ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2aubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj.aubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hjMahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjJaubah}(h]h ]h"]h$]h&]uh1jhj.aubeh}(h]h ]h"]h$]h&]uh1jhjIahKhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*driver_find_device_by_of_node (C function)c.driver_find_device_by_of_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hmstruct device * driver_find_device_by_of_node (const struct device_driver *drv, const struct device_node *np)h]h)}(hkstruct device *driver_find_device_by_of_node(const struct device_driver *drv, const struct device_node *np)h](h)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahKubh)}(hhh]j()}(hdeviceh]hdevice}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjamodnameN classnameNj@9jC9)}jF9]jI9)}j<9driver_find_device_by_of_nodesbc.driver_find_device_by_of_nodeasbuh1hhjahhhjahKubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahKubj]9)}(hj`9h]h*}(hjahhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjahhhjahKubj")}(hdriver_find_device_by_of_nodeh]j()}(hjah]hdriver_find_device_by_of_node}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjahhhjahKubj8)}(h?(const struct device_driver *drv, const struct device_node *np)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hjh]hstruct}(hj#bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hj0bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j()}(h device_driverh]h device_driver}(hjAbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>bubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjCbmodnameN classnameNj@9jC9)}jF9]jac.driver_find_device_by_of_nodeasbuh1hhjbubj)}(h h]h }(hj_bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj]9)}(hj`9h]h*}(hjmbhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjbubj()}(hdrvh]hdrv}(hjzbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubj9)}(hconst struct device_node *nph](h)}(hj9h]hconst}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j()}(h device_nodeh]h device_node}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjbmodnameN classnameNj@9jC9)}jF9]jac.driver_find_device_by_of_nodeasbuh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj]9)}(hj`9h]h*}(hjbhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjbubj()}(hnph]hnp}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjahhhjahKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjahhhjahKubah}(h]jaah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjahKhjahhubjV)}(hhh]j[)}(hDdevice iterator for locating a particular device by of_node pointer.h]hDdevice iterator for locating a particular device by of_node pointer.}(hj/chhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj,chhubah}(h]h ]h"]h$]h&]uh1jUhjahhhjahKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjGcj{jGcj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const struct device_node *np`` of_node pointer to match.h](j[)}(h**Parameters**h]j)}(hjQch]h Parameters}(hjSchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOcubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjKcubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjpch]hconst struct device_driver *drv}(hjrchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjncubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjjcubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchKhjcubah}(h]h ]h"]h$]h&]uh1jhjjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjgcubj)}(h:``const struct device_node *np`` of_node pointer to match.h](j)}(h ``const struct device_node *np``h]j)}(hjch]hconst struct device_node *np}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjcubj)}(hhh]j[)}(hof_node pointer to match.h]hof_node pointer to match.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchKhjgcubeh}(h]h ]h"]h$]h&]uh1jhjKcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)driver_find_device_by_fwnode (C function)c.driver_find_device_by_fwnodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hlstruct device * driver_find_device_by_fwnode (struct device_driver *drv, const struct fwnode_handle *fwnode)h]h)}(hjstruct device *driver_find_device_by_fwnode(struct device_driver *drv, const struct fwnode_handle *fwnode)h](h)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjdhKubh)}(hhh]j()}(hdeviceh]hdevice}(hj"dhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj$dmodnameN classnameNj@9jC9)}jF9]jI9)}j<9driver_find_device_by_fwnodesbc.driver_find_device_by_fwnodeasbuh1hhjchhhjdhKubj)}(h h]h }(hjCdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjdhKubj]9)}(hj`9h]h*}(hjQdhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjchhhjdhKubj")}(hdriver_find_device_by_fwnodeh]j()}(hj@dh]hdriver_find_device_by_fwnode}(hjbdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^dubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjchhhjdhKubj8)}(h?(struct device_driver *drv, const struct fwnode_handle *fwnode)h](j9)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hj}dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjydubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjydubh)}(hhh]j()}(h device_driverh]h device_driver}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjdmodnameN classnameNj@9jC9)}jF9]j>dc.driver_find_device_by_fwnodeasbuh1hhjydubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjydubj]9)}(hj`9h]h*}(hjdhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjydubj()}(hdrvh]hdrv}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjydubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjudubj9)}(h"const struct fwnode_handle *fwnodeh](h)}(hj9h]hconst}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hj&ehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj#eubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj(emodnameN classnameNj@9jC9)}jF9]j>dc.driver_find_device_by_fwnodeasbuh1hhjdubj)}(h h]h }(hjDehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj]9)}(hj`9h]h*}(hjRehhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjdubj()}(hfwnodeh]hfwnode}(hj_ehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjudubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjchhhjdhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjchhhjdhKubah}(h]jcah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjdhKhjchhubjV)}(hhh]j[)}(hCdevice iterator for locating a particular device by fwnode pointer.h]hCdevice iterator for locating a particular device by fwnode pointer.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjehhubah}(h]h ]h"]h$]h&]uh1jUhjchhhjdhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjej{jej|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device_driver *drv`` the driver we're iterating ``const struct fwnode_handle *fwnode`` fwnode pointer to match.h](j[)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjeubj)}(hhh](j)}(h9``struct device_driver *drv`` the driver we're iterating h](j)}(h``struct device_driver *drv``h]j)}(hjeh]hstruct device_driver *drv}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjeubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjehKhjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehKhjeubj)}(h?``const struct fwnode_handle *fwnode`` fwnode pointer to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hjfh]h"const struct fwnode_handle *fwnode}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjeubj)}(hhh]j[)}(hfwnode pointer to match.h]hfwnode pointer to match.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjeubeh}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'driver_find_device_by_devt (C function)c.driver_find_device_by_devthNtauh1hhj]hhhNhNubh)}(hhh](h)}(hXstruct device * driver_find_device_by_devt (const struct device_driver *drv, dev_t devt)h]h)}(hVstruct device *driver_find_device_by_devt(const struct device_driver *drv, dev_t devt)h](h)}(hjh]hstruct}(hj]fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYfhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjkfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYfhhhjjfhKubh)}(hhh]j()}(hdeviceh]hdevice}(hj|fhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyfubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj~fmodnameN classnameNj@9jC9)}jF9]jI9)}j<9driver_find_device_by_devtsbc.driver_find_device_by_devtasbuh1hhjYfhhhjjfhKubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYfhhhjjfhKubj]9)}(hj`9h]h*}(hjfhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjYfhhhjjfhKubj")}(hdriver_find_device_by_devth]j()}(hjfh]hdriver_find_device_by_devt}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjYfhhhjjfhKubj8)}(h-(const struct device_driver *drv, dev_t devt)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j()}(h device_driverh]h device_driver}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj gubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjgmodnameN classnameNj@9jC9)}jF9]jfc.driver_find_device_by_devtasbuh1hhjfubj)}(h h]h }(hj.ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj]9)}(hj`9h]h*}(hjdriver_override `); The contents will be freed and hold newly allocated override. ``const char *s`` NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface). ``size_t len`` length of **s** **Description** Helper to set or clear driver override in a device, intended for the cases when the driver_override field is allocated by driver/bus code. **Return** 0 on success or a negative error code on failure.h](j[)}(h**Parameters**h]j)}(hj%ph]h Parameters}(hj'phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#pubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hjpubj)}(hhh](j)}(h(``struct device *dev`` Device to change h](j)}(h``struct device *dev``h]j)}(hjDph]hstruct device *dev}(hjFphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBpubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK#hj>pubj)}(hhh]j[)}(hDevice to changeh]hDevice to change}(hj]phhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYphK#hjZpubah}(h]h ]h"]h$]h&]uh1jhj>pubeh}(h]h ]h"]h$]h&]uh1jhjYphK#hj;pubj)}(h``const char **override`` Address of string to change (e.g. :c:type:`device->driver_override `); The contents will be freed and hold newly allocated override. h](j)}(h``const char **override``h]j)}(hj}ph]hconst char **override}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{pubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK%hjwpubj)}(hhh]j[)}(hAddress of string to change (e.g. :c:type:`device->driver_override `); The contents will be freed and hold newly allocated override.h](h"Address of string to change (e.g. }(hjphhhNhNubh)}(h*:c:type:`device->driver_override `h]j)}(hjph]hdevice->driver_override}(hjphhhNhNubah}(h]h ](xrefjtc-typeeh"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]refdocdriver-api/infrastructure refdomainjtreftypetype refexplicitrefwarnj@9jC9)}jF9]sb reftargetdeviceuh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK$hjpubh@); The contents will be freed and hold newly allocated override.}(hjphhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjphK$hjpubah}(h]h ]h"]h$]h&]uh1jhjwpubeh}(h]h ]h"]h$]h&]uh1jhjphK%hj;pubj)}(h``const char *s`` NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface). h](j)}(h``const char *s``h]j)}(hjph]h const char *s}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK(hjpubj)}(hhh]j[)}(hNUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface).h]hNUL-terminated string, new driver name to force a match, pass empty string to clear it (”” or “n”, where the latter is only for sysfs interface).}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphK(hj;pubj)}(h``size_t len`` length of **s** h](j)}(h``size_t len``h]j)}(hjqh]h size_t len}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK)hjqubj)}(hhh]j[)}(hlength of **s**h](h length of }(hj3qhhhNhNubj)}(h**s**h]hs}(hj;qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3qubeh}(h]h ]h"]h$]h&]uh1jZhj/qhK)hj0qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj/qhK)hj;pubeh}(h]h ]h"]h$]h&]uh1jhjpubj[)}(h**Description**h]j)}(hjcqh]h Description}(hjeqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaqubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK+hjpubj[)}(hHelper to set or clear driver override in a device, intended for the cases when the driver_override field is allocated by driver/bus code.h]hHelper to set or clear driver override in a device, intended for the cases when the driver_override field is allocated by driver/bus code.}(hjyqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK*hjpubj[)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK-hjpubj[)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK.hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#driver_for_each_device (C function)c.driver_for_each_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hjint driver_for_each_device (struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h]h)}(hiint driver_for_each_device(struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h](j8)}(hinth]hint}(hjqhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjqhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKmubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhKmubj")}(hdriver_for_each_deviceh]j()}(hdriver_for_each_deviceh]hdriver_for_each_device}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjqhhhjqhKmubj8)}(hO(struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h](j9)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hj rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j()}(h device_driverh]h device_driver}(hj*rhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'rubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj,rmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jqsbc.driver_for_each_deviceasbuh1hhjrubj)}(h h]h }(hjJrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj]9)}(hj`9h]h*}(hjXrhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjrubj()}(hdrvh]hdrv}(hjerhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjrubj9)}(hstruct device *starth](h)}(hjh]hstruct}(hj~rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzrubh)}(hhh]j()}(hdeviceh]hdevice}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjrmodnameN classnameNj@9jC9)}jF9]jFrc.driver_for_each_deviceasbuh1hhjzrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzrubj]9)}(hj`9h]h*}(hjrhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjzrubj()}(hstarth]hstart}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjrubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj]9)}(hj`9h]h*}(hj shhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjrubj()}(hdatah]hdata}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjrubj9)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj3shhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0subah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj5smodnameN classnameNj@9jC9)}jF9]jFrc.driver_for_each_deviceasbuh1hhj,subj)}(h h]h }(hjQshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,subj()}(hfnh]hfn}(hj_shhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,subeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjrubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjqhhhjqhKmubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjqhKmubah}(h]jqah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhKmhjqhhubjV)}(hhh]j[)}(h'Iterator for devices bound to a driver.h]h'Iterator for devices bound to a driver.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKmhjshhubah}(h]h ]h"]h$]h&]uh1jUhjqhhhjqhKmubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjsj{jsj|j}j~uh1hhhhj]hNhNubj)}(hX<**Parameters** ``struct device_driver *drv`` Driver we're iterating. ``struct device *start`` Device to begin with ``void *data`` Data to pass to the callback. ``device_iter_t fn`` Function to call for each device. **Description** Iterate over the **drv**'s list of devices calling **fn** for each one.h](j[)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKqhjsubj)}(hhh](j)}(h6``struct device_driver *drv`` Driver we're iterating. h](j)}(h``struct device_driver *drv``h]j)}(hjsh]hstruct device_driver *drv}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKnhjsubj)}(hhh]j[)}(hDriver we're iterating.h]hDriver we’re iterating.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshKnhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshKnhjsubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjth]hstruct device *start}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKohjsubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthKohjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthKohjsubj)}(h-``void *data`` Data to pass to the callback. h](j)}(h``void *data``h]j)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:tubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKphj6tubj)}(hhh]j[)}(hData to pass to the callback.h]hData to pass to the callback.}(hjUthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQthKphjRtubah}(h]h ]h"]h$]h&]uh1jhj6tubeh}(h]h ]h"]h$]h&]uh1jhjQthKphjsubj)}(h7``device_iter_t fn`` Function to call for each device. h](j)}(h``device_iter_t fn``h]j)}(hjuth]hdevice_iter_t fn}(hjwthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjstubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKqhjotubj)}(hhh]j[)}(h!Function to call for each device.h]h!Function to call for each device.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthKqhjtubah}(h]h ]h"]h$]h&]uh1jhjotubeh}(h]h ]h"]h$]h&]uh1jhjthKqhjsubeh}(h]h ]h"]h$]h&]uh1jhjsubj[)}(h**Description**h]j)}(hjth]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKshjsubj[)}(hGIterate over the **drv**'s list of devices calling **fn** for each one.h](hIterate over the }(hjthhhNhNubj)}(h**drv**h]hdrv}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh’s list of devices calling }(hjthhhNhNubj)}(h**fn**h]hfn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh for each one.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKrhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_find_device (C function)c.driver_find_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct device * driver_find_device (const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h]h)}(hstruct device *driver_find_device(const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h](h)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hj'uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj&uhKubh)}(hhh]j()}(hdeviceh]hdevice}(hj8uhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5uubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj:umodnameN classnameNj@9jC9)}jF9]jI9)}j<9driver_find_devicesbc.driver_find_deviceasbuh1hhjuhhhj&uhKubj)}(h h]h }(hjYuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhj&uhKubj]9)}(hj`9h]h*}(hjguhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjuhhhj&uhKubj")}(hdriver_find_deviceh]j()}(hjVuh]hdriver_find_device}(hjxuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtuubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuhhhj&uhKubj8)}(h_(const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubh)}(hhh]j()}(h device_driverh]h device_driver}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjumodnameN classnameNj@9jC9)}jF9]jTuc.driver_find_deviceasbuh1hhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj]9)}(hj`9h]h*}(hjuhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjuubj()}(hdrvh]hdrv}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjuubj9)}(hstruct device *starth](h)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(h h]h }(hj+vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j()}(hdeviceh]hdevice}(hjvmodnameN classnameNj@9jC9)}jF9]jTuc.driver_find_deviceasbuh1hhjvubj)}(h h]h }(hjZvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj]9)}(hj`9h]h*}(hjhvhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjvubj()}(hstarth]hstart}(hjuvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjuubj9)}(hconst void *datah](h)}(hj9h]hconst}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj8)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj]9)}(hj`9h]h*}(hjvhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjvubj()}(hdatah]hdata}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjuubj9)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjvmodnameN classnameNj@9jC9)}jF9]jTuc.driver_find_deviceasbuh1hhjvubj)}(h h]h }(hj whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj()}(hmatchh]hmatch}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjuubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjuhhhj&uhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjuhhhj&uhKubah}(h]j uah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj&uhKhjuhhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjDwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjAwhhubah}(h]h ]h"]h$]h&]uh1jUhjuhhhj&uhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj\wj{j\wj|j}j~uh1hhhhj]hNhNubj)}(hXu**Parameters** ``const struct device_driver *drv`` The device's driver ``struct device *start`` Device to begin with ``const void *data`` Data to pass to match function ``device_match_t match`` Callback function to check device **Description** This is similar to the driver_for_each_device() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h](j[)}(h**Parameters**h]j)}(hjfwh]h Parameters}(hjhwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdwubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj`wubj)}(hhh](j)}(h8``const struct device_driver *drv`` The device's driver h](j)}(h#``const struct device_driver *drv``h]j)}(hjwh]hconst struct device_driver *drv}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjwubj)}(hhh]j[)}(hThe device's driverh]hThe device’s driver}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwhKhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj|wubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjwh]hstruct device *start}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjwubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwhKhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj|wubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hjwh]hconst void *data}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjwubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj xhKhj xubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhj xhKhj|wubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hj0xh]hdevice_match_t match}(hj2xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.xubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj*xubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjIxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjExhKhjFxubah}(h]h ]h"]h$]h&]uh1jhj*xubeh}(h]h ]h"]h$]h&]uh1jhjExhKhj|wubeh}(h]h ]h"]h$]h&]uh1jhj`wubj[)}(h**Description**h]j)}(hjkxh]h Description}(hjmxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjixubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj`wubj[)}(hThis is similar to the driver_for_each_device() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the driver_for_each_device() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjxhhhNhNubj)}(h **match**h]hmatch}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh callback.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj`wubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj`wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_create_file (C function)c.driver_create_filehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h]int driver_create_file (const struct device_driver *drv, const struct driver_attribute *attr)h]h)}(h\int driver_create_file(const struct device_driver *drv, const struct driver_attribute *attr)h](j8)}(hinth]hint}(hjxhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjxhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhKubj")}(hdriver_create_fileh]j()}(hdriver_create_fileh]hdriver_create_file}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjxhhhjxhKubj8)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj yubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj yubh)}(hjh]hstruct}(hj)yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj yubj)}(h h]h }(hj6yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj yubh)}(hhh]j()}(h device_driverh]h device_driver}(hjGyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDyubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjIymodnameN classnameNj@9jC9)}jF9]jI9)}j<9jxsbc.driver_create_fileasbuh1hhj yubj)}(h h]h }(hjgyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj yubj]9)}(hj`9h]h*}(hjuyhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj yubj()}(hdrvh]hdrv}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj yubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjyubj9)}(h#const struct driver_attribute *attrh](h)}(hj9h]hconst}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjymodnameN classnameNj@9jC9)}jF9]jcyc.driver_create_fileasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj]9)}(hj`9h]h*}(hjzhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjyubj()}(hattrh]hattr}(hj zhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjyubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjxhhhjxhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjxhhhjxhKubah}(h]jxah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjxhKhjxhhubjV)}(hhh]j[)}(hcreate sysfs file for driver.h]hcreate sysfs file for driver.}(hj7zhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj4zhhubah}(h]h ]h"]h$]h&]uh1jUhjxhhhjxhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjOzj{jOzj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct device_driver *drv`` driver. ``const struct driver_attribute *attr`` driver attribute descriptor.h](j[)}(h**Parameters**h]j)}(hjYzh]h Parameters}(hj[zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWzubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjSzubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjxzh]hconst struct device_driver *drv}(hjzzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjrzubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzhKhjzubah}(h]h ]h"]h$]h&]uh1jhjrzubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjozubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjzh]h#const struct driver_attribute *attr}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjzubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjozubeh}(h]h ]h"]h$]h&]uh1jhjSzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_remove_file (C function)c.driver_remove_filehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h^void driver_remove_file (const struct device_driver *drv, const struct driver_attribute *attr)h]h)}(h]void driver_remove_file(const struct device_driver *drv, const struct driver_attribute *attr)h](j8)}(hvoidh]hvoid}(hj {hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj{hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hKubj")}(hdriver_remove_fileh]j()}(hdriver_remove_fileh]hdriver_remove_file}(hj,{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj({ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj{hhhj{hKubj8)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjH{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD{ubj)}(h h]h }(hjU{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD{ubh)}(hjh]hstruct}(hjc{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjD{ubj)}(h h]h }(hjp{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD{ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~{ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj{modnameN classnameNj@9jC9)}jF9]jI9)}j<9j.{sbc.driver_remove_fileasbuh1hhjD{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD{ubj]9)}(hj`9h]h*}(hj{hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjD{ubj()}(hdrvh]hdrv}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjD{ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj@{ubj9)}(h#const struct driver_attribute *attrh](h)}(hj9h]hconst}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj |ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj|modnameN classnameNj@9jC9)}jF9]j{c.driver_remove_fileasbuh1hhj{ubj)}(h h]h }(hj,|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj]9)}(hj`9h]h*}(hj:|hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj{ubj()}(hattrh]hattr}(hjG|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj@{ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj{hhhj{hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj{hhhj{hKubah}(h]jzah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj{hKhj{hhubjV)}(hhh]j[)}(hremove sysfs file for driver.h]hremove sysfs file for driver.}(hjq|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjn|hhubah}(h]h ]h"]h$]h&]uh1jUhj{hhhj{hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj|j{j|j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct device_driver *drv`` driver. ``const struct driver_attribute *attr`` driver attribute descriptor.h](j[)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj|ubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hj|h]hconst struct device_driver *drv}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj|ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|hKhj|ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|hKhj|ubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hj|h]h#const struct driver_attribute *attr}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj|ubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj}ubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhj}hKhj|ubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_register (C function)c.driver_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h/int driver_register (struct device_driver *drv)h]h)}(h.int driver_register(struct device_driver *drv)h](j8)}(hinth]hint}(hjE}hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjA}hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hjT}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA}hhhjS}hKubj")}(hdriver_registerh]j()}(hdriver_registerh]hdriver_register}(hjf}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjb}ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjA}hhhjS}hKubj8)}(h(struct device_driver *drv)h]j9)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~}ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj}modnameN classnameNj@9jC9)}jF9]jI9)}j<9jh}sbc.driver_registerasbuh1hhj~}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~}ubj]9)}(hj`9h]h*}(hj}hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj~}ubj()}(hdrvh]hdrv}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjz}ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjA}hhhjS}hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=}hhhjS}hKubah}(h]j8}ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjS}hKhj:}hhubjV)}(hhh]j[)}(hregister driver with bush]hregister driver with bus}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj~hhubah}(h]h ]h"]h$]h&]uh1jUhj:}hhhjS}hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj~j{j~j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device_driver *drv`` driver to register **Description** We pass off most of the work to the bus_add_driver() call, since most of the things we have to do deal with the bus structures.h](j[)}(h**Parameters**h]j)}(hj'~h]h Parameters}(hj)~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%~ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj!~ubj)}(hhh]j)}(h1``struct device_driver *drv`` driver to register h](j)}(h``struct device_driver *drv``h]j)}(hjF~h]hstruct device_driver *drv}(hjH~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD~ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj@~ubj)}(hhh]j[)}(hdriver to registerh]hdriver to register}(hj_~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj[~hKhj\~ubah}(h]h ]h"]h$]h&]uh1jhj@~ubeh}(h]h ]h"]h$]h&]uh1jhj[~hKhj=~ubah}(h]h ]h"]h$]h&]uh1jhj!~ubj[)}(h**Description**h]j)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj!~ubj[)}(hWe pass off most of the work to the bus_add_driver() call, since most of the things we have to do deal with the bus structures.h]hWe pass off most of the work to the bus_add_driver() call, since most of the things we have to do deal with the bus structures.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj!~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_unregister (C function)c.driver_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h2void driver_unregister (struct device_driver *drv)h]h)}(h1void driver_unregister(struct device_driver *drv)h](j8)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj~hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhj~hM ubj")}(hdriver_unregisterh]j()}(hdriver_unregisterh]hdriver_unregister}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj~hhhj~hM ubj8)}(h(struct device_driver *drv)h]j9)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj#modnameN classnameNj@9jC9)}jF9]jI9)}j<9j~sbc.driver_unregisterasbuh1hhj~ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj]9)}(hj`9h]h*}(hjOhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj~ubj()}(hdrvh]hdrv}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj~ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj~hhhj~hM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj~hhhj~hM ubah}(h]j~ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~hM hj~hhubjV)}(hhh]j[)}(hremove driver from system.h]hremove driver from system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjhhubah}(h]h ]h"]h$]h&]uh1jUhj~hhhj~hM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device_driver *drv`` driver. **Description** Again, we pass off most of the work to the bus-level call.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjubj)}(hhh]j)}(h&``struct device_driver *drv`` driver. h](j)}(h``struct device_driver *drv``h]j)}(hjh]hstruct device_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjubj[)}(h:Again, we pass off most of the work to the bus-level call.h]h:Again, we pass off most of the work to the bus-level call.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%device_link_wait_removal (C function)c.device_link_wait_removalhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h$void device_link_wait_removal (void)h]h)}(h#void device_link_wait_removal(void)h](j8)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjChhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMubj")}(hdevice_link_wait_removalh]j()}(hdevice_link_wait_removalh]hdevice_link_wait_removal}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjUhMubj8)}(h(void)h]j9)}(hvoidh]j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj|ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjChhhjUhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj?hhhjUhMubah}(h]j:ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjUhMhj<hhubjV)}(hhh]j[)}(h2Wait for ongoing devlink removal jobs to terminateh]h2Wait for ongoing devlink removal jobs to terminate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj<hhhjUhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjƀj{jƀj|j}j~uh1hhhhj]hNhNubj)}(h'**Parameters** ``void`` no argumentsh](j[)}(h**Parameters**h]j)}(hjЀh]h Parameters}(hjҀhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj΀ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM!hjʀubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM#hjubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjʀubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link_add (C function)c.device_link_addhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hbstruct device_link * device_link_add (struct device *consumer, struct device *supplier, u32 flags)h]h)}(h`struct device_link *device_link_add(struct device *consumer, struct device *supplier, u32 flags)h](h)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubh)}(hhh]j()}(h device_linkh]h device_link}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9device_link_addsbc.device_link_addasbuh1hhjEhhhjVhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjEhhhjVhMubj")}(hdevice_link_addh]j()}(hjh]hdevice_link_add}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjEhhhjVhMubj8)}(h=(struct device *consumer, struct device *supplier, u32 flags)h](j9)}(hstruct device *consumerh](h)}(hjh]hstruct}(hjÁhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjЁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjށubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_link_addasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hconsumerh]hconsumer}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *supplierh](h)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j()}(hdeviceh]hdevice}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjSmodnameN classnameNj@9jC9)}jF9]jc.device_link_addasbuh1hhj/ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj]9)}(hj`9h]h*}(hj}hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj/ubj()}(hsupplierh]hsupplier}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h u32 flagsh](h)}(hhh]j()}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_link_addasbuh1hhjubj)}(h h]h }(hjĂhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hflagsh]hflags}(hj҂hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjEhhhjVhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjAhhhjVhMubah}(h]j<ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjVhMhj>hhubjV)}(hhh]j[)}(h"Create a link between two devices.h]h"Create a link between two devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj>hhhjVhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX **Parameters** ``struct device *consumer`` Consumer end of the link. ``struct device *supplier`` Supplier end of the link. ``u32 flags`` Link flags. **Return** On success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned. **Description** The caller is responsible for the proper synchronization of the link creation with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the runtime PM framework to take the link into account. Second, if the DL_FLAG_RPM_ACTIVE flag is set in addition to it, the supplier devices will be forced into the active meta state and reference-counted upon the creation of the link. If DL_FLAG_PM_RUNTIME is not set, DL_FLAG_RPM_ACTIVE will be ignored. If DL_FLAG_STATELESS is set in **flags**, the caller of this function is expected to release the link returned by it directly with the help of either device_link_del() or device_link_remove(). If that flag is not set, however, the caller of this function is handing the management of the link over to the driver core entirely and its return value can only be used to check whether or not the link is present. In that case, the DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER device link flags can be used to indicate to the driver core when the link can be safely deleted. Namely, setting one of them in **flags** indicates to the driver core that the link is not going to be used (by the given caller of this function) after unbinding the consumer or supplier driver, respectively, from its device, so the link can be deleted at that point. If none of them is set, the link will be maintained until one of the devices pointed to by it (either the consumer or the supplier) is unregistered. Also, if DL_FLAG_STATELESS, DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER are not set in **flags** (that is, a persistent managed device link is being added), the DL_FLAG_AUTOPROBE_CONSUMER flag can be used to request the driver core to automatically probe for a consumer driver after successfully binding a driver to the supplier device. The combination of DL_FLAG_STATELESS and one of DL_FLAG_AUTOREMOVE_CONSUMER, DL_FLAG_AUTOREMOVE_SUPPLIER, or DL_FLAG_AUTOPROBE_CONSUMER set in **flags** at the same time is invalid and will cause NULL to be returned upfront. However, if a device link between the given **consumer** and **supplier** pair exists already when this function is called for them, the existing link will be returned regardless of its current type and status (the link's flags may be modified then). The caller of this function is then expected to treat the link as though it has just been created, so (in particular) if DL_FLAG_STATELESS was passed in **flags**, the link needs to be released explicitly when not needed any more (as stated above). A side effect of the link creation is re-ordering of dpm_list and the devices_kset list by moving the consumer device and all devices depending on it to the ends of these lists (that does not happen to devices that have not been registered when this function is called). The supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h6``struct device *consumer`` Consumer end of the link. h](j)}(h``struct device *consumer``h]j)}(hj=h]hstruct device *consumer}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj7ubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhMhj4ubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjvh]hstruct device *supplier}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjpubj)}(hhh]j[)}(hSupplier end of the link.h]hSupplier end of the link.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhMhj4ubj)}(h``u32 flags`` Link flags. h](j)}(h ``u32 flags``h]j)}(hjh]h u32 flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h Link flags.h]h Link flags.}(hjȃhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjăhMhjŃubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjăhMhj4ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hlOn success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned.h]hlOn success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXThe caller is responsible for the proper synchronization of the link creation with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the runtime PM framework to take the link into account. Second, if the DL_FLAG_RPM_ACTIVE flag is set in addition to it, the supplier devices will be forced into the active meta state and reference-counted upon the creation of the link. If DL_FLAG_PM_RUNTIME is not set, DL_FLAG_RPM_ACTIVE will be ignored.h]hXThe caller is responsible for the proper synchronization of the link creation with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the runtime PM framework to take the link into account. Second, if the DL_FLAG_RPM_ACTIVE flag is set in addition to it, the supplier devices will be forced into the active meta state and reference-counted upon the creation of the link. If DL_FLAG_PM_RUNTIME is not set, DL_FLAG_RPM_ACTIVE will be ignored.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hIf DL_FLAG_STATELESS is set in **flags**, the caller of this function is expected to release the link returned by it directly with the help of either device_link_del() or device_link_remove().h](hIf DL_FLAG_STATELESS is set in }(hj6hhhNhNubj)}(h **flags**h]hflags}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh, the caller of this function is expected to release the link returned by it directly with the help of either device_link_del() or device_link_remove().}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hX,If that flag is not set, however, the caller of this function is handing the management of the link over to the driver core entirely and its return value can only be used to check whether or not the link is present. In that case, the DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER device link flags can be used to indicate to the driver core when the link can be safely deleted. Namely, setting one of them in **flags** indicates to the driver core that the link is not going to be used (by the given caller of this function) after unbinding the consumer or supplier driver, respectively, from its device, so the link can be deleted at that point. If none of them is set, the link will be maintained until one of the devices pointed to by it (either the consumer or the supplier) is unregistered.h](hXIf that flag is not set, however, the caller of this function is handing the management of the link over to the driver core entirely and its return value can only be used to check whether or not the link is present. In that case, the DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER device link flags can be used to indicate to the driver core when the link can be safely deleted. Namely, setting one of them in }(hjWhhhNhNubj)}(h **flags**h]hflags}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubhXz indicates to the driver core that the link is not going to be used (by the given caller of this function) after unbinding the consumer or supplier driver, respectively, from its device, so the link can be deleted at that point. If none of them is set, the link will be maintained until one of the devices pointed to by it (either the consumer or the supplier) is unregistered.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hX`Also, if DL_FLAG_STATELESS, DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER are not set in **flags** (that is, a persistent managed device link is being added), the DL_FLAG_AUTOPROBE_CONSUMER flag can be used to request the driver core to automatically probe for a consumer driver after successfully binding a driver to the supplier device.h](hgAlso, if DL_FLAG_STATELESS, DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER are not set in }(hjxhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubh (that is, a persistent managed device link is being added), the DL_FLAG_AUTOPROBE_CONSUMER flag can be used to request the driver core to automatically probe for a consumer driver after successfully binding a driver to the supplier device.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXThe combination of DL_FLAG_STATELESS and one of DL_FLAG_AUTOREMOVE_CONSUMER, DL_FLAG_AUTOREMOVE_SUPPLIER, or DL_FLAG_AUTOPROBE_CONSUMER set in **flags** at the same time is invalid and will cause NULL to be returned upfront. However, if a device link between the given **consumer** and **supplier** pair exists already when this function is called for them, the existing link will be returned regardless of its current type and status (the link's flags may be modified then). The caller of this function is then expected to treat the link as though it has just been created, so (in particular) if DL_FLAG_STATELESS was passed in **flags**, the link needs to be released explicitly when not needed any more (as stated above).h](hThe combination of DL_FLAG_STATELESS and one of DL_FLAG_AUTOREMOVE_CONSUMER, DL_FLAG_AUTOREMOVE_SUPPLIER, or DL_FLAG_AUTOPROBE_CONSUMER set in }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhu at the same time is invalid and will cause NULL to be returned upfront. However, if a device link between the given }(hjhhhNhNubj)}(h **consumer**h]hconsumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **supplier**h]hsupplier}(hjńhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXN pair exists already when this function is called for them, the existing link will be returned regardless of its current type and status (the link’s flags may be modified then). The caller of this function is then expected to treat the link as though it has just been created, so (in particular) if DL_FLAG_STATELESS was passed in }(hjhhhNhNubj)}(h **flags**h]hflags}(hjׄhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhV, the link needs to be released explicitly when not needed any more (as stated above).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXA side effect of the link creation is re-ordering of dpm_list and the devices_kset list by moving the consumer device and all devices depending on it to the ends of these lists (that does not happen to devices that have not been registered when this function is called).h]hXA side effect of the link creation is re-ordering of dpm_list and the devices_kset list by moving the consumer device and all devices depending on it to the ends of these lists (that does not happen to devices that have not been registered when this function is called).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hThe supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.h]hThe supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link_del (C function)c.device_link_delhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h/void device_link_del (struct device_link *link)h]h)}(h.void device_link_del(struct device_link *link)h](j8)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj*hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj")}(hdevice_link_delh]j()}(hdevice_link_delh]hdevice_link_del}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj*hhhj<hMubj8)}(h(struct device_link *link)h]j9)}(hstruct device_link *linkh](h)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(h device_linkh]h device_link}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jQsbc.device_link_delasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjgubj()}(hlinkh]hlink}(hjąhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjcubah}(h]h ]h"]h$]h&]j?j@uh1j8hj*hhhj<hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj&hhhj<hMubah}(h]j!ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj<hMhj#hhubjV)}(hhh]j[)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj#hhhj<hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXt**Parameters** ``struct device_link *link`` Device link to delete. **Description** The caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to be deleted as often. Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del() is then no longer allowed.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj)}(hhh]j)}(h4``struct device_link *link`` Device link to delete. h](j)}(h``struct device_link *link``h]j)}(hj/h]hstruct device_link *link}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj)ubj)}(hhh]j[)}(hDevice link to delete.h]hDevice link to delete.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj[)}(hXThe caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to be deleted as often. Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del() is then no longer allowed.h]hXThe caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to be deleted as often. Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del() is then no longer allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link_remove (C function)c.device_link_removehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hAvoid device_link_remove (void *consumer, struct device *supplier)h]h)}(h@void device_link_remove(void *consumer, struct device *supplier)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_link_removeh]j()}(hdevice_link_removeh]hdevice_link_remove}(hjІhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̆ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h)(void *consumer, struct device *supplier)h](j9)}(hvoid *consumerh](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hconsumerh]hconsumer}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *supplierh](h)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j()}(hdeviceh]hdevice}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjNmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j҆sbc.device_link_removeasbuh1hhj*ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj]9)}(hj`9h]h*}(hjzhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj*ubj()}(hsupplierh]hsupplier}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjɇj{jɇj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``void *consumer`` Consumer end of the link. ``struct device *supplier`` Supplier end of the link. **Description** The caller must ensure proper synchronization of this function with runtime PM.h](j[)}(h**Parameters**h]j)}(hjӇh]h Parameters}(hjՇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjчubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj͇ubj)}(hhh](j)}(h-``void *consumer`` Consumer end of the link. h](j)}(h``void *consumer``h]j)}(hjh]hvoid *consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hj+h]hstruct device *supplier}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj%ubj)}(hhh]j[)}(hSupplier end of the link.h]hSupplier end of the link.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjubeh}(h]h ]h"]h$]h&]uh1jhj͇ubj[)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj͇ubj[)}(hOThe caller must ensure proper synchronization of this function with runtime PM.h]hOThe caller must ensure proper synchronization of this function with runtime PM.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj͇ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_driver_string (C function)c.dev_driver_stringhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h9const char * dev_driver_string (const struct device *dev)h]h)}(h7const char *dev_driver_string(const struct device *dev)h](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMV ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMV ubj8)}(hcharh]hchar}(hjLjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhhjhMV ubj)}(h h]h }(hjՈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMV ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhMV ubj")}(hdev_driver_stringh]j()}(hdev_driver_stringh]hdev_driver_string}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMV ubj8)}(h(const struct device *dev)h]j9)}(hconst struct device *devh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hjh]hstruct}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hdeviceh]hdevice}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjKmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dev_driver_stringasbuh1hhj ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj]9)}(hj`9h]h*}(hjwhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMV ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMV ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMV hjhhubjV)}(hhh]j[)}(h1Return a device's driver name, if at all possibleh]h3Return a device’s driver name, if at all possible}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMV hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMV ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjƉj{jƉj|j}j~uh1hhhhj]hNhNubj)}(hXM**Parameters** ``const struct device *dev`` struct device to get the name of **Description** Will return the device's driver's name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.h](j[)}(h**Parameters**h]j)}(hjЉh]h Parameters}(hj҉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΉubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMZ hjʉubj)}(hhh]j)}(h>``const struct device *dev`` struct device to get the name of h](j)}(h``const struct device *dev``h]j)}(hjh]hconst struct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMW hjubj)}(hhh]j[)}(h struct device to get the name ofh]h struct device to get the name of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMW hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMW hjubah}(h]h ]h"]h$]h&]uh1jhjʉubj[)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMY hjʉubj[)}(hWill return the device's driver's name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.h]hWill return the device’s driver’s name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMX hjʉubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_device_add_group (C function)c.devm_device_add_grouphNtauh1hhj]hhhNhNubh)}(hhh](h)}(hQint devm_device_add_group (struct device *dev, const struct attribute_group *grp)h]h)}(hPint devm_device_add_group(struct device *dev, const struct attribute_group *grp)h](j8)}(hinth]hint}(hjohhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjkhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM/ ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhj}hM/ ubj")}(hdevm_device_add_grouph]j()}(hdevm_device_add_grouph]hdevm_device_add_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjkhhhj}hM/ ubj8)}(h7(struct device *dev, const struct attribute_group *grp)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjʊhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNJubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj̊modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.devm_device_add_groupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h!const struct attribute_group *grph](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjYmodnameN classnameNj@9jC9)}jF9]jc.devm_device_add_groupasbuh1hhjubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hgrph]hgrp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjkhhhj}hM/ ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjghhhj}hM/ ubah}(h]jbah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj}hM/ hjdhhubjV)}(hhh]j[)}(h0given a device, create a managed attribute grouph]h0given a device, create a managed attribute group}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM/ hjhhubah}(h]h ]h"]h$]h&]uh1jUhjdhhhj}hM/ ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjҋj{jҋj|j}j~uh1hhhhj]hNhNubj)}(hXd**Parameters** ``struct device *dev`` The device to create the group for ``const struct attribute_group *grp`` The attribute group to create **Description** This function creates a group for the first time. It will explicitly warn and error if any of the attribute files being created already exist. Returns 0 on success or error code on failure.h](j[)}(h**Parameters**h]j)}(hj܋h]h Parameters}(hjދhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڋubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM3 hj֋ubj)}(hhh](j)}(h:``struct device *dev`` The device to create the group for h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0 hjubj)}(hhh]j[)}(h"The device to create the group forh]h"The device to create the group for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM0 hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0 hjubj)}(hD``const struct attribute_group *grp`` The attribute group to create h](j)}(h%``const struct attribute_group *grp``h]j)}(hj4h]h!const struct attribute_group *grp}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM1 hj.ubj)}(hhh]j[)}(hThe attribute group to createh]hThe attribute group to create}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhM1 hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM1 hjubeh}(h]h ]h"]h$]h&]uh1jhj֋ubj[)}(h**Description**h]j)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM3 hj֋ubj[)}(hThis function creates a group for the first time. It will explicitly warn and error if any of the attribute files being created already exist.h]hThis function creates a group for the first time. It will explicitly warn and error if any of the attribute files being created already exist.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM2 hj֋ubj[)}(h.Returns 0 on success or error code on failure.h]h.Returns 0 on success or error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM5 hj֋ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_create_file (C function)c.device_create_filehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hPint device_create_file (struct device *dev, const struct device_attribute *attr)h]h)}(hOint device_create_file(struct device *dev, const struct device_attribute *attr)h](j8)}(hinth]hint}(hjÌhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjҌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjьhM ubj")}(hdevice_create_fileh]j()}(hdevice_create_fileh]hdevice_create_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjьhM ubj8)}(h9(struct device *dev, const struct device_attribute *attr)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_create_fileasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjLhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h#const struct device_attribute *attrh](h)}(hj9h]hconst}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j:c.device_create_fileasbuh1hhjnubj)}(h h]h }(hjɍhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj]9)}(hj`9h]h*}(hj׍hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjnubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjьhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjьhM ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjьhM hjhhubjV)}(hhh]j[)}(h'create sysfs attribute file for device.h]h'create sysfs attribute file for device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjьhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhj]hNhNubj)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor.h](j[)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj*ubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjOh]hstruct device *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjIubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhM hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjFubj)}(hD``const struct device_attribute *attr`` device attribute descriptor.h](j)}(h'``const struct device_attribute *attr``h]j)}(hjh]h#const struct device_attribute *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjFubeh}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_remove_file (C function)c.device_remove_filehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hQvoid device_remove_file (struct device *dev, const struct device_attribute *attr)h]h)}(hPvoid device_remove_file(struct device *dev, const struct device_attribute *attr)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjގhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގhhhjhM ubj")}(hdevice_remove_fileh]j()}(hdevice_remove_fileh]hdevice_remove_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjގhhhjhM ubj8)}(h9(struct device *dev, const struct device_attribute *attr)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj?modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_remove_fileasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjkhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h#const struct device_attribute *attrh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjʏhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjǏubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj̏modnameN classnameNj@9jC9)}jF9]jYc.device_remove_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjގhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjڎhhhjhM ubah}(h]jՎah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hj׎hhubjV)}(hhh]j[)}(hremove sysfs attribute file.h]hremove sysfs attribute file.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj*hhubah}(h]h ]h"]h$]h&]uh1jUhj׎hhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjEj{jEj|j}j~uh1hhhhj]hNhNubj)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor.h](j[)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjIubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjnh]hstruct device *dev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjhubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhM hjeubj)}(hD``const struct device_attribute *attr`` device attribute descriptor.h](j)}(h'``const struct device_attribute *attr``h]j)}(hjh]h#const struct device_attribute *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjeubeh}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$device_remove_file_self (C function)c.device_remove_file_selfhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hVbool device_remove_file_self (struct device *dev, const struct device_attribute *attr)h]h)}(hUbool device_remove_file_self(struct device *dev, const struct device_attribute *attr)h](j8)}(hj;h]hbool}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj")}(hdevice_remove_file_selfh]j()}(hdevice_remove_file_selfh]hdevice_remove_file_self}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM ubj8)}(h9(struct device *dev, const struct device_attribute *attr)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j()}(hdeviceh]hdevice}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj]modnameN classnameNj@9jC9)}jF9]jI9)}j<9j#sbc.device_remove_file_selfasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj9ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj5ubj9)}(h#const struct device_attribute *attrh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjʑhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjבhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jwc.device_remove_file_selfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hattrh]hattr}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj5ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hjhhubjV)}(hhh]j[)}(h0remove sysfs attribute file from its own method.h]h0remove sysfs attribute file from its own method.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjHhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjcj{jcj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor. **Description** See kernfs_remove_self() for details.h](j[)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjgubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hE``const struct device_attribute *attr`` device attribute descriptor. h](j)}(h'``const struct device_attribute *attr``h]j)}(hjŒh]h#const struct device_attribute *attr}(hjǒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjÒubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjޒhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjڒhM hjےubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڒhM hjubeh}(h]h ]h"]h$]h&]uh1jhjgubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjgubj[)}(h%See kernfs_remove_self() for details.h]h%See kernfs_remove_self() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#device_create_bin_file (C function)c.device_create_bin_filehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hQint device_create_bin_file (struct device *dev, const struct bin_attribute *attr)h]h)}(hPint device_create_bin_file(struct device *dev, const struct bin_attribute *attr)h](j8)}(hinth]hint}(hjEhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjAhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShM ubj")}(hdevice_create_bin_fileh]j()}(hdevice_create_bin_fileh]hdevice_create_bin_file}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjAhhhjShM ubj8)}(h6(struct device *dev, const struct bin_attribute *attr)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jhsbc.device_create_bin_fileasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj]9)}(hj`9h]h*}(hjΓhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj~ubj()}(hdevh]hdev}(hjۓhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjzubj9)}(h const struct bin_attribute *attrh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h bin_attributeh]h bin_attribute}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj/modnameN classnameNj@9jC9)}jF9]jc.device_create_bin_fileasbuh1hhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjYhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hattrh]hattr}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjzubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjAhhhjShM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=hhhjShM ubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjShM hj:hhubjV)}(hhh]j[)}(h.create sysfs binary attribute file for device.h]h.create sysfs binary attribute file for device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjhhubah}(h]h ]h"]h$]h&]uh1jUhj:hhhjShM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjєh]hstruct device *dev}(hjӔhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϔubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj˔ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhj˔ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjȔubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hj h]h const struct bin_attribute *attr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(h#device binary attribute descriptor.h]h#device binary attribute descriptor.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjȔubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#device_remove_bin_file (C function)c.device_remove_bin_filehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hRvoid device_remove_bin_file (struct device *dev, const struct bin_attribute *attr)h]h)}(hQvoid device_remove_bin_file(struct device *dev, const struct bin_attribute *attr)h](j8)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj`hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM% ubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhM% ubj")}(hdevice_remove_bin_fileh]j()}(hdevice_remove_bin_fileh]hdevice_remove_bin_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhjrhM% ubj8)}(h6(struct device *dev, const struct bin_attribute *attr)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_remove_bin_fileasbuh1hhjubj)}(h h]h }(hjߕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h const struct bin_attribute *attrh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h bin_attributeh]h bin_attribute}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjNmodnameN classnameNj@9jC9)}jF9]jەc.device_remove_bin_fileasbuh1hhjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjxhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj`hhhjrhM% ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj\hhhjrhM% ubah}(h]jWah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjrhM% hjYhhubjV)}(hhh]j[)}(h"remove sysfs binary attribute fileh]h"remove sysfs binary attribute file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM% hjhhubah}(h]h ]h"]h$]h&]uh1jUhjYhhhjrhM% ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjǖj{jǖj|j}j~uh1hhhhj]hNhNubj)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.h](j[)}(h**Parameters**h]j)}(hjіh]h Parameters}(hjӖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjϖubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM) hj˖ubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM& hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM& hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM& hjubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hj)h]h const struct bin_attribute *attr}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM( hj#ubj)}(hhh]j[)}(h#device binary attribute descriptor.h]h#device binary attribute descriptor.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM' hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hM( hjubeh}(h]h ]h"]h$]h&]uh1jhj˖ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_initialize (C function)c.device_initializehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h+void device_initialize (struct device *dev)h]h)}(h*void device_initialize(struct device *dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMB ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMB ubj")}(hdevice_initializeh]j()}(hdevice_initializeh]hdevice_initialize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMB ubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj͗hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjޗhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjۗubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_initializeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMB ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj{hhhjhMB ubah}(h]jvah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMB hjxhhubjV)}(hhh]j[)}(hinit device structure.h]hinit device structure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMB hj@hhubah}(h]h ]h"]h$]h&]uh1jUhjxhhhjhMB ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj[j{j[j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` device. **Description** This prepares the device for use by other layers by initializing its fields. It is the first half of device_register(), if called by that function, though it can also be called separately, so one may use **dev**'s fields. In particular, get_device()/put_device() may be used for reference counting of **dev** after calling this function. All fields in **dev** must be initialized by the caller to 0, except for those explicitly set to some other value. The simplest approach is to use kzalloc() to allocate the structure containing **dev**. **NOTE** Use put_device() to give up your reference instead of freeing **dev** directly once you have called this function.h](j[)}(h**Parameters**h]j)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMF hj_ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMC hj~ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMC hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMC hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chME hj_ubj[)}(hXQThis prepares the device for use by other layers by initializing its fields. It is the first half of device_register(), if called by that function, though it can also be called separately, so one may use **dev**'s fields. In particular, get_device()/put_device() may be used for reference counting of **dev** after calling this function.h](hThis prepares the device for use by other layers by initializing its fields. It is the first half of device_register(), if called by that function, though it can also be called separately, so one may use }(hj՘hhhNhNubj)}(h**dev**h]hdev}(hjݘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj՘ubh\’s fields. In particular, get_device()/put_device() may be used for reference counting of }(hj՘hhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj՘ubh after calling this function.}(hj՘hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMD hj_ubj[)}(hAll fields in **dev** must be initialized by the caller to 0, except for those explicitly set to some other value. The simplest approach is to use kzalloc() to allocate the structure containing **dev**.h](hAll fields in }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be initialized by the caller to 0, except for those explicitly set to some other value. The simplest approach is to use kzalloc() to allocate the structure containing }(hjhhhNhNubj)}(h**dev**h]hdev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chML hj_ubj[)}(h**NOTE**h]j)}(hj=h]hNOTE}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMQ hj_ubj[)}(hrUse put_device() to give up your reference instead of freeing **dev** directly once you have called this function.h](h>Use put_device() to give up your reference instead of freeing }(hjShhhNhNubj)}(h**dev**h]hdev}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubh- directly once you have called this function.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMR hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_set_name (C function)c.dev_set_namehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h;int dev_set_name (struct device *dev, const char *fmt, ...)h]h)}(h:int dev_set_name(struct device *dev, const char *fmt, ...)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj")}(h dev_set_nameh]j()}(h dev_set_nameh]h dev_set_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM ubj8)}(h*(struct device *dev, const char *fmt, ...)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjљhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͙ubj)}(h h]h }(hjޙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͙ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dev_set_nameasbuh1hhj͙ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͙ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj͙ubj()}(hdevh]hdev}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj͙ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjəubj9)}(hconst char *fmth](h)}(hj9h]hconst}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj8)}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj?ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj]9)}(hj`9h]h*}(hjzhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj?ubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjəubj9)}(h...h]j]9)}(h...h]h...}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjəubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hjhhubjV)}(hhh]j[)}(hset a device nameh]hset a device name}(hjʚhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjǚhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *dev`` device ``const char *fmt`` format string for the device's name ``...`` variable argumentsh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh](j)}(h``struct device *dev`` device h](j)}(h``struct device *dev``h]j)}(hj h]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdeviceh]hdevice}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hM hj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(h8``const char *fmt`` format string for the device's name h](j)}(h``const char *fmt``h]j)}(hjDh]hconst char *fmt}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj>ubj)}(hhh]j[)}(h#format string for the device's nameh]h%format string for the device’s name}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhM hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hj}h]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjwubj)}(hhh]j[)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_add (C function) c.device_addhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h#int device_add (struct device *dev)h]h)}(h"int device_add(struct device *dev)h](j8)}(hinth]hint}(hjכhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjӛhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӛhhhjhM ubj")}(h device_addh]j()}(h device_addh]h device_add}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjӛhhhjhM ubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj4modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsb c.device_addasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj`hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjӛhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjϛhhhjhM ubah}(h]jʛah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hj̛hhubjV)}(hhh]j[)}(hadd device to device hierarchy.h]hadd device to device hierarchy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjhhubah}(h]h ]h"]h$]h&]uh1jUhj̛hhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX\**Parameters** ``struct device *dev`` device. **Description** This is part 2 of device_register(), though may be called separately _iff_ device_initialize() has been called separately. This adds **dev** to the kobject hierarchy via kobject_add(), adds it to the global and sibling lists for the device, then adds it to the other relevant subsystems of the driver model. Do not call this routine or device_register() more than once for any device structure. The driver model core is not designed to work with devices that get unregistered and then spring back to life. (Among other things, it's very hard to guarantee that all references to the previous incarnation of **dev** have been dropped.) Allocate and register a fresh new struct device instead. **NOTE** _Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up your reference instead. Rule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has *not* succeeded, use *only* put_device() to drop the reference count.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj؜h]hstruct device *dev}(hjڜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֜ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjҜubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjҜubeh}(h]h ]h"]h$]h&]uh1jhjhM hjϜubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(hzThis is part 2 of device_register(), though may be called separately _iff_ device_initialize() has been called separately.h]hzThis is part 2 of device_register(), though may be called separately _iff_ device_initialize() has been called separately.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(hThis adds **dev** to the kobject hierarchy via kobject_add(), adds it to the global and sibling lists for the device, then adds it to the other relevant subsystems of the driver model.h](h This adds }(hj8hhhNhNubj)}(h**dev**h]hdev}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh to the kobject hierarchy via kobject_add(), adds it to the global and sibling lists for the device, then adds it to the other relevant subsystems of the driver model.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(hXDo not call this routine or device_register() more than once for any device structure. The driver model core is not designed to work with devices that get unregistered and then spring back to life. (Among other things, it's very hard to guarantee that all references to the previous incarnation of **dev** have been dropped.) Allocate and register a fresh new struct device instead.h](hX-Do not call this routine or device_register() more than once for any device structure. The driver model core is not designed to work with devices that get unregistered and then spring back to life. (Among other things, it’s very hard to guarantee that all references to the previous incarnation of }(hjYhhhNhNubj)}(h**dev**h]hdev}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubhN have been dropped.) Allocate and register a fresh new struct device instead.}(hjYhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(h**NOTE**h]j)}(hj|h]hNOTE}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(h_Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up your reference instead.h](h_Never_ directly free }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhv after calling this function, even if it returned an error! Always use put_device() to give up your reference instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(hRule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has *not* succeeded, use *only* put_device() to drop the reference count.h](h}Rule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has }(hjhhhNhNubhemphasis)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh succeeded, use }(hjhhhNhNubj)}(h*only*h]honly}(hjϝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* put_device() to drop the reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_register (C function)c.device_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h(int device_register (struct device *dev)h]h)}(h'int device_register(struct device *dev)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_registerh]j()}(hdevice_registerh]hdevice_register}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubh)}(hhh]j()}(hdeviceh]hdevice}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjemodnameN classnameNj@9jC9)}jF9]jI9)}j<9j+sbc.device_registerasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjAubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj=ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h"register a device with the system.h]h"register a device with the system.}(hjȞhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjŞhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` pointer to the device structure **Description** This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy. For more information, see the kerneldoc for device_initialize() and device_add(). **NOTE** _Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j)}(h7``struct device *dev`` pointer to the device structure h](j)}(h``struct device *dev``h]j)}(hj h]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hpointer to the device structureh]hpointer to the device structure}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hX:This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy.h]hX:This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hQFor more information, see the kerneldoc for device_initialize() and device_add().h]hQFor more information, see the kerneldoc for device_initialize() and device_add().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h**NOTE**h]j)}(hjzh]hNOTE}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h_Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.h](h_Never_ directly free }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_device (C function) c.get_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h/struct device * get_device (struct device *dev)h]h)}(h-struct device *get_device(struct device *dev)h](h)}(hjh]hstruct}(hjџhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj͟hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjߟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͟hhhjޟhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9 get_devicesb c.get_deviceasbuh1hhj͟hhhjޟhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͟hhhjޟhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj͟hhhjޟhMubj")}(h get_deviceh]j()}(hjh]h get_device}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj͟hhhjޟhMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j()}(hdeviceh]hdevice}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjkmodnameN classnameNj@9jC9)}jF9]j c.get_deviceasbuh1hhjGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjGubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjCubah}(h]h ]h"]h$]h&]j?j@uh1j8hj͟hhhjޟhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjɟhhhjޟhMubah}(h]jğah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjޟhMhjƟhhubjV)}(hhh]j[)}(h%increment reference count for device.h]h%increment reference count for device.}(hj̠hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjɠhhubah}(h]h ]h"]h$]h&]uh1jUhjƟhhhjޟhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *dev`` device. **Description** This simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj h]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hThis simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.h]hThis simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hput_device (C function) c.put_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h$void put_device (struct device *dev)h]h)}(h#void put_device(struct device *dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h put_deviceh]j()}(h put_deviceh]h put_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjʡhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjơubj)}(h h]h }(hjסhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjơubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsb c.put_deviceasbuh1hhjơubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjơubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjơubj()}(hdevh]hdev}(hj#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjơubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj¡ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hdecrement reference count.h]hdecrement reference count.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjJhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjej{jej|j}j~uh1hhhhj]hNhNubj)}(h<**Parameters** ``struct device *dev`` device in question.h](j[)}(h**Parameters**h]j)}(hjoh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjiubj)}(hhh]j)}(h*``struct device *dev`` device in question.h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hdevice in question.h]hdevice in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_del (C function) c.device_delhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h$void device_del (struct device *dev)h]h)}(h#void device_del(struct device *dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h device_delh]j()}(h device_delh]h device_del}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j()}(hdeviceh]hdevice}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjEmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j sb c.device_delasbuh1hhj!ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj]9)}(hj`9h]h*}(hjqhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj!ubj()}(hdevh]hdev}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jۢah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjݢhhubjV)}(hhh]j[)}(hdelete device from system.h]hdelete device from system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjݢhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` device. **Description** This is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy. **NOTE** this should be called manually _iff_ device_add() was also called manually.h](j[)}(h**Parameters**h]j)}(hjʣh]h Parameters}(hj̣hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȣubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjģubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjģubj[)}(h**Description**h]j)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjģubj[)}(hThis is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy.h]hThis is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjģubj[)}(h**NOTE**h]j)}(hjKh]hNOTE}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjģubj[)}(hKthis should be called manually _iff_ device_add() was also called manually.h]hKthis should be called manually _iff_ device_add() was also called manually.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjģubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_unregister (C function)c.device_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h+void device_unregister (struct device *dev)h]h)}(h*void device_unregister(struct device *dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMSubj")}(hdevice_unregisterh]j()}(hdevice_unregisterh]hdevice_unregister}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMSubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjͤhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɤubj)}(h h]h }(hjڤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɤubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_unregisterasbuh1hhjɤubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɤubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjɤubj()}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjɤubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjŤubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMSubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMSubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMShjhhubjV)}(hhh]j[)}(hunregister device from system.h]hunregister device from system.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMShjMhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMSubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhj{jhj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` device going away. **Description** We do this in two parts, like we do device_register(). First, we remove it from all the subsystems with device_del(), then we decrement the reference count via put_device(). If that is the final reference count, the device will be cleaned up via device_release() above. Otherwise, the structure will stick around until the final reference to the device is dropped.h](j[)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMWhjlubj)}(hhh]j)}(h*``struct device *dev`` device going away. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMThjubj)}(hhh]j[)}(hdevice going away.h]hdevice going away.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjlubj[)}(h**Description**h]j)}(hj̥h]h Description}(hjΥhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʥubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMVhjlubj[)}(hXlWe do this in two parts, like we do device_register(). First, we remove it from all the subsystems with device_del(), then we decrement the reference count via put_device(). If that is the final reference count, the device will be cleaned up via device_release() above. Otherwise, the structure will stick around until the final reference to the device is dropped.h]hXlWe do this in two parts, like we do device_register(). First, we remove it from all the subsystems with device_del(), then we decrement the reference count via put_device(). If that is the final reference count, the device will be cleaned up via device_release() above. Otherwise, the structure will stick around until the final reference to the device is dropped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMUhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_for_each_child (C function)c.device_for_each_childhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hOint device_for_each_child (struct device *parent, void *data, device_iter_t fn)h]h)}(hNint device_for_each_child(struct device *parent, void *data, device_iter_t fn)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubj")}(hdevice_for_each_childh]j()}(hdevice_for_each_childh]hdevice_for_each_child}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhMubj8)}(h5(struct device *parent, void *data, device_iter_t fn)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j()}(hdeviceh]hdevice}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjnmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j4sbc.device_for_each_childasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjJubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjFubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjΦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjܦhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjFubj9)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_for_each_childasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjFubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj hhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hdevice child iterator.h]hdevice child iterator.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjXhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjsj{jsj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *parent`` parent struct device. ``void *data`` data for the callback. ``device_iter_t fn`` function to be called for each device. **Description** Iterate over **parent**'s child devices, and call **fn** for each, passing it **data**. We check the return of **fn** each time. If it returns anything other than 0, we break out and return that value.h](j[)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjwubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjէh]h void *data}(hjקhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӧubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjϧubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjϧubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubeh}(h]h ]h"]h$]h&]uh1jhjwubj[)}(h**Description**h]j)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjwubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hj_hhhNhNubj)}(h **parent**h]hparent}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh’s child devices, and call }(hj_hhhNhNubj)}(h**fn**h]hfn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh for each, passing it }(hj_hhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjwubj[)}(hqWe check the return of **fn** each time. If it returns anything other than 0, we break out and return that value.h](hWe check the return of }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT each time. If it returns anything other than 0, we break out and return that value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*device_for_each_child_reverse (C function)c.device_for_each_child_reversehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hWint device_for_each_child_reverse (struct device *parent, void *data, device_iter_t fn)h]h)}(hVint device_for_each_child_reverse(struct device *parent, void *data, device_iter_t fn)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_for_each_child_reverseh]j()}(hdevice_for_each_child_reverseh]hdevice_for_each_child_reverse}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h5(struct device *parent, void *data, device_iter_t fn)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjBmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_for_each_child_reverseasbuh1hhjubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjnhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hparenth]hparent}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj٩hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj֩ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj۩modnameN classnameNj@9jC9)}jF9]j\c.device_for_each_child_reverseasbuh1hhjҩubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҩubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjҩubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjݨhhhjhMubah}(h]jبah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjڨhhubjV)}(hhh]j[)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jUhjڨhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjGj{jGj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *parent`` parent struct device. ``void *data`` data for the callback. ``device_iter_t fn`` function to be called for each device. **Description** Iterate over **parent**'s child devices, and call **fn** for each, passing it **data**. We check the return of **fn** each time. If it returns anything other than 0, we break out and return that value.h](j[)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjKubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjph]hstruct device *parent}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjjubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjªhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjܪubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjܪubeh}(h]h ]h"]h$]h&]uh1jhjhMhjgubeh}(h]h ]h"]h$]h&]uh1jhjKubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjKubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hj3hhhNhNubj)}(h **parent**h]hparent}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh’s child devices, and call }(hj3hhhNhNubj)}(h**fn**h]hfn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh for each, passing it }(hj3hhhNhNubj)}(h**data**h]hdata}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjKubj[)}(hqWe check the return of **fn** each time. If it returns anything other than 0, we break out and return that value.h](hWe check the return of }(hjxhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubhT each time. If it returns anything other than 0, we break out and return that value.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/device_for_each_child_reverse_from (C function)$c.device_for_each_child_reverse_fromhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hqint device_for_each_child_reverse_from (struct device *parent, struct device *from, void *data, device_iter_t fn)h]h)}(hpint device_for_each_child_reverse_from(struct device *parent, struct device *from, void *data, device_iter_t fn)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjȫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjǫhMubj")}(h"device_for_each_child_reverse_fromh]j()}(h"device_for_each_child_reverse_fromh]h"device_for_each_child_reverse_from}(hjګhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj֫ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjǫhMubj8)}(hJ(struct device *parent, struct device *from, void *data, device_iter_t fn)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jܫsb$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjBhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hparenth]hparent}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *fromh](h)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j0$c.device_for_each_child_reverse_fromasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjdubj()}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjجhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjԬubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԬubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjԬubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjԬubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j0$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjǫhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjǫhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjǫhMhjhhubjV)}(hhh]j[)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjphhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjǫhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXf**Parameters** ``struct device *parent`` parent struct device. ``struct device *from`` optional starting point in child list ``void *data`` data for the callback. ``device_iter_t fn`` function to be called for each device. **Description** Iterate over **parent**'s child devices, starting at **from**, and call **fn** for each, passing it **data**. This helper is identical to device_for_each_child_reverse() when **from** is NULL. **fn** is checked each iteration. If it returns anything other than 0, iteration stop and that value is returned to the caller of device_for_each_child_reverse_from();h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjͭhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjɭhMhjʭubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjɭhMhjubj)}(h>``struct device *from`` optional starting point in child list h](j)}(h``struct device *from``h]j)}(hjh]hstruct device *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h%optional starting point in child listh]h%optional starting point in child list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hj&h]h void *data}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hj_h]hdevice_iter_t fn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjYubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hIterate over **parent**'s child devices, starting at **from**, and call **fn** for each, passing it **data**. This helper is identical to device_for_each_child_reverse() when **from** is NULL.h](h Iterate over }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ’s child devices, starting at }(hjhhhNhNubj)}(h**from**h]hfrom}(hjʮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hjܮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each, passing it }(hjhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC. This helper is identical to device_for_each_child_reverse() when }(hjhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h**fn** is checked each iteration. If it returns anything other than 0, iteration stop and that value is returned to the caller of device_for_each_child_reverse_from();h](j)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is checked each iteration. If it returns anything other than 0, iteration stop and that value is returned to the caller of device_for_each_child_reverse_from();}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_find_child (C function)c.device_find_childhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hastruct device * device_find_child (struct device *parent, const void *data, device_match_t match)h]h)}(h_struct device *device_find_child(struct device *parent, const void *data, device_match_t match)h](h)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchM ubh)}(hhh]j()}(hdeviceh]hdevice}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjwmodnameN classnameNj@9jC9)}jF9]jI9)}j<9device_find_childsbc.device_find_childasbuh1hhjRhhhjchM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchM ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjRhhhjchM ubj")}(hdevice_find_childh]j()}(hjh]hdevice_find_child}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjRhhhjchM ubj8)}(h?(struct device *parent, const void *data, device_match_t match)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjЯhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̯ubj)}(h h]h }(hjݯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̯ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_find_childasbuh1hhj̯ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̯ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̯ubj()}(hparenth]hparent}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̯ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjȯubj9)}(hconst void *datah](h)}(hj9h]hconst}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj8)}(hvoidh]hvoid}(hj[hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj<ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj]9)}(hj`9h]h*}(hjwhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj<ubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjȯubj9)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_find_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmatchh]hmatch}(hj̰hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjȯubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjRhhhjchM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjNhhhjchM ubah}(h]jIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjchM hjKhhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjhhubah}(h]h ]h"]h$]h&]uh1jUhjKhhhjchM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *parent`` parent struct device ``const void *data`` Data to pass to match function ``device_match_t match`` Callback function to check device **Description** This is similar to the device_for_each_child() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero and a reference to the current device can be obtained, this function will return to the caller and not iterate over any more devices. **NOTE** you will need to drop the reference with put_device() after use.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hj7h]hstruct device *parent}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj1ubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhM hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM hj.ubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hjph]hconst void *data}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjjubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj.ubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjh]hdevice_match_t match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hj±hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hThis is similar to the device_for_each_child() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the device_for_each_child() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjhhhNhNubj)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero and a reference to the current device can be obtained, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero and a reference to the current device can be obtained, this function will return to the caller and not iterate over any more devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h**NOTE**h]j)}(hj,h]hNOTE}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h@you will need to drop the reference with put_device() after use.h]h@you will need to drop the reference with put_device() after use.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__root_device_register (C function)c.__root_device_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hOstruct device * __root_device_register (const char *name, struct module *owner)h]h)}(hMstruct device *__root_device_register(const char *name, struct module *owner)h](h)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9__root_device_registersbc.__root_device_registerasbuh1hhjmhhhj~hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjmhhhj~hMubj")}(h__root_device_registerh]j()}(hjh]h__root_device_register}(hjвhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̲ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjmhhhj~hMubj8)}(h((const char *name, struct module *owner)h](j9)}(hconst char *nameh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj"hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hnameh]hname}(hj/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j()}(hmoduleh]hmodule}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjhmodnameN classnameNj@9jC9)}jF9]jc.__root_device_registerasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjDubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjmhhhj~hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhj~hMubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~hMhjfhhubjV)}(hhh]j[)}(h#allocate and register a root deviceh]h#allocate and register a root device}(hjɳhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjƳhhubah}(h]h ]h"]h$]h&]uh1jUhjfhhhj~hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const char *name`` root device name ``struct module *owner`` owner module of the root device, usually THIS_MODULE **Description** This function allocates a root device and registers it using device_register(). In order to free the returned device, use root_device_unregister(). Root devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name} The /sys/devices/{name} directory will also contain a 'module' symlink which points to the **owner** directory in sysfs. Returns :c:type:`struct device ` pointer on success, or ERR_PTR() on error. **Note** You probably want to use root_device_register().h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h&``const char *name`` root device name h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hroot device nameh]hroot device name}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``struct module *owner`` owner module of the root device, usually THIS_MODULE h](j)}(h``struct module *owner``h]j)}(hjCh]hstruct module *owner}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj=ubj)}(hhh]j[)}(h4owner module of the root device, usually THIS_MODULEh]h4owner module of the root device, usually THIS_MODULE}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hThis function allocates a root device and registers it using device_register(). In order to free the returned device, use root_device_unregister().h]hThis function allocates a root device and registers it using device_register(). In order to free the returned device, use root_device_unregister().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hRoot devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name}h]hRoot devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hxThe /sys/devices/{name} directory will also contain a 'module' symlink which points to the **owner** directory in sysfs.h](h_The /sys/devices/{name} directory will also contain a ‘module’ symlink which points to the }(hjhhhNhNubj)}(h **owner**h]howner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh directory in sysfs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjӴhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjݴh]h struct device}(hjߴhhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhj۴ubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjӴubh+ pointer on success, or ERR_PTR() on error.}(hjӴhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhjubj[)}(h**Note**h]j)}(hjh]hNote}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h0You probably want to use root_device_register().h]h0You probably want to use root_device_register().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#root_device_unregister (C function)c.root_device_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h0void root_device_unregister (struct device *dev)h]h)}(h/void root_device_unregister(struct device *dev)h](j8)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjHhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjZhMubj")}(hroot_device_unregisterh]j()}(hroot_device_unregisterh]hroot_device_unregister}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjHhhhjZhMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9josbc.root_device_unregisterasbuh1hhjubj)}(h h]h }(hjǵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjյhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjHhhhjZhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjDhhhjZhMubah}(h]j?ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjZhMhjAhhubjV)}(hhh]j[)}(h!unregister and free a root deviceh]h!unregister and free a root device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjAhhhjZhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj$j{j$j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *dev`` device going away **Description** This function unregisters and cleans up a device that was created by root_device_register().h](j[)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj(ubj)}(hhh]j)}(h)``struct device *dev`` device going away h](j)}(h``struct device *dev``h]j)}(hjMh]hstruct device *dev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubj)}(hhh]j[)}(hdevice going awayh]hdevice going away}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj(ubj[)}(h\This function unregisters and cleans up a device that was created by root_device_register().h]h\This function unregisters and cleans up a device that was created by root_device_register().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_create (C function)c.device_createhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct device * device_create (const struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...)h]h)}(hstruct device *device_create(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...)h](h)}(hjh]hstruct}(hjͶhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɶhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0ubj)}(h h]h }(hj۶hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɶhhhjڶhM0ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9 device_createsbc.device_createasbuh1hhjɶhhhjڶhM0ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɶhhhjڶhM0ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjɶhhhjڶhM0ubj")}(h device_createh]j()}(hj h]h device_create}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjɶhhhjڶhM0ubj8)}(hc(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_createasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjCubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubj9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjҷhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjηubj)}(h h]h }(hj߷hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjηubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_createasbuh1hhjηubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjηubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjηubj()}(hparenth]hparent}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjηubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubj9)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjGmodnameN classnameNj@9jC9)}jF9]jc.device_createasbuh1hhj>ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj()}(hdevth]hdevt}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubj9)}(h void *drvdatah](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdrvdatah]hdrvdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubj9)}(hconst char *fmth](h)}(hj9h]hconst}(hj̸hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȸubj)}(h h]h }(hjٸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȸubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjȸubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȸubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjȸubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjȸubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubj9)}(h...h]j]9)}(hjh]h...}(hj)hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj%ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjɶhhhjڶhM0ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjŶhhhjڶhM0ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjڶhM0hj¶hhubjV)}(hhh]j[)}(h,creates a device and registers it with sysfsh]h,creates a device and registers it with sysfs}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0hjOhhubah}(h]h ]h"]h$]h&]uh1jUhj¶hhhjڶhM0ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjjj{jjj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct class *class`` pointer to the struct class that this device should be registered to ``struct device *parent`` pointer to the parent struct device of this new device, if any ``dev_t devt`` the dev_t for the char device to be added ``void *drvdata`` the data to be added to the device for callbacks ``const char *fmt`` string for the device's name ``...`` variable arguments **Description** This function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class. A "dev" file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer. Returns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM4hjnubj)}(hhh](j)}(hc``const struct class *class`` pointer to the struct class that this device should be registered to h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM1hjubj)}(hhh]j[)}(hDpointer to the struct class that this device should be registered toh]hDpointer to the struct class that this device should be registered to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(hY``struct device *parent`` pointer to the parent struct device of this new device, if any h](j)}(h``struct device *parent``h]j)}(hj̹h]hstruct device *parent}(hjιhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʹubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM2hjƹubj)}(hhh]j[)}(h>pointer to the parent struct device of this new device, if anyh]h>pointer to the parent struct device of this new device, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjƹubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(h9``dev_t devt`` the dev_t for the char device to be added h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM3hjubj)}(hhh]j[)}(h)the dev_t for the char device to be addedh]h)the dev_t for the char device to be added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hj>h]h void *drvdata}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM4hj8ubj)}(hhh]j[)}(h0the data to be added to the device for callbacksh]h0the data to be added to the device for callbacks}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjShM4hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM4hjubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjwh]hconst char *fmt}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM5hjqubj)}(hhh]j[)}(hstring for the device's nameh]hstring for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubj)}(hhh]j[)}(hvariable argumentsh]hvariable arguments}(hjɺhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjźhKhjƺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjźhKhjubeh}(h]h ]h"]h$]h&]uh1jhjnubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjnubj[)}(hThis function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class.h]hThis function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM6hjnubj[)}(hXiA "dev" file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer.h]hXmA “dev” file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM9hjnubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hj)h]h struct device}(hj+hhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMAhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjFhMAhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&device_create_with_groups (C function)c.device_create_with_groupshNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct device * device_create_with_groups (const struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...)h]h)}(hstruct device *device_create_with_groups(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...)h](h)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hMSubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9device_create_with_groupssbc.device_create_with_groupsasbuh1hhjmhhhj~hMSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhj~hMSubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjmhhhj~hMSubj")}(hdevice_create_with_groupsh]j()}(hjh]hdevice_create_with_groups}(hjлhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̻ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjmhhhj~hMSubj8)}(h(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj&modnameN classnameNj@9jC9)}jF9]jc.device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjPhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_create_with_groupsasbuh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjrubj()}(hparenth]hparent}(hjͼhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *drvdatah](j8)}(hvoidh]hvoid}(hj.hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj*ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj]9)}(hj`9h]h*}(hjJhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj*ubj()}(hdrvdatah]hdrvdata}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h%const struct attribute_group **groupsh](h)}(hj9h]hconst}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.device_create_with_groupsasbuh1hhjlubj)}(h h]h }(hjǽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj]9)}(hj`9h]h*}(hjսhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjlubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjlubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst char *fmth](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hj#hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj?hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hfmth]hfmt}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h...h]j]9)}(hjh]h...}(hjehhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjaubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjmhhhj~hMSubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhj~hMSubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~hMShjfhhubjV)}(hhh]j[)}(h,creates a device and registers it with sysfsh]h,creates a device and registers it with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMShjhhubah}(h]h ]h"]h$]h&]uh1jUhjfhhhj~hMSubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct class *class`` pointer to the struct class that this device should be registered to ``struct device *parent`` pointer to the parent struct device of this new device, if any ``dev_t devt`` the dev_t for the char device to be added ``void *drvdata`` the data to be added to the device for callbacks ``const struct attribute_group **groups`` NULL-terminated list of attribute groups to be created ``const char *fmt`` string for the device's name ``...`` variable arguments **Description** This function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class. Additional attributes specified in the groups parameter will also be created automatically. A "dev" file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer. Returns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMWhjubj)}(hhh](j)}(hc``const struct class *class`` pointer to the struct class that this device should be registered to h](j)}(h``const struct class *class``h]j)}(hjϾh]hconst struct class *class}(hjѾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMThjɾubj)}(hhh]j[)}(hDpointer to the struct class that this device should be registered toh]hDpointer to the struct class that this device should be registered to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjɾubeh}(h]h ]h"]h$]h&]uh1jhjhMThjƾubj)}(hY``struct device *parent`` pointer to the parent struct device of this new device, if any h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMUhjubj)}(hhh]j[)}(h>pointer to the parent struct device of this new device, if anyh]h>pointer to the parent struct device of this new device, if any}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjƾubj)}(h9``dev_t devt`` the dev_t for the char device to be added h](j)}(h``dev_t devt``h]j)}(hjAh]h dev_t devt}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMVhj;ubj)}(hhh]j[)}(h)the dev_t for the char device to be addedh]h)the dev_t for the char device to be added}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhMVhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMVhjƾubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hjzh]h void *drvdata}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMWhjtubj)}(hhh]j[)}(h0the data to be added to the device for callbacksh]h0the data to be added to the device for callbacks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjƾubj)}(ha``const struct attribute_group **groups`` NULL-terminated list of attribute groups to be created h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMXhjubj)}(hhh]j[)}(h6NULL-terminated list of attribute groups to be createdh]h6NULL-terminated list of attribute groups to be created}(hj̿hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjȿhMXhjɿubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȿhMXhjƾubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMYhjubj)}(hhh]j[)}(hstring for the device's nameh]hstring for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjƾubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hj%h]h...}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubj)}(hhh]j[)}(hvariable argumentsh]hvariable arguments}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjƾubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubj[)}(hThis function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class. Additional attributes specified in the groups parameter will also be created automatically.h]hThis function can be used by char device classes. A struct device will be created in sysfs, registered to the specified class. Additional attributes specified in the groups parameter will also be created automatically.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMZhjubj[)}(hXiA "dev" file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer.h]hXmA “dev” file will be created, showing the dev_t for the device, if the dev_t is not 0,0. If a pointer to a parent struct device is passed in, the newly created struct device will be a child of that device in sysfs. The pointer to the struct device will be returned from the call. Any further sysfs files that might be required can be created using this pointer.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM_hjubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMghjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_destroy (C function)c.device_destroyhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h;void device_destroy (const struct class *class, dev_t devt)h]h)}(h:void device_destroy(const struct class *class, dev_t devt)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM|ubj")}(hdevice_destroyh]j()}(hdevice_destroyh]hdevice_destroy}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM|ubj8)}(h'(const struct class *class, dev_t devt)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj^modnameN classnameNj@9jC9)}jF9]jI9)}j<9j sbc.device_destroyasbuh1hhjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jxc.device_destroyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM|ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM|ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM|hjhhubjV)}(hhh]j[)}(h6removes a device that was created with device_create()h]h6removes a device that was created with device_create()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM|hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM|ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj!j{j!j|j}j~uh1hhhhj]hNhNubj)}(hX)**Parameters** ``const struct class *class`` pointer to the struct class that this device was registered with ``dev_t devt`` the dev_t of the device that was previously registered **Description** This call unregisters and cleans up a device that was created with a call to device_create().h](j[)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj%ubj)}(hhh](j)}(h_``const struct class *class`` pointer to the struct class that this device was registered with h](j)}(h``const struct class *class``h]j)}(hjJh]hconst struct class *class}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM}hjDubj)}(hhh]j[)}(h@pointer to the struct class that this device was registered withh]h@pointer to the struct class that this device was registered with}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_hM}hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM}hjAubj)}(hF``dev_t devt`` the dev_t of the device that was previously registered h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM~hj}ubj)}(hhh]j[)}(h6the dev_t of the device that was previously registeredh]h6the dev_t of the device that was previously registered}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM~hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM~hjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj%ubj[)}(h]This call unregisters and cleans up a device that was created with a call to device_create().h]h]This call unregisters and cleans up a device that was created with a call to device_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_rename (C function)c.device_renamehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj+hMubj8)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j9)}(hconst struct device *devh](h)}(hj9h]hconst}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j@sbc.dev_err_probeasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjVubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRubj9)}(hint errh](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(herrh]herr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRubj9)}(hconst char *fmth](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjShhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hfmth]hfmt}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRubj9)}(h...h]j]9)}(hjh]h...}(hjyhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjuubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj+hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj+hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+hMhjhhubjV)}(hhh]j[)}(h probe error check and log helperh]h probe error check and log helper}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj+hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXk**Parameters** ``const struct device *dev`` the pointer to the struct device ``int err`` error value to test ``const char *fmt`` printf-style format string ``...`` arguments as specified in the format string **Description** This helper implements common pattern present in probe functions for error checking: print debug or error message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence:: if (err != -EPROBE_DEFER) dev_err(dev, ...); else dev_dbg(dev, ...); return err; with:: return dev_err_probe(dev, err, ...); Using this helper in your probe function is totally fine even if **err** is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_err() is the standardized format of the error code, which is emitted symbolically (i.e. you get "EAGAIN" instead of "-35"), and having the error code returned allows more compact error paths. Returns **err**.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h>``const struct device *dev`` the pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hjh]hconst struct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``int err`` error value to test h](j)}(h ``int err``h]j)}(hjh]hint err}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(herror value to testh]herror value to test}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(h/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjUh]hconst char *fmt}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjOubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXjThis helper implements common pattern present in probe functions for error checking: print debug or error message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence::h]hXiThis helper implements common pattern present in probe functions for error checking: print debug or error message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(h`if (err != -EPROBE_DEFER) dev_err(dev, ...); else dev_dbg(dev, ...); return err;h]h`if (err != -EPROBE_DEFER) dev_err(dev, ...); else dev_dbg(dev, ...); return err;}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hwith::h]hwith:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(h$return dev_err_probe(dev, err, ...);h]h$return dev_err_probe(dev, err, ...);}hj sbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXQUsing this helper in your probe function is totally fine even if **err** is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_err() is the standardized format of the error code, which is emitted symbolically (i.e. you get "EAGAIN" instead of "-35"), and having the error code returned allows more compact error paths.h](hAUsing this helper in your probe function is totally fine even if }(hjhhhNhNubj)}(h**err**h]herr}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_err() is the standardized format of the error code, which is emitted symbolically (i.e. you get “EAGAIN” instead of “-35”), and having the error code returned allows more compact error paths.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hReturns **err**.h](hReturns }(hj<hhhNhNubj)}(h**err**h]herr}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubh.}(hj<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_warn_probe (C function)c.dev_warn_probehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hLint dev_warn_probe (const struct device *dev, int err, const char *fmt, ...)h]h)}(hKint dev_warn_probe(const struct device *dev, int err, const char *fmt, ...)h](j8)}(hinth]hint}(hj}hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjyhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubj")}(hdev_warn_probeh]j()}(hdev_warn_probeh]hdev_warn_probe}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjyhhhjhMubj8)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j9)}(hconst struct device *devh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dev_warn_probeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj!hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hint errh](j8)}(hinth]hint}(hjGhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjCubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj()}(herrh]herr}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst char *fmth](h)}(hj9h]hconst}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjxubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h...h]j]9)}(hjh]h...}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjyhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjuhhhjhMubah}(h]jpah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjrhhubjV)}(hhh]j[)}(h probe error check and log helperh]h probe error check and log helper}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjrhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXp**Parameters** ``const struct device *dev`` the pointer to the struct device ``int err`` error value to test ``const char *fmt`` printf-style format string ``...`` arguments as specified in the format string **Description** This helper implements common pattern present in probe functions for error checking: print debug or warning message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence:: if (err != -EPROBE_DEFER) dev_warn(dev, ...); else dev_dbg(dev, ...); return err; with:: return dev_warn_probe(dev, err, ...); Using this helper in your probe function is totally fine even if **err** is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_warn() is the standardized format of the error code, which is emitted symbolically (i.e. you get "EAGAIN" instead of "-35"), and having the error code returned allows more compact error paths. Returns **err**.h](j[)}(h**Parameters**h]j)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h>``const struct device *dev`` the pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hjCh]hconst struct device *dev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj=ubj)}(hhh]j[)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhj:ubj)}(h ``int err`` error value to test h](j)}(h ``int err``h]j)}(hj|h]hint err}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjvubj)}(hhh]j[)}(herror value to testh]herror value to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(h/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj:ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj)h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXlThis helper implements common pattern present in probe functions for error checking: print debug or warning message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence::h]hXkThis helper implements common pattern present in probe functions for error checking: print debug or warning message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence:}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(haif (err != -EPROBE_DEFER) dev_warn(dev, ...); else dev_dbg(dev, ...); return err;h]haif (err != -EPROBE_DEFER) dev_warn(dev, ...); else dev_dbg(dev, ...); return err;}hjNsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hwith::h]hwith:}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(h%return dev_warn_probe(dev, err, ...);h]h%return dev_warn_probe(dev, err, ...);}hjlsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hXRUsing this helper in your probe function is totally fine even if **err** is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_warn() is the standardized format of the error code, which is emitted symbolically (i.e. you get "EAGAIN" instead of "-35"), and having the error code returned allows more compact error paths.h](hAUsing this helper in your probe function is totally fine even if }(hj{hhhNhNubj)}(h**err**h]herr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubhX is known to never be -EPROBE_DEFER. The benefit compared to a normal dev_warn() is the standardized format of the error code, which is emitted symbolically (i.e. you get “EAGAIN” instead of “-35”), and having the error code returned allows more compact error paths.}(hj{hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hReturns **err**.h](hReturns }(hjhhhNhNubj)}(h**err**h]herr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_primary_fwnode (C function)c.set_primary_fwnodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hJvoid set_primary_fwnode (struct device *dev, struct fwnode_handle *fwnode)h]h)}(hIvoid set_primary_fwnode(struct device *dev, struct fwnode_handle *fwnode)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hset_primary_fwnodeh]j()}(hset_primary_fwnodeh]hset_primary_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj:modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.set_primary_fwnodeasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjfhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jTc.set_primary_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h3Change the primary firmware node of a given device.h]h3Change the primary firmware node of a given device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj%j{j%j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` Device to handle. ``struct fwnode_handle *fwnode`` New primary firmware node of the device. **Description** Set the device's firmware node pointer to **fwnode**, but if a secondary firmware node of the device is present, preserve it. Valid fwnode cases are: - primary --> secondary --> -ENODEV - primary --> NULL - secondary --> -ENODEV - NULLh](j[)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj)ubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. h](j)}(h``struct device *dev``h]j)}(hjNh]hstruct device *dev}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjHubj)}(hhh]j[)}(hDevice to handle.h]hDevice to handle.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(hJ``struct fwnode_handle *fwnode`` New primary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h(New primary firmware node of the device.h]h(New primary firmware node of the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj)ubj[)}(h}Set the device's firmware node pointer to **fwnode**, but if a secondary firmware node of the device is present, preserve it.h](h,Set the device’s firmware node pointer to }(hjhhhNhNubj)}(h **fwnode**h]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhI, but if a secondary firmware node of the device is present, preserve it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj)ubj)}(hhh]j)}(hmValid fwnode cases are: - primary --> secondary --> -ENODEV - primary --> NULL - secondary --> -ENODEV - NULLh](j)}(hValid fwnode cases are:h]hValid fwnode cases are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM%hjubj)}(hhh]h bullet_list)}(hhh](h list_item)}(h!primary --> secondary --> -ENODEVh]j[)}(hjh]h!primary --> secondary --> -ENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM#hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hprimary --> NULLh]j[)}(hj3h]hprimary --> NULL}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM$hj1ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hsecondary --> -ENODEVh]j[)}(hjKh]hsecondary --> -ENODEV}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM%hjIubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hNULLh]j[)}(hjbh]hNULL}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM&hj`ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhj*hM#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!set_secondary_fwnode (C function)c.set_secondary_fwnodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hLvoid set_secondary_fwnode (struct device *dev, struct fwnode_handle *fwnode)h]h)}(hKvoid set_secondary_fwnode(struct device *dev, struct fwnode_handle *fwnode)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMIubj")}(hset_secondary_fwnodeh]j()}(hset_secondary_fwnodeh]hset_secondary_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMIubj8)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.set_secondary_fwnodeasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj;hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j)c.set_secondary_fwnodeasbuh1hhj]ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj]ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMIubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMIubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMIhjhhubjV)}(hhh]j[)}(h5Change the secondary firmware node of a given device.h]h5Change the secondary firmware node of a given device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMIhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMIubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX;**Parameters** ``struct device *dev`` Device to handle. ``struct fwnode_handle *fwnode`` New secondary firmware node of the device. **Description** If a primary firmware node of the device is present, set its secondary pointer to **fwnode**. Otherwise, set the device's firmware node pointer to **fwnode**.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMMhjubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. h](j)}(h``struct device *dev``h]j)}(hj#h]hstruct device *dev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMJhjubj)}(hhh]j[)}(hDevice to handle.h]hDevice to handle.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hMJhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMJhjubj)}(hL``struct fwnode_handle *fwnode`` New secondary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hj\h]hstruct fwnode_handle *fwnode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMKhjVubj)}(hhh]j[)}(h*New secondary firmware node of the device.h]h*New secondary firmware node of the device.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhMKhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMMhjubj[)}(hIf a primary firmware node of the device is present, set its secondary pointer to **fwnode**. Otherwise, set the device's firmware node pointer to **fwnode**.h](hRIf a primary firmware node of the device is present, set its secondary pointer to }(hjhhhNhNubj)}(h **fwnode**h]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:. Otherwise, set the device’s firmware node pointer to }(hjhhhNhNubj)}(h **fwnode**h]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMLhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_remove_of_node (C function)c.device_remove_of_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h/void device_remove_of_node (struct device *dev)h]h)}(h.void device_remove_of_node(struct device *dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM^ubj")}(hdevice_remove_of_nodeh]j()}(hdevice_remove_of_nodeh]hdevice_remove_of_node}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM^ubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j()}(hdeviceh]hdevice}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj]modnameN classnameNj@9jC9)}jF9]jI9)}j<9j#sbc.device_remove_of_nodeasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj9ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj5ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM^ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM^hjhhubjV)}(hhh]j[)}(hRemove an of_node from a deviceh]hRemove an of_node from a device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hW**Parameters** ``struct device *dev`` device whose device tree node is being removedh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMbhjubj)}(hhh]j)}(hE``struct device *dev`` device whose device tree node is being removedh](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMdhjubj)}(hhh]j[)}(h.device whose device tree node is being removedh]h.device whose device tree node is being removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_add_of_node (C function)c.device_add_of_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hHint device_add_of_node (struct device *dev, struct device_node *of_node)h]h)}(hGint device_add_of_node(struct device *dev, struct device_node *of_node)h](j8)}(hinth]hint}(hj[hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjWhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMvubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihMvubj")}(hdevice_add_of_nodeh]j()}(hdevice_add_of_nodeh]hdevice_add_of_node}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjWhhhjihMvubj8)}(h1(struct device *dev, struct device_node *of_node)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j~sbc.device_add_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device_node *of_nodeh](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj*modnameN classnameNj@9jC9)}jF9]jc.device_add_of_nodeasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjThhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hof_nodeh]hof_node}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjWhhhjihMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjShhhjihMvubah}(h]jNah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjihMvhjPhhubjV)}(hhh]j[)}(h$Add an of_node to an existing deviceh]h$Add an of_node to an existing device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jUhjPhhhjihMvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *dev`` device whose device tree node is being added ``struct device_node *of_node`` of_node to add **Return** 0 on success or error code on failure.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMzhjubj)}(hhh](j)}(hD``struct device *dev`` device whose device tree node is being added h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMwhjubj)}(hhh]j[)}(h,device whose device tree node is being addedh]h,device whose device tree node is being added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubj)}(h/``struct device_node *of_node`` of_node to add h](j)}(h``struct device_node *of_node``h]j)}(hjh]hstruct device_node *of_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMxhjubj)}(hhh]j[)}(hof_node to addh]hof_node to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h **Return**h]j)}(hj@h]hReturn}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMzhjubj[)}(h&0 on success or error code on failure.h]h&0 on success or error code on failure.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(device_set_of_node_from_dev (C function)c.device_set_of_node_from_devhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hPvoid device_set_of_node_from_dev (struct device *dev, const struct device *dev2)h]h)}(hOvoid device_set_of_node_from_dev(struct device *dev, const struct device *dev2)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_set_of_node_from_devh]j()}(hdevice_set_of_node_from_devh]hdevice_set_of_node_from_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h/(struct device *dev, const struct device *dev2)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.device_set_of_node_from_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst struct device *dev2h](h)}(hj9h]hconst}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j()}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjomodnameN classnameNj@9jC9)}jF9]jc.device_set_of_node_from_devasbuh1hhj0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj0ubj()}(hdev2h]hdev2}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj}hhhjhMubah}(h]jxah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjzhhubjV)}(hhh]j[)}(h(reuse device-tree node of another deviceh]h(reuse device-tree node of another device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjzhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX!**Parameters** ``struct device *dev`` device whose device-tree node is being set ``const struct device *dev2`` device whose device-tree node is being reused **Description** Takes another reference to the new device-tree node after first dropping any reference held to the old node.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(hB``struct device *dev`` device whose device-tree node is being set h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj)}(hhh]j[)}(h*device whose device-tree node is being seth]h*device whose device-tree node is being set}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubj)}(hL``const struct device *dev2`` device whose device-tree node is being reused h](j)}(h``const struct device *dev2``h]j)}(hjJh]hconst struct device *dev2}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubj)}(hhh]j[)}(h-device whose device-tree node is being reusedh]h-device whose device-tree node is being reused}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hlTakes another reference to the new device-tree node after first dropping any reference held to the old node.h]hlTakes another reference to the new device-tree node after first dropping any reference held to the old node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h get_dev_from_fwnode (C function)c.get_dev_from_fwnodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hBstruct device * get_dev_from_fwnode (struct fwnode_handle *fwnode)h]h)}(h@struct device *get_dev_from_fwnode(struct fwnode_handle *fwnode)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9get_dev_from_fwnodesbc.get_dev_from_fwnodeasbuh1hhjhhhjhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhMubj")}(hget_dev_from_fwnodeh]j()}(hjh]hget_dev_from_fwnode}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct fwnode_handle *fwnode)h]j9)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjdmodnameN classnameNj@9jC9)}jF9]jc.get_dev_from_fwnodeasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj@ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hZObtain a reference count of the struct device the struct fwnode_handle is associated with.h]hZObtain a reference count of the struct device the struct fwnode_handle is associated with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct fwnode_handle *fwnode`` The pointer to the struct fwnode_handle to obtain the struct device reference count of. **Description** This function obtains a reference count of the device the device pointer embedded in the struct fwnode_handle points to. Note that the struct device pointer embedded in struct fwnode_handle does *not* have a reference count of the struct device itself. Hence, it is a UAF (and thus a bug) to call this function if the caller can't guarantee that the last reference count of the corresponding struct device is not dropped concurrently. This is possible since struct fwnode_handle has its own reference count and hence can out-live the struct device it is associated with.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j)}(hy``struct fwnode_handle *fwnode`` The pointer to the struct fwnode_handle to obtain the struct device reference count of. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hWThe pointer to the struct fwnode_handle to obtain the struct device reference count of.h]hWThe pointer to the struct fwnode_handle to obtain the struct device reference count of.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hxThis function obtains a reference count of the device the device pointer embedded in the struct fwnode_handle points to.h]hxThis function obtains a reference count of the device the device pointer embedded in the struct fwnode_handle points to.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hNote that the struct device pointer embedded in struct fwnode_handle does *not* have a reference count of the struct device itself.h](hJNote that the struct device pointer embedded in struct fwnode_handle does }(hjghhhNhNubj)}(h*not*h]hnot}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubh4 have a reference count of the struct device itself.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hHence, it is a UAF (and thus a bug) to call this function if the caller can't guarantee that the last reference count of the corresponding struct device is not dropped concurrently.h]hHence, it is a UAF (and thus a bug) to call this function if the caller can’t guarantee that the last reference count of the corresponding struct device is not dropped concurrently.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hThis is possible since struct fwnode_handle has its own reference count and hence can out-live the struct device it is associated with.h]hThis is possible since struct fwnode_handle has its own reference count and hence can out-live the struct device it is associated with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hregister_syscore (C function)c.register_syscorehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h/void register_syscore (struct syscore *syscore)h]h)}(h.void register_syscore(struct syscore *syscore)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(hregister_syscoreh]j()}(hregister_syscoreh]hregister_syscore}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj8)}(h(struct syscore *syscore)h]j9)}(hstruct syscore *syscoreh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hsyscoreh]hsyscore}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj#modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.register_syscoreasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjOhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hsyscoreh]hsyscore}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(h)Register a set of system core operations.h]h)Register a set of system core operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hQ**Parameters** ``struct syscore *syscore`` System core operations to register.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubj)}(hhh]j)}(h?``struct syscore *syscore`` System core operations to register.h](j)}(h``struct syscore *syscore``h]j)}(hjh]hstruct syscore *syscore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubj)}(hhh]j[)}(h#System core operations to register.h]h#System core operations to register.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunregister_syscore (C function)c.unregister_syscorehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h1void unregister_syscore (struct syscore *syscore)h]h)}(h0void unregister_syscore(struct syscore *syscore)h](j8)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hKubj")}(hunregister_syscoreh]j()}(hunregister_syscoreh]hunregister_syscore}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj/hKubj8)}(h(struct syscore *syscore)h]j9)}(hstruct syscore *syscoreh](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(hsyscoreh]hsyscore}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj~modnameN classnameNj@9jC9)}jF9]jI9)}j<9jDsbc.unregister_syscoreasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjZubj()}(hsyscoreh]hsyscore}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjVubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj/hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj/hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj/hKhjhhubjV)}(hhh]j[)}(h+Unregister a set of system core operations.h]h+Unregister a set of system core operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj/hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hS**Parameters** ``struct syscore *syscore`` System core operations to unregister.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK"hjubj)}(hhh]j)}(hA``struct syscore *syscore`` System core operations to unregister.h](j)}(h``struct syscore *syscore``h]j)}(hj"h]hstruct syscore *syscore}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK$hjubj)}(hhh]j[)}(h%System core operations to unregister.h]h%System core operations to unregister.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsyscore_suspend (C function)c.syscore_suspendhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hint syscore_suspend (void)h]h)}(hint syscore_suspend(void)h](j8)}(hinth]hint}(hj|hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjxhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhK+ubj")}(hsyscore_suspendh]j()}(hsyscore_suspendh]hsyscore_suspend}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjxhhhjhK+ubj8)}(h(void)h]j9)}(hvoidh]j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjxhhhjhK+ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjthhhjhK+ubah}(h]joah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK+hjqhhubjV)}(hhh]j[)}(h9Execute all the registered system core suspend callbacks.h]h9Execute all the registered system core suspend callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+hjhhubah}(h]h ]h"]h$]h&]uh1jUhjqhhhjhK+ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``void`` no arguments **Description** This function is executed with one CPU on-line and disabled interrupts.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK/hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj$h]hvoid}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubj[)}(hGThis function is executed with one CPU on-line and disabled interrupts.h]hGThis function is executed with one CPU on-line and disabled interrupts.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsyscore_resume (C function)c.syscore_resumehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hvoid syscore_resume (void)h]h)}(hvoid syscore_resume(void)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKYubj")}(hsyscore_resumeh]j()}(hsyscore_resumeh]hsyscore_resume}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKYubj8)}(h(void)h]j9)}(hvoidh]j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhKYubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKYubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKYhjhhubjV)}(hhh]j[)}(h8Execute all the registered system core resume callbacks.h]h8Execute all the registered system core resume callbacks.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKYhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKYubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj#j{j#j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``void`` no arguments **Description** This function is executed with one CPU on-line and disabled interrupts.h](j[)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK]hj'ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjLh]hvoid}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjFubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahKhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhj'ubj[)}(hGThis function is executed with one CPU on-line and disabled interrupts.h]hGThis function is executed with one CPU on-line and disabled interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKZhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&class_find_device_by_name (C function)c.class_find_device_by_namehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hWstruct device * class_find_device_by_name (const struct class *class, const char *name)h]h)}(hUstruct device *class_find_device_by_name(const struct class *class, const char *name)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKcubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9class_find_device_by_namesbc.class_find_device_by_nameasbuh1hhjhhhjhKcubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKcubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhKcubj")}(hclass_find_device_by_nameh]j()}(hj h]hclass_find_device_by_name}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKcubj8)}(h-(const struct class *class, const char *name)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.class_find_device_by_nameasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjBubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhKcubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKcubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKchjhhubjV)}(hhh]j[)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKchj<hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKcubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjWj{jWj|j}j~uh1hhhhj]hNhNubj)}(hn**Parameters** ``const struct class *class`` class type ``const char *name`` name of the device to matchh](j[)}(h**Parameters**h]j)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKghj[ubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKehjzubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhKehjwubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKghjubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjwubeh}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)class_find_device_by_of_node (C function)c.class_find_device_by_of_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hfstruct device * class_find_device_by_of_node (const struct class *class, const struct device_node *np)h]h)}(hdstruct device *class_find_device_by_of_node(const struct class *class, const struct device_node *np)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKoubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKoubh)}(hhh]j()}(hdeviceh]hdevice}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj4modnameN classnameNj@9jC9)}jF9]jI9)}j<9class_find_device_by_of_nodesbc.class_find_device_by_of_nodeasbuh1hhjhhhj hKoubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKoubj]9)}(hj`9h]h*}(hjahhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhj hKoubj")}(hclass_find_device_by_of_nodeh]j()}(hjPh]hclass_find_device_by_of_node}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hKoubj8)}(h9(const struct class *class, const struct device_node *np)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jNc.class_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst struct device_node *nph](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjSmodnameN classnameNj@9jC9)}jF9]jNc.class_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj}hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hnph]hnp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj hKoubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hKoubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKohjhhubjV)}(hhh]j[)}(hFdevice iterator for locating a particular device matching the of_node.h]hFdevice iterator for locating a particular device matching the of_node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKohjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hKoubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h~**Parameters** ``const struct class *class`` class type ``const struct device_node *np`` of_node of the device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKshjubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKqhjubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKqhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKqhjubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(hj.h]hconst struct device_node *np}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKshj(ubj)}(hhh]j[)}(hof_node of the device to match.h]hof_node of the device to match.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKrhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKshjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(class_find_device_by_fwnode (C function)c.class_find_device_by_fwnodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hkstruct device * class_find_device_by_fwnode (const struct class *class, const struct fwnode_handle *fwnode)h]h)}(histruct device *class_find_device_by_fwnode(const struct class *class, const struct fwnode_handle *fwnode)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK{ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9class_find_device_by_fwnodesbc.class_find_device_by_fwnodeasbuh1hhjhhhjhK{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK{ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhK{ubj")}(hclass_find_device_by_fwnodeh]j()}(hjh]hclass_find_device_by_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhK{ubj8)}(h?(const struct class *class, const struct fwnode_handle *fwnode)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj=modnameN classnameNj@9jC9)}jF9]jc.class_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjghhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h"const struct fwnode_handle *fwnodeh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.class_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhK{ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhK{ubah}(h]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK{hj}hhubjV)}(hhh]j[)}(hEdevice iterator for locating a particular device matching the fwnode.h]hEdevice iterator for locating a particular device matching the fwnode.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK{hj&hhubah}(h]h ]h"]h$]h&]uh1jUhj}hhhjhK{ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjAj{jAj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct class *class`` class type ``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j[)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjEubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjjh]hconst struct class *class}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK}hjdubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK}hjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhK}hjaubj)}(hE``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hjh]h"const struct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]j[)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&class_find_device_by_devt (C function)c.class_find_device_by_devthNtauh1hhj]hhhNhNubh)}(hhh](h)}(hQstruct device * class_find_device_by_devt (const struct class *class, dev_t devt)h]h)}(hOstruct device *class_find_device_by_devt(const struct class *class, dev_t devt)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9class_find_device_by_devtsbc.class_find_device_by_devtasbuh1hhjhhhj hKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubj]9)}(hj`9h]h*}(hjKhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhj hKubj")}(hclass_find_device_by_devth]j()}(hj:h]hclass_find_device_by_devt}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hKubj8)}(h'(const struct class *class, dev_t devt)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j8c.class_find_device_by_devtasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjsubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubj9)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j8c.class_find_device_by_devtasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhjhhubjV)}(hhh]j[)}(hJdevice iterator for locating a particular device matching the device type.h]hJdevice iterator for locating a particular device matching the device type.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjXhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjsj{jsj|j}j~uh1hhhhj]hNhNubj)}(hp**Parameters** ``const struct class *class`` class type ``dev_t devt`` device type of the device to match.h](j[)}(h**Parameters**h]j)}(hj}h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjwubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]j[)}(h#device type of the device to match.h]h#device type of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*class_find_device_by_acpi_dev (C function)c.class_find_device_by_acpi_devhNtauh1hhj]hhhNhNubh)}(hhh](h)}(histruct device * class_find_device_by_acpi_dev (const struct class *class, const struct acpi_device *adev)h]h)}(hgstruct device *class_find_device_by_acpi_dev(const struct class *class, const struct acpi_device *adev)h](h)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hKubh)}(hhh]j()}(hdeviceh]hdevice}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjPmodnameN classnameNj@9jC9)}jF9]jI9)}j<9class_find_device_by_acpi_devsbc.class_find_device_by_acpi_devasbuh1hhj+hhhj<hKubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hKubj]9)}(hj`9h]h*}(hj}hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj+hhhj<hKubj")}(hclass_find_device_by_acpi_devh]j()}(hjlh]hclass_find_device_by_acpi_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj+hhhj<hKubj8)}(h;(const struct class *class, const struct acpi_device *adev)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jjc.class_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst struct acpi_device *adevh](h)}(hj9h]hconst}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjomodnameN classnameNj@9jC9)}jF9]jjc.class_find_device_by_acpi_devasbuh1hhj0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj0ubj()}(hadevh]hadev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj+hhhj<hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'hhhj<hKubah}(h]j"ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj<hKhj$hhubjV)}(hhh]j[)}(hTdevice iterator for locating a particular device matching the ACPI_COMPANION device.h]hTdevice iterator for locating a particular device matching the ACPI_COMPANION device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhj$hhhj<hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct class *class`` class type ``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj ubj)}(hhh]j[)}(h class typeh]h class type}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhjubj)}(hB``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hjJh]hconst struct acpi_device *adev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjDubj)}(hhh]j[)}(hACPI_COMPANION device to match.h]hACPI_COMPANION device to match.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclass_create (C function)c.class_createhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h.struct class * class_create (const char *name)h]h)}(h,struct class *class_create(const char *name)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9 class_createsbc.class_createasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhKubj")}(h class_createh]j()}(hjh]h class_create}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj8)}(h(const char *name)h]j9)}(hconst char *nameh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjUhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hnameh]hname}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(hcreate a struct class structureh]hcreate a struct class structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const char *name`` pointer to a string for the name of this class. **Description** This is used to create a struct class pointer that can then be used in calls to device_create(). Returns :c:type:`struct class ` pointer on success, or ERR_PTR() on error. Note, the pointer created here is to be destroyed when finished by making a call to class_destroy().h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j)}(hE``const char *name`` pointer to a string for the name of this class. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(h/pointer to a string for the name of this class.h]h/pointer to a string for the name of this class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(h`This is used to create a struct class pointer that can then be used in calls to device_create().h]h`This is used to create a struct class pointer that can then be used in calls to device_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hQReturns :c:type:`struct class ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj-hhhNhNubh)}(h:c:type:`struct class `h]j)}(hj7h]h struct class}(hj9hhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpclassuh1hh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj-ubh+ pointer on success, or ERR_PTR() on error.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjThMhjubj[)}(hdNote, the pointer created here is to be destroyed when finished by making a call to class_destroy().h]hdNote, the pointer created here is to be destroyed when finished by making a call to class_destroy().}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclass_destroy (C function)c.class_destroyhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h,void class_destroy (const struct class *cls)h]h)}(h+void class_destroy(const struct class *cls)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubj")}(h class_destroyh]j()}(h class_destroyh]h class_destroy}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM%ubj8)}(h(const struct class *cls)h]j9)}(hconst struct class *clsh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.class_destroyasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj2hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclsh]hcls}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM%ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM%ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM%hjhhubjV)}(hhh]j[)}(h!destroys a struct class structureh]h!destroys a struct class structure}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%hjfhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM%ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct class *cls`` pointer to the struct class that is to be destroyed **Description** Note, the pointer to be destroyed must have been created with a call to class_create().h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM)hjubj)}(hhh]j)}(hP``const struct class *cls`` pointer to the struct class that is to be destroyed h](j)}(h``const struct class *cls``h]j)}(hjh]hconst struct class *cls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM&hjubj)}(hhh]j[)}(h3pointer to the struct class that is to be destroyedh]h3pointer to the struct class that is to be destroyed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM(hjubj[)}(hWNote, the pointer to be destroyed must have been created with a call to class_create().h]hWNote, the pointer to be destroyed must have been created with a call to class_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_init (C function)c.class_dev_iter_inithNtauh1hhj]hhhNhNubh)}(hhh](h)}(hvoid class_dev_iter_init (struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h]h)}(hvoid class_dev_iter_init(struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h](j8)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj&hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj8hM5ubj")}(hclass_dev_iter_inith]j()}(hclass_dev_iter_inith]hclass_dev_iter_init}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj&hhhj8hM5ubj8)}(ht(struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h](j9)}(hstruct class_dev_iter *iterh](h)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j()}(hclass_dev_iterh]hclass_dev_iter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jMsbc.class_dev_iter_initasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjcubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj_ubj9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj>hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj_ubj9)}(hconst struct device *starth](h)}(hj9h]hconst}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.class_dev_iter_initasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj`ubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj_ubj9)}(hconst struct device_type *typeh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_typeh]h device_type}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj*modnameN classnameNj@9jC9)}jF9]jc.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjThhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(htypeh]htype}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj_ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj&hhhj8hM5ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj"hhhj8hM5ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj8hM5hjhhubjV)}(hhh]j[)}(h initialize class device iteratorh]h initialize class device iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj8hM5ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX(**Parameters** ``struct class_dev_iter *iter`` class iterator to initialize ``const struct class *class`` the class we wanna iterate over ``const struct device *start`` the device to start iterating from, if any ``const struct device_type *type`` device_type of the devices to iterate over, NULL for all **Description** Initialize class iterator **iter** such that it iterates over devices of **class**. If **start** is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjubj)}(hhh](j)}(h=``struct class_dev_iter *iter`` class iterator to initialize h](j)}(h``struct class_dev_iter *iter``h]j)}(hjh]hstruct class_dev_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM6hjubj)}(hhh]j[)}(hclass iterator to initializeh]hclass iterator to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h>``const struct class *class`` the class we wanna iterate over h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM7hjubj)}(hhh]j[)}(hthe class we wanna iterate overh]hthe class we wanna iterate over}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(hJ``const struct device *start`` the device to start iterating from, if any h](j)}(h``const struct device *start``h]j)}(hj>h]hconst struct device *start}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM8hj8ubj)}(hhh]j[)}(h*the device to start iterating from, if anyh]h*the device to start iterating from, if any}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjShM8hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM8hjubj)}(h\``const struct device_type *type`` device_type of the devices to iterate over, NULL for all h](j)}(h"``const struct device_type *type``h]j)}(hjwh]hconst struct device_type *type}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjqubj)}(hhh]j[)}(h8device_type of the devices to iterate over, NULL for allh]h8device_type of the devices to iterate over, NULL for all}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM;hjubj[)}(hInitialize class iterator **iter** such that it iterates over devices of **class**. If **start** is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.h](hInitialize class iterator }(hjhhhNhNubj)}(h**iter**h]hiter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' such that it iterates over devices of }(hjhhhNhNubj)}(h **class**h]hclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhy is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM:hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_next (C function)c.class_dev_iter_nexthNtauh1hhj]hhhNhNubh)}(hhh](h)}(hAstruct device * class_dev_iter_next (struct class_dev_iter *iter)h]h)}(h?struct device *class_dev_iter_next(struct class_dev_iter *iter)h](h)}(hjh]hstruct}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj:hMVubh)}(hhh]j()}(hdeviceh]hdevice}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjNmodnameN classnameNj@9jC9)}jF9]jI9)}j<9class_dev_iter_nextsbc.class_dev_iter_nextasbuh1hhj)hhhj:hMVubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj:hMVubj]9)}(hj`9h]h*}(hj{hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj)hhhj:hMVubj")}(hclass_dev_iter_nexth]j()}(hjjh]hclass_dev_iter_next}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj)hhhj:hMVubj8)}(h(struct class_dev_iter *iter)h]j9)}(hstruct class_dev_iter *iterh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclass_dev_iterh]hclass_dev_iter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jhc.class_dev_iter_nextasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hj)hhhj:hMVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj%hhhj:hMVubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj:hMVhj"hhubjV)}(hhh]j[)}(hiterate to the next deviceh]hiterate to the next device}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVhj%hhubah}(h]h ]h"]h$]h&]uh1jUhj"hhhj:hMVubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj@j{j@j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct class_dev_iter *iter`` class iterator to proceed **Description** Proceed **iter** to the next device and return it. Returns NULL if iteration is complete. The returned device is referenced and won't be released till iterator is proceed to the next device or exited. The caller is free to do whatever it wants to do with the device including calling back into class code.h](j[)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMZhjDubj)}(hhh]j)}(h:``struct class_dev_iter *iter`` class iterator to proceed h](j)}(h``struct class_dev_iter *iter``h]j)}(hjih]hstruct class_dev_iter *iter}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMWhjcubj)}(hhh]j[)}(hclass iterator to proceedh]hclass iterator to proceed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~hMWhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMWhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMYhjDubj[)}(hZProceed **iter** to the next device and return it. Returns NULL if iteration is complete.h](hProceed }(hjhhhNhNubj)}(h**iter**h]hiter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhJ to the next device and return it. Returns NULL if iteration is complete.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMXhjDubj[)}(hThe returned device is referenced and won't be released till iterator is proceed to the next device or exited. The caller is free to do whatever it wants to do with the device including calling back into class code.h]hThe returned device is referenced and won’t be released till iterator is proceed to the next device or exited. The caller is free to do whatever it wants to do with the device including calling back into class code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM[hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_exit (C function)c.class_dev_iter_exithNtauh1hhj]hhhNhNubh)}(hhh](h)}(h6void class_dev_iter_exit (struct class_dev_iter *iter)h]h)}(h5void class_dev_iter_exit(struct class_dev_iter *iter)h](j8)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMuubj")}(hclass_dev_iter_exith]j()}(hclass_dev_iter_exith]hclass_dev_iter_exit}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMuubj8)}(h(struct class_dev_iter *iter)h]j9)}(hstruct class_dev_iter *iterh](h)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j()}(hclass_dev_iterh]hclass_dev_iter}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjgmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j-sbc.class_dev_iter_exitasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjCubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj?ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMuubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMuubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMuhjhhubjV)}(hhh]j[)}(hfinish iterationh]hfinish iteration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMuubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct class_dev_iter *iter`` class iterator to finish **Description** Finish an iteration. Always call this function after iteration is complete whether the iteration ran till the end or not.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMyhjubj)}(hhh]j)}(h9``struct class_dev_iter *iter`` class iterator to finish h](j)}(h``struct class_dev_iter *iter``h]j)}(hj h]hstruct class_dev_iter *iter}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMvhjubj)}(hhh]j[)}(hclass iterator to finishh]hclass iterator to finish}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMvhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMvhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMxhjubj[)}(hzFinish an iteration. Always call this function after iteration is complete whether the iteration ran till the end or not.h]hzFinish an iteration. Always call this function after iteration is complete whether the iteration ran till the end or not.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMwhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"class_for_each_device (C function)c.class_for_each_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hoint class_for_each_device (const struct class *class, const struct device *start, void *data, device_iter_t fn)h]h)}(hnint class_for_each_device(const struct class *class, const struct device *start, void *data, device_iter_t fn)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hclass_for_each_deviceh]j()}(hclass_for_each_deviceh]hclass_for_each_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(hU(const struct class *class, const struct device *start, void *data, device_iter_t fn)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.class_for_each_deviceasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj/hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst struct device *starth](h)}(hj9h]hconst}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.class_for_each_deviceasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjQubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdatah]hdata}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj'modnameN classnameNj@9jC9)}jF9]jc.class_for_each_deviceasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]j~ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hdevice iteratorh]hdevice iterator}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct class *class`` the class we're iterating ``const struct device *start`` the device to start with in the list, if any. ``void *data`` data for the callback ``device_iter_t fn`` function to be called for each device **Description** Iterate over **class**'s list of devices, and call **fn** for each, passing it **data**. If **start** is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list. We check the return of **fn** each time. If it returns anything other than 0, we break out and return that value. **fn** is allowed to do anything including calling back into class code. There's no locking restriction.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hthe class we're iteratingh]hthe class we’re iterating}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``const struct device *start`` the device to start with in the list, if any. h](j)}(h``const struct device *start``h]j)}(hjh]hconst struct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(h-the device to start with in the list, if any.h]h-the device to start with in the list, if any.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h%``void *data`` data for the callback h](j)}(h``void *data``h]j)}(hj.h]h void *data}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj(ubj)}(hhh]j[)}(hdata for the callbackh]hdata for the callback}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubj)}(h;``device_iter_t fn`` function to be called for each device h](j)}(h``device_iter_t fn``h]j)}(hjgh]hdevice_iter_t fn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjaubj)}(hhh]j[)}(h%function to be called for each deviceh]h%function to be called for each device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hIterate over **class**'s list of devices, and call **fn** for each, passing it **data**. If **start** is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.h](h Iterate over }(hjhhhNhNubj)}(h **class**h]hclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s list of devices, and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each, passing it }(hjhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhy is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hqWe check the return of **fn** each time. If it returns anything other than 0, we break out and return that value.h](hWe check the return of }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhT each time. If it returns anything other than 0, we break out and return that value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hi**fn** is allowed to do anything including calling back into class code. There's no locking restriction.h](j)}(h**fn**h]hfn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclass_find_device (C function)c.class_find_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct device * class_find_device (const struct class *class, const struct device *start, const void *data, device_match_t match)h]h)}(hstruct device *class_find_device(const struct class *class, const struct device *start, const void *data, device_match_t match)h](h)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjzhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9class_find_devicesbc.class_find_deviceasbuh1hhjihhhjzhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjzhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjihhhjzhMubj")}(hclass_find_deviceh]j()}(hjh]hclass_find_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjihhhjzhMubj8)}(h_(const struct class *class, const struct device *start, const void *data, device_match_t match)h](j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj"modnameN classnameNj@9jC9)}jF9]jc.class_find_deviceasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjLhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst struct device *starth](h)}(hj9h]hconst}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.class_find_deviceasbuh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjnubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst void *datah](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj4hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdatah]hdata}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj_modnameN classnameNj@9jC9)}jF9]jc.class_find_deviceasbuh1hhjVubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj()}(hmatchh]hmatch}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjihhhjzhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjehhhjzhMubah}(h]j`ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjzhMhjbhhubjV)}(hhh]j[)}(h0device iterator for locating a particular deviceh]h0device iterator for locating a particular device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjbhhhjzhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX!**Parameters** ``const struct class *class`` the class we're iterating ``const struct device *start`` Device to begin with ``const void *data`` data for the match function ``device_match_t match`` function to check device **Description** This is similar to the class_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices. Note, you will need to drop the reference with put_device() after use. **match** is allowed to do anything including calling back into class code. There's no locking restriction.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hthe class we're iteratingh]hthe class we’re iterating}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h4``const struct device *start`` Device to begin with h](j)}(h``const struct device *start``h]j)}(hj-h]hconst struct device *start}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj'ubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(h1``const void *data`` data for the match function h](j)}(h``const void *data``h]j)}(hjfh]hconst void *data}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj`ubj)}(hhh]j[)}(hdata for the match functionh]hdata for the match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjubj)}(h2``device_match_t match`` function to check device h](j)}(h``device_match_t match``h]j)}(hjh]hdevice_match_t match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hfunction to check deviceh]hfunction to check device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hThis is similar to the class_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the class_for_each_dev() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjhhhNhNubj)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hFNote, you will need to drop the reference with put_device() after use.h]hFNote, you will need to drop the reference with put_device() after use.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(hl**match** is allowed to do anything including calling back into class code. There's no locking restriction.h](j)}(h **match**h]hmatch}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"class_compat_register (C function)c.class_compat_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h>struct class_compat * class_compat_register (const char *name)h]h)}(hubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjCmodnameN classnameNj@9jC9)}jF9]jc.class_compat_remove_linkasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjmhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjphhhjhMdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjlhhhjhMdubah}(h]jgah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMdhjihhubjV)}(hhh]j[)}(h8remove a compatibility class device link to a bus deviceh]h8remove a compatibility class device link to a bus device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jUhjihhhjhMdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hv**Parameters** ``struct class_compat *cls`` the compatibility class ``struct device *dev`` the target bus deviceh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhhjubj)}(hhh](j)}(h5``struct class_compat *cls`` the compatibility class h](j)}(h``struct class_compat *cls``h]j)}(hjh]hstruct class_compat *cls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMfhjubj)}(hhh]j[)}(hthe compatibility classh]hthe compatibility class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h,``struct device *dev`` the target bus deviceh](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhhjubj)}(hhh]j[)}(hthe target bus deviceh]hthe target bus device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMghj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_is_registered (C function)c.class_is_registeredhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h4bool class_is_registered (const struct class *class)h]h)}(h3bool class_is_registered(const struct class *class)h](j8)}(hj;h]hbool}(hjxhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjthhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhMpubj")}(hclass_is_registeredh]j()}(hclass_is_registeredh]hclass_is_registered}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjthhhjhMpubj8)}(h(const struct class *class)h]j9)}(hconst struct class *classh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.class_is_registeredasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hclassh]hclass}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjthhhjhMpubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjphhhjhMpubah}(h]jkah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMphjmhhubjV)}(hhh]j[)}(hUdetermine if at this moment in time, a class is registered in the driver core or not.h]hUdetermine if at this moment in time, a class is registered in the driver core or not.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMphjOhhubah}(h]h ]h"]h$]h&]uh1jUhjmhhhjhMpubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjjj{jjj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct class *class`` the class to check **Description** Returns a boolean to state if the class is registered in the driver core or not. Note that the value could switch right after this call is made, so only use this in places where you "know" it is safe to do so (usually to determine if the specific class has been registered yet or not). Be careful in using this.h](j[)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMthjnubj)}(hhh]j)}(h1``const struct class *class`` the class to check h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMrhjubj)}(hhh]j[)}(hthe class to checkh]hthe class to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjnubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMthjnubj[)}(hXReturns a boolean to state if the class is registered in the driver core or not. Note that the value could switch right after this call is made, so only use this in places where you "know" it is safe to do so (usually to determine if the specific class has been registered yet or not).h]hX"Returns a boolean to state if the class is registered in the driver core or not. Note that the value could switch right after this call is made, so only use this in places where you “know” it is safe to do so (usually to determine if the specific class has been registered yet or not).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMshjnubj[)}(hBe careful in using this.h]hBe careful in using this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMxhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfaux_device (C struct) c.faux_devicehNtauh1hhj]hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhNubh)}(hhh](h)}(h faux_deviceh]h)}(hstruct faux_deviceh](h)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hKubj")}(h faux_deviceh]j()}(hjh]h faux_device}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj0hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj0hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj0hKhjhhubjV)}(hhh]j[)}(ha "faux" deviceh]ha “faux” device}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjbhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj0hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj}j{j}j|j}j~uh1hhhhj]hjhNubj)}(h**Definition**:: struct faux_device { struct device dev; }; **Members** ``dev`` internal struct device of the objecth](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(h.struct faux_device { struct device dev; };h]h.struct faux_device { struct device dev; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj[)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(hhh]j)}(h,``dev`` internal struct device of the objecth](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(hhh]j[)}(h$internal struct device of the objecth]h$internal struct device of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhjhNubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhj]hhubj[)}(hX'A simple faux device that can be created/destroyed. To be used when a driver only needs to have a device to "hang" something off. This can be used for downloading firmware or other basic tasks. Use this instead of a struct platform_device if the device has no resources assigned to it at all.h]hX+A simple faux device that can be created/destroyed. To be used when a driver only needs to have a device to “hang” something off. This can be used for downloading firmware or other basic tasks. Use this instead of a struct platform_device if the device has no resources assigned to it at all.}(hj+ hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhj]hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfaux_device_ops (C struct)c.faux_device_opshNtauh1hhj]hhhjhNubh)}(hhh](h)}(hfaux_device_opsh]h)}(hstruct faux_device_opsh](h)}(hjh]hstruct}(hjS hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjO hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKubj)}(h h]h }(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO hhhj` hKubj")}(hfaux_device_opsh]j()}(hjM h]hfaux_device_ops}(hjs hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjo ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjO hhhj` hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjK hhhj` hKubah}(h]jF ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj` hKhjH hhubjV)}(hhh]j[)}(h+a set of callbacks for a struct faux_deviceh]h+a set of callbacks for a struct faux_device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK#hj hhubah}(h]h ]h"]h$]h&]uh1jUhjH hhhj` hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhj]hjhNubj)}(hX**Definition**:: struct faux_device_ops { int (*probe)(struct faux_device *faux_dev); void (*remove)(struct faux_device *faux_dev); }; **Members** ``probe`` called when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding. ``remove`` called when a faux device is removed from the systemh](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK'hj ubj)}(h}struct faux_device_ops { int (*probe)(struct faux_device *faux_dev); void (*remove)(struct faux_device *faux_dev); };h]h}struct faux_device_ops { int (*probe)(struct faux_device *faux_dev); void (*remove)(struct faux_device *faux_dev); };}hj sbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hj ubj[)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK.hj ubj)}(hhh](j)}(h``probe`` called when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding. h](j)}(h ``probe``h]j)}(hj h]hprobe}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hj ubj)}(hhh]j[)}(hcalled when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding.h]hcalled when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK%hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK)hj ubj)}(h?``remove`` called when a faux device is removed from the systemh](j)}(h ``remove``h]j)}(hj< h]hremove}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hj6 ubj)}(hhh]j[)}(h4called when a faux device is removed from the systemh]h4called when a faux device is removed from the system}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK*hjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hK)hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhjhNubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj} ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK-hj]hhubj[)}(hGBoth **probe** and **remove** are optional, if not needed, set to NULL.h](hBoth }(hj hhhNhNubj)}(h **probe**h]hprobe}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh and }(hj hhhNhNubj)}(h **remove**h]hremove}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh* are optional, if not needed, set to NULL.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK*hj]hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+faux_device_create_with_groups (C function) c.faux_device_create_with_groupshNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct faux_device * faux_device_create_with_groups (const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h]h)}(hstruct faux_device *faux_device_create_with_groups(const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKbubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKbubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]jI9)}j<9faux_device_create_with_groupssb c.faux_device_create_with_groupsasbuh1hhj hhhj hKbubj)}(h h]h }(hj! hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKbubj]9)}(hj`9h]h*}(hj/ hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj hhhj hKbubj")}(hfaux_device_create_with_groupsh]j()}(hj h]hfaux_device_create_with_groups}(hj@ hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj< ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhj hKbubj8)}(hx(const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h](j9)}(hconst char *nameh](h)}(hj9h]hconst}(hj[ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjW ubj)}(h h]h }(hjh hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj8)}(hcharh]hchar}(hjv hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjW ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW ubj]9)}(hj`9h]h*}(hj hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjW ubj()}(hnameh]hname}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjW ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjS ubj9)}(hstruct device *parenth](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]j  c.faux_device_create_with_groupsasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj]9)}(hj`9h]h*}(hj hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj()}(hparenth]hparent}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjS ubj9)}(h&const struct faux_device_ops *faux_opsh](h)}(hj9h]hconst}(hj( hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ ubj)}(h h]h }(hj5 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ ubh)}(hjh]hstruct}(hjC hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ ubj)}(h h]h }(hjP hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ ubh)}(hhh]j()}(hfaux_device_opsh]hfaux_device_ops}(hja hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjc modnameN classnameNj@9jC9)}jF9]j  c.faux_device_create_with_groupsasbuh1hhj$ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ ubj]9)}(hj`9h]h*}(hj hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj$ ubj()}(hfaux_opsh]hfaux_ops}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjS ubj9)}(h%const struct attribute_group **groupsh](h)}(hj9h]hconst}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]j  c.faux_device_create_with_groupsasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj]9)}(hj`9h]h*}(hj hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj]9)}(hj`9h]h*}(hj% hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj()}(hgroupsh]hgroups}(hj2 hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjS ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj hhhj hKbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hKbubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKbhj hhubjV)}(hhh]j[)}(hwCreate and register with the driver core a faux device and populate the device with an initial set of sysfs attributes.h]hwCreate and register with the driver core a faux device and populate the device with an initial set of sysfs attributes.}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKbhjY hhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj hKbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjt j{jt j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const char *name`` The name of the device we are adding, must be unique for all faux devices. ``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. ``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. ``const struct attribute_group **groups`` The set of sysfs attributes that will be created for this device when it is registered with the driver core. **Description** Create a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle. Note, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. If the probe callback (if one is present) does NOT succeed, the creation of the device will fail and NULL will be returned. **Return** * NULL if an error happened with creating the device * pointer to a valid struct faux_device that is registered with sysfsh](j[)}(h**Parameters**h]j)}(hj~ h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKfhjx ubj)}(hhh](j)}(h```const char *name`` The name of the device we are adding, must be unique for all faux devices. h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKfhj ubj)}(hhh]j[)}(hJThe name of the device we are adding, must be unique for all faux devices.h]hJThe name of the device we are adding, must be unique for all faux devices.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKehj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKfhj ubj)}(h``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. h](j)}(h``struct device *parent``h]j)}(hj h]hstruct device *parent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKihj ubj)}(hhh]j[)}(hPointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs.h]hPointer to a potential parent struct device. If set to NULL, the device will be created in the “root” of the faux device tree in sysfs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKghj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKihj ubj)}(hx``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. h](j)}(h*``const struct faux_device_ops *faux_ops``h]j)}(hjh]h&const struct faux_device_ops *faux_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKkhj ubj)}(hhh]j[)}(hLstruct faux_device_ops that the new device will call back into, can be NULL.h]hLstruct faux_device_ops that the new device will call back into, can be NULL.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKjhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKkhj ubj)}(h``const struct attribute_group **groups`` The set of sysfs attributes that will be created for this device when it is registered with the driver core. h](j)}(h)``const struct attribute_group **groups``h]j)}(hjKh]h%const struct attribute_group **groups}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKmhjEubj)}(hhh]j[)}(hlThe set of sysfs attributes that will be created for this device when it is registered with the driver core.h]hlThe set of sysfs attributes that will be created for this device when it is registered with the driver core.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKlhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKmhj ubeh}(h]h ]h"]h$]h&]uh1jhjx ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKohjx ubj[)}(hCreate a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle.h](h_Create a new faux device and register it in the driver core properly. If present, callbacks in }(hjhhhNhNubj)}(h **faux_ops**h]hfaux_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh{ will be called with the device that for the caller to do something with at the proper time given the device’s lifecycle.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKnhjx ubj[)}(hXJNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. If the probe callback (if one is present) does NOT succeed, the creation of the device will fail and NULL will be returned.h]hXJNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. If the probe callback (if one is present) does NOT succeed, the creation of the device will fail and NULL will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKshjx ubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKyhjx ubj)}(hhh](j)}(h2NULL if an error happened with creating the deviceh]j[)}(hjh]h2NULL if an error happened with creating the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKzhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hCpointer to a valid struct faux_device that is registered with sysfsh]j[)}(hjh]hCpointer to a valid struct faux_device that is registered with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chK{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j~j`9uh1jhjhKzhjx ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfaux_device_create (C function)c.faux_device_createhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hystruct faux_device * faux_device_create (const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h]h)}(hwstruct faux_device *faux_device_create(const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h](h)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhKubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj_modnameN classnameNj@9jC9)}jF9]jI9)}j<9faux_device_createsbc.faux_device_createasbuh1hhj:hhhjKhKubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhKubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj:hhhjKhKubj")}(hfaux_device_createh]j()}(hj{h]hfaux_device_create}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj:hhhjKhKubj8)}(hQ(const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h](j9)}(hconst char *nameh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj5modnameN classnameNj@9jC9)}jF9]jyc.faux_device_createasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj_hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hparenth]hparent}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h&const struct faux_device_ops *faux_opsh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hfaux_device_opsh]hfaux_device_ops}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jyc.faux_device_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hfaux_opsh]hfaux_ops}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj:hhhjKhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj6hhhjKhKubah}(h]j1ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjKhKhj3hhubjV)}(hhh]j[)}(h6create and register with the driver core a faux deviceh]h6create and register with the driver core a faux device}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhj3hhhjKhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj9j{j9j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const char *name`` The name of the device we are adding, must be unique for all faux devices. ``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. ``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. **Description** Create a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle. Note, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. **Return** * NULL if an error happened with creating the device * pointer to a valid struct faux_device that is registered with sysfsh](j[)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj=ubj)}(hhh](j)}(h```const char *name`` The name of the device we are adding, must be unique for all faux devices. h](j)}(h``const char *name``h]j)}(hjbh]hconst char *name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj\ubj)}(hhh]j[)}(hJThe name of the device we are adding, must be unique for all faux devices.h]hJThe name of the device we are adding, must be unique for all faux devices.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhjYubj)}(h``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj)}(hhh]j[)}(hPointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs.h]hPointer to a potential parent struct device. If set to NULL, the device will be created in the “root” of the faux device tree in sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjYubj)}(hx``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. h](j)}(h*``const struct faux_device_ops *faux_ops``h]j)}(hjh]h&const struct faux_device_ops *faux_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj)}(hhh]j[)}(hLstruct faux_device_ops that the new device will call back into, can be NULL.h]hLstruct faux_device_ops that the new device will call back into, can be NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj=ubj[)}(hCreate a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle.h](h_Create a new faux device and register it in the driver core properly. If present, callbacks in }(hj(hhhNhNubj)}(h **faux_ops**h]hfaux_ops}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh{ will be called with the device that for the caller to do something with at the proper time given the device’s lifecycle.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj=ubj[)}(hNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time.h]hNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj=ubj[)}(h **Return**h]j)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj=ubj)}(hhh](j)}(h2NULL if an error happened with creating the deviceh]j[)}(hjuh]h2NULL if an error happened with creating the device}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjsubah}(h]h ]h"]h$]h&]uh1jhjpubj)}(hCpointer to a valid struct faux_device that is registered with sysfsh]j[)}(hjh]hCpointer to a valid struct faux_device that is registered with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]j~j`9uh1jhjhKhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h faux_device_destroy (C function)c.faux_device_destroyhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h7void faux_device_destroy (struct faux_device *faux_dev)h]h)}(h6void faux_device_destroy(struct faux_device *faux_dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(hfaux_device_destroyh]j()}(hfaux_device_destroyh]hfaux_device_destroy}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj8)}(h(struct faux_device *faux_dev)h]j9)}(hstruct faux_device *faux_devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj&modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.faux_device_destroyasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjRhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hfaux_devh]hfaux_dev}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(hdestroy a faux deviceh]hdestroy a faux device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct faux_device *faux_dev`` faux device to destroy **Description** Unregisters and cleans up a device that was created with a call to faux_device_create()h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj)}(hhh]j)}(h8``struct faux_device *faux_dev`` faux device to destroy h](j)}(h ``struct faux_device *faux_dev``h]j)}(hjh]hstruct faux_device *faux_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj)}(hhh]j[)}(hfaux device to destroyh]hfaux device to destroy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj[)}(hWUnregisters and cleans up a device that was created with a call to faux_device_create()h]hWUnregisters and cleans up a device that was created with a call to faux_device_create()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnode_access_nodes (C struct)c.node_access_nodeshNtauh1hhj]hhhNhNubh)}(hhh](h)}(hnode_access_nodesh]h)}(hstruct node_access_nodesh](h)}(hjh]hstruct}(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjWhKubj")}(hnode_access_nodesh]j()}(hjDh]hnode_access_nodes}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjFhhhjWhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjBhhhjWhKubah}(h]j=ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjWhKhj?hhubjV)}(hhh]j[)}(hFAccess class device to hold user visible relationships to other nodes.h]hFAccess class device to hold user visible relationships to other nodes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKJhjhhubah}(h]h ]h"]h$]h&]uh1jUhj?hhhjWhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Definition**:: struct node_access_nodes { struct device dev; struct list_head list_node; unsigned int access; #ifdef CONFIG_HMEM_REPORTING; struct access_coordinate coord; #endif; }; **Members** ``dev`` Device for this memory access class ``list_node`` List element in the node's access list ``access`` The access class rank ``coord`` Heterogeneous memory performance coordinatesh](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKNhjubj)}(hstruct node_access_nodes { struct device dev; struct list_head list_node; unsigned int access; #ifdef CONFIG_HMEM_REPORTING; struct access_coordinate coord; #endif; };h]hstruct node_access_nodes { struct device dev; struct list_head list_node; unsigned int access; #ifdef CONFIG_HMEM_REPORTING; struct access_coordinate coord; #endif; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKPhjubj[)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKYhjubj)}(hhh](j)}(h,``dev`` Device for this memory access class h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKMhjubj)}(hhh]j[)}(h#Device for this memory access classh]h#Device for this memory access class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKMhjubj)}(h5``list_node`` List element in the node's access list h](j)}(h ``list_node``h]j)}(hj2h]h list_node}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKNhj,ubj)}(hhh]j[)}(h&List element in the node's access listh]h(List element in the node’s access list}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhKNhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKNhjubj)}(h!``access`` The access class rank h](j)}(h ``access``h]j)}(hjkh]haccess}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKOhjeubj)}(hhh]j[)}(hThe access class rankh]hThe access class rank}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubj)}(h6``coord`` Heterogeneous memory performance coordinatesh](j)}(h ``coord``h]j)}(hjh]hcoord}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKOhjubj)}(hhh]j[)}(h,Heterogeneous memory performance coordinatesh]h,Heterogeneous memory performance coordinates}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnode_cache_info (C struct)c.node_cache_infohNtauh1hhj]hhhNhNubh)}(hhh](h)}(hnode_cache_infoh]h)}(hstruct node_cache_infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKVubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKVubj")}(hnode_cache_infoh]j()}(hjh]hnode_cache_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hKVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hKVubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKVhjhhubjV)}(hhh]j[)}(h(Internal tracking for memory node cachesh]h(Internal tracking for memory node caches}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM"hj=hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hKVubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjXj{jXj|j}j~uh1hhhhj]hNhNubj)}(hX2**Definition**:: struct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; }; **Members** ``dev`` Device represeting the cache level ``node`` List element for tracking in the node ``cache_attrs`` Attributes for this cache levelh](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh:}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM&hj\ubj)}(hvstruct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; };h]hvstruct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; };}hj}sbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM(hj\ubj[)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM.hj\ubj)}(hhh](j)}(h+``dev`` Device represeting the cache level h](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM$hjubj)}(hhh]j[)}(h"Device represeting the cache levelh]h"Device represeting the cache level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h/``node`` List element for tracking in the node h](j)}(h``node``h]j)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM%hjubj)}(hhh]j[)}(h%List element for tracking in the nodeh]h%List element for tracking in the node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubj)}(h/``cache_attrs`` Attributes for this cache levelh](j)}(h``cache_attrs``h]j)}(hjh]h cache_attrs}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM%hjubj)}(hhh]j[)}(hAttributes for this cache levelh]hAttributes for this cache level}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM&hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM%hjubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnode_add_cache (C function)c.node_add_cachehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hLvoid node_add_cache (unsigned int nid, struct node_cache_attrs *cache_attrs)h]h)}(hKvoid node_add_cache(unsigned int nid, struct node_cache_attrs *cache_attrs)h](j8)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjuhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMlubj")}(hnode_add_cacheh]j()}(hnode_add_cacheh]hnode_add_cache}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuhhhjhMlubj8)}(h8(unsigned int nid, struct node_cache_attrs *cache_attrs)h](j9)}(hunsigned int nidh](j8)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hnidh]hnid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h$struct node_cache_attrs *cache_attrsh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hnode_cache_attrsh]hnode_cache_attrs}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj'modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.node_add_cacheasbuh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjShhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(h cache_attrsh]h cache_attrs}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjuhhhjhMlubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjhMlubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMlhjnhhubjV)}(hhh]j[)}(h$add cache attribute to a memory nodeh]h$add cache attribute to a memory node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jUhjnhhhjhMlubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``unsigned int nid`` Node identifier that has new cache attributes ``struct node_cache_attrs *cache_attrs`` Attributes for the cache being addedh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMphjubj)}(hhh](j)}(hC``unsigned int nid`` Node identifier that has new cache attributes h](j)}(h``unsigned int nid``h]j)}(hjh]hunsigned int nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMmhjubj)}(hhh]j[)}(h-Node identifier that has new cache attributesh]h-Node identifier that has new cache attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubj)}(hM``struct node_cache_attrs *cache_attrs`` Attributes for the cache being addedh](j)}(h(``struct node_cache_attrs *cache_attrs``h]j)}(hjh]h$struct node_cache_attrs *cache_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMohjubj)}(hhh]j[)}(h$Attributes for the cache being addedh]h$Attributes for the cache being added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h4register_memory_node_under_compute_node (C function))c.register_memory_node_under_compute_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h}int register_memory_node_under_compute_node (unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h]h)}(h|int register_memory_node_under_compute_node(unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h](j8)}(hinth]hint}(hj^hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjZhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjlhMubj")}(h'register_memory_node_under_compute_nodeh]j()}(h'register_memory_node_under_compute_nodeh]h'register_memory_node_under_compute_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjZhhhjlhMubj8)}(hQ(unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h](j9)}(hunsigned int mem_nidh](j8)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmem_nidh]hmem_nid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned int cpu_nidh](j8)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hcpu_nidh]hcpu_nid}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h#enum access_coordinate_class accessh](h)}(hjh]henum}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubh)}(hhh]j()}(haccess_coordinate_classh]haccess_coordinate_class}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj]modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsb)c.register_memory_node_under_compute_nodeasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj()}(haccessh]haccess}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjZhhhjlhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjVhhhjlhMubah}(h]jQah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjlhMhjShhubjV)}(hhh]j[)}(h>link memory node to its compute node for a given access class.h]h>link memory node to its compute node for a given access class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjShhhjlhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``unsigned int mem_nid`` Memory node number ``unsigned int cpu_nid`` Cpu node number ``enum access_coordinate_class access`` Access class to register **Description** For use with platforms that may have separate memory and compute nodes. This function will export node relationships linking which memory initiator nodes can access memory targets at a given ranked access class.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh](j)}(h,``unsigned int mem_nid`` Memory node number h](j)}(h``unsigned int mem_nid``h]j)}(hjh]hunsigned int mem_nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh]j[)}(hMemory node numberh]hMemory node number}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h*``unsigned int cpu_nid`` Cpu node number h](j)}(h``unsigned int cpu_nid``h]j)}(hj-h]hunsigned int cpu_nid}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj'ubj)}(hhh]j[)}(hCpu node numberh]hCpu node number}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubj)}(hA``enum access_coordinate_class access`` Access class to register h](j)}(h'``enum access_coordinate_class access``h]j)}(hjfh]h#enum access_coordinate_class access}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj`ubj)}(hhh]j[)}(hAccess class to registerh]hAccess class to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubjO)}(hFor use with platforms that may have separate memory and compute nodes. This function will export node relationships linking which memory initiator nodes can access memory targets at a given ranked access class.h]j[)}(hFor use with platforms that may have separate memory and compute nodes. This function will export node relationships linking which memory initiator nodes can access memory targets at a given ranked access class.h]hFor use with platforms that may have separate memory and compute nodes. This function will export node relationships linking which memory initiator nodes can access memory targets at a given ranked access class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubah}(h]h ]h"]h$]h&]uh1jNhjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hregister_node (C function)c.register_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hint register_node (int nid)h]h)}(hint register_node(int nid)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMhubj")}(h register_nodeh]j()}(h register_nodeh]h register_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMhubj8)}(h (int nid)h]j9)}(hint nidh](j8)}(hinth]hint}(hj-hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj)ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj()}(hnidh]hnid}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj%ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMhubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMhubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhhjhhubjV)}(hhh]j[)}(h(Initialize and register the node device.h]h(Initialize and register the node device.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhhjphhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMhubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hv**Parameters** ``int nid`` Node number to use when creating the device. **Return** 0 on success, -errno otherwiseh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlhjubj)}(hhh]j)}(h9``int nid`` Node number to use when creating the device. h](j)}(h ``int nid``h]j)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMihjubj)}(hhh]j[)}(h,Node number to use when creating the device.h]h,Node number to use when creating the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMkhjubj[)}(h0 on success, -errno otherwiseh]h0 on success, -errno otherwise}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunregister_node (C function)c.unregister_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hvoid unregister_node (int nid)h]h)}(hvoid unregister_node(int nid)h](j8)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj0hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMubj")}(hunregister_nodeh]j()}(hunregister_nodeh]hunregister_node}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj0hhhjBhMubj8)}(h (int nid)h]j9)}(hint nidh](j8)}(hinth]hint}(hjqhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj()}(hnidh]hnid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjiubah}(h]h ]h"]h$]h&]j?j@uh1j8hj0hhhjBhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj,hhhjBhMubah}(h]j'ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjBhMhj)hhubjV)}(hhh]j[)}(hunregister a node deviceh]hunregister a node device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj)hhhjBhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``int nid`` nid of the node going away **Description** Unregisters the node device at node id **nid**. All the devices on the node must be unregistered before calling this function.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh]j)}(h'``int nid`` nid of the node going away h](j)}(h ``int nid``h]j)}(hjh]hint nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh]j[)}(hnid of the node going awayh]hnid of the node going away}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj[)}(h~Unregisters the node device at node id **nid**. All the devices on the node must be unregistered before calling this function.h](h'Unregisters the node device at node id }(hjIhhhNhNubj)}(h**nid**h]hnid}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubhP. All the devices on the node must be unregistered before calling this function.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%transport_class_register (C function)c.transport_class_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h=int transport_class_register (struct transport_class *tclass)h]h)}(hhj ubj)}(hhh]j)}(hE``struct transport_class *tclass`` The transport class to unregister h](j)}(h"``struct transport_class *tclass``h]j)}(hj!h]hstruct transport_class *tclass}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj ubj[)}(hHMust be called prior to deallocating the memory for the transport class.h]hHMust be called prior to deallocating the memory for the transport class.}(hjl!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK=hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*anon_transport_class_register (C function)c.anon_transport_class_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hEvoid anon_transport_class_register (struct anon_transport_class *atc)h]h)}(hDvoid anon_transport_class_register(struct anon_transport_class *atc)h](j8)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj!hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hKPubj")}(hanon_transport_class_registerh]j()}(hanon_transport_class_registerh]hanon_transport_class_register}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj!hhhj!hKPubj8)}(h"(struct anon_transport_class *atc)h]j9)}(h struct anon_transport_class *atch](h)}(hjh]hstruct}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj!modnameN classnameNj@9jC9)}jF9]jI9)}j<9j!sbc.anon_transport_class_registerasbuh1hhj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj]9)}(hj`9h]h*}(hj$"hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj!ubj()}(hatch]hatc}(hj1"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj!ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj!hhhj!hKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj!hhhj!hKPubah}(h]j!ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj!hKPhj!hhubjV)}(hhh]j[)}(hregister an anonymous classh]hregister an anonymous class}(hj["hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPhjX"hhubah}(h]h ]h"]h$]h&]uh1jUhj!hhhj!hKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjs"j{js"j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct anon_transport_class *atc`` The anon transport class to register **Description** The anonymous transport class contains both a transport class and a container. The idea of an anonymous class is that it never actually has any device attributes associated with it (and thus saves on container storage). So it can only be used for triggering events. Use prezero and then use DECLARE_ANON_TRANSPORT_CLASS() to initialise the anon transport class storage.h](j[)}(h**Parameters**h]j)}(hj}"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{"ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjw"ubj)}(hhh]j)}(hJ``struct anon_transport_class *atc`` The anon transport class to register h](j)}(h$``struct anon_transport_class *atc``h]j)}(hj"h]h struct anon_transport_class *atc}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKRhj"ubj)}(hhh]j[)}(h$The anon transport class to registerh]h$The anon transport class to register}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hKRhj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKRhj"ubah}(h]h ]h"]h$]h&]uh1jhjw"ubj[)}(h**Description**h]j)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjw"ubj[)}(hXtThe anonymous transport class contains both a transport class and a container. The idea of an anonymous class is that it never actually has any device attributes associated with it (and thus saves on container storage). So it can only be used for triggering events. Use prezero and then use DECLARE_ANON_TRANSPORT_CLASS() to initialise the anon transport class storage.h]hXtThe anonymous transport class contains both a transport class and a container. The idea of an anonymous class is that it never actually has any device attributes associated with it (and thus saves on container storage). So it can only be used for triggering events. Use prezero and then use DECLARE_ANON_TRANSPORT_CLASS() to initialise the anon transport class storage.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKShjw"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,anon_transport_class_unregister (C function)!c.anon_transport_class_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hGvoid anon_transport_class_unregister (struct anon_transport_class *atc)h]h)}(hFvoid anon_transport_class_unregister(struct anon_transport_class *atc)h](j8)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj#hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKfubj)}(h h]h }(hj+#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj*#hKfubj")}(hanon_transport_class_unregisterh]j()}(hanon_transport_class_unregisterh]hanon_transport_class_unregister}(hj=#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9#ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj#hhhj*#hKfubj8)}(h"(struct anon_transport_class *atc)h]j9)}(h struct anon_transport_class *atch](h)}(hjh]hstruct}(hjY#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjU#ubj)}(h h]h }(hjf#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU#ubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hjw#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjt#ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjy#modnameN classnameNj@9jC9)}jF9]jI9)}j<9j?#sb!c.anon_transport_class_unregisterasbuh1hhjU#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU#ubj]9)}(hj`9h]h*}(hj#hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjU#ubj()}(hatch]hatc}(hj#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjU#ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjQ#ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj#hhhj*#hKfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj#hhhj*#hKfubah}(h]j#ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj*#hKfhj#hhubjV)}(hhh]j[)}(hunregister an anon classh]hunregister an anon class}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKfhj#hhubah}(h]h ]h"]h$]h&]uh1jUhj#hhhj*#hKfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj#j{j#j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct anon_transport_class *atc`` Pointer to the anon transport class to unregister **Description** Must be called prior to deallocating the memory for the anon transport class.h](j[)}(h**Parameters**h]j)}(hj#h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhj#ubj)}(hhh]j)}(hW``struct anon_transport_class *atc`` Pointer to the anon transport class to unregister h](j)}(h$``struct anon_transport_class *atc``h]j)}(hj$h]h struct anon_transport_class *atc}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhhj$ubj)}(hhh]j[)}(h1Pointer to the anon transport class to unregisterh]h1Pointer to the anon transport class to unregister}(hj6$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2$hKhhj3$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj2$hKhhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubj[)}(h**Description**h]j)}(hjX$h]h Description}(hjZ$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV$ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhj#ubj[)}(hMMust be called prior to deallocating the memory for the anon transport class.h]hMMust be called prior to deallocating the memory for the anon transport class.}(hjn$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKihj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#transport_setup_device (C function)c.transport_setup_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h0void transport_setup_device (struct device *dev)h]h)}(h/void transport_setup_device(struct device *dev)h](j8)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj$hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj$hKubj")}(htransport_setup_deviceh]j()}(htransport_setup_deviceh]htransport_setup_device}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$hhhj$hKubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j()}(hdeviceh]hdevice}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj$modnameN classnameNj@9jC9)}jF9]jI9)}j<9j$sbc.transport_setup_deviceasbuh1hhj$ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj]9)}(hj`9h]h*}(hj&%hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj$ubj()}(hdevh]hdev}(hj3%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj$ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj$hhhj$hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj$hhhj$hKubah}(h]j$ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$hKhj$hhubjV)}(hhh]j[)}(hPdeclare a new dev for transport class association but don't make it visible yet.h]hRdeclare a new dev for transport class association but don’t make it visible yet.}(hj]%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjZ%hhubah}(h]h ]h"]h$]h&]uh1jUhj$hhhj$hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzju%j{ju%j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` the generic device representing the entity being added **Description** Usually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point to see if any set of transport classes wishes to associate with the added device. This allocates storage for the class device and initialises it, but does not yet add it to the system or add attributes to it (you do this with transport_add_device). If you have no need for a separate setup and add operations, use transport_register_device (see transport_class.h).h](j[)}(h**Parameters**h]j)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}%ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjy%ubj)}(hhh]j)}(hN``struct device *dev`` the generic device representing the entity being added h](j)}(h``struct device *dev``h]j)}(hj%h]hstruct device *dev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj%ubj)}(hhh]j[)}(h6the generic device representing the entity being addedh]h6the generic device representing the entity being added}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhj%ubah}(h]h ]h"]h$]h&]uh1jhjy%ubj[)}(h**Description**h]j)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjy%ubj[)}(hXUsually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point to see if any set of transport classes wishes to associate with the added device. This allocates storage for the class device and initialises it, but does not yet add it to the system or add attributes to it (you do this with transport_add_device). If you have no need for a separate setup and add operations, use transport_register_device (see transport_class.h).h]hXUsually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point to see if any set of transport classes wishes to associate with the added device. This allocates storage for the class device and initialises it, but does not yet add it to the system or add attributes to it (you do this with transport_add_device). If you have no need for a separate setup and add operations, use transport_register_device (see transport_class.h).}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjy%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!transport_add_device (C function)c.transport_add_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h-int transport_add_device (struct device *dev)h]h)}(h,int transport_add_device(struct device *dev)h](j8)}(hinth]hint}(hj&hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj&hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubj)}(h h]h }(hj-&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj,&hKubj")}(htransport_add_deviceh]j()}(htransport_add_deviceh]htransport_add_device}(hj?&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;&ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj&hhhj,&hKubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj[&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjW&ubj)}(h h]h }(hjh&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW&ubh)}(hhh]j()}(hdeviceh]hdevice}(hjy&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjv&ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj{&modnameN classnameNj@9jC9)}jF9]jI9)}j<9jA&sbc.transport_add_deviceasbuh1hhjW&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW&ubj]9)}(hj`9h]h*}(hj&hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjW&ubj()}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjW&ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjS&ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj&hhhj,&hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj&hhhj,&hKubah}(h]j&ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj,&hKhj&hhubjV)}(hhh]j[)}(h1declare a new dev for transport class associationh]h1declare a new dev for transport class association}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj&hhubah}(h]h ]h"]h$]h&]uh1jUhj&hhhj,&hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhj]hNhNubj)}(hXV**Parameters** ``struct device *dev`` the generic device representing the entity being added **Description** Usually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point used to add the device to the system and register attributes for it.h](j[)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj&ubj)}(hhh]j)}(hN``struct device *dev`` the generic device representing the entity being added h](j)}(h``struct device *dev``h]j)}(hj'h]hstruct device *dev}(hj!'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj'ubj)}(hhh]j[)}(h6the generic device representing the entity being addedh]h6the generic device representing the entity being added}(hj8'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4'hKhj5'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj4'hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubj[)}(h**Description**h]j)}(hjZ'h]h Description}(hj\'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX'ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj&ubj[)}(hUsually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point used to add the device to the system and register attributes for it.h]hUsually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point used to add the device to the system and register attributes for it.}(hjp'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'transport_configure_device (C function)c.transport_configure_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h4void transport_configure_device (struct device *dev)h]h)}(h3void transport_configure_device(struct device *dev)h](j8)}(hvoidh]hvoid}(hj'hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj'hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhj'hKubj")}(htransport_configure_deviceh]j()}(htransport_configure_deviceh]htransport_configure_device}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj'hhhj'hKubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j()}(hdeviceh]hdevice}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj'modnameN classnameNj@9jC9)}jF9]jI9)}j<9j'sbc.transport_configure_deviceasbuh1hhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj]9)}(hj`9h]h*}(hj((hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj'ubj()}(hdevh]hdev}(hj5(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj'ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj'hhhj'hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'hhhj'hKubah}(h]j'ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj'hKhj'hhubjV)}(hhh]j[)}(h"configure an already set up deviceh]h"configure an already set up device}(hj_(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj\(hhubah}(h]h ]h"]h$]h&]uh1jUhj'hhhj'hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjw(j{jw(j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` generic device representing device to be configured **Description** The idea of configure is simply to provide a point within the setup process to allow the transport class to extract information from a device after it has been setup. This is used in SCSI because we have to have a setup device to begin using the HBA, but after we send the initial inquiry, we use configure to extract the device parameters. The device need not have been added to be configured.6h](j[)}(h**Parameters**h]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj{(ubj)}(hhh]j)}(hK``struct device *dev`` generic device representing device to be configured h](j)}(h``struct device *dev``h]j)}(hj(h]hstruct device *dev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj(ubj)}(hhh]j[)}(h3generic device representing device to be configuredh]h3generic device representing device to be configured}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1jhj{(ubj[)}(h**Description**h]j)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj{(ubj[)}(hXThe idea of configure is simply to provide a point within the setup process to allow the transport class to extract information from a device after it has been setup. This is used in SCSI because we have to have a setup device to begin using the HBA, but after we send the initial inquiry, we use configure to extract the device parameters. The device need not have been added to be configured.h]hXThe idea of configure is simply to provide a point within the setup process to allow the transport class to extract information from a device after it has been setup. This is used in SCSI because we have to have a setup device to begin using the HBA, but after we send the initial inquiry, we use configure to extract the device parameters. The device need not have been added to be configured.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj{(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$transport_remove_device (C function)c.transport_remove_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h1void transport_remove_device (struct device *dev)h]h)}(h0void transport_remove_device(struct device *dev)h](j8)}(hvoidh]hvoid}(hj )hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj)hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMubj)}(h h]h }(hj/)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj.)hMubj")}(htransport_remove_deviceh]j()}(htransport_remove_deviceh]htransport_remove_device}(hjA)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=)ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj)hhhj.)hMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj])hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY)ubj)}(h h]h }(hjj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY)ubh)}(hhh]j()}(hdeviceh]hdevice}(hj{)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjx)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj})modnameN classnameNj@9jC9)}jF9]jI9)}j<9jC)sbc.transport_remove_deviceasbuh1hhjY)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY)ubj]9)}(hj`9h]h*}(hj)hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjY)ubj()}(hdevh]hdev}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjY)ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjU)ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj)hhhj.)hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj)hhhj.)hMubah}(h]j)ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj.)hMhj)hhubjV)}(hhh]j[)}(h!remove the visibility of a deviceh]h!remove the visibility of a device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj)hhubah}(h]h ]h"]h$]h&]uh1jUhj)hhhj.)hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj)j{j)j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` generic device to remove **Description** This call removes the visibility of the device (to the user from sysfs), but does not destroy it. To eliminate a device entirely you must also call transport_destroy_device. If you don't need to do remove and destroy as separate operations, use transport_unregister_device() (see transport_class.h) which will perform both calls for you.h](j[)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj)ubj)}(hhh]j)}(h0``struct device *dev`` generic device to remove h](j)}(h``struct device *dev``h]j)}(hj!*h]hstruct device *dev}(hj#*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj*ubj)}(hhh]j[)}(hgeneric device to removeh]hgeneric device to remove}(hj:*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6*hMhj7*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj6*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj)ubj[)}(h**Description**h]j)}(hj\*h]h Description}(hj^*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ*ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj)ubj[)}(hXSThis call removes the visibility of the device (to the user from sysfs), but does not destroy it. To eliminate a device entirely you must also call transport_destroy_device. If you don't need to do remove and destroy as separate operations, use transport_unregister_device() (see transport_class.h) which will perform both calls for you.h]hXUThis call removes the visibility of the device (to the user from sysfs), but does not destroy it. To eliminate a device entirely you must also call transport_destroy_device. If you don’t need to do remove and destroy as separate operations, use transport_unregister_device() (see transport_class.h) which will perform both calls for you.}(hjr*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%transport_destroy_device (C function)c.transport_destroy_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h2void transport_destroy_device (struct device *dev)h]h)}(h1void transport_destroy_device(struct device *dev)h](j8)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj*hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj*hM ubj")}(htransport_destroy_deviceh]j()}(htransport_destroy_deviceh]htransport_destroy_device}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj*hhhj*hM ubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j()}(hdeviceh]hdevice}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj*modnameN classnameNj@9jC9)}jF9]jI9)}j<9j*sbc.transport_destroy_deviceasbuh1hhj*ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj]9)}(hj`9h]h*}(hj*+hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj*ubj()}(hdevh]hdev}(hj7+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj*ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj*hhhj*hM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj*hhhj*hM ubah}(h]j*ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj*hM hj*hhubjV)}(hhh]j[)}(hdestroy a removed deviceh]hdestroy a removed device}(hja+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM hj^+hhubah}(h]h ]h"]h$]h&]uh1jUhj*hhhj*hM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjy+j{jy+j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` device to eliminate from the transport class. **Description** This call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.h](j[)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM$hj}+ubj)}(hhh]j)}(hE``struct device *dev`` device to eliminate from the transport class. h](j)}(h``struct device *dev``h]j)}(hj+h]hstruct device *dev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM"hj+ubj)}(hhh]j[)}(h-device to eliminate from the transport class.h]h-device to eliminate from the transport class.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+hM"hj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hM"hj+ubah}(h]h ]h"]h$]h&]uh1jhj}+ubj[)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM$hj}+ubj[)}(hXoThis call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.h]hXoThis call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM#hj}+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.driver_deferred_probe_check_state (C function)#c.driver_deferred_probe_check_statehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h:int driver_deferred_probe_check_state (struct device *dev)h]h)}(h9int driver_deferred_probe_check_state(struct device *dev)h](j8)}(hinth]hint}(hj",hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj,hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj1,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj0,hMubj")}(h!driver_deferred_probe_check_stateh]j()}(h!driver_deferred_probe_check_stateh]h!driver_deferred_probe_check_state}(hjC,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?,ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj,hhhj0,hMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj_,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[,ubj)}(h h]h }(hjl,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[,ubh)}(hhh]j()}(hdeviceh]hdevice}(hj},hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjz,ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj,modnameN classnameNj@9jC9)}jF9]jI9)}j<9jE,sb#c.driver_deferred_probe_check_stateasbuh1hhj[,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[,ubj]9)}(hj`9h]h*}(hj,hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj[,ubj()}(hdevh]hdev}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[,ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjW,ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj,hhhj0,hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj,hhhj0,hMubah}(h]j,ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj0,hMhj,hhubjV)}(hhh]j[)}(hCheck deferred probe stateh]hCheck deferred probe state}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,hhubah}(h]h ]h"]h$]h&]uh1jUhj,hhhj0,hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj,j{j,j|j}j~uh1hhhhj]hNhNubj)}(hX|**Parameters** ``struct device *dev`` device to check **Return** * -ENODEV if initcalls have completed and modules are disabled. * -ETIMEDOUT if the deferred probe timeout was set and has expired and modules are enabled. * -EPROBE_DEFER in other cases. **Description** Drivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.h](j[)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj#-h]hstruct device *dev}(hj%-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!-ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj<-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8-hMhj9-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj8-hMhj-ubah}(h]h ]h"]h$]h&]uh1jhj,ubj[)}(h **Return**h]j)}(hj^-h]hReturn}(hj`-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\-ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubj)}(hhh](j)}(h=-ENODEV if initcalls have completed and modules are disabled.h]j[)}(hjy-h]h=-ENODEV if initcalls have completed and modules are disabled.}(hj{-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjw-ubah}(h]h ]h"]h$]h&]uh1jhjt-ubj)}(hY-ETIMEDOUT if the deferred probe timeout was set and has expired and modules are enabled.h]j[)}(hY-ETIMEDOUT if the deferred probe timeout was set and has expired and modules are enabled.h]hY-ETIMEDOUT if the deferred probe timeout was set and has expired and modules are enabled.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-ubah}(h]h ]h"]h$]h&]uh1jhjt-ubj)}(h-EPROBE_DEFER in other cases. h]j[)}(h-EPROBE_DEFER in other cases.h]h-EPROBE_DEFER in other cases.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-ubah}(h]h ]h"]h$]h&]uh1jhjt-ubeh}(h]h ]h"]h$]h&]j~j`9uh1jhj-hMhj,ubj[)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubj[)}(hfDrivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.h]hfDrivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_is_bound (C function)c.device_is_boundhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h)bool device_is_bound (struct device *dev)h]h)}(h(bool device_is_bound(struct device *dev)h](j8)}(hj;h]hbool}(hj.hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj .hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj .hhhj.hMubj")}(hdevice_is_boundh]j()}(hdevice_is_boundh]hdevice_is_bound}(hj..hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*.ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj .hhhj.hMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjJ.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjF.ubj)}(h h]h }(hjW.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF.ubh)}(hhh]j()}(hdeviceh]hdevice}(hjh.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hje.ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjj.modnameN classnameNj@9jC9)}jF9]jI9)}j<9j0.sbc.device_is_boundasbuh1hhjF.ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF.ubj]9)}(hj`9h]h*}(hj.hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjF.ubj()}(hdevh]hdev}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjF.ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjB.ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj .hhhj.hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj.hhhj.hMubah}(h]j.ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj.hMhj.hhubjV)}(hhh]j[)}(h$Check if device is bound to a driverh]h$Check if device is bound to a driver}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj.hhubah}(h]h ]h"]h$]h&]uh1jUhj.hhhj.hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj.j{j.j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *dev`` device to check **Description** Returns true if passed device has already finished probing successfully against a driver. This function must be called with the device lock held.h](j[)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj.ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj/h]hstruct device *dev}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj /ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj/ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj'/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#/hMhj$/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj#/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj.ubj[)}(h**Description**h]j)}(hjI/h]h Description}(hjK/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG/ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj.ubj[)}(hYReturns true if passed device has already finished probing successfully against a driver.h]hYReturns true if passed device has already finished probing successfully against a driver.}(hj_/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj.ubj[)}(h7This function must be called with the device lock held.h]h7This function must be called with the device lock held.}(hjn/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_bind_driver (C function)c.device_bind_driverhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h+int device_bind_driver (struct device *dev)h]h)}(h*int device_bind_driver(struct device *dev)h](j8)}(hinth]hint}(hj/hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj/hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj/hMubj")}(hdevice_bind_driverh]j()}(hdevice_bind_driverh]hdevice_bind_driver}(hj/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/hhhj/hMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubh)}(hhh]j()}(hdeviceh]hdevice}(hj/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj/modnameN classnameNj@9jC9)}jF9]jI9)}j<9j/sbc.device_bind_driverasbuh1hhj/ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj]9)}(hj`9h]h*}(hj&0hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj/ubj()}(hdevh]hdev}(hj30hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj/ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj/hhhj/hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj/hhhj/hMubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj/hMhj/hhubjV)}(hhh]j[)}(hbind a driver to one device.h]hbind a driver to one device.}(hj]0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjZ0hhubah}(h]h ]h"]h$]h&]uh1jUhj/hhhj/hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzju0j{ju0j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *dev`` device. **Description** Allow manual attachment of a driver to a device. Caller must have already set **dev->driver**. Note that this does not modify the bus reference count. Please verify that is accounted for before calling this. (It is ok to call with no other effort from a driver's probe() method.) This function must be called with the device lock held. Callers should prefer to use device_driver_attach() instead.h](j[)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}0ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjy0ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj0h]hstruct device *dev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj0ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjy0ubj[)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjy0ubj[)}(h^Allow manual attachment of a driver to a device. Caller must have already set **dev->driver**.h](hNAllow manual attachment of a driver to a device. Caller must have already set }(hj0hhhNhNubj)}(h**dev->driver**h]h dev->driver}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjy0ubj[)}(hNote that this does not modify the bus reference count. Please verify that is accounted for before calling this. (It is ok to call with no other effort from a driver's probe() method.)h]hNote that this does not modify the bus reference count. Please verify that is accounted for before calling this. (It is ok to call with no other effort from a driver’s probe() method.)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjy0ubj[)}(h7This function must be called with the device lock held.h]h7This function must be called with the device lock held.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjy0ubj[)}(hparent** lock must be held.h](j[)}(h**Parameters**h]j)}(hjX3h]h Parameters}(hjZ3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV3ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMmhjR3ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjw3h]hstruct device *dev}(hjy3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMjhjq3ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3hMjhj3ubah}(h]h ]h"]h$]h&]uh1jhjq3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMjhjn3ubah}(h]h ]h"]h$]h&]uh1jhjR3ubj[)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMlhjR3ubj[)}(hWalk the list of drivers that the bus has and call driver_probe_device() for each pair. If a compatible pair is found, break out and return.h]hWalk the list of drivers that the bus has and call driver_probe_device() for each pair. If a compatible pair is found, break out and return.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMkhjR3ubj[)}(hzReturns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered.h]hzReturns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMohjR3ubj[)}(hCWhen called for a USB interface, **dev->parent** lock must be held.h](h!When called for a USB interface, }(hj3hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh lock must be held.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMshjR3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!device_driver_attach (C function)c.device_driver_attachhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hNint device_driver_attach (const struct device_driver *drv, struct device *dev)h]h)}(hMint device_driver_attach(const struct device_driver *drv, struct device *dev)h](j8)}(hinth]hint}(hj'4hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj#4hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj64hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#4hhhj54hMubj")}(hdevice_driver_attachh]j()}(hdevice_driver_attachh]hdevice_driver_attach}(hjH4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjD4ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj#4hhhj54hMubj8)}(h5(const struct device_driver *drv, struct device *dev)h](j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjd4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`4ubj)}(h h]h }(hjq4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`4ubh)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`4ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj4modnameN classnameNj@9jC9)}jF9]jI9)}j<9jJ4sbc.device_driver_attachasbuh1hhj`4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`4ubj]9)}(hj`9h]h*}(hj4hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj`4ubj()}(hdrvh]hdrv}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj\4ubj9)}(hstruct device *devh](h)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j()}(hdeviceh]hdevice}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj 5ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj5modnameN classnameNj@9jC9)}jF9]j4c.device_driver_attachasbuh1hhj4ubj)}(h h]h }(hj-5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj]9)}(hj`9h]h*}(hj;5hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj4ubj()}(hdevh]hdev}(hjH5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj\4ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj#4hhhj54hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhj54hMubah}(h]j4ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj54hMhj4hhubjV)}(hhh]j[)}(h-attach a specific driver to a specific deviceh]h-attach a specific driver to a specific device}(hjr5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjo5hhubah}(h]h ]h"]h$]h&]uh1jUhj4hhhj54hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj5j{j5j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct device_driver *drv`` Driver to attach ``struct device *dev`` Device to attach it to **Description** Manually attach driver to a device. Will acquire both **dev** lock and **dev->parent** lock if needed. Returns 0 on success, -ERR on failure.h](j[)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj5ubj)}(hhh](j)}(h5``const struct device_driver *drv`` Driver to attach h](j)}(h#``const struct device_driver *drv``h]j)}(hj5h]hconst struct device_driver *drv}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj5ubj)}(hhh]j[)}(hDriver to attachh]hDriver to attach}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubj)}(h.``struct device *dev`` Device to attach it to h](j)}(h``struct device *dev``h]j)}(hj5h]hstruct device *dev}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj5ubj)}(hhh]j[)}(hDevice to attach it toh]hDevice to attach it to}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hMhj6ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj6hMhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5ubj[)}(h**Description**h]j)}(hj'6h]h Description}(hj)6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%6ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj5ubj[)}(hManually attach driver to a device. Will acquire both **dev** lock and **dev->parent** lock if needed. Returns 0 on success, -ERR on failure.h](h6Manually attach driver to a device. Will acquire both }(hj=6hhhNhNubj)}(h**dev**h]hdev}(hjE6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=6ubh lock and }(hj=6hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjW6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=6ubh7 lock if needed. Returns 0 on success, -ERR on failure.}(hj=6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_attach (C function)c.driver_attachhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h3int driver_attach (const struct device_driver *drv)h]h)}(h2int driver_attach(const struct device_driver *drv)h](j8)}(hinth]hint}(hj6hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj6hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6hhhj6hMubj")}(h driver_attachh]j()}(h driver_attachh]h driver_attach}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj6hhhj6hMubj8)}(h!(const struct device_driver *drv)h]j9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj7modnameN classnameNj@9jC9)}jF9]jI9)}j<9j6sbc.driver_attachasbuh1hhj6ubj)}(h h]h }(hj&7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj]9)}(hj`9h]h*}(hj47hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj6ubj()}(hdrvh]hdrv}(hjA7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj6ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj6hhhj6hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj6hhhj6hMubah}(h]j6ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj6hMhj6hhubjV)}(hhh]j[)}(htry to bind driver to devices.h]htry to bind driver to devices.}(hjk7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjh7hhubah}(h]h ]h"]h$]h&]uh1jUhj6hhhj6hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj7j{j7j|j}j~uh1hhhhj]hNhNubj)}(hX **Parameters** ``const struct device_driver *drv`` driver. **Description** Walk the list of devices that the bus has on it and try to match the driver with each one. If driver_probe_device() returns 0 and the **dev->driver** is set, we've found a compatible pair.h](j[)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj7ubj)}(hhh]j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hj7h]hconst struct device_driver *drv}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj7ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubj[)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj7ubj[)}(hWalk the list of devices that the bus has on it and try to match the driver with each one. If driver_probe_device() returns 0 and the **dev->driver** is set, we've found a compatible pair.h](hWalk the list of devices that the bus has on it and try to match the driver with each one. If driver_probe_device() returns 0 and the }(hj7hhhNhNubj)}(h**dev->driver**h]h dev->driver}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh) is set, we’ve found a compatible pair.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_release_driver (C function)c.device_release_driverhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h/void device_release_driver (struct device *dev)h]h)}(h.void device_release_driver(struct device *dev)h](j8)}(hvoidh]hvoid}(hj>8hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj:8hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMeubj)}(h h]h }(hjM8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:8hhhjL8hMeubj")}(hdevice_release_driverh]j()}(hdevice_release_driverh]hdevice_release_driver}(hj_8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[8ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj:8hhhjL8hMeubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj{8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw8ubh)}(hhh]j()}(hdeviceh]hdevice}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj8modnameN classnameNj@9jC9)}jF9]jI9)}j<9ja8sbc.device_release_driverasbuh1hhjw8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw8ubj]9)}(hj`9h]h*}(hj8hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjw8ubj()}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjw8ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjs8ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj:8hhhjL8hMeubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj68hhhjL8hMeubah}(h]j18ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjL8hMehj38hhubjV)}(hhh]j[)}(h#manually detach device from driver.h]h#manually detach device from driver.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMehj8hhubah}(h]h ]h"]h$]h&]uh1jUhj38hhhjL8hMeubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj9j{j9j|j}j~uh1hhhhj]hNhNubj)}(hXj**Parameters** ``struct device *dev`` device. **Description** Manually detach device from driver. When called for a USB interface, **dev->parent** lock must be held. If this function is to be called with **dev->parent** lock held, ensure that the device's consumers are unbound in advance or that their locks can be acquired under the **dev->parent** lock.h](j[)}(h**Parameters**h]j)}(hj 9h]h Parameters}(hj"9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMihj9ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj?9h]hstruct device *dev}(hjA9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=9ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMfhj99ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjX9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjT9hMfhjU9ubah}(h]h ]h"]h$]h&]uh1jhj99ubeh}(h]h ]h"]h$]h&]uh1jhjT9hMfhj69ubah}(h]h ]h"]h$]h&]uh1jhj9ubj[)}(h**Description**h]j)}(hjz9h]h Description}(hj|9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjx9ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhhj9ubj[)}(hgManually detach device from driver. When called for a USB interface, **dev->parent** lock must be held.h](hEManually detach device from driver. When called for a USB interface, }(hj9hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh lock must be held.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMghj9ubj[)}(hIf this function is to be called with **dev->parent** lock held, ensure that the device's consumers are unbound in advance or that their locks can be acquired under the **dev->parent** lock.h](h&If this function is to be called with }(hj9hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubhv lock held, ensure that the device’s consumers are unbound in advance or that their locks can be acquired under the }(hj9hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh lock.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMjhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_device_info (C struct)c.platform_device_infohNtauh1hhj]hhhNhNubh)}(hhh](h)}(hplatform_device_infoh]h)}(hstruct platform_device_infoh](h)}(hjh]hstruct}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hKubj")}(hplatform_device_infoh]j()}(hj9h]hplatform_device_info}(hj$:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj :ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj:hhhj:hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj9hhhj:hKubah}(h]j9ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj:hKhj9hhubjV)}(hhh]j[)}(h0set of parameters for creating a platform deviceh]h0set of parameters for creating a platform device}(hjF:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKuhjC:hhubah}(h]h ]h"]h$]h&]uh1jUhj9hhhj:hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj^:j{j^:j|j}j~uh1hhhhj]hNhNubj)}(hX***Definition**:: struct platform_device_info { struct device *parent; struct fwnode_handle *fwnode; bool of_node_reused; const char *name; int id; const struct resource *res; unsigned int num_res; const void *data; size_t size_data; u64 dma_mask; const struct software_node *swnode; const struct property_entry *properties; }; **Members** ``parent`` parent device for the new platform device. ``fwnode`` firmware node associated with the device. ``of_node_reused`` indicates that device tree node associated with the device is shared with another device, typically its ancestor. Setting this to ``true`` prevents the device from being matched via the OF match table, and stops the device core from automatically binding pinctrl configuration to avoid disrupting the other device. ``name`` name of the device. ``id`` instance ID of the device. Use ``PLATFORM_DEVID_NONE`` if there is only one instance of the device, or ``PLATFORM_DEVID_AUTO`` to let the kernel automatically assign a unique instance ID. ``res`` set of resources to attach to the device. ``num_res`` number of entries in **res**. ``data`` device-specific data for this platform device. ``size_data`` size of device-specific data. ``dma_mask`` DMA mask for the device. ``swnode`` a secondary software node to be attached to the device. The node will be automatically registered and its lifetime tied to the platform device if it is not registered yet. ``properties`` a set of software properties for the device. If provided, a managed software node will be automatically created and assigned to the device. The properties array must be terminated with a sentinel entry. Specifying both **properties** and **swnode** is not allowed.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf:ubh:}(hjf:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKyhjb:ubj)}(hXestruct platform_device_info { struct device *parent; struct fwnode_handle *fwnode; bool of_node_reused; const char *name; int id; const struct resource *res; unsigned int num_res; const void *data; size_t size_data; u64 dma_mask; const struct software_node *swnode; const struct property_entry *properties; };h]hXestruct platform_device_info { struct device *parent; struct fwnode_handle *fwnode; bool of_node_reused; const char *name; int id; const struct resource *res; unsigned int num_res; const void *data; size_t size_data; u64 dma_mask; const struct software_node *swnode; const struct property_entry *properties; };}hj:sbah}(h]h ]h"]h$]h&]j?j@uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK{hjb:ubj[)}(h **Members**h]j)}(hj:h]hMembers}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjb:ubj)}(hhh](j)}(h6``parent`` parent device for the new platform device. h](j)}(h ``parent``h]j)}(hj:h]hparent}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKwhj:ubj)}(hhh]j[)}(h*parent device for the new platform device.h]h*parent device for the new platform device.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:hKwhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKwhj:ubj)}(h5``fwnode`` firmware node associated with the device. h](j)}(h ``fwnode``h]j)}(hj:h]hfwnode}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKxhj:ubj)}(hhh]j[)}(h)firmware node associated with the device.h]h)firmware node associated with the device.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hKxhj;ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj;hKxhj:ubj)}(hXN``of_node_reused`` indicates that device tree node associated with the device is shared with another device, typically its ancestor. Setting this to ``true`` prevents the device from being matched via the OF match table, and stops the device core from automatically binding pinctrl configuration to avoid disrupting the other device. h](j)}(h``of_node_reused``h]j)}(hj%;h]hof_node_reused}(hj';hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#;ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK}hj;ubj)}(hhh]j[)}(hX:indicates that device tree node associated with the device is shared with another device, typically its ancestor. Setting this to ``true`` prevents the device from being matched via the OF match table, and stops the device core from automatically binding pinctrl configuration to avoid disrupting the other device.h](hindicates that device tree node associated with the device is shared with another device, typically its ancestor. Setting this to }(hj>;hhhNhNubj)}(h``true``h]htrue}(hjF;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>;ubh prevents the device from being matched via the OF match table, and stops the device core from automatically binding pinctrl configuration to avoid disrupting the other device.}(hj>;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKyhj;;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj:;hK}hj:ubj)}(h``name`` name of the device. h](j)}(h``name``h]j)}(hjq;h]hname}(hjs;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo;ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK~hjk;ubj)}(hhh]j[)}(hname of the device.h]hname of the device.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hK~hj;ubah}(h]h ]h"]h$]h&]uh1jhjk;ubeh}(h]h ]h"]h$]h&]uh1jhj;hK~hj:ubj)}(h``id`` instance ID of the device. Use ``PLATFORM_DEVID_NONE`` if there is only one instance of the device, or ``PLATFORM_DEVID_AUTO`` to let the kernel automatically assign a unique instance ID. h](j)}(h``id``h]j)}(hj;h]hid}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj;ubj)}(hhh]j[)}(hinstance ID of the device. Use ``PLATFORM_DEVID_NONE`` if there is only one instance of the device, or ``PLATFORM_DEVID_AUTO`` to let the kernel automatically assign a unique instance ID.h](hinstance ID of the device. Use }(hj;hhhNhNubj)}(h``PLATFORM_DEVID_NONE``h]hPLATFORM_DEVID_NONE}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh1 if there is only one instance of the device, or }(hj;hhhNhNubj)}(h``PLATFORM_DEVID_AUTO``h]hPLATFORM_DEVID_AUTO}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubh= to let the kernel automatically assign a unique instance ID.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj;hKhj:ubj)}(h2``res`` set of resources to attach to the device. h](j)}(h``res``h]j)}(hj<h]hres}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj<ubj)}(hhh]j[)}(h)set of resources to attach to the device.h]h)set of resources to attach to the device.}(hj!<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj:ubj)}(h*``num_res`` number of entries in **res**. h](j)}(h ``num_res``h]j)}(hjA<h]hnum_res}(hjC<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?<ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj;<ubj)}(hhh]j[)}(hnumber of entries in **res**.h](hnumber of entries in }(hjZ<hhhNhNubj)}(h**res**h]hres}(hjb<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ<ubh.}(hjZ<hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjV<hKhjW<ubah}(h]h ]h"]h$]h&]uh1jhj;<ubeh}(h]h ]h"]h$]h&]uh1jhjV<hKhj:ubj)}(h8``data`` device-specific data for this platform device. h](j)}(h``data``h]j)}(hj<h]hdata}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj<ubj)}(hhh]j[)}(h.device-specific data for this platform device.h]h.device-specific data for this platform device.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj:ubj)}(h,``size_data`` size of device-specific data. h](j)}(h ``size_data``h]j)}(hj<h]h size_data}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj<ubj)}(hhh]j[)}(hsize of device-specific data.h]hsize of device-specific data.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<hKhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhj:ubj)}(h&``dma_mask`` DMA mask for the device. h](j)}(h ``dma_mask``h]j)}(hj<h]hdma_mask}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj<ubj)}(hhh]j[)}(hDMA mask for the device.h]hDMA mask for the device.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhj:ubj)}(h``swnode`` a secondary software node to be attached to the device. The node will be automatically registered and its lifetime tied to the platform device if it is not registered yet. h](j)}(h ``swnode``h]j)}(hj7=h]hswnode}(hj9=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5=ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj1=ubj)}(hhh]j[)}(ha secondary software node to be attached to the device. The node will be automatically registered and its lifetime tied to the platform device if it is not registered yet.h]ha secondary software node to be attached to the device. The node will be automatically registered and its lifetime tied to the platform device if it is not registered yet.}(hjP=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjM=ubah}(h]h ]h"]h$]h&]uh1jhj1=ubeh}(h]h ]h"]h$]h&]uh1jhjL=hKhj:ubj)}(hX``properties`` a set of software properties for the device. If provided, a managed software node will be automatically created and assigned to the device. The properties array must be terminated with a sentinel entry. Specifying both **properties** and **swnode** is not allowed.h](j)}(h``properties``h]j)}(hjq=h]h properties}(hjs=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo=ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjk=ubj)}(hhh]j[)}(hXa set of software properties for the device. If provided, a managed software node will be automatically created and assigned to the device. The properties array must be terminated with a sentinel entry. Specifying both **properties** and **swnode** is not allowed.h](ha set of software properties for the device. If provided, a managed software node will be automatically created and assigned to the device. The properties array must be terminated with a sentinel entry. Specifying both }(hj=hhhNhNubj)}(h**properties**h]h properties}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh and }(hj=hhhNhNubj)}(h **swnode**h]hswnode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh is not allowed.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj=ubah}(h]h ]h"]h$]h&]uh1jhjk=ubeh}(h]h ]h"]h$]h&]uh1jhj=hKhj:ubeh}(h]h ]h"]h$]h&]uh1jhjb:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubj[)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj]hhubj[)}(hThis structure is used to hold information needed to create and register a platform device using platform_device_register_full().h]hThis structure is used to hold information needed to create and register a platform device using platform_device_register_full().}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj]hhubj[)}(hplatform_device_register_full() makes deep copies of **name**, **res**, **data** and **properties**, so the caller does not need to keep them after registration. If the registration is performed during initialization, these can be marked as __initconst.h](h5platform_device_register_full() makes deep copies of }(hj=hhhNhNubj)}(h**name**h]hname}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh, }(hj=hhhNhNubj)}(h**res**h]hres}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh, }hj=sbj)}(h**data**h]hdata}(hj)>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh and }(hj=hhhNhNubj)}(h**properties**h]h properties}(hj;>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubh, so the caller does not need to keep them after registration. If the registration is performed during initialization, these can be marked as __initconst.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj]hhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.platform_device_register_resndata (C function)#c.platform_device_register_resndatahNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct platform_device * platform_device_register_resndata (struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h]h)}(hstruct platform_device *platform_device_register_resndata(struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h](h)}(hjh]hstruct}(hjm>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhji>hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hj{>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji>hhhjz>hKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj>modnameN classnameNj@9jC9)}jF9]jI9)}j<9!platform_device_register_resndatasb#c.platform_device_register_resndataasbuh1hhji>hhhjz>hKubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji>hhhjz>hKubj]9)}(hj`9h]h*}(hj>hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hji>hhhjz>hKubj")}(h!platform_device_register_resndatah]j()}(hj>h]h!platform_device_register_resndata}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hji>hhhjz>hKubj8)}(h~(struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubh)}(hhh]j()}(hdeviceh]hdevice}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj?modnameN classnameNj@9jC9)}jF9]j>#c.platform_device_register_resndataasbuh1hhj>ubj)}(h h]h }(hj#?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj]9)}(hj`9h]h*}(hj1?hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj>ubj()}(hparenth]hparent}(hj>?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjW?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjS?ubj)}(h h]h }(hjd?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS?ubj8)}(hcharh]hchar}(hjr?hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjS?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS?ubj]9)}(hj`9h]h*}(hj?hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjS?ubj()}(hnameh]hname}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjS?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(hint idh](j8)}(hinth]hint}(hj?hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj()}(hidh]hid}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(hconst struct resource *resh](h)}(hj9h]hconst}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hjh]hstruct}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubh)}(hhh]j()}(hresourceh]hresource}(hj"@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj$@modnameN classnameNj@9jC9)}jF9]j>#c.platform_device_register_resndataasbuh1hhj?ubj)}(h h]h }(hj@@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj]9)}(hj`9h]h*}(hjN@hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj?ubj()}(hresh]hres}(hj[@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(hunsigned int numh](j8)}(hunsignedh]hunsigned}(hjt@hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjp@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubj8)}(hinth]hint}(hj@hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjp@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp@ubj()}(hnumh]hnum}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjp@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(hconst void *datah](h)}(hj9h]hconst}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj8)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj@ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj]9)}(hj`9h]h*}(hj@hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj@ubj()}(hdatah]hdata}(hj AhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubj9)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj%AhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"Aubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj'AmodnameN classnameNj@9jC9)}jF9]j>#c.platform_device_register_resndataasbuh1hhjAubj)}(h h]h }(hjCAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj()}(hsizeh]hsize}(hjQAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj>ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hji>hhhjz>hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhje>hhhjz>hKubah}(h]j`>ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjz>hKhjb>hhubjV)}(hhh]j[)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hj{AhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjxAhhubah}(h]h ]h"]h$]h&]uh1jUhjb>hhhjz>hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjAj{jAj|j}j~uh1hhhhj]hNhNubj)}(hX'**Parameters** ``struct device *parent`` parent device for the device we're adding ``const char *name`` base name of the device we're adding ``int id`` instance id ``const struct resource *res`` set of resources that needs to be allocated for the device ``unsigned int num`` number of resources ``const void *data`` platform specific data for this platform device ``size_t size`` size of platform specific data **Description** Returns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjAubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjAh]hstruct device *parent}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjAubj)}(hhh]j[)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjAubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjAh]hconst char *name}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjAubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj BhKhj Bubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj BhKhjAubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj.Bh]hint id}(hj0BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Bubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj(Bubj)}(hhh]j[)}(h instance idh]h instance id}(hjGBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjCBhKhjDBubah}(h]h ]h"]h$]h&]uh1jhj(Bubeh}(h]h ]h"]h$]h&]uh1jhjCBhKhjAubj)}(hZ``const struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``const struct resource *res``h]j)}(hjgBh]hconst struct resource *res}(hjiBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeBubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjaBubj)}(hhh]j[)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|BhKhj}Bubah}(h]h ]h"]h$]h&]uh1jhjaBubeh}(h]h ]h"]h$]h&]uh1jhj|BhKhjAubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjBh]hunsigned int num}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjBubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjAubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjBh]hconst void *data}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjBubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjAubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjCh]h size_t size}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj Cubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hj+ChhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'ChKhj(Cubah}(h]h ]h"]h$]h&]uh1jhj Cubeh}(h]h ]h"]h$]h&]uh1jhj'ChKhjAubeh}(h]h ]h"]h$]h&]uh1jhjAubj[)}(h**Description**h]j)}(hjMCh]h Description}(hjOChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKCubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjAubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjcChhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjmCh]hstruct platform_device}(hjoChhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhjkCubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjcCubh+ pointer on success, or ERR_PTR() on error.}(hjcChhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjChKhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,platform_device_register_simple (C function)!c.platform_device_register_simplehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct platform_device * platform_device_register_simple (const char *name, int id, const struct resource *res, unsigned int num)h]h)}(hstruct platform_device *platform_device_register_simple(const char *name, int id, const struct resource *res, unsigned int num)h](h)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjCmodnameN classnameNj@9jC9)}jF9]jI9)}j<9platform_device_register_simplesb!c.platform_device_register_simpleasbuh1hhjChhhjChKubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChKubj]9)}(hj`9h]h*}(hjDhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjChhhjChKubj")}(hplatform_device_register_simpleh]j()}(hjCh]hplatform_device_register_simple}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjChKubj8)}(hH(const char *name, int id, const struct resource *res, unsigned int num)h](j9)}(hconst char *nameh](h)}(hj9h]hconst}(hj/DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+Dubj)}(h h]h }(hj` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjEh]hconst char *name}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFhKhjFubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjFhKhjEubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj(Fh]hint id}(hj*FhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Fubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj"Fubj)}(hhh]j[)}(h instance idh]h instance id}(hjAFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=FhKhj>Fubah}(h]h ]h"]h$]h&]uh1jhj"Fubeh}(h]h ]h"]h$]h&]uh1jhj=FhKhjEubj)}(hZ``const struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``const struct resource *res``h]j)}(hjaFh]hconst struct resource *res}(hjcFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_Fubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj[Fubj)}(hhh]j[)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjzFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjvFhKhjwFubah}(h]h ]h"]h$]h&]uh1jhj[Fubeh}(h]h ]h"]h$]h&]uh1jhjvFhKhjEubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjFh]hunsigned int num}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjFubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFhKhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhKhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubj[)}(h**Description**h]j)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj[)}(hXThis function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.h]hXThis function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj[)}(hXrThis interface is primarily intended for use with legacy drivers which probe hardware directly. Because such drivers create sysfs device nodes themselves, rather than letting system infrastructure handle such device enumeration tasks, they don't fully conform to the Linux driver model. In particular, when such drivers are built as modules, they can't be "hotplugged".h]hXzThis interface is primarily intended for use with legacy drivers which probe hardware directly. Because such drivers create sysfs device nodes themselves, rather than letting system infrastructure handle such device enumeration tasks, they don’t fully conform to the Linux driver model. In particular, when such drivers are built as modules, they can’t be “hotplugged”.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj GhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjGh]hstruct platform_device}(hjGhhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj Gubh+ pointer on success, or ERR_PTR() on error.}(hj GhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj0GhKhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*platform_device_register_data (C function)c.platform_device_register_datahNtauh1hhj]hhhNhNubh)}(hhh](h)}(hstruct platform_device * platform_device_register_data (struct device *parent, const char *name, int id, const void *data, size_t size)h]h)}(hstruct platform_device *platform_device_register_data(struct device *parent, const char *name, int id, const void *data, size_t size)h](h)}(hjh]hstruct}(hj[GhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWGhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hjiGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWGhhhjhGhKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjzGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwGubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj|GmodnameN classnameNj@9jC9)}jF9]jI9)}j<9platform_device_register_datasbc.platform_device_register_dataasbuh1hhjWGhhhjhGhKubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWGhhhjhGhKubj]9)}(hj`9h]h*}(hjGhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjWGhhhjhGhKubj")}(hplatform_device_register_datah]j()}(hjGh]hplatform_device_register_data}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjWGhhhjhGhKubj8)}(hP(struct device *parent, const char *name, int id, const void *data, size_t size)h](j9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubh)}(hhh]j()}(hdeviceh]hdevice}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjGmodnameN classnameNj@9jC9)}jF9]jGc.platform_device_register_dataasbuh1hhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj]9)}(hj`9h]h*}(hjHhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjGubj()}(hparenth]hparent}(hj,HhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjGubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjEHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAHubj)}(h h]h }(hjRHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAHubj8)}(hcharh]hchar}(hj`HhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjAHubj)}(h h]h }(hjnHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAHubj]9)}(hj`9h]h*}(hj|HhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjAHubj()}(hnameh]hname}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjGubj9)}(hint idh](j8)}(hinth]hint}(hjHhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj()}(hidh]hid}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjGubj9)}(hconst void *datah](h)}(hj9h]hconst}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj8)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjHubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj]9)}(hj`9h]h*}(hjIhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjHubj()}(hdatah]hdata}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjGubj9)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj7IhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4Iubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj9ImodnameN classnameNj@9jC9)}jF9]jGc.platform_device_register_dataasbuh1hhj0Iubj)}(h h]h }(hjUIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Iubj()}(hsizeh]hsize}(hjcIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0Iubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjGubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjWGhhhjhGhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjSGhhhjhGhKubah}(h]jNGah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhGhKhjPGhhubjV)}(hhh]j[)}(h7add a platform-level device with platform-specific datah]h7add a platform-level device with platform-specific data}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjIhhubah}(h]h ]h"]h$]h&]uh1jUhjPGhhhjhGhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjIj{jIj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct device *parent`` parent device for the device we're adding ``const char *name`` base name of the device we're adding ``int id`` instance id ``const void *data`` platform specific data for this platform device ``size_t size`` size of platform specific data **Description** This function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped. Returns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjIubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjIh]hstruct device *parent}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjIubj)}(hhh]j[)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhKhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjIubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjJh]hconst char *name}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjJubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hj JhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjIubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj@Jh]hint id}(hjBJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Jubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj:Jubj)}(hhh]j[)}(h instance idh]h instance id}(hjYJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUJhKhjVJubah}(h]h ]h"]h$]h&]uh1jhj:Jubeh}(h]h ]h"]h$]h&]uh1jhjUJhKhjIubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjyJh]hconst void *data}(hj{JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwJubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjsJubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjsJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjIubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjJh]h size_t size}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjJubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjIubeh}(h]h ]h"]h$]h&]uh1jhjIubj[)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjIubj[)}(hXThis function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.h]hXThis function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjIubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjKhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjKh]hstruct platform_device}(hjKhhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjKubh+ pointer on success, or ERR_PTR() on error.}(hjKhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj9KhKhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"platform_get_resource (C function)c.platform_get_resourcehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hjstruct resource * platform_get_resource (struct platform_device *dev, unsigned int type, unsigned int num)h]h)}(hhstruct resource *platform_get_resource(struct platform_device *dev, unsigned int type, unsigned int num)h](h)}(hjh]hstruct}(hjdKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`Khhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0ubj)}(h h]h }(hjrKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`KhhhjqKhK0ubh)}(hhh]j()}(hresourceh]hresource}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjKmodnameN classnameNj@9jC9)}jF9]jI9)}j<9platform_get_resourcesbc.platform_get_resourceasbuh1hhj`KhhhjqKhK0ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`KhhhjqKhK0ubj]9)}(hj`9h]h*}(hjKhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj`KhhhjqKhK0ubj")}(hplatform_get_resourceh]j()}(hjKh]hplatform_get_resource}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`KhhhjqKhK0ubj8)}(hB(struct platform_device *dev, unsigned int type, unsigned int num)h](j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjKmodnameN classnameNj@9jC9)}jF9]jKc.platform_get_resourceasbuh1hhjKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj]9)}(hj`9h]h*}(hj(LhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjKubj()}(hdevh]hdev}(hj5LhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjKubj9)}(hunsigned int typeh](j8)}(hunsignedh]hunsigned}(hjNLhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjJLubj)}(h h]h }(hj\LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJLubj8)}(hinth]hint}(hjjLhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjJLubj)}(h h]h }(hjxLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJLubj()}(htypeh]htype}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJLubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjKubj9)}(hunsigned int numh](j8)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj8)}(hinth]hint}(hjLhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj()}(hnumh]hnum}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjKubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj`KhhhjqKhK0ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj\KhhhjqKhK0ubah}(h]jWKah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqKhK0hjYKhhubjV)}(hhh]j[)}(hget a resource for a deviceh]hget a resource for a device}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0hjLhhubah}(h]h ]h"]h$]h&]uh1jUhjYKhhhjqKhK0ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjMj{jMj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct platform_device *dev`` platform device ``unsigned int type`` resource type ``unsigned int num`` resource index **Return** a pointer to the resource or NULL on failure.h](j[)}(h**Parameters**h]j)}(hj#Mh]h Parameters}(hj%MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Mubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK4hjMubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjBMh]hstruct platform_device *dev}(hjDMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Mubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK1hjZubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjYubj[)}(hX"Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. This is the same as platform_get_irq(), except that it does not print an error message if an interrupt can not be obtained.h]hX"Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. This is the same as platform_get_irq(), except that it does not print an error message if an interrupt can not be obtained.}(hjVZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjYubj[)}(h For example::h]h For example:}(hjeZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjYubj)}(hNint irq = platform_get_irq_optional(pdev, 0); if (irq < 0) return irq;h]hNint irq = platform_get_irq_optional(pdev, 0); if (irq < 0) return irq;}hjtZsbah}(h]h ]h"]h$]h&]j?j@uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjYubj[)}(h **Return**h]j)}(hjZh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjYubj[)}(hGnon-zero interrupt number on success, negative error number on failure.h]hGnon-zero interrupt number on success, negative error number on failure.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_get_irq (C function)c.platform_get_irqhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hDint platform_get_irq (struct platform_device *dev, unsigned int num)h]h)}(hCint platform_get_irq(struct platform_device *dev, unsigned int num)h](j8)}(hinth]hint}(hjZhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjZhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjZhMubj")}(hplatform_get_irqh]j()}(hplatform_get_irqh]hplatform_get_irq}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjZhhhjZhMubj8)}(h/(struct platform_device *dev, unsigned int num)h](j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj%[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"[ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj'[modnameN classnameNj@9jC9)}jF9]jI9)}j<9jZsbc.platform_get_irqasbuh1hhj[ubj)}(h h]h }(hjE[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj]9)}(hj`9h]h*}(hjS[hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj[ubj()}(hdevh]hdev}(hj`[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjZubj9)}(hunsigned int numh](j8)}(hunsignedh]hunsigned}(hjy[hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hju[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju[ubj8)}(hinth]hint}(hj[hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hju[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju[ubj()}(hnumh]hnum}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hju[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjZubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjZhhhjZhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjZhhhjZhMubah}(h]jZah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjZhMhjZhhubjV)}(hhh]j[)}(hget an IRQ for a deviceh]hget an IRQ for a device}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jUhjZhhhjZhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj[j{j[j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_device *dev`` platform device ``unsigned int num`` IRQ number index **Description** Gets an IRQ for a platform device and prints an error message if finding the IRQ fails. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. For example:: int irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; **Return** non-zero IRQ number on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM!hj[ubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hj\h]hstruct platform_device *dev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj\ubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hj5\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1\hMhj2\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj1\hMhj\ubj)}(h&``unsigned int num`` IRQ number index h](j)}(h``unsigned int num``h]j)}(hjU\h]hunsigned int num}(hjW\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjO\ubj)}(hhh]j[)}(hIRQ number indexh]hIRQ number index}(hjn\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjj\hMhjk\ubah}(h]h ]h"]h$]h&]uh1jhjO\ubeh}(h]h ]h"]h$]h&]uh1jhjj\hMhj\ubeh}(h]h ]h"]h$]h&]uh1jhj[ubj[)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM!hj[ubj[)}(hGets an IRQ for a platform device and prints an error message if finding the IRQ fails. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs.h]hGets an IRQ for a platform device and prints an error message if finding the IRQ fails. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj[ubj[)}(h For example::h]h For example:}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM$hj[ubj)}(hEint irq = platform_get_irq(pdev, 0); if (irq < 0) return irq;h]hEint irq = platform_get_irq(pdev, 0); if (irq < 0) return irq;}hj\sbah}(h]h ]h"]h$]h&]j?j@uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM&hj[ubj[)}(h **Return**h]j)}(hj\h]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM*hj[ubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM+hj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_irq_count (C function)c.platform_irq_counthNtauh1hhj]hhhNhNubh)}(hhh](h)}(h4int platform_irq_count (struct platform_device *dev)h]h)}(h3int platform_irq_count(struct platform_device *dev)h](j8)}(hinth]hint}(hj]hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj]hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM;ubj)}(h h]h }(hj)]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj(]hM;ubj")}(hplatform_irq_counth]j()}(hplatform_irq_counth]hplatform_irq_count}(hj;]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7]ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj]hhhj(]hM;ubj8)}(h(struct platform_device *dev)h]j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjW]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjS]ubj)}(h h]h }(hjd]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS]ubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hju]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjr]ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjw]modnameN classnameNj@9jC9)}jF9]jI9)}j<9j=]sbc.platform_irq_countasbuh1hhjS]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS]ubj]9)}(hj`9h]h*}(hj]hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjS]ubj()}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjS]ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjO]ubah}(h]h ]h"]h$]h&]j?j@uh1j8hj]hhhj(]hM;ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj]hhhj(]hM;ubah}(h]j ]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj(]hM;hj]hhubjV)}(hhh]j[)}(h/Count the number of IRQs a platform device usesh]h/Count the number of IRQs a platform device uses}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM;hj]hhubah}(h]h ]h"]h$]h&]uh1jUhj]hhhj(]hM;ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj]j{j]j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct platform_device *dev`` platform device **Return** Number of IRQs a platform device uses or EPROBE_DEFERh](j[)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM?hj]ubj)}(hhh]j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hj^h]hstruct platform_device *dev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM<hj^ubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hj4^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0^hM<hj1^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj0^hM<hj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubj[)}(h **Return**h]j)}(hjV^h]hReturn}(hjX^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT^ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj]ubj[)}(h5Number of IRQs a platform device uses or EPROBE_DEFERh]h5Number of IRQs a platform device uses or EPROBE_DEFER}(hjl^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,devm_platform_get_irqs_affinity (C function)!c.devm_platform_get_irqs_affinityhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hint devm_platform_get_irqs_affinity (struct platform_device *dev, struct irq_affinity *affd, unsigned int minvec, unsigned int maxvec, int **irqs)h]h)}(hint devm_platform_get_irqs_affinity(struct platform_device *dev, struct irq_affinity *affd, unsigned int minvec, unsigned int maxvec, int **irqs)h](j8)}(hinth]hint}(hj^hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj^hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMkubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hMkubj")}(hdevm_platform_get_irqs_affinityh]j()}(hdevm_platform_get_irqs_affinityh]hdevm_platform_get_irqs_affinity}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj^hhhj^hMkubj8)}(hn(struct platform_device *dev, struct irq_affinity *affd, unsigned int minvec, unsigned int maxvec, int **irqs)h](j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj^modnameN classnameNj@9jC9)}jF9]jI9)}j<9j^sb!c.devm_platform_get_irqs_affinityasbuh1hhj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj]9)}(hj`9h]h*}(hj$_hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj^ubj()}(hdevh]hdev}(hj1_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj^ubj9)}(hstruct irq_affinity *affdh](h)}(hjh]hstruct}(hjJ_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjF_ubj)}(h h]h }(hjW_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF_ubh)}(hhh]j()}(h irq_affinityh]h irq_affinity}(hjh_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hje_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjj_modnameN classnameNj@9jC9)}jF9]j_!c.devm_platform_get_irqs_affinityasbuh1hhjF_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF_ubj]9)}(hj`9h]h*}(hj_hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjF_ubj()}(haffdh]haffd}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjF_ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj^ubj9)}(hunsigned int minvech](j8)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj8)}(hinth]hint}(hj_hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj()}(hminvech]hminvec}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj^ubj9)}(hunsigned int maxvech](j8)}(hunsignedh]hunsigned}(hj `hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj8)}(hinth]hint}(hj'`hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj`ubj)}(h h]h }(hj5`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj()}(hmaxvech]hmaxvec}(hjC`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj^ubj9)}(h int **irqsh](j8)}(hinth]hint}(hj\`hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjX`ubj)}(h h]h }(hjj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX`ubj]9)}(hj`9h]h*}(hjx`hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjX`ubj]9)}(hj`9h]h*}(hj`hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjX`ubj()}(hirqsh]hirqs}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjX`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj^ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj^hhhj^hMkubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj^hhhj^hMkubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj^hMkhj^hhubjV)}(hhh]j[)}(hTdevm method to get a set of IRQs for a device using an interrupt affinity descriptorh]hTdevm method to get a set of IRQs for a device using an interrupt affinity descriptor}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMkhj`hhubah}(h]h ]h"]h$]h&]uh1jUhj^hhhj^hMkubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj`j{j`j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_device *dev`` platform device pointer ``struct irq_affinity *affd`` affinity descriptor ``unsigned int minvec`` minimum count of interrupt vectors ``unsigned int maxvec`` maximum count of interrupt vectors ``int **irqs`` pointer holder for IRQ numbers **Description** Gets a set of IRQs for a platform device, and updates IRQ afffinty according to the passed affinity descriptor **Return** Number of vectors on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMohj`ubj)}(hhh](j)}(h8``struct platform_device *dev`` platform device pointer h](j)}(h``struct platform_device *dev``h]j)}(hj`h]hstruct platform_device *dev}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMmhj`ubj)}(hhh]j[)}(hplatform device pointerh]hplatform device pointer}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahMmhjaubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhjahMmhj`ubj)}(h2``struct irq_affinity *affd`` affinity descriptor h](j)}(h``struct irq_affinity *affd``h]j)}(hj6ah]hstruct irq_affinity *affd}(hj8ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4aubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMnhj0aubj)}(hhh]j[)}(haffinity descriptorh]haffinity descriptor}(hjOahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKahMnhjLaubah}(h]h ]h"]h$]h&]uh1jhj0aubeh}(h]h ]h"]h$]h&]uh1jhjKahMnhj`ubj)}(h;``unsigned int minvec`` minimum count of interrupt vectors h](j)}(h``unsigned int minvec``h]j)}(hjoah]hunsigned int minvec}(hjqahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMohjiaubj)}(hhh]j[)}(h"minimum count of interrupt vectorsh]h"minimum count of interrupt vectors}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahMohjaubah}(h]h ]h"]h$]h&]uh1jhjiaubeh}(h]h ]h"]h$]h&]uh1jhjahMohj`ubj)}(h;``unsigned int maxvec`` maximum count of interrupt vectors h](j)}(h``unsigned int maxvec``h]j)}(hjah]hunsigned int maxvec}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMphjaubj)}(hhh]j[)}(h"maximum count of interrupt vectorsh]h"maximum count of interrupt vectors}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahMphjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMphj`ubj)}(h.``int **irqs`` pointer holder for IRQ numbers h](j)}(h``int **irqs``h]j)}(hjah]h int **irqs}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMqhjaubj)}(hhh]j[)}(hpointer holder for IRQ numbersh]hpointer holder for IRQ numbers}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahMqhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMqhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubj[)}(h**Description**h]j)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMshj`ubj[)}(hnGets a set of IRQs for a platform device, and updates IRQ afffinty according to the passed affinity descriptorh]hnGets a set of IRQs for a platform device, and updates IRQ afffinty according to the passed affinity descriptor}(hj2bhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMrhj`ubj[)}(h **Return**h]j)}(hjCbh]hReturn}(hjEbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAbubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMuhj`ubj[)}(h?Number of vectors on success, negative error number on failure.h]h?Number of vectors on success, negative error number on failure.}(hjYbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMvhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)platform_get_resource_byname (C function)c.platform_get_resource_bynamehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hqstruct resource * platform_get_resource_byname (struct platform_device *dev, unsigned int type, const char *name)h]h)}(hostruct resource *platform_get_resource_byname(struct platform_device *dev, unsigned int type, const char *name)h](h)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubh)}(hhh]j()}(hresourceh]hresource}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjbmodnameN classnameNj@9jC9)}jF9]jI9)}j<9platform_get_resource_bynamesbc.platform_get_resource_bynameasbuh1hhjbhhhjbhMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhMubj]9)}(hj`9h]h*}(hjbhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjbhhhjbhMubj")}(hplatform_get_resource_bynameh]j()}(hjbh]hplatform_get_resource_byname}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjbhhhjbhMubj8)}(hB(struct platform_device *dev, unsigned int type, const char *name)h](j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj chhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj"cmodnameN classnameNj@9jC9)}jF9]jbc.platform_get_resource_bynameasbuh1hhjbubj)}(h h]h }(hj>chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj]9)}(hj`9h]h*}(hjLchhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjbubj()}(hdevh]hdev}(hjYchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubj9)}(hunsigned int typeh](j8)}(hunsignedh]hunsigned}(hjrchhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjncubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjncubj8)}(hinth]hint}(hjchhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjncubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjncubj()}(htypeh]htype}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjncubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj8)}(hcharh]hchar}(hjchhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj]9)}(hj`9h]h*}(hjchhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjcubj()}(hnameh]hname}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjbhhhjbhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhjbhMubah}(h]j{bah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjbhMhj}bhhubjV)}(hhh]j[)}(h#get a resource for a device by nameh]h#get a resource for a device by name}(hj1dhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj.dhhubah}(h]h ]h"]h$]h&]uh1jUhj}bhhhjbhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjIdj{jIdj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct platform_device *dev`` platform device ``unsigned int type`` resource type ``const char *name`` resource nameh](j[)}(h**Parameters**h]j)}(hjSdh]h Parameters}(hjUdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQdubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjMdubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjrdh]hstruct platform_device *dev}(hjtdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjldubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjldubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjidubj)}(h$``unsigned int type`` resource type h](j)}(h``unsigned int type``h]j)}(hjdh]hunsigned int type}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj)}(hhh]j[)}(h resource typeh]h resource type}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjidubj)}(h"``const char *name`` resource nameh](j)}(h``const char *name``h]j)}(hjdh]hconst char *name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj)}(hhh]j[)}(h resource nameh]h resource name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjidubeh}(h]h ]h"]h$]h&]uh1jhjMdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$platform_get_irq_byname (C function)c.platform_get_irq_bynamehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hKint platform_get_irq_byname (struct platform_device *dev, const char *name)h]h)}(hJint platform_get_irq_byname(struct platform_device *dev, const char *name)h](j8)}(hinth]hint}(hj>ehhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj:ehhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjMehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ehhhjLehMubj")}(hplatform_get_irq_bynameh]j()}(hplatform_get_irq_bynameh]hplatform_get_irq_byname}(hj_ehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[eubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj:ehhhjLehMubj8)}(h/(struct platform_device *dev, const char *name)h](j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hj{ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjweubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjweubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjemodnameN classnameNj@9jC9)}jF9]jI9)}j<9jaesbc.platform_get_irq_bynameasbuh1hhjweubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjweubj]9)}(hj`9h]h*}(hjehhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjweubj()}(hdevh]hdev}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjweubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjseubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj8)}(hcharh]hchar}(hjfhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjeubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj]9)}(hj`9h]h*}(hj$fhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjeubj()}(hnameh]hname}(hj1fhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjseubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj:ehhhjLehMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj6ehhhjLehMubah}(h]j1eah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjLehMhj3ehhubjV)}(hhh]j[)}(hget an IRQ for a device by nameh]hget an IRQ for a device by name}(hj[fhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjXfhhubah}(h]h ]h"]h$]h&]uh1jUhj3ehhhjLehMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjsfj{jsfj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_device *dev`` platform device ``const char *name`` IRQ name **Description** Get an IRQ like platform_get_irq(), but then by name rather then by index. **Return** non-zero IRQ number on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hj}fh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{fubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwfubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjfh]hstruct platform_device *dev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjfubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hjfh]hconst char *name}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjfubj)}(hhh]j[)}(hIRQ nameh]hIRQ name}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjfubeh}(h]h ]h"]h$]h&]uh1jhjwfubj[)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwfubj[)}(hJGet an IRQ like platform_get_irq(), but then by name rather then by index.h]hJGet an IRQ like platform_get_irq(), but then by name rather then by index.}(hj&ghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwfubj[)}(h **Return**h]j)}(hj7gh]hReturn}(hj9ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5gubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwfubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjMghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h-platform_get_irq_byname_optional (C function)"c.platform_get_irq_byname_optionalhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hTint platform_get_irq_byname_optional (struct platform_device *dev, const char *name)h]h)}(hSint platform_get_irq_byname_optional(struct platform_device *dev, const char *name)h](j8)}(hinth]hint}(hj|ghhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjxghhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxghhhjghM ubj")}(h platform_get_irq_byname_optionalh]j()}(h platform_get_irq_byname_optionalh]h platform_get_irq_byname_optional}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjxghhhjghM ubj8)}(h/(struct platform_device *dev, const char *name)h](j9)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjgmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jgsb"c.platform_get_irq_byname_optionalasbuh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj]9)}(hj`9h]h*}(hjhhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjgubj()}(hdevh]hdev}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjgubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hj+hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hubj)}(h h]h }(hj8hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hubj8)}(hcharh]hchar}(hjFhhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj'hubj)}(h h]h }(hjThhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hubj]9)}(hj`9h]h*}(hjbhhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj'hubj()}(hnameh]hname}(hjohhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'hubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjgubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjxghhhjghM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjtghhhjghM ubah}(h]jogah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjghM hjqghhubjV)}(hhh]j[)}(h(get an optional IRQ for a device by nameh]h(get an optional IRQ for a device by name}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjhhhubah}(h]h ]h"]h$]h&]uh1jUhjqghhhjghM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhj{jhj|j}j~uh1hhhhj]hNhNubj)}(hXM**Parameters** ``struct platform_device *dev`` platform device ``const char *name`` IRQ name **Description** Get an optional IRQ by name like platform_get_irq_byname(). Except that it does not print an error message if an IRQ can not be obtained. **Return** non-zero IRQ number on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjhubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjhh]hstruct platform_device *dev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjhubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhhM hjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhM hjhubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hjih]hconst char *name}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj iubj)}(hhh]j[)}(hIRQ nameh]hIRQ name}(hj,ihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(ihM hj)iubah}(h]h ]h"]h$]h&]uh1jhj iubeh}(h]h ]h"]h$]h&]uh1jhj(ihM hjhubeh}(h]h ]h"]h$]h&]uh1jhjhubj[)}(h**Description**h]j)}(hjNih]h Description}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLiubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjhubj[)}(hGet an optional IRQ by name like platform_get_irq_byname(). Except that it does not print an error message if an IRQ can not be obtained.h]hGet an optional IRQ by name like platform_get_irq_byname(). Except that it does not print an error message if an IRQ can not be obtained.}(hjdihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjhubj[)}(h **Return**h]j)}(hjuih]hReturn}(hjwihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsiubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjhubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!platform_add_devices (C function)c.platform_add_deviceshNtauh1hhj]hhhNhNubh)}(hhh](h)}(hAint platform_add_devices (struct platform_device **devs, int num)h]h)}(h@int platform_add_devices(struct platform_device **devs, int num)h](j8)}(hinth]hint}(hjihhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjihhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhjihMubj")}(hplatform_add_devicesh]j()}(hplatform_add_devicesh]hplatform_add_devices}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjihhhjihMubj8)}(h((struct platform_device **devs, int num)h](j9)}(hstruct platform_device **devsh](h)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jisbc.platform_add_devicesasbuh1hhjiubj)}(h h]h }(hj5jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj]9)}(hj`9h]h*}(hjCjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjiubj]9)}(hj`9h]h*}(hjPjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjiubj()}(hdevsh]hdevs}(hj]jhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjiubj9)}(hint numh](j8)}(hinth]hint}(hjvjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjrjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrjubj()}(hnumh]hnum}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjiubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjihhhjihMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjihMubah}(h]jiah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjihMhjihhubjV)}(hhh]j[)}(h!add a numbers of platform devicesh]h!add a numbers of platform devices}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jUhjihhhjihMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjjj{jjj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct platform_device **devs`` array of platform devices to add ``int num`` number of platform devices in array **Return** 0 on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjjubj)}(hhh](j)}(hC``struct platform_device **devs`` array of platform devices to add h](j)}(h!``struct platform_device **devs``h]j)}(hjjh]hstruct platform_device **devs}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjjubj)}(hhh]j[)}(h array of platform devices to addh]h array of platform devices to add}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubj)}(h0``int num`` number of platform devices in array h](j)}(h ``int num``h]j)}(hj6kh]hint num}(hj8khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4kubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj0kubj)}(hhh]j[)}(h#number of platform devices in arrayh]h#number of platform devices in array}(hjOkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKkhMhjLkubah}(h]h ]h"]h$]h&]uh1jhj0kubeh}(h]h ]h"]h$]h&]uh1jhjKkhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjjubj[)}(h **Return**h]j)}(hjqkh]hReturn}(hjskhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjokubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjjubj[)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h platform_device_put (C function)c.platform_device_puthNtauh1hhj]hhhNhNubh)}(hhh](h)}(h7void platform_device_put (struct platform_device *pdev)h]h)}(h6void platform_device_put(struct platform_device *pdev)h](j8)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjkhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkhhhjkhMHubj")}(hplatform_device_puth]j()}(hplatform_device_puth]hplatform_device_put}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjkhhhjkhMHubj8)}(h(struct platform_device *pdev)h]j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjlmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jksbc.platform_device_putasbuh1hhjkubj)}(h h]h }(hj1lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj]9)}(hj`9h]h*}(hj?lhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjkubj()}(hpdevh]hpdev}(hjLlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjkubah}(h]h ]h"]h$]h&]j?j@uh1j8hjkhhhjkhMHubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjkhhhjkhMHubah}(h]jkah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjkhMHhjkhhubjV)}(hhh]j[)}(hdestroy a platform deviceh]hdestroy a platform device}(hjvlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHhjslhhubah}(h]h ]h"]h$]h&]uh1jUhjkhhhjkhMHubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjlj{jlj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct platform_device *pdev`` platform device to free **Description** Free all memory associated with a platform device. This function must _only_ be externally called in error cases. All other usage is a bug.h](j[)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMLhjlubj)}(hhh]j)}(h9``struct platform_device *pdev`` platform device to free h](j)}(h ``struct platform_device *pdev``h]j)}(hjlh]hstruct platform_device *pdev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMIhjlubj)}(hhh]j[)}(hplatform device to freeh]hplatform device to free}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhMIhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMIhjlubah}(h]h ]h"]h$]h&]uh1jhjlubj[)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMKhjlubj[)}(hFree all memory associated with a platform device. This function must _only_ be externally called in error cases. All other usage is a bug.h]hFree all memory associated with a platform device. This function must _only_ be externally called in error cases. All other usage is a bug.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMJhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"platform_device_alloc (C function)c.platform_device_allochNtauh1hhj]hhhNhNubh)}(hhh](h)}(hIstruct platform_device * platform_device_alloc (const char *name, int id)h]h)}(hGstruct platform_device *platform_device_alloc(const char *name, int id)h](h)}(hjh]hstruct}(hj7mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3mhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMbubj)}(h h]h }(hjEmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3mhhhjDmhMbubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjVmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSmubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjXmmodnameN classnameNj@9jC9)}jF9]jI9)}j<9platform_device_allocsbc.platform_device_allocasbuh1hhj3mhhhjDmhMbubj)}(h h]h }(hjwmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3mhhhjDmhMbubj]9)}(hj`9h]h*}(hjmhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj3mhhhjDmhMbubj")}(hplatform_device_alloch]j()}(hjtmh]hplatform_device_alloc}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj3mhhhjDmhMbubj8)}(h(const char *name, int id)h](j9)}(hconst char *nameh](h)}(hj9h]hconst}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj8)}(hcharh]hchar}(hjmhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj]9)}(hj`9h]h*}(hjmhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjmubj()}(hnameh]hname}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjmubj9)}(hint idh](j8)}(hinth]hint}(hjnhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj nubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj nubj()}(hidh]hid}(hj*nhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj nubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjmubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj3mhhhjDmhMbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj/mhhhjDmhMbubah}(h]j*mah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjDmhMbhj,mhhubjV)}(hhh]j[)}(hcreate a platform deviceh]hcreate a platform device}(hjTnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMbhjQnhhubah}(h]h ]h"]h$]h&]uh1jUhj,mhhhjDmhMbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjlnj{jlnj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const char *name`` base name of the device we're adding ``int id`` instance id **Description** Create a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.h](j[)}(h**Parameters**h]j)}(hjvnh]h Parameters}(hjxnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtnubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMfhjpnubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjnh]hconst char *name}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMchjnubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhMchjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMchjnubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hjnh]hint id}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMdhjnubj)}(hhh]j[)}(h instance idh]h instance id}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhMdhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMdhjnubeh}(h]h ]h"]h$]h&]uh1jhjpnubj[)}(h**Description**h]j)}(hj oh]h Description}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMfhjpnubj[)}(hCreate a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.h]hCreate a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMehjpnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*platform_device_add_resources (C function)c.platform_device_add_resourceshNtauh1hhj]hhhNhNubh)}(hhh](h)}(hnint platform_device_add_resources (struct platform_device *pdev, const struct resource *res, unsigned int num)h]h)}(hmint platform_device_add_resources(struct platform_device *pdev, const struct resource *res, unsigned int num)h](j8)}(hinth]hint}(hjNohhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjJohhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM|ubj)}(h h]h }(hj]ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJohhhj\ohM|ubj")}(hplatform_device_add_resourcesh]j()}(hplatform_device_add_resourcesh]hplatform_device_add_resources}(hjoohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkoubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjJohhhj\ohM|ubj8)}(hL(struct platform_device *pdev, const struct resource *res, unsigned int num)h](j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjomodnameN classnameNj@9jC9)}jF9]jI9)}j<9jqosbc.platform_device_add_resourcesasbuh1hhjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj]9)}(hj`9h]h*}(hjohhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjoubj()}(hpdevh]hpdev}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubj9)}(hconst struct resource *resh](h)}(hj9h]hconst}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(h h]h }(hj phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(h h]h }(hj%phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j()}(hresourceh]hresource}(hj6phhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3pubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj8pmodnameN classnameNj@9jC9)}jF9]joc.platform_device_add_resourcesasbuh1hhjoubj)}(h h]h }(hjTphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj]9)}(hj`9h]h*}(hjbphhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjoubj()}(hresh]hres}(hjophhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubj9)}(hunsigned int numh](j8)}(hunsignedh]hunsigned}(hjphhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj8)}(hinth]hint}(hjphhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj()}(hnumh]hnum}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjJohhhj\ohM|ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjFohhhj\ohM|ubah}(h]jAoah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj\ohM|hjCohhubjV)}(hhh]j[)}(h"add resources to a platform deviceh]h"add resources to a platform device}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM|hjphhubah}(h]h ]h"]h$]h&]uh1jUhjCohhhj\ohM|ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjqj{jqj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to ``const struct resource *res`` set of resources that needs to be allocated for the device ``unsigned int num`` number of resources **Description** Add a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.h](j[)}(h**Parameters**h]j)}(hj qh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj qubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjqubj)}(hhh](j)}(hh``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to h](j)}(h ``struct platform_device *pdev``h]j)}(hj+qh]hstruct platform_device *pdev}(hj-qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)qubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM}hj%qubj)}(hhh]j[)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hjDqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@qhM}hjAqubah}(h]h ]h"]h$]h&]uh1jhj%qubeh}(h]h ]h"]h$]h&]uh1jhj@qhM}hj"qubj)}(hZ``const struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``const struct resource *res``h]j)}(hjdqh]hconst struct resource *res}(hjfqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbqubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM~hj^qubj)}(hhh]j[)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hj}qhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyqhM~hjzqubah}(h]h ]h"]h$]h&]uh1jhj^qubeh}(h]h ]h"]h$]h&]uh1jhjyqhM~hj"qubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjqh]hunsigned int num}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjqubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMhj"qubeh}(h]h ]h"]h$]h&]uh1jhjqubj[)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjqubj[)}(hAdd a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.h]hAdd a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%platform_device_add_data (C function)c.platform_device_add_datahNtauh1hhj]hhhNhNubh)}(hhh](h)}(hZint platform_device_add_data (struct platform_device *pdev, const void *data, size_t size)h]h)}(hYint platform_device_add_data(struct platform_device *pdev, const void *data, size_t size)h](j8)}(hinth]hint}(hjrhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjrhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj,rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhj+rhMubj")}(hplatform_device_add_datah]j()}(hplatform_device_add_datah]hplatform_device_add_data}(hj>rhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:rubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjrhhhj+rhMubj8)}(h=(struct platform_device *pdev, const void *data, size_t size)h](j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjZrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVrubj)}(h h]h }(hjgrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVrubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjxrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjurubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjzrmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j@rsbc.platform_device_add_dataasbuh1hhjVrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVrubj]9)}(hj`9h]h*}(hjrhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjVrubj()}(hpdevh]hpdev}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRrubj9)}(hconst void *datah](h)}(hj9h]hconst}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj8)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj]9)}(hj`9h]h*}(hjshhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjrubj()}(hdatah]hdata}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRrubj9)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj,shhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)subah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj.smodnameN classnameNj@9jC9)}jF9]jrc.platform_device_add_dataasbuh1hhj%subj)}(h h]h }(hjJshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%subj()}(hsizeh]hsize}(hjXshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%subeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRrubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjrhhhj+rhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjrhhhj+rhMubah}(h]jrah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+rhMhjrhhubjV)}(hhh]j[)}(h/add platform-specific data to a platform deviceh]h/add platform-specific data to a platform device}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjshhubah}(h]h ]h"]h$]h&]uh1jUhjrhhhj+rhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjsj{jsj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to ``const void *data`` platform specific data for this platform device ``size_t size`` size of platform specific data **Description** Add a copy of platform specific data to the platform device's platform_data pointer. The memory associated with the platform data will be freed when the platform device is released.h](j[)}(h**Parameters**h]j)}(hjsh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjsubj)}(hhh](j)}(hh``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to h](j)}(h ``struct platform_device *pdev``h]j)}(hjsh]hstruct platform_device *pdev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjsubj)}(hhh]j[)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshMhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshMhjsubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjsh]hconst void *data}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjsubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthMhjtubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjthMhjsubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj5th]h size_t size}(hj7thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3tubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj/tubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjNthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJthMhjKtubah}(h]h ]h"]h$]h&]uh1jhj/tubeh}(h]h ]h"]h$]h&]uh1jhjJthMhjsubeh}(h]h ]h"]h$]h&]uh1jhjsubj[)}(h**Description**h]j)}(hjpth]h Description}(hjrthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjntubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjsubj[)}(hAdd a copy of platform specific data to the platform device's platform_data pointer. The memory associated with the platform data will be freed when the platform device is released.h]hAdd a copy of platform specific data to the platform device’s platform_data pointer. The memory associated with the platform data will be freed when the platform device is released.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h platform_device_add (C function)c.platform_device_addhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h6int platform_device_add (struct platform_device *pdev)h]h)}(h5int platform_device_add(struct platform_device *pdev)h](j8)}(hinth]hint}(hjthhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjthhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthMubj")}(hplatform_device_addh]j()}(hplatform_device_addh]hplatform_device_add}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjthhhjthMubj8)}(h(struct platform_device *pdev)h]j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj uubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjumodnameN classnameNj@9jC9)}jF9]jI9)}j<9jtsbc.platform_device_addasbuh1hhjtubj)}(h h]h }(hj0uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj]9)}(hj`9h]h*}(hj>uhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjtubj()}(hpdevh]hpdev}(hjKuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjtubah}(h]h ]h"]h$]h&]j?j@uh1j8hjthhhjthMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjthhhjthMubah}(h]jtah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjthMhjthhubjV)}(hhh]j[)}(h)add a platform device to device hierarchyh]h)add a platform device to device hierarchy}(hjuuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjruhhubah}(h]h ]h"]h$]h&]uh1jUhjthhhjthMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjuj{juj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct platform_device *pdev`` platform device we're adding **Description** This is part 2 of platform_device_register(), though may be called separately _iff_ pdev was allocated by platform_device_alloc().h](j[)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjuubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hjuh]hstruct platform_device *pdev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjuubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubj[)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjuubj[)}(hThis is part 2 of platform_device_register(), though may be called separately _iff_ pdev was allocated by platform_device_alloc().h]hThis is part 2 of platform_device_register(), though may be called separately _iff_ pdev was allocated by platform_device_alloc().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h platform_device_del (C function)c.platform_device_delhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h7void platform_device_del (struct platform_device *pdev)h]h)}(h6void platform_device_del(struct platform_device *pdev)h](j8)}(hvoidh]hvoid}(hj6vhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj2vhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM ubj)}(h h]h }(hjEvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2vhhhjDvhM ubj")}(hplatform_device_delh]j()}(hplatform_device_delh]hplatform_device_del}(hjWvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSvubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj2vhhhjDvhM ubj8)}(h(struct platform_device *pdev)h]j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjsvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjovubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjovubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjvmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jYvsbc.platform_device_delasbuh1hhjovubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjovubj]9)}(hj`9h]h*}(hjvhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjovubj()}(hpdevh]hpdev}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjovubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjkvubah}(h]h ]h"]h$]h&]j?j@uh1j8hj2vhhhjDvhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj.vhhhjDvhM ubah}(h]j)vah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjDvhM hj+vhhubjV)}(hhh]j[)}(hremove a platform-level deviceh]hremove a platform-level device}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjvhhubah}(h]h ]h"]h$]h&]uh1jUhj+vhhhjDvhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjwj{jwj|j}j~uh1hhhhj]hNhNubj)}(hX6**Parameters** ``struct platform_device *pdev`` platform device we're removing **Description** Note that this function will also release all memory- and port-based resources owned by the device (**dev->resource**). This function must _only_ be externally called in error cases. All other usage is a bug.h](j[)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwubj)}(hhh]j)}(h@``struct platform_device *pdev`` platform device we're removing h](j)}(h ``struct platform_device *pdev``h]j)}(hj7wh]hstruct platform_device *pdev}(hj9whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5wubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj1wubj)}(hhh]j[)}(hplatform device we're removingh]h platform device we’re removing}(hjPwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLwhM hjMwubah}(h]h ]h"]h$]h&]uh1jhj1wubeh}(h]h ]h"]h$]h&]uh1jhjLwhM hj.wubah}(h]h ]h"]h$]h&]uh1jhjwubj[)}(h**Description**h]j)}(hjrwh]h Description}(hjtwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpwubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjwubj[)}(hNote that this function will also release all memory- and port-based resources owned by the device (**dev->resource**). This function must _only_ be externally called in error cases. All other usage is a bug.h](hdNote that this function will also release all memory- and port-based resources owned by the device (}(hjwhhhNhNubj)}(h**dev->resource**h]h dev->resource}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubh]). This function must _only_ be externally called in error cases. All other usage is a bug.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjwubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%platform_device_register (C function)c.platform_device_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h;int platform_device_register (struct platform_device *pdev)h]h)}(h:int platform_device_register(struct platform_device *pdev)h](j8)}(hinth]hint}(hjwhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjwhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM(ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhM(ubj")}(hplatform_device_registerh]j()}(hplatform_device_registerh]hplatform_device_register}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjwhhhjwhM(ubj8)}(h(struct platform_device *pdev)h]j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj$xhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!xubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj&xmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jwsbc.platform_device_registerasbuh1hhjxubj)}(h h]h }(hjDxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj]9)}(hj`9h]h*}(hjRxhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjxubj()}(hpdevh]hpdev}(hj_xhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjwubah}(h]h ]h"]h$]h&]j?j@uh1j8hjwhhhjwhM(ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjwhhhjwhM(ubah}(h]jwah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjwhM(hjwhhubjV)}(hhh]j[)}(hadd a platform-level deviceh]hadd a platform-level device}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM(hjxhhubah}(h]h ]h"]h$]h&]uh1jUhjwhhhjwhM(ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjxj{jxj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device we're adding **NOTE** _Never_ directly free **pdev** after calling this function, even if it returned an error! Always use platform_device_put() to give up the reference initialised in this function instead.h](j[)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM,hjxubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hjxh]hstruct platform_device *pdev}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM)hjxubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxhM)hjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhM)hjxubah}(h]h ]h"]h$]h&]uh1jhjxubj[)}(h**NOTE**h]j)}(hjyh]hNOTE}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM+hjxubj[)}(h_Never_ directly free **pdev** after calling this function, even if it returned an error! Always use platform_device_put() to give up the reference initialised in this function instead.h](h_Never_ directly free }(hjyhhhNhNubj)}(h**pdev**h]hpdev}(hj#yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh after calling this function, even if it returned an error! Always use platform_device_put() to give up the reference initialised in this function instead.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM+hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'platform_device_unregister (C function)c.platform_device_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h>void platform_device_unregister (struct platform_device *pdev)h]h)}(h=void platform_device_unregister(struct platform_device *pdev)h](j8)}(hvoidh]hvoid}(hj\yhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjXyhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM8ubj)}(h h]h }(hjkyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXyhhhjjyhM8ubj")}(hplatform_device_unregisterh]j()}(hplatform_device_unregisterh]hplatform_device_unregister}(hj}yhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyyubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjXyhhhjjyhM8ubj8)}(h(struct platform_device *pdev)h]j9)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjymodnameN classnameNj@9jC9)}jF9]jI9)}j<9jysbc.platform_device_unregisterasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj]9)}(hj`9h]h*}(hjyhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjyubj()}(hpdevh]hpdev}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjyubah}(h]h ]h"]h$]h&]j?j@uh1j8hjXyhhhjjyhM8ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjTyhhhjjyhM8ubah}(h]jOyah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjjyhM8hjQyhhubjV)}(hhh]j[)}(h"unregister a platform-level deviceh]h"unregister a platform-level device}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM8hjzhhubah}(h]h ]h"]h$]h&]uh1jUhjQyhhhjjyhM8ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj4zj{j4zj|j}j~uh1hhhhj]hNhNubj)}(hX **Parameters** ``struct platform_device *pdev`` platform device we're unregistering **Description** Unregistration is done in 2 steps. First we release all resources and remove it from the subsystem, then we drop reference count by calling platform_device_put().h](j[)}(h**Parameters**h]j)}(hj>zh]h Parameters}(hj@zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMKhj|ubj)}(hhh]j)}(hK``const struct platform_device_info *pdevinfo`` data used to create device h](j)}(h/``const struct platform_device_info *pdevinfo``h]j)}(hj4|h]h+const struct platform_device_info *pdevinfo}(hj6|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2|ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMJhj.|ubj)}(hhh]j[)}(hdata used to create deviceh]hdata used to create device}(hjM|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjI|hMJhjJ|ubah}(h]h ]h"]h$]h&]uh1jhj.|ubeh}(h]h ]h"]h$]h&]uh1jhjI|hMJhj+|ubah}(h]h ]h"]h$]h&]uh1jhj|ubj[)}(h**Description**h]j)}(hjo|h]h Description}(hjq|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm|ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMLhj|ubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj|hhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hj|h]hstruct platform_device}(hj|hhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMKhj|ubh+ pointer on success, or ERR_PTR() on error.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj|hMKhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__platform_driver_register (C function)c.__platform_driver_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hRint __platform_driver_register (struct platform_driver *drv, struct module *owner)h]h)}(hQint __platform_driver_register(struct platform_driver *drv, struct module *owner)h](j8)}(hinth]hint}(hj|hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj|hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hMubj")}(h__platform_driver_registerh]j()}(h__platform_driver_registerh]h__platform_driver_register}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj|hhhj|hMubj8)}(h3(struct platform_driver *drv, struct module *owner)h](j9)}(hstruct platform_driver *drvh](h)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(h h]h }(hj!}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hj2}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj4}modnameN classnameNj@9jC9)}jF9]jI9)}j<9j|sbc.__platform_driver_registerasbuh1hhj}ubj)}(h h]h }(hjR}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj]9)}(hj`9h]h*}(hj`}hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj}ubj()}(hdrvh]hdrv}(hjm}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj }ubj9)}(hstruct module *ownerh](h)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j()}(hmoduleh]hmodule}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj}modnameN classnameNj@9jC9)}jF9]jN}c.__platform_driver_registerasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj]9)}(hj`9h]h*}(hj}hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj}ubj()}(hownerh]howner}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj }ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj|hhhj|hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj|hhhj|hMubah}(h]j|ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj|hMhj|hhubjV)}(hhh]j[)}(h,register a driver for platform-level devicesh]h,register a driver for platform-level devices}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jUhj|hhhj|hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj~j{j~j|j}j~uh1hhhhj]hNhNubj)}(h|**Parameters** ``struct platform_driver *drv`` platform driver structure ``struct module *owner`` owning module/driverh](j[)}(h**Parameters**h]j)}(hj)~h]h Parameters}(hj+~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'~ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj#~ubj)}(hhh](j)}(h:``struct platform_driver *drv`` platform driver structure h](j)}(h``struct platform_driver *drv``h]j)}(hjH~h]hstruct platform_driver *drv}(hjJ~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjB~ubj)}(hhh]j[)}(hplatform driver structureh]hplatform driver structure}(hja~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]~hMhj^~ubah}(h]h ]h"]h$]h&]uh1jhjB~ubeh}(h]h ]h"]h$]h&]uh1jhj]~hMhj?~ubj)}(h-``struct module *owner`` owning module/driverh](j)}(h``struct module *owner``h]j)}(hj~h]hstruct module *owner}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj{~ubj)}(hhh]j[)}(howning module/driverh]howning module/driver}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj~ubah}(h]h ]h"]h$]h&]uh1jhj{~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj?~ubeh}(h]h ]h"]h$]h&]uh1jhj#~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'platform_driver_unregister (C function)c.platform_driver_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h=void platform_driver_unregister (struct platform_driver *drv)h]h)}(h` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj3ubj)}(hhh](j)}(h=``struct platform_driver *driver`` platform driver structure h](j)}(h"``struct platform_driver *driver``h]j)}(hjXh]hstruct platform_driver *driver}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjRubj)}(hhh]j[)}(hplatform driver structureh]hplatform driver structure}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmhMhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(he``int (*probe)(struct platform_device *)`` the driver probe routine, probably from an __init section h](j)}(h*``int (*probe)(struct platform_device *)``h]j)}(hjh]h&int (*probe)(struct platform_device *)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h9the driver probe routine, probably from an __init sectionh]h9the driver probe routine, probably from an __init section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(hT``struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``struct resource *res``h]j)}(hjʇh]hstruct resource *res}(hj̇hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȇubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjćubj)}(hhh]j[)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj߇hMhjubah}(h]h ]h"]h$]h&]uh1jhjćubeh}(h]h ]h"]h$]h&]uh1jhj߇hMhjOubj)}(h+``unsigned int n_res`` number of resources h](j)}(h``unsigned int n_res``h]j)}(hjh]hunsigned int n_res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hj<h]hconst void *data}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj6ubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjOubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjuh]h size_t size}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(hG``struct module *module`` module which will be the owner of the driver h](j)}(h``struct module *module``h]j)}(hjh]hstruct module *module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h,module which will be the owner of the driverh]h,module which will be the owner of the driver}(hjLjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjÈhMhjĈubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjÈhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj3ubj[)}(hUse this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver.h]hUse this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj3ubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjh]hstruct platform_device}(hjhhhNhNubah}(h]h ](jpjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjp refdomainjtreftypetype refexplicitrefwarnj@9jpjpplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj5hMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(__platform_register_drivers (C function)c.__platform_register_drivershNtauh1hhj]hhhNhNubh)}(hhh](h)}(hsint __platform_register_drivers (struct platform_driver * const *drivers, unsigned int count, struct module *owner)h]h)}(hqint __platform_register_drivers(struct platform_driver *const *drivers, unsigned int count, struct module *owner)h](j8)}(hinth]hint}(hj`hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj\hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM'ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjnhM'ubj")}(h__platform_register_driversh]j()}(h__platform_register_driversh]h__platform_register_drivers}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj\hhhjnhM'ubj8)}(hR(struct platform_driver *const *drivers, unsigned int count, struct module *owner)h](j9)}(h&struct platform_driver *const *driversh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.__platform_register_driversasbuh1hhjubj)}(h h]h }(hjۉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubh)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdriversh]hdrivers}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned int counth](j8)}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj8)}(hinth]hint}(hjShhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj3ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj()}(hcounth]hcount}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j׉c.__platform_register_driversasbuh1hhjubj)}(h h]h }(hjĊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjҊhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hownerh]howner}(hjߊhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj\hhhjnhM'ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjXhhhjnhM'ubah}(h]jSah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjnhM'hjUhhubjV)}(hhh]j[)}(h%register an array of platform driversh]h%register an array of platform drivers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM'hjhhubah}(h]h ]h"]h$]h&]uh1jUhjUhhhjnhM'ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj!j{j!j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_driver * const *drivers`` an array of drivers to register ``unsigned int count`` the number of drivers to register ``struct module *owner`` module owning the drivers **Description** Registers platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order. **Return** 0 on success or a negative error code on failure.h](j[)}(h**Parameters**h]j)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM+hj%ubj)}(hhh](j)}(hL``struct platform_driver * const *drivers`` an array of drivers to register h](j)}(h+``struct platform_driver * const *drivers``h]j)}(hjJh]h'struct platform_driver * const *drivers}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM(hjDubj)}(hhh]j[)}(han array of drivers to registerh]han array of drivers to register}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_hM(hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hM(hjAubj)}(h9``unsigned int count`` the number of drivers to register h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM)hj}ubj)}(hhh]j[)}(h!the number of drivers to registerh]h!the number of drivers to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjAubj)}(h3``struct module *owner`` module owning the drivers h](j)}(h``struct module *owner``h]j)}(hjh]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM*hjubj)}(hhh]j[)}(hmodule owning the driversh]hmodule owning the drivers}(hjՋhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjыhM*hjҋubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjыhM*hjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM,hj%ubj[)}(hRegisters platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order.h]hRegisters platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM+hj%ubj[)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM0hj%ubj[)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM1hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(platform_unregister_drivers (C function)c.platform_unregister_drivershNtauh1hhj]hhhNhNubh)}(hhh](h)}(h^void platform_unregister_drivers (struct platform_driver * const *drivers, unsigned int count)h]h)}(h\void platform_unregister_drivers(struct platform_driver *const *drivers, unsigned int count)h](j8)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj_hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMQubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjqhMQubj")}(hplatform_unregister_driversh]j()}(hplatform_unregister_driversh]hplatform_unregister_drivers}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj_hhhjqhMQubj8)}(h<(struct platform_driver *const *drivers, unsigned int count)h](j9)}(h&struct platform_driver *const *driversh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.platform_unregister_driversasbuh1hhjubj)}(h h]h }(hjތhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubh)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdriversh]hdrivers}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned int counth](j8)}(hunsignedh]hunsigned}(hj:hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj6ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj8)}(hinth]hint}(hjVhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj6ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj()}(hcounth]hcount}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj_hhhjqhMQubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj[hhhjqhMQubah}(h]jVah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhMQhjXhhubjV)}(hhh]j[)}(h'unregister an array of platform driversh]h'unregister an array of platform drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jUhjXhhhjqhMQubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``struct platform_driver * const *drivers`` an array of drivers to unregister ``unsigned int count`` the number of drivers to unregister **Description** Unregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMUhjubj)}(hhh](j)}(hN``struct platform_driver * const *drivers`` an array of drivers to unregister h](j)}(h+``struct platform_driver * const *drivers``h]j)}(hjݍh]h'struct platform_driver * const *drivers}(hjߍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۍubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMRhj׍ubj)}(hhh]j[)}(h!an array of drivers to unregisterh]h!an array of drivers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhj׍ubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjԍubj)}(h;``unsigned int count`` the number of drivers to unregister h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMShjubj)}(hhh]j[)}(h#the number of drivers to unregisterh]h#the number of drivers to unregister}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+hMShj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hMShjԍubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMUhjubj[)}(hUnregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.h]hUnregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+platform_find_device_by_driver (C function) c.platform_find_device_by_driverhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hfstruct device * platform_find_device_by_driver (struct device *start, const struct device_driver *drv)h]h)}(hdstruct device *platform_find_device_by_driver(struct device *start, const struct device_driver *drv)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9platform_find_device_by_driversb c.platform_find_device_by_driverasbuh1hhjhhhjhMubj)}(h h]h }(hj֎hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhMubj")}(hplatform_find_device_by_driverh]j()}(hjӎh]hplatform_find_device_by_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h7(struct device *start, const struct device_driver *drv)h](j9)}(hstruct device *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hdeviceh]hdevice}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj+ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj0modnameN classnameNj@9jC9)}jF9]jю c.platform_find_device_by_driverasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj]9)}(hj`9h]h*}(hjZhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj()}(hstarth]hstart}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst struct device_driver *drvh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubh)}(hhh]j()}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jю c.platform_find_device_by_driverasbuh1hhj|ubj)}(h h]h }(hj׏hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj|ubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h+Find a platform device with a given driver.h]h+Find a platform device with a given driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj4j{j4j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct device *start`` The device to start the search from. ``const struct device_driver *drv`` The device driver to look for.h](j[)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj8ubj)}(hhh](j)}(h>``struct device *start`` The device to start the search from. h](j)}(h``struct device *start``h]j)}(hj]h]hstruct device *start}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjWubj)}(hhh]j[)}(h$The device to start the search from.h]h$The device to start the search from.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubj)}(hB``const struct device_driver *drv`` The device driver to look for.h](j)}(h#``const struct device_driver *drv``h]j)}(hjh]hconst struct device_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hThe device driver to look for.h]hThe device driver to look for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bus_find_device_by_name (C function)c.bus_find_device_by_namehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hlstruct device * bus_find_device_by_name (const struct bus_type *bus, struct device *start, const char *name)h]h)}(hjstruct device *bus_find_device_by_name(const struct bus_type *bus, struct device *start, const char *name)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_device_by_namesbc.bus_find_device_by_nameasbuh1hhjhhhjhKubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj]9)}(hj`9h]h*}(hj>hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhKubj")}(hbus_find_device_by_nameh]j()}(hj-h]hbus_find_device_by_name}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj8)}(hD(const struct bus_type *bus, struct device *start, const char *name)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j+c.bus_find_device_by_nameasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj]9)}(hj`9h]h*}(hjϑhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjfubj()}(hbush]hbus}(hjܑhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubj9)}(hstruct device *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j+c.bus_find_device_by_nameasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj?hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hstarth]hstart}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubj9)}(hconst char *nameh](h)}(hj9h]hconst}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjaubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hjӒhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjВhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``struct device *start`` Device to begin with ``const char *name`` name of the device to matchh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)hKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjMh]hstruct device *start}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjGubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhKhjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhKhj ubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'bus_find_device_by_of_node (C function)c.bus_find_device_by_of_nodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hestruct device * bus_find_device_by_of_node (const struct bus_type *bus, const struct device_node *np)h]h)}(hcstruct device *bus_find_device_by_of_node(const struct bus_type *bus, const struct device_node *np)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjܓhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܓhhhjhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_device_by_of_nodesbc.bus_find_device_by_of_nodeasbuh1hhjܓhhhjhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjܓhhhjhKubj]9)}(hj`9h]h*}(hj.hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjܓhhhjhKubj")}(hbus_find_device_by_of_nodeh]j()}(hjh]hbus_find_device_by_of_node}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjܓhhhjhKubj8)}(h:(const struct bus_type *bus, const struct device_node *np)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_of_nodeasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjVubj()}(hbush]hbus}(hj̔hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRubj9)}(hconst struct device_node *nph](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjJhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hnph]hnp}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjRubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjܓhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjؓhhhjhKubah}(h]jӓah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjՓhhubjV)}(hhh]j[)}(hFdevice iterator for locating a particular device matching the of_node.h]hFdevice iterator for locating a particular device matching the of_node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj~hhubah}(h]h ]h"]h$]h&]uh1jUhjՓhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h}**Parameters** ``const struct bus_type *bus`` bus type ``const struct device_node *np`` of_node of the device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hj•h]hconst struct bus_type *bus}(hjĕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hjەhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjוhKhjؕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjוhKhjubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(hjh]hconst struct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hof_node of the device to match.h]hof_node of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&bus_find_device_by_fwnode (C function)c.bus_find_device_by_fwnodehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hjstruct device * bus_find_device_by_fwnode (const struct bus_type *bus, const struct fwnode_handle *fwnode)h]h)}(hhstruct device *bus_find_device_by_fwnode(const struct bus_type *bus, const struct fwnode_handle *fwnode)h](h)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjbhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjvmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_device_by_fwnodesbc.bus_find_device_by_fwnodeasbuh1hhjQhhhjbhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjbhKubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjQhhhjbhKubj")}(hbus_find_device_by_fwnodeh]j()}(hjh]hbus_find_device_by_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjQhhhjbhKubj8)}(h@(const struct bus_type *bus, const struct fwnode_handle *fwnode)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjϖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj˖ubj)}(h h]h }(hjܖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˖ubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj˖ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˖ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_fwnodeasbuh1hhj˖ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˖ubj]9)}(hj`9h]h*}(hj4hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj˖ubj()}(hbush]hbus}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj˖ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjǖubj9)}(h"const struct fwnode_handle *fwnodeh](h)}(hj9h]hconst}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_fwnodeasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjVubj()}(hfwnodeh]hfwnode}(hj̗hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjǖubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjQhhhjbhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjMhhhjbhKubah}(h]jHah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjbhKhjJhhubjV)}(hhh]j[)}(hEdevice iterator for locating a particular device matching the fwnode.h]hEdevice iterator for locating a particular device matching the fwnode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjJhhhjbhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hj7h]hconst struct bus_type *bus}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj1ubj)}(hhh]j[)}(hbus typeh]hbus type}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhKhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhKhj.ubj)}(hE``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hjph]h"const struct fwnode_handle *fwnode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjjubj)}(hhh]j[)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bus_find_device_by_devt (C function)c.bus_find_device_by_devthNtauh1hhj]hhhNhNubh)}(hhh](h)}(hPstruct device * bus_find_device_by_devt (const struct bus_type *bus, dev_t devt)h]h)}(hNstruct device *bus_find_device_by_devt(const struct bus_type *bus, dev_t devt)h](h)}(hjh]hstruct}(hjʘhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjƘhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjؘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƘhhhjטhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_device_by_devtsbc.bus_find_device_by_devtasbuh1hhjƘhhhjטhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƘhhhjטhKubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjƘhhhjטhKubj")}(hbus_find_device_by_devth]j()}(hjh]hbus_find_device_by_devt}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjƘhhhjטhKubj8)}(h((const struct bus_type *bus, dev_t devt)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_devtasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj@ubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubj9)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjҙhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjϙubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjԙmodnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_devtasbuh1hhj˙ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˙ubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj˙ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjƘhhhjטhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj˜hhhjטhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjטhKhjhhubjV)}(hhh]j[)}(hJdevice iterator for locating a particular device matching the device type.h]hJdevice iterator for locating a particular device matching the device type.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjטhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj@j{j@j|j}j~uh1hhhhj]hNhNubj)}(ho**Parameters** ``const struct bus_type *bus`` bus type ``dev_t devt`` device type of the device to match.h](j[)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjDubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjih]hconst struct bus_type *bus}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjcubj)}(hhh]j[)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~hKhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj`ubj)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(h#device type of the device to match.h]h#device type of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!bus_find_next_device (C function)c.bus_find_next_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hUstruct device * bus_find_next_device (const struct bus_type *bus, struct device *cur)h]h)}(hSstruct device *bus_find_next_device(const struct bus_type *bus, struct device *cur)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_next_devicesbc.bus_find_next_deviceasbuh1hhjhhhj hKubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubj]9)}(hj`9h]h*}(hjJhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhj hKubj")}(hbus_find_next_deviceh]j()}(hj9h]hbus_find_next_device}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hKubj8)}(h0(const struct bus_type *bus, struct device *cur)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j7c.bus_find_next_deviceasbuh1hhjrubj)}(h h]h }(hj͛hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj]9)}(hj`9h]h*}(hjۛhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjrubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjnubj9)}(hstruct device *curh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj!modnameN classnameNj@9jC9)}jF9]j7c.bus_find_next_deviceasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjKhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hcurh]hcur}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjnubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhjhhubjV)}(hhh]j[)}(h9Find the next device after a given device in a given bus.h]h9Find the next device after a given device in a given bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(ht**Parameters** ``const struct bus_type *bus`` bus type ``struct device *cur`` device to begin the search with.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjÜh]hconst struct bus_type *bus}(hjŜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hjܜhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj؜hKhjٜubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj؜hKhjubj)}(h7``struct device *cur`` device to begin the search with.h](j)}(h``struct device *cur``h]j)}(hjh]hstruct device *cur}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(h device to begin the search with.h]h device to begin the search with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(bus_find_device_by_acpi_dev (C function)c.bus_find_device_by_acpi_devhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hhstruct device * bus_find_device_by_acpi_dev (const struct bus_type *bus, const struct acpi_device *adev)h]h)}(hfstruct device *bus_find_device_by_acpi_dev(const struct bus_type *bus, const struct acpi_device *adev)h](h)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchKubh)}(hhh]j()}(hdeviceh]hdevice}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjwmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_device_by_acpi_devsbc.bus_find_device_by_acpi_devasbuh1hhjRhhhjchKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjchKubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjRhhhjchKubj")}(hbus_find_device_by_acpi_devh]j()}(hjh]hbus_find_device_by_acpi_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjRhhhjchKubj8)}(h<(const struct bus_type *bus, const struct acpi_device *adev)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjНhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̝ubj)}(h h]h }(hjݝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̝ubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̝ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̝ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_acpi_devasbuh1hhj̝ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̝ubj]9)}(hj`9h]h*}(hj5hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̝ubj()}(hbush]hbus}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̝ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjȝubj9)}(hconst struct acpi_device *adevh](h)}(hj9h]hconst}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.bus_find_device_by_acpi_devasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjWubj()}(hadevh]hadev}(hj͞hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjȝubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjRhhhjchKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjNhhhjchKubah}(h]jIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjchKhjKhhubjV)}(hhh]j[)}(hTdevice iterator for locating a particular device matching the ACPI COMPANION device.h]hTdevice iterator for locating a particular device matching the ACPI COMPANION device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjKhhhjchKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hj8h]hconst struct bus_type *bus}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj2ubj)}(hhh]j[)}(hbus typeh]hbus type}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubj)}(hB``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hjqh]hconst struct acpi_device *adev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjkubj)}(hhh]j[)}(hACPI COMPANION device to match.h]hACPI COMPANION device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_for_each_dev (C function)c.bus_for_each_devhNtauh1hhj]hhhNhNubh)}(hhh](h)}(heint bus_for_each_dev (const struct bus_type *bus, struct device *start, void *data, device_iter_t fn)h]h)}(hdint bus_for_each_dev(const struct bus_type *bus, struct device *start, void *data, device_iter_t fn)h](j8)}(hinth]hint}(hj˟hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjǟhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM_ubj)}(h h]h }(hjڟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǟhhhjٟhM_ubj")}(hbus_for_each_devh]j()}(hbus_for_each_devh]hbus_for_each_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjǟhhhjٟhM_ubj8)}(hP(const struct bus_type *bus, struct device *start, void *data, device_iter_t fn)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjCmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.bus_for_each_devasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjohhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j]c.bus_for_each_devasbuh1hhjubj)}(h h]h }(hjѠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjߠhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj!hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdatah]hdata}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjLmodnameN classnameNj@9jC9)}jF9]j]c.bus_for_each_devasbuh1hhjCubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj()}(hfnh]hfn}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjǟhhhjٟhM_ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjßhhhjٟhM_ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjٟhM_hjhhubjV)}(hhh]j[)}(hdevice iterator.h]hdevice iterator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjٟhM_ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct bus_type *bus`` bus type. ``struct device *start`` device to start iterating from. ``void *data`` data for the callback. ``device_iter_t fn`` function to be called for each device. **Description** Iterate over **bus**'s list of devices, and call **fn** for each, passing it **data**. If **start** is not NULL, we use that device to begin iterating from. We check the return of **fn** each time. If it returns anything other than 0, we break out and return that value. **NOTE** The device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.h](j[)}(h**Parameters**h]j)}(hj¡h]h Parameters}(hjġhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMchjubj)}(hhh](j)}(h)``const struct bus_type *bus`` bus type. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߡubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM`hjۡubj)}(hhh]j[)}(h bus type.h]h bus type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjۡubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjءubj)}(h9``struct device *start`` device to start iterating from. h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMahjubj)}(hhh]j[)}(hdevice to start iterating from.h]hdevice to start iterating from.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hMahj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMahjءubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjSh]h void *data}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMbhjMubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhhMbhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMbhjءubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMchjubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjءubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjǢh]h Description}(hjɢhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŢubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMehjubj[)}(hIterate over **bus**'s list of devices, and call **fn** for each, passing it **data**. If **start** is not NULL, we use that device to begin iterating from.h](h Iterate over }(hjݢhhhNhNubj)}(h**bus**h]hbus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubh’s list of devices, and call }(hjݢhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubh for each, passing it }(hjݢhhhNhNubj)}(h**data**h]hdata}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubh. If }(hjݢhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubh9 is not NULL, we use that device to begin iterating from.}(hjݢhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMdhjubj[)}(hqWe check the return of **fn** each time. If it returns anything other than 0, we break out and return that value.h](hWe check the return of }(hj4hhhNhNubj)}(h**fn**h]hfn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhT each time. If it returns anything other than 0, we break out and return that value.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhhjubj[)}(h**NOTE**h]j)}(hjWh]hNOTE}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMkhjubj[)}(hThe device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.h]hThe device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMlhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_find_device (C function)c.bus_find_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hzstruct device * bus_find_device (const struct bus_type *bus, struct device *start, const void *data, device_match_t match)h]h)}(hxstruct device *bus_find_device(const struct bus_type *bus, struct device *start, const void *data, device_match_t match)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_find_devicesbc.bus_find_deviceasbuh1hhjhhhjhMubj)}(h h]h }(hjܣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhMubj")}(hbus_find_deviceh]j()}(hj٣h]hbus_find_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(hZ(const struct bus_type *bus, struct device *start, const void *data, device_match_t match)h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjQmodnameN classnameNj@9jC9)}jF9]jףc.bus_find_deviceasbuh1hhjubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj{hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jףc.bus_find_deviceasbuh1hhjubj)}(h h]h }(hjݤhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hconst void *datah](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj8)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj]9)}(hj`9h]h*}(hjHhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj()}(hdatah]hdata}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjsmodnameN classnameNj@9jC9)}jF9]jףc.bus_find_deviceasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj()}(hmatchh]hmatch}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjǥhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjĥhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjߥj{jߥj|j}j~uh1hhhhj]hNhNubj)}(hX_**Parameters** ``const struct bus_type *bus`` bus type ``struct device *start`` Device to begin with ``const void *data`` Data to pass to match function ``device_match_t match`` Callback function to check device **Description** This is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjAh]hstruct device *start}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj;ubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hjzh]hconst void *data}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjtubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjh]hdevice_match_t match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hj̦hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjȦhMhjɦubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȦhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hThis is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjhhhNhNubj)}(h **match**h]hmatch}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_for_each_drv (C function)c.bus_for_each_drvhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hint bus_for_each_drv (const struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver *, void *))h]h)}(hint bus_for_each_drv(const struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver*, void*))h](j8)}(hinth]hint}(hjThhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjPhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjbhMubj")}(hbus_for_each_drvh]j()}(hbus_for_each_drvh]hbus_for_each_drv}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjPhhhjbhMubj8)}(hn(const struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver*, void*))h](j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjʧhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjǧubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj̧modnameN classnameNj@9jC9)}jF9]jI9)}j<9jwsbc.bus_for_each_drvasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device_driver *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_driverh]h device_driver}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj>modnameN classnameNj@9jC9)}jF9]jc.bus_for_each_drvasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hstarth]hstart}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *datah](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h'int (*fn)(struct device_driver*, void*)h](j8)}(hinth]hint}(hjШhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj̨ubj)}(h h]h }(hjިhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̨ubj]9)}(hjh]h(}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̨ubj]9)}(hj,h]h)}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubj]9)}(hjh]h(}(hj!hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubh)}(hjh]hstruct}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̨ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̨ubh)}(hhh]j()}(h device_driverh]h device_driver}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjNmodnameN classnameNj@9jC9)}jF9]jc.bus_for_each_drvasbuh1hhj̨ubj]9)}(hj`9h]h*}(hjjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubj]9)}(h,h]h,}(hjwhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̨ubj8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj̨ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubj]9)}(hj,h]h)}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj̨ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjPhhhjbhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjLhhhjbhMubah}(h]jGah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjbhMhjIhhubjV)}(hhh]j[)}(hdriver iteratorh]hdriver iterator}(hjשhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjԩhhubah}(h]h ]h"]h$]h&]uh1jUhjIhhhjbhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXS**Parameters** ``const struct bus_type *bus`` bus we're dealing with. ``struct device_driver *start`` driver to start iterating on. ``void *data`` data to pass to the callback. ``int (*fn)(struct device_driver *, void *)`` function to call for each driver. **Description** This is nearly identical to the device iterator above. We iterate over each driver that belongs to **bus**, and call **fn** for each. If **fn** returns anything but 0, we break out and return it. If **start** is not NULL, we use it as the head of the list. **NOTE** we don't return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn't disappear before returning to the caller.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh](j)}(h7``const struct bus_type *bus`` bus we're dealing with. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus we're dealing with.h]hbus we’re dealing with.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubj)}(h>``struct device_driver *start`` driver to start iterating on. h](j)}(h``struct device_driver *start``h]j)}(hjQh]hstruct device_driver *start}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjKubj)}(hhh]j[)}(hdriver to start iterating on.h]hdriver to start iterating on.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjubj)}(h-``void *data`` data to pass to the callback. h](j)}(h``void *data``h]j)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hdata to pass to the callback.h]hdata to pass to the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hP``int (*fn)(struct device_driver *, void *)`` function to call for each driver. h](j)}(h-``int (*fn)(struct device_driver *, void *)``h]j)}(hjêh]h)int (*fn)(struct device_driver *, void *)}(hjŪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(h!function to call for each driver.h]h!function to call for each driver.}(hjܪhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjتhMhj٪ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjتhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hXThis is nearly identical to the device iterator above. We iterate over each driver that belongs to **bus**, and call **fn** for each. If **fn** returns anything but 0, we break out and return it. If **start** is not NULL, we use it as the head of the list.h](hcThis is nearly identical to the device iterator above. We iterate over each driver that belongs to }(hjhhhNhNubj)}(h**bus**h]hbus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each. If }(hjhhhNhNubj)}(h**fn**h]hfn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 returns anything but 0, we break out and return it. If }(hjhhhNhNubj)}(h **start**h]hstart}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 is not NULL, we use it as the head of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(h**NOTE**h]j)}(hjmh]hNOTE}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hX(we don't return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn't disappear before returning to the caller.h]hX,we don’t return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn’t disappear before returning to the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_rescan_devices (C function)c.bus_rescan_deviceshNtauh1hhj]hhhNhNubh)}(hhh](h)}(h3int bus_rescan_devices (const struct bus_type *bus)h]h)}(h2int bus_rescan_devices(const struct bus_type *bus)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubj")}(hbus_rescan_devicesh]j()}(hbus_rescan_devicesh]hbus_rescan_devices}(hjӫhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjϫubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMWubj8)}(h(const struct bus_type *bus)h]j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj*modnameN classnameNj@9jC9)}jF9]jI9)}j<9jիsbc.bus_rescan_devicesasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjVhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMWubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMWhjhhubjV)}(hhh]j[)}(h.rescan devices on the bus for possible driversh]h.rescan devices on the bus for possible drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct bus_type *bus`` the bus to scan. **Description** This function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM[hjubj)}(hhh]j)}(h0``const struct bus_type *bus`` the bus to scan. h](j)}(h``const struct bus_type *bus``h]j)}(hjάh]hconst struct bus_type *bus}(hjЬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̬ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMXhjȬubj)}(hhh]j[)}(hthe bus to scan.h]hthe bus to scan.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMXhjubah}(h]h ]h"]h$]h&]uh1jhjȬubeh}(h]h ]h"]h$]h&]uh1jhjhMXhjŬubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMZhjubj[)}(hThis function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.h]hThis function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_reprobe (C function)c.device_reprobehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h'int device_reprobe (struct device *dev)h]h)}(h&int device_reprobe(struct device *dev)h](j8)}(hinth]hint}(hjNhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjJhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMeubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj\hMeubj")}(hdevice_reprobeh]j()}(hdevice_reprobeh]hdevice_reprobe}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjJhhhj\hMeubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jqsbc.device_reprobeasbuh1hhjubj)}(h h]h }(hjɭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj׭hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjJhhhj\hMeubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjFhhhj\hMeubah}(h]jAah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj\hMehjChhubjV)}(hhh]j[)}(h5remove driver for a device and probe for a new driverh]h5remove driver for a device and probe for a new driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMehj hhubah}(h]h ]h"]h$]h&]uh1jUhjChhhj\hMeubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhj]hNhNubj)}(hX@**Parameters** ``struct device *dev`` the device to reprobe **Description** This function detaches the attached driver (if any) for the given device and restarts the driver probing process. It is intended to use if probing criteria changed during a devices lifetime and driver attachment should change accordingly.h](j[)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMihj*ubj)}(hhh]j)}(h-``struct device *dev`` the device to reprobe h](j)}(h``struct device *dev``h]j)}(hjOh]hstruct device *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMfhjIubj)}(hhh]j[)}(hthe device to reprobeh]hthe device to reprobe}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhMfhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMfhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhhj*ubj[)}(hThis function detaches the attached driver (if any) for the given device and restarts the driver probing process. It is intended to use if probing criteria changed during a devices lifetime and driver attachment should change accordingly.h]hThis function detaches the attached driver (if any) for the given device and restarts the driver probing process. It is intended to use if probing criteria changed during a devices lifetime and driver attachment should change accordingly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMghj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_register (C function)c.bus_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h-int bus_register (const struct bus_type *bus)h]h)}(h,int bus_register(const struct bus_type *bus)h](j8)}(hinth]hint}(hjϮhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjˮhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjޮhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˮhhhjݮhMubj")}(h bus_registerh]j()}(h bus_registerh]h bus_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjˮhhhjݮhMubj8)}(h(const struct bus_type *bus)h]j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjGmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.bus_registerasbuh1hhjubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjshhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjˮhhhjݮhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjǮhhhjݮhMubah}(h]j®ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjݮhMhjĮhhubjV)}(hhh]j[)}(h register a driver-core subsystemh]h register a driver-core subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjĮhhhjݮhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj¯j{j¯j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus to register **Description** Once we have that, we register the bus with the kobject infrastructure, then register the children subsystems it has: the devices and drivers that belong to the subsystem.h](j[)}(h**Parameters**h]j)}(hj̯h]h Parameters}(hjίhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʯubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjƯubj)}(hhh]j)}(h/``const struct bus_type *bus`` bus to register h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus to registerh]hbus to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjƯubj[)}(h**Description**h]j)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjƯubj[)}(hOnce we have that, we register the bus with the kobject infrastructure, then register the children subsystems it has: the devices and drivers that belong to the subsystem.h]hOnce we have that, we register the bus with the kobject infrastructure, then register the children subsystems it has: the devices and drivers that belong to the subsystem.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjƯubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_unregister (C function)c.bus_unregisterhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h0void bus_unregister (const struct bus_type *bus)h]h)}(h/void bus_unregister(const struct bus_type *bus)h](j8)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjghhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjyhMubj")}(hbus_unregisterh]j()}(hbus_unregisterh]hbus_unregister}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhjyhMubj8)}(h(const struct bus_type *bus)h]j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjðhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjаhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjްubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.bus_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjghhhjyhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjchhhjyhMubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjyhMhj`hhubjV)}(hhh]j[)}(hremove a bus from the systemh]hremove a bus from the system}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjChhubah}(h]h ]h"]h$]h&]uh1jUhj`hhhjyhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj^j{j^j|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus. **Description** Unregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcounth](j[)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjbubj)}(hhh]j)}(h$``const struct bus_type *bus`` bus. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus.h]hbus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubj[)}(h**Description**h]j)}(hj±h]h Description}(hjıhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjbubj[)}(hfUnregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcounth]hfUnregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcount}(hjرhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#subsys_system_register (C function)c.subsys_system_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(haint subsys_system_register (const struct bus_type *subsys, const struct attribute_group **groups)h]h)}(h`int subsys_system_register(const struct bus_type *subsys, const struct attribute_group **groups)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM>ubj")}(hsubsys_system_registerh]j()}(hsubsys_system_registerh]hsubsys_system_register}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM>ubj8)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j9)}(hconst struct bus_type *subsysh](h)}(hj9h]hconst}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j*sbc.subsys_system_registerasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj@ubj()}(hsubsysh]hsubsys}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubj9)}(h%const struct attribute_group **groupsh](h)}(hj9h]hconst}(hjѲhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjͲubj)}(h h]h }(hj޲hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͲubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjͲubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͲubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj modnameN classnameNj@9jC9)}jF9]jc.subsys_system_registerasbuh1hhjͲubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͲubj]9)}(hj`9h]h*}(hj6hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjͲubj]9)}(hj`9h]h*}(hjChhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjͲubj()}(hgroupsh]hgroups}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjͲubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj<ubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM>ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM>ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM>hjhhubjV)}(hhh]j[)}(h,register a subsystem at /sys/devices/system/h]h,register a subsystem at /sys/devices/system/}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM>hjwhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXS**Parameters** ``const struct bus_type *subsys`` system subsystem ``const struct attribute_group **groups`` default attributes for the root device **Description** All 'system' subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem- wide attributes. All registered devices are below this single root device and are named after the subsystem with a simple enumeration number appended. The registered devices are not explicitly named; only 'id' in the device needs to be set. Do not use this interface for anything new, it exists for compatibility with bad ideas only. New subsystems should use plain subsystems; and add the subsystem-wide attributes should be added to the subsystem directory itself and not some create fake root-device placed in /sys/devices/system/.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMBhjubj)}(hhh](j)}(h3``const struct bus_type *subsys`` system subsystem h](j)}(h!``const struct bus_type *subsys``h]j)}(hjh]hconst struct bus_type *subsys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM?hjubj)}(hhh]j[)}(hsystem subsystemh]hsystem subsystem}(hjԳhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjгhM?hjѳubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjгhM?hjubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM@hjubj)}(hhh]j[)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hM@hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM@hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMBhjubj[)}(hX{All 'system' subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem- wide attributes. All registered devices are below this single root device and are named after the subsystem with a simple enumeration number appended. The registered devices are not explicitly named; only 'id' in the device needs to be set.h]hXAll ‘system’ subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem- wide attributes. All registered devices are below this single root device and are named after the subsystem with a simple enumeration number appended. The registered devices are not explicitly named; only ‘id’ in the device needs to be set.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMAhjubj[)}(hX+Do not use this interface for anything new, it exists for compatibility with bad ideas only. New subsystems should use plain subsystems; and add the subsystem-wide attributes should be added to the subsystem directory itself and not some create fake root-device placed in /sys/devices/system/.h]hX+Do not use this interface for anything new, it exists for compatibility with bad ideas only. New subsystems should use plain subsystems; and add the subsystem-wide attributes should be added to the subsystem directory itself and not some create fake root-device placed in /sys/devices/system/.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$subsys_virtual_register (C function)c.subsys_virtual_registerhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hbint subsys_virtual_register (const struct bus_type *subsys, const struct attribute_group **groups)h]h)}(haint subsys_virtual_register(const struct bus_type *subsys, const struct attribute_group **groups)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubj")}(hsubsys_virtual_registerh]j()}(hsubsys_virtual_registerh]hsubsys_virtual_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMWubj8)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j9)}(hconst struct bus_type *subsysh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjʹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj۴hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.subsys_virtual_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj'hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hsubsysh]hsubsys}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h%const struct attribute_group **groupsh](h)}(hj9h]hconst}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.subsys_virtual_registerasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjIubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjIubj()}(hgroupsh]hgroups}(hj̵hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj{hhhjhMWubah}(h]jvah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMWhjxhhubjV)}(hhh]j[)}(h-register a subsystem at /sys/devices/virtual/h]h-register a subsystem at /sys/devices/virtual/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jUhjxhhhjhMWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const struct bus_type *subsys`` virtual subsystem ``const struct attribute_group **groups`` default attributes for the root device **Description** All 'virtual' subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem-wide attributes. All registered devices are below this single root device. There's no restriction on device naming. This is for kernel software constructs which need sysfs interface.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM[hjubj)}(hhh](j)}(h4``const struct bus_type *subsys`` virtual subsystem h](j)}(h!``const struct bus_type *subsys``h]j)}(hj7h]hconst struct bus_type *subsys}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMXhj1ubj)}(hhh]j[)}(hvirtual subsystemh]hvirtual subsystem}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhMXhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMXhj.ubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hjph]h%const struct attribute_group **groups}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMYhjjubj)}(hhh]j[)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM[hjubj[)}(hXDAll 'virtual' subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem-wide attributes. All registered devices are below this single root device. There's no restriction on device naming. This is for kernel software constructs which need sysfs interface.h]hXJAll ‘virtual’ subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem-wide attributes. All registered devices are below this single root device. There’s no restriction on device naming. This is for kernel software constructs which need sysfs interface.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_find (C function) c.driver_findhNtauh1hhj]hhhNhNubh)}(hhh](h)}(hQstruct device_driver * driver_find (const char *name, const struct bus_type *bus)h]h)}(hOstruct device_driver *driver_find(const char *name, const struct bus_type *bus)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMoubh)}(hhh]j()}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9 driver_findsb c.driver_findasbuh1hhjhhhjhMoubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMoubj]9)}(hj`9h]h*}(hj>hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhMoubj")}(h driver_findh]j()}(hj-h]h driver_find}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMoubj8)}(h.(const char *name, const struct bus_type *bus)h](j9)}(hconst char *nameh](h)}(hj9h]hconst}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjfubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubj9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjǷhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj÷ubj)}(h h]h }(hjԷhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj÷ubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj÷ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj÷ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j+ c.driver_findasbuh1hhj÷ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj÷ubj]9)}(hj`9h]h*}(hj,hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj÷ubj()}(hbush]hbus}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj÷ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMoubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMoubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMohjhhubjV)}(hhh]j[)}(h#locate driver on a bus by its name.h]h#locate driver on a bus by its name.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMohj`hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMoubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj{j{j{j|j}j~uh1hhhhj]hNhNubj)}(hX**Parameters** ``const char *name`` name of the driver. ``const struct bus_type *bus`` bus to scan for the driver. **Description** Call kset_find_obj() to iterate over list of drivers on a bus to find driver by name. Return driver if found. This routine provides no locking to prevent the driver it returns from being unregistered or unloaded while the caller is using it. The caller is responsible for preventing this.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMshjubj)}(hhh](j)}(h)``const char *name`` name of the driver. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMphjubj)}(hhh]j[)}(hname of the driver.h]hname of the driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMphjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMphjubj)}(h;``const struct bus_type *bus`` bus to scan for the driver. h](j)}(h``const struct bus_type *bus``h]j)}(hjݸh]hconst struct bus_type *bus}(hj߸hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj۸ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMqhj׸ubj)}(hhh]j[)}(hbus to scan for the driver.h]hbus to scan for the driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhj׸ubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMshjubj[)}(hmCall kset_find_obj() to iterate over list of drivers on a bus to find driver by name. Return driver if found.h]hmCall kset_find_obj() to iterate over list of drivers on a bus to find driver by name. Return driver if found.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMrhjubj[)}(hThis routine provides no locking to prevent the driver it returns from being unregistered or unloaded while the caller is using it. The caller is responsible for preventing this.h]hThis routine provides no locking to prevent the driver it returns from being unregistered or unloaded while the caller is using it. The caller is responsible for preventing this.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_get_dev_root (C function)c.bus_get_dev_roothNtauh1hhj]hhhNhNubh)}(hhh](h)}(h=struct device * bus_get_dev_root (const struct bus_type *bus)h]h)}(h;struct device *bus_get_dev_root(const struct bus_type *bus)h](h)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9bus_get_dev_rootsbc.bus_get_dev_rootasbuh1hhjhhhhjyhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhMubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhhjyhMubj")}(hbus_get_dev_rooth]j()}(hjh]hbus_get_dev_root}(hj˹hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjǹubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhhjyhMubj8)}(h(const struct bus_type *bus)h]j9)}(hconst struct bus_type *bush](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj!modnameN classnameNj@9jC9)}jF9]jc.bus_get_dev_rootasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjKhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hbush]hbus}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hj޹ubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhhjyhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjdhhhjyhMubah}(h]j_ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjyhMhjahhubjV)}(hhh]j[)}(h.return a pointer to the "device root" of a bush]h2return a pointer to the “device root” of a bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjahhhjyhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hXb**Parameters** ``const struct bus_type *bus`` bus to return the device root of. **Description** If a bus has a "device root" structure, return it, WITH THE REFERENCE COUNT INCREMENTED. Note, when finished with the device, a call to put_device() is required. If the device root is not present (or bus is not a valid pointer), NULL will be returned.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j)}(hA``const struct bus_type *bus`` bus to return the device root of. h](j)}(h``const struct bus_type *bus``h]j)}(hjúh]hconst struct bus_type *bus}(hjźhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(h!bus to return the device root of.h]h!bus to return the device root of.}(hjܺhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjغhMhjٺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjغhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hXIf a bus has a "device root" structure, return it, WITH THE REFERENCE COUNT INCREMENTED.h]h\If a bus has a “device root” structure, return it, WITH THE REFERENCE COUNT INCREMENTED.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hHNote, when finished with the device, a call to put_device() is required.h]hHNote, when finished with the device, a call to put_device() is required.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hYIf the device root is not present (or bus is not a valid pointer), NULL will be returned.h]hYIf the device root is not present (or bus is not a valid pointer), NULL will be returned.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubeh}(h]device-drivers-baseah ]h"]device drivers baseah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDevice Drivers DMA Managementh]hDevice Drivers DMA Management}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhhhhhKHubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdmam_free_coherent (C function)c.dmam_free_coherenthNtauh1hhjPhhhNhNubh)}(hhh](h)}(h]void dmam_free_coherent (struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h]h)}(h\void dmam_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h](j8)}(hvoidh]hvoid}(hjzhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjvhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhK=ubj")}(hdmam_free_coherenth]j()}(hdmam_free_coherenth]hdmam_free_coherent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjvhhhjhK=ubj8)}(hE(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjĻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjջhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjһubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj׻modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dmam_free_coherentasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj.modnameN classnameNj@9jC9)}jF9]jc.dmam_free_coherentasbuh1hhj%ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj()}(hsizeh]hsize}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h void *vaddrh](j8)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjmubj()}(hvaddrh]hvaddr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdma_addr_t dma_handleh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.dmam_free_coherentasbuh1hhjubj)}(h h]h }(hjԼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(h dma_handleh]h dma_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjvhhhjhK=ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjrhhhjhK=ubah}(h]jmah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK=hjohhubjV)}(hhh]j[)}(hManaged dma_free_coherent()h]hManaged dma_free_coherent()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=hj hhubah}(h]h ]h"]h$]h&]uh1jUhjohhhjhK=ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj$j{j$j|j}j~uh1hhhhjPhNhNubj)}(hX**Parameters** ``struct device *dev`` Device to free coherent memory for ``size_t size`` Size of allocation ``void *vaddr`` Virtual address of the memory to free ``dma_addr_t dma_handle`` DMA handle of the memory to free **Description** Managed dma_free_coherent().h](j[)}(h**Parameters**h]j)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhj(ubj)}(hhh](j)}(h:``struct device *dev`` Device to free coherent memory for h](j)}(h``struct device *dev``h]j)}(hjMh]hstruct device *dev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK>hjGubj)}(hhh]j[)}(h"Device to free coherent memory forh]h"Device to free coherent memory for}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhK>hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhK>hjDubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK?hjubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjDubj)}(h6``void *vaddr`` Virtual address of the memory to free h](j)}(h``void *vaddr``h]j)}(hjh]h void *vaddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK@hjubj)}(hhh]j[)}(h%Virtual address of the memory to freeh]h%Virtual address of the memory to free}(hjؽhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjԽhK@hjսubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԽhK@hjDubj)}(h;``dma_addr_t dma_handle`` DMA handle of the memory to free h](j)}(h``dma_addr_t dma_handle``h]j)}(hjh]hdma_addr_t dma_handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhjubj)}(hhh]j[)}(h DMA handle of the memory to freeh]h DMA handle of the memory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKAhjDubeh}(h]h ]h"]h$]h&]uh1jhj(ubj[)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKChj(ubj[)}(hManaged dma_free_coherent().h]hManaged dma_free_coherent().}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKBhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdmam_alloc_attrs (C function)c.dmam_alloc_attrshNtauh1hhjPhhhNhNubh)}(hhh](h)}(hqvoid * dmam_alloc_attrs (struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)h]h)}(hovoid *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)h](j8)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjthhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhKPubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjthhhjhKPubj")}(hdmam_alloc_attrsh]j()}(hdmam_alloc_attrsh]hdmam_alloc_attrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjthhhjhKPubj8)}(hY(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hj¾hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjϾhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjݾubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dmam_alloc_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj9modnameN classnameNj@9jC9)}jF9]jc.dmam_alloc_attrsasbuh1hhj0ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj()}(hsizeh]hsize}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdma_addr_t *dma_handleh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.dmam_alloc_attrsasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjxubj()}(h dma_handleh]h dma_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h gfp_t gfph](h)}(hhh]j()}(hgfp_th]hgfp_t}(hjԿhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjѿubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjֿmodnameN classnameNj@9jC9)}jF9]jc.dmam_alloc_attrsasbuh1hhjͿubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͿubj()}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjͿubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned long attrsh](j8)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hlongh]hlong}(hj5hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hattrsh]hattrs}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjthhhjhKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjphhhjhKPubah}(h]jkah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKPhjmhhubjV)}(hhh]j[)}(hManaged dma_alloc_attrs()h]hManaged dma_alloc_attrs()}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPhjxhhubah}(h]h ]h"]h$]h&]uh1jUhjmhhhjhKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjPhNhNubj)}(hX**Parameters** ``struct device *dev`` Device to allocate non_coherent memory for ``size_t size`` Size of allocation ``dma_addr_t *dma_handle`` Out argument for allocated DMA handle ``gfp_t gfp`` Allocation flags ``unsigned long attrs`` Flags in the DMA_ATTR_* namespace. **Description** Managed dma_alloc_attrs(). Memory allocated using this function will be automatically released on driver detach. **Return** Pointer to allocated memory on success, NULL on failure.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKThjubj)}(hhh](j)}(hB``struct device *dev`` Device to allocate non_coherent memory for h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKQhjubj)}(hhh]j[)}(h*Device to allocate non_coherent memory forh]h*Device to allocate non_coherent memory for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKRhjubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKRhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKRhjubj)}(hA``dma_addr_t *dma_handle`` Out argument for allocated DMA handle h](j)}(h``dma_addr_t *dma_handle``h]j)}(hj.h]hdma_addr_t *dma_handle}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKShj(ubj)}(hhh]j[)}(h%Out argument for allocated DMA handleh]h%Out argument for allocated DMA handle}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjChKShjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKShjubj)}(h``gfp_t gfp`` Allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjgh]h gfp_t gfp}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKThjaubj)}(hhh]j[)}(hAllocation flagsh]hAllocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|hKThj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hKThjubj)}(h;``unsigned long attrs`` Flags in the DMA_ATTR_* namespace. h](j)}(h``unsigned long attrs``h]j)}(hjh]hunsigned long attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKUhjubj)}(hhh]j[)}(h"Flags in the DMA_ATTR_* namespace.h]h"Flags in the DMA_ATTR_* namespace.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKUhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKWhjubj[)}(hqManaged dma_alloc_attrs(). Memory allocated using this function will be automatically released on driver detach.h]hqManaged dma_alloc_attrs(). Memory allocated using this function will be automatically released on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKVhjubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKYhjubj[)}(h8Pointer to allocated memory on success, NULL on failure.h]h8Pointer to allocated memory on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_map_sg_attrs (C function)c.dma_map_sg_attrshNtauh1hhjPhhhNhNubh)}(hhh](h)}(hunsigned int dma_map_sg_attrs (struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)h]h)}(hunsigned int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)h](j8)}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjChhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMubj8)}(hinth]hint}(hjdhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjChhhjUhMubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhMubj")}(hdma_map_sg_attrsh]j()}(hdma_map_sg_attrsh]hdma_map_sg_attrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjUhMubj8)}(hi(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct scatterlist *sgh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h scatterlisth]h scatterlist}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj2modnameN classnameNj@9jC9)}jF9]jc.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj\hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hsgh]hsg}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h int nentsh](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj()}(hnentsh]hnents}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(henum dma_data_direction dirh](h)}(hjh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned long attrsh](j8)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hlongh]hlong}(hj6hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hattrsh]hattrs}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjChhhjUhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj?hhhjUhMubah}(h]j:ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjUhMhj<hhubjV)}(hhh]j[)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jUhj<hhhjUhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjPhNhNubj)}(hX**Parameters** ``struct device *dev`` The device for which to perform the DMA operation ``struct scatterlist *sg`` The sg_table object describing the buffer ``int nents`` Number of entries to map ``enum dma_data_direction dir`` DMA direction ``unsigned long attrs`` Optional DMA attributes for the map operation **Description** Maps a buffer described by a scatterlist passed in the sg argument with nents segments for the **dir** DMA operation by the **dev** device. Returns the number of mapped entries (which can be less than nents) on success. Zero is returned for any error. dma_unmap_sg_attrs() should be used to unmap the buffer with the original sg and original nents (not the value returned by this funciton).h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh](j)}(hI``struct device *dev`` The device for which to perform the DMA operation h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hE``struct scatterlist *sg`` The sg_table object describing the buffer h](j)}(h``struct scatterlist *sg``h]j)}(hjh]hstruct scatterlist *sg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h'``int nents`` Number of entries to map h](j)}(h ``int nents``h]j)}(hj/h]h int nents}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj)ubj)}(hhh]j[)}(hNumber of entries to maph]hNumber of entries to map}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(h.``enum dma_data_direction dir`` DMA direction h](j)}(h``enum dma_data_direction dir``h]j)}(hjhh]henum dma_data_direction dir}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjbubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMhjubj)}(hF``unsigned long attrs`` Optional DMA attributes for the map operation h](j)}(h``unsigned long attrs``h]j)}(hjh]hunsigned long attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj[)}(hMaps a buffer described by a scatterlist passed in the sg argument with nents segments for the **dir** DMA operation by the **dev** device.h](h_Maps a buffer described by a scatterlist passed in the sg argument with nents segments for the }(hjhhhNhNubj)}(h**dir**h]hdir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh DMA operation by the }(hjhhhNhNubj)}(h**dev**h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj[)}(hoReturns the number of mapped entries (which can be less than nents) on success. Zero is returned for any error.h]hoReturns the number of mapped entries (which can be less than nents) on success. Zero is returned for any error.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj[)}(hdma_unmap_sg_attrs() should be used to unmap the buffer with the original sg and original nents (not the value returned by this funciton).h]hdma_unmap_sg_attrs() should be used to unmap the buffer with the original sg and original nents (not the value returned by this funciton).}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_map_sgtable (C function)c.dma_map_sgtablehNtauh1hhjPhhhNhNubh)}(hhh](h)}(hpint dma_map_sgtable (struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, unsigned long attrs)h]h)}(hoint dma_map_sgtable(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, unsigned long attrs)h](j8)}(hinth]hint}(hjchhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj_hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM3ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjqhM3ubj")}(hdma_map_sgtableh]j()}(hdma_map_sgtableh]hdma_map_sgtable}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj_hhhjqhM3ubj8)}(h\(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, unsigned long attrs)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct sg_table *sgth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hsg_tableh]hsg_table}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj2modnameN classnameNj@9jC9)}jF9]jc.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj\hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hsgth]hsgt}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(henum dma_data_direction dirh](h)}(hjh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubh)}(hhh]j()}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.dma_map_sgtableasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj()}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned long attrsh](j8)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hj_hhhjqhM3ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj[hhhjqhM3ubah}(h]jVah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhM3hjXhhubjV)}(hhh]j[)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM3hjDhhubah}(h]h ]h"]h$]h&]uh1jUhjXhhhjqhM3ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj_j{j_j|j}j~uh1hhhhjPhNhNubj)}(hX{**Parameters** ``struct device *dev`` The device for which to perform the DMA operation ``struct sg_table *sgt`` The sg_table object describing the buffer ``enum dma_data_direction dir`` DMA direction ``unsigned long attrs`` Optional DMA attributes for the map operation **Description** Maps a buffer described by a scatterlist stored in the given sg_table object for the **dir** DMA operation by the **dev** device. After success, the ownership for the buffer is transferred to the DMA domain. One has to call dma_sync_sgtable_for_cpu() or dma_unmap_sgtable() to move the ownership of the buffer back to the CPU domain before touching the buffer by the CPU. Returns 0 on success or a negative error code on error. The following error codes are supported with the given meaning: -EINVAL An invalid argument, unaligned access or other error in usage. Will not succeed if retried. -ENOMEM Insufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later. -EIO Legacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR. -EREMOTEIO The DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h](j[)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM7hjcubj)}(hhh](j)}(hI``struct device *dev`` The device for which to perform the DMA operation h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM4hjubj)}(hhh]j[)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubj)}(hC``struct sg_table *sgt`` The sg_table object describing the buffer h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM5hjubj)}(hhh]j[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(h.``enum dma_data_direction dir`` DMA direction h](j)}(h``enum dma_data_direction dir``h]j)}(hjh]henum dma_data_direction dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM6hjubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(hF``unsigned long attrs`` Optional DMA attributes for the map operation h](j)}(h``unsigned long attrs``h]j)}(hj3h]hunsigned long attrs}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM7hj-ubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhM7hjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhM7hjubeh}(h]h ]h"]h$]h&]uh1jhjcubj[)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM9hjcubj[)}(hXtMaps a buffer described by a scatterlist stored in the given sg_table object for the **dir** DMA operation by the **dev** device. After success, the ownership for the buffer is transferred to the DMA domain. One has to call dma_sync_sgtable_for_cpu() or dma_unmap_sgtable() to move the ownership of the buffer back to the CPU domain before touching the buffer by the CPU.h](hUMaps a buffer described by a scatterlist stored in the given sg_table object for the }(hjhhhNhNubj)}(h**dir**h]hdir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh DMA operation by the }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh device. After success, the ownership for the buffer is transferred to the DMA domain. One has to call dma_sync_sgtable_for_cpu() or dma_unmap_sgtable() to move the ownership of the buffer back to the CPU domain before touching the buffer by the CPU.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM8hjcubj[)}(hwReturns 0 on success or a negative error code on error. The following error codes are supported with the given meaning:h]hwReturns 0 on success or a negative error code on error. The following error codes are supported with the given meaning:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM?hjcubjO)}(hXM-EINVAL An invalid argument, unaligned access or other error in usage. Will not succeed if retried. -ENOMEM Insufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later. -EIO Legacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR. -EREMOTEIO The DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]h option_list)}(hhh](hoption_list_item)}(hhh](h option_group)}(hhh]hoption)}(h-EINVALh](h option_string)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubhoption_argument)}(hINVALh]hINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubh description)}(h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.h]j[)}(h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.h]h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMBhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h-ENOMEMh](j)}(h-Eh]h-E}hj7sbah}(h]h ]h"]h$]h&]uh1jhj3ubj)}(hNOMEMh]hNOMEM}(hjEhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhj-ubj )}(hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.h]j[)}(hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.h]hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMDhj`ubah}(h]h ]h"]h$]h&]uh1j hj-ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h-EIOh](j)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubj)}(hIOh]hIO}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj )}(hqLegacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR.h]j[)}(hqLegacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR.h]hqLegacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMFhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h -EREMOTEIOh](j)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubj)}(hREMOTEIOh]hREMOTEIO}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj )}(hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]j[)}(hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMIhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMBhjubah}(h]h ]h"]h$]h&]uh1jNhj hMBhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_need_unmap (C function)c.dma_need_unmaphNtauh1hhjPhhhNhNubh)}(hhh](h)}(h(bool dma_need_unmap (struct device *dev)h]h)}(h'bool dma_need_unmap(struct device *dev)h](j8)}(hj;h]hbool}(hjOhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjKhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hMubj")}(hdma_need_unmaph]j()}(hdma_need_unmaph]hdma_need_unmap}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjKhhhj\hMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jqsbc.dma_need_unmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjKhhhj\hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjGhhhj\hMubah}(h]jBah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj\hMhjDhhubjV)}(hhh]j[)}(h,does this device need dma_unmap_* operationsh]h,does this device need dma_unmap_* operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjDhhhj\hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhjPhNhNubj)}(hX**Parameters** ``struct device *dev`` device to check **Description** If this function returns ``false``, drivers can skip calling dma_unmap_* after finishing an I/O. This function must be called after all mappings that might need to be unmapped have been performed.h](j[)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj*ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjOh]hstruct device *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjIubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj*ubj[)}(hIf this function returns ``false``, drivers can skip calling dma_unmap_* after finishing an I/O. This function must be called after all mappings that might need to be unmapped have been performed.h](hIf this function returns }(hjhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, drivers can skip calling dma_unmap_* after finishing an I/O. This function must be called after all mappings that might need to be unmapped have been performed.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_can_mmap (C function)c.dma_can_mmaphNtauh1hhjPhhhNhNubh)}(hhh](h)}(h&bool dma_can_mmap (struct device *dev)h]h)}(h%bool dma_can_mmap(struct device *dev)h](j8)}(hj;h]hbool}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM-ubj")}(h dma_can_mmaph]j()}(h dma_can_mmaph]h dma_can_mmap}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM-ubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj=modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dma_can_mmapasbuh1hhjubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjihhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM-ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM-ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM-hjhhubjV)}(hhh]j[)}(h+check if a given device supports dma_mmap_*h]h+check if a given device supports dma_mmap_*}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM-hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM-ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjPhNhNubj)}(h**Parameters** ``struct device *dev`` device to check **Description** Returns ``true`` if **dev** supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM1hjubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM.hjubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM0hjubj[)}(hrReturns ``true`` if **dev** supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.h](hReturns }(hj2hhhNhNubj)}(h``true``h]htrue}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh if }(hj2hhhNhNubj)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubhW supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_mmap_attrs (C function)c.dma_mmap_attrshNtauh1hhjPhhhNhNubh)}(hhh](h)}(hint dma_mmap_attrs (struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)h]h)}(hint dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM@ubj")}(hdma_mmap_attrsh]j()}(hdma_mmap_attrsh]hdma_mmap_attrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM@ubj8)}(hw(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)h](j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dma_mmap_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct vm_area_struct *vmah](h)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j()}(hvm_area_structh]hvm_area_struct}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjTmodnameN classnameNj@9jC9)}jF9]jc.dma_mmap_attrsasbuh1hhj0ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj]9)}(hj`9h]h*}(hj~hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj0ubj()}(hvmah]hvma}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hvoid *cpu_addrh](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hcpu_addrh]hcpu_addr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hdma_addr_t dma_addrh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jc.dma_mmap_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdma_addrh]hdma_addr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj3modnameN classnameNj@9jC9)}jF9]jc.dma_mmap_attrsasbuh1hhj*ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj()}(hsizeh]hsize}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hunsigned long attrsh](j8)}(hunsignedh]hunsigned}(hjvhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj8)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj()}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM@ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj}hhhjhM@ubah}(h]jxah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM@hjzhhubjV)}(hhh]j[)}(h-map a coherent DMA allocation into user spaceh]h-map a coherent DMA allocation into user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM@hjhhubah}(h]h ]h"]h$]h&]uh1jUhjzhhhjhM@ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjPhNhNubj)}(hX**Parameters** ``struct device *dev`` valid struct device pointer, or NULL for ISA and EISA-like devices ``struct vm_area_struct *vma`` vm_area_struct describing requested user mapping ``void *cpu_addr`` kernel CPU-view address returned from dma_alloc_attrs ``dma_addr_t dma_addr`` device-view address returned from dma_alloc_attrs ``size_t size`` size of memory originally requested in dma_alloc_attrs ``unsigned long attrs`` attributes of mapping properties requested in dma_alloc_attrs **Description** Map a coherent DMA buffer previously allocated by dma_alloc_attrs into user space. The coherent DMA buffer must not be freed by the driver until the user space mapping has been released.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMDhjubj)}(hhh](j)}(hZ``struct device *dev`` valid struct device pointer, or NULL for ISA and EISA-like devices h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMAhjubj)}(hhh]j[)}(hBvalid struct device pointer, or NULL for ISA and EISA-like devicesh]hBvalid struct device pointer, or NULL for ISA and EISA-like devices}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMAhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMAhjubj)}(hP``struct vm_area_struct *vma`` vm_area_struct describing requested user mapping h](j)}(h``struct vm_area_struct *vma``h]j)}(hjRh]hstruct vm_area_struct *vma}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMBhjLubj)}(hhh]j[)}(h0vm_area_struct describing requested user mappingh]h0vm_area_struct describing requested user mapping}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghMBhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMBhjubj)}(hI``void *cpu_addr`` kernel CPU-view address returned from dma_alloc_attrs h](j)}(h``void *cpu_addr``h]j)}(hjh]hvoid *cpu_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMChjubj)}(hhh]j[)}(h5kernel CPU-view address returned from dma_alloc_attrsh]h5kernel CPU-view address returned from dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(hJ``dma_addr_t dma_addr`` device-view address returned from dma_alloc_attrs h](j)}(h``dma_addr_t dma_addr``h]j)}(hjh]hdma_addr_t dma_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMDhjubj)}(hhh]j[)}(h1device-view address returned from dma_alloc_attrsh]h1device-view address returned from dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(hG``size_t size`` size of memory originally requested in dma_alloc_attrs h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMEhjubj)}(hhh]j[)}(h6size of memory originally requested in dma_alloc_attrsh]h6size of memory originally requested in dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMEhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMEhjubj)}(hV``unsigned long attrs`` attributes of mapping properties requested in dma_alloc_attrs h](j)}(h``unsigned long attrs``h]j)}(hj6h]hunsigned long attrs}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMFhj0ubj)}(hhh]j[)}(h=attributes of mapping properties requested in dma_alloc_attrsh]h=attributes of mapping properties requested in dma_alloc_attrs}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhMFhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMFhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMHhjubj[)}(hMap a coherent DMA buffer previously allocated by dma_alloc_attrs into user space. The coherent DMA buffer must not be freed by the driver until the user space mapping has been released.h]hMap a coherent DMA buffer previously allocated by dma_alloc_attrs into user space. The coherent DMA buffer must not be freed by the driver until the user space mapping has been released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#dma_addressing_limited (C function)c.dma_addressing_limitedhNtauh1hhjPhhhNhNubh)}(hhh](h)}(h0bool dma_addressing_limited (struct device *dev)h]h)}(h/bool dma_addressing_limited(struct device *dev)h](j8)}(hj;h]hbool}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdma_addressing_limitedh]j()}(hdma_addressing_limitedh]hdma_addressing_limited}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct device *dev)h]j9)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.dma_addressing_limitedasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj>hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h*return if the device is addressing limitedh]h*return if the device is addressing limited}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjPhNhNubj)}(hX**Parameters** ``struct device *dev`` device to check **Description** Return ``true`` if the devices DMA mask is too small to address all memory in the system, else ``false``. Lack of addressing bits is the prime reason for bounce buffering, but might not be the only one.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj[)}(hReturn ``true`` if the devices DMA mask is too small to address all memory in the system, else ``false``. Lack of addressing bits is the prime reason for bounce buffering, but might not be the only one.h](hReturn }(hjhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP if the devices DMA mask is too small to address all memory in the system, else }(hjhhhNhNubj)}(h ``false``h]hfalse}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhc. Lack of addressing bits is the prime reason for bounce buffering, but might not be the only one.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjPhhhNhNubeh}(h]device-drivers-dma-managementah ]h"]device drivers dma managementah$]h&]uh1hhhhhhhhKHubh)}(hhh](h)}(hDevice drivers PnP supporth]hDevice drivers PnP support}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhhhhhKNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pnp_register_protocol (C function)c.pnp_register_protocolhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h9int pnp_register_protocol (struct pnp_protocol *protocol)h]h)}(h8int pnp_register_protocol(struct pnp_protocol *protocol)h](j8)}(hinth]hint}(hjshhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjohhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhK*ubj")}(hpnp_register_protocolh]j()}(hpnp_register_protocolh]hpnp_register_protocol}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjohhhjhK*ubj8)}(h(struct pnp_protocol *protocol)h]j9)}(hstruct pnp_protocol *protocolh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h pnp_protocolh]h pnp_protocol}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.pnp_register_protocolasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hprotocolh]hprotocol}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjohhhjhK*ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjkhhhjhK*ubah}(h]jfah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK*hjhhhubjV)}(hhh]j[)}(h$adds a pnp protocol to the pnp layerh]h$adds a pnp protocol to the pnp layer}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*hj0hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhhjhK*ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjKj{jKj|j}j~uh1hhhhjIhNhNubj)}(h**Parameters** ``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure **Description** Ex protocols: ISAPNP, PNPBIOS, etch](j[)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK.hjOubj)}(hhh]j)}(hV``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure h](j)}(h!``struct pnp_protocol *protocol``h]j)}(hjth]hstruct pnp_protocol *protocol}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK+hjnubj)}(hhh]j[)}(h3pointer to the corresponding pnp_protocol structureh]h3pointer to the corresponding pnp_protocol structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK+hjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhK+hjkubah}(h]h ]h"]h$]h&]uh1jhjOubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK-hjOubjO)}(h"Ex protocols: ISAPNP, PNPBIOS, etch]j[)}(hjh]h"Ex protocols: ISAPNP, PNPBIOS, etc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK,hjubah}(h]h ]h"]h$]h&]uh1jNhjhK,hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$pnp_request_card_device (C function)c.pnp_request_card_devicehNtauh1hhjIhhhNhNubh)}(hhh](h)}(hlstruct pnp_dev * pnp_request_card_device (struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h]h)}(hjstruct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM#ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM#ubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9pnp_request_card_devicesbc.pnp_request_card_deviceasbuh1hhjhhhj hM#ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM#ubj]9)}(hj`9h]h*}(hjKhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhj hM#ubj")}(hpnp_request_card_deviceh]j()}(hj:h]hpnp_request_card_device}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hM#ubj8)}(hC(struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h](j9)}(hstruct pnp_card_link *clinkh](h)}(hjh]hstruct}(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j()}(h pnp_card_linkh]h pnp_card_link}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j8c.pnp_request_card_deviceasbuh1hhjsubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjsubj()}(hclinkh]hclink}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubj9)}(hconst char *idh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hidh]hid}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubj9)}(hstruct pnp_dev *fromh](h)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjdmodnameN classnameNj@9jC9)}jF9]j8c.pnp_request_card_deviceasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj@ubj()}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjoubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj hM#ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hM#ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hM#hjhhubjV)}(hhh]j[)}(h2Searches for a PnP device under the specified cardh]h2Searches for a PnP device under the specified card}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hM#ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjIhNhNubj)}(hX"**Parameters** ``struct pnp_card_link *clink`` pointer to the card link, cannot be NULL ``const char *id`` pointer to a PnP ID structure that explains the rules for finding the device ``struct pnp_dev *from`` Starting place to search from. If NULL it will start from the beginning.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM'hjubj)}(hhh](j)}(hI``struct pnp_card_link *clink`` pointer to the card link, cannot be NULL h](j)}(h``struct pnp_card_link *clink``h]j)}(hjh]hstruct pnp_card_link *clink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM$hjubj)}(hhh]j[)}(h(pointer to the card link, cannot be NULLh]h(pointer to the card link, cannot be NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h```const char *id`` pointer to a PnP ID structure that explains the rules for finding the device h](j)}(h``const char *id``h]j)}(hj?h]hconst char *id}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM%hj9ubj)}(hhh]j[)}(hLpointer to a PnP ID structure that explains the rules for finding the deviceh]hLpointer to a PnP ID structure that explains the rules for finding the device}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjThM%hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThM%hjubj)}(ha``struct pnp_dev *from`` Starting place to search from. If NULL it will start from the beginning.h](j)}(h``struct pnp_dev *from``h]j)}(hjxh]hstruct pnp_dev *from}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM'hjrubj)}(hhh]j[)}(hHStarting place to search from. If NULL it will start from the beginning.h]hHStarting place to search from. If NULL it will start from the beginning.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM&hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$pnp_release_card_device (C function)c.pnp_release_card_devicehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h2void pnp_release_card_device (struct pnp_dev *dev)h]h)}(h1void pnp_release_card_device(struct pnp_dev *dev)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubj")}(hpnp_release_card_deviceh]j()}(hpnp_release_card_deviceh]hpnp_release_card_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMWubj8)}(h(struct pnp_dev *dev)h]j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj/modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.pnp_release_card_deviceasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj]9)}(hj`9h]h*}(hj[hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj ubj()}(hdevh]hdev}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMWubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMWhjhhubjV)}(hhh]j[)}(h4call this when the driver no longer needs the deviceh]h4call this when the driver no longer needs the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjIhNhNubj)}(hM**Parameters** ``struct pnp_dev *dev`` pointer to the PnP device structureh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM[hjubj)}(hhh]j)}(h;``struct pnp_dev *dev`` pointer to the PnP device structureh](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM]hjubj)}(hhh]j[)}(h#pointer to the PnP device structureh]h#pointer to the PnP device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pnp_register_card_driver (C function)c.pnp_register_card_driverhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h:int pnp_register_card_driver (struct pnp_card_driver *drv)h]h)}(h9int pnp_register_card_driver(struct pnp_card_driver *drv)h](j8)}(hinth]hint}(hj-hhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj)hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj;hM}ubj")}(hpnp_register_card_driverh]j()}(hpnp_register_card_driverh]hpnp_register_card_driver}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj)hhhj;hM}ubj8)}(h(struct pnp_card_driver *drv)h]j9)}(hstruct pnp_card_driver *drvh](h)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j()}(hpnp_card_driverh]hpnp_card_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jPsbc.pnp_register_card_driverasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjfubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjbubah}(h]h ]h"]h$]h&]j?j@uh1j8hj)hhhj;hM}ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj%hhhj;hM}ubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj;hM}hj"hhubjV)}(hhh]j[)}(h.registers a PnP card driver with the PnP Layerh]h.registers a PnP card driver with the PnP Layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jUhj"hhhj;hM}ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjIhNhNubj)}(hS**Parameters** ``struct pnp_card_driver *drv`` pointer to the driver to registerh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhj ubj)}(hhh]j)}(hA``struct pnp_card_driver *drv`` pointer to the driver to registerh](j)}(h``struct pnp_card_driver *drv``h]j)}(hj.h]hstruct pnp_card_driver *drv}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhj(ubj)}(hhh]j[)}(h!pointer to the driver to registerh]h!pointer to the driver to register}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM~hjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'pnp_unregister_card_driver (C function)c.pnp_unregister_card_driverhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h=void pnp_unregister_card_driver (struct pnp_card_driver *drv)h]h)}(hstruct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6ubh)}(hhh]j()}(hpnp_idh]hpnp_id}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9 pnp_add_idsb c.pnp_add_idasbuh1hhjhhhjhM6ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6ubj]9)}(hj`9h]h*}(hj1hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjhhhjhM6ubj")}(h pnp_add_idh]j()}(hj h]h pnp_add_id}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM6ubj8)}(h%(struct pnp_dev *dev, const char *id)h](j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj}modnameN classnameNj@9jC9)}jF9]j c.pnp_add_idasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjYubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjUubj9)}(hconst char *idh](h)}(hj9h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj8)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hidh]hid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjUubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM6ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM6ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM6hjhhubjV)}(hhh]j[)}(h'adds an EISA id to the specified deviceh]h'adds an EISA id to the specified device}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM6hj8hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM6ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjSj{jSj|j}j~uh1hhhhjIhNhNubj)}(hz**Parameters** ``struct pnp_dev *dev`` pointer to the desired device ``const char *id`` pointer to an EISA id stringh](j[)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM:hjWubj)}(hhh](j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hj|h]hstruct pnp_dev *dev}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM7hjvubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjsubj)}(h/``const char *id`` pointer to an EISA id stringh](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM9hjubj)}(hhh]j[)}(hpointer to an EISA id stringh]hpointer to an EISA id string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjsubeh}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_start_dev (C function)c.pnp_start_devhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h'int pnp_start_dev (struct pnp_dev *dev)h]h)}(h&int pnp_start_dev(struct pnp_dev *dev)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMLubj")}(h pnp_start_devh]j()}(h pnp_start_devh]h pnp_start_dev}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhMLubj8)}(h(struct pnp_dev *dev)h]j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjlmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j2sbc.pnp_start_devasbuh1hhjHubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjHubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjDubah}(h]h ]h"]h$]h&]j?j@uh1j8hj hhhjhMLubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMLubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMLhjhhubjV)}(hhh]j[)}(h!low-level start of the PnP deviceh]h!low-level start of the PnP device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMLubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjIhNhNubj)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** assumes that resources have already been allocatedh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMPhjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMMhj ubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%hMMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMOhjubj[)}(h2assumes that resources have already been allocatedh]h2assumes that resources have already been allocated}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMNhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_stop_dev (C function)c.pnp_stop_devhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h&int pnp_stop_dev (struct pnp_dev *dev)h]h)}(h%int pnp_stop_dev(struct pnp_dev *dev)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMdubj")}(h pnp_stop_devh]j()}(h pnp_stop_devh]h pnp_stop_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMdubj8)}(h(struct pnp_dev *dev)h]j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.pnp_stop_devasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMdubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMdhjhhubjV)}(hhh]j[)}(h#low-level disable of the PnP deviceh]h#low-level disable of the PnP device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMdhjMhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhj{jhj|j}j~uh1hhhhjIhNhNubj)}(hq**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not free resourcesh](j[)}(h**Parameters**h]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhhjlubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMehjubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjlubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMghjlubj[)}(hdoes not free resourcesh]hdoes not free resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMfhjlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_activate_dev (C function)c.pnp_activate_devhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h*int pnp_activate_dev (struct pnp_dev *dev)h]h)}(h)int pnp_activate_dev(struct pnp_dev *dev)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMzubj")}(hpnp_activate_devh]j()}(hpnp_activate_devh]hpnp_activate_dev}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhMzubj8)}(h(struct pnp_dev *dev)h]j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjnmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j4sbc.pnp_activate_devasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjJubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjFubah}(h]h ]h"]h$]h&]j?j@uh1j8hj hhhjhMzubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhjhMzubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMzhjhhubjV)}(hhh]j[)}(hactivates a PnP device for useh]hactivates a PnP device for use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMzubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjIhNhNubj)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not validate or set resources so be careful.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM~hjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM{hj ubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'hM{hj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hM{hj ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjMh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM}hjubj[)}(h1does not validate or set resources so be careful.h]h1does not validate or set resources so be careful.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM|hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_disable_dev (C function)c.pnp_disable_devhNtauh1hhjIhhhNhNubh)}(hhh](h)}(h)int pnp_disable_dev (struct pnp_dev *dev)h]h)}(h(int pnp_disable_dev(struct pnp_dev *dev)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hpnp_disable_devh]j()}(hpnp_disable_devh]hpnp_disable_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct pnp_dev *dev)h]j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.pnp_disable_devasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hdevh]hdev}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hdisables deviceh]hdisables device}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjOhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjjj{jjj|j}j~uh1hhhhjIhNhNubj)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** inform the correct pnp protocol so that resources can be used by other devicesh](j[)}(h**Parameters**h]j)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjnubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjnubj[)}(hNinform the correct pnp protocol so that resources can be used by other devicesh]hNinform the correct pnp protocol so that resources can be used by other devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_is_active (C function)c.pnp_is_activehNtauh1hhjIhhhNhNubh)}(hhh](h)}(h'int pnp_is_active (struct pnp_dev *dev)h]h)}(h&int pnp_is_active(struct pnp_dev *dev)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hKubj")}(h pnp_is_activeh]j()}(h pnp_is_activeh]h pnp_is_active}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj!hKubj8)}(h(struct pnp_dev *dev)h]j9)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjpmodnameN classnameNj@9jC9)}jF9]jI9)}j<9j6sbc.pnp_is_activeasbuh1hhjLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjLubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjHubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhj!hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj!hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj!hKhjhhubjV)}(hhh]j[)}(h?Determines if a device is active based on its current resourcesh]h?Determines if a device is active based on its current resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj!hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjIhNhNubj)}(hK**Parameters** ``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubj)}(hhh]j)}(h9``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubj)}(hhh]j[)}(h!pointer to the desired PnP deviceh]h!pointer to the desired PnP device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjIhhhNhNubeh}(h]device-drivers-pnp-supportah ]h"]device drivers pnp supportah$]h&]uh1hhhhhhhhKNubh)}(hhh](h)}(hUserspace IO devicesh]hUserspace IO devices}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hhhhhK`ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_event_notify (C function)c.uio_event_notifyhNtauh1hhj]hhhNhNubh)}(hhh](h)}(h-void uio_event_notify (struct uio_info *info)h]h)}(h,void uio_event_notify(struct uio_info *info)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(huio_event_notifyh]j()}(huio_event_notifyh]huio_event_notify}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(h(struct uio_info *info)h]j9)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.uio_event_notifyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jzah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhj|hhubjV)}(hhh]j[)}(htrigger an interrupt eventh]htrigger an interrupt event}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jUhj|hhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj_j{j_j|j}j~uh1hhhhj]hNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](j[)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjcubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__uio_register_device (C function)c.__uio_register_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h^int __uio_register_device (struct module *owner, struct device *parent, struct uio_info *info)h]h)}(h]int __uio_register_device(struct module *owner, struct device *parent, struct uio_info *info)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h__uio_register_deviceh]j()}(h__uio_register_deviceh]h__uio_register_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj8)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j9)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj?modnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.__uio_register_deviceasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjkhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hownerh]howner}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jYc.__uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetj!modnameN classnameNj@9jC9)}jF9]jYc.__uio_register_deviceasbuh1hhjubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjKhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hinfoh]hinfo}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct module *owner`` module that creates the new device ``struct device *parent`` parent device ``struct uio_info *info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hjh]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``struct uio_info *info`` UIO device capabilities h](j)}(h``struct uio_info *info``h]j)}(hj5h]hstruct uio_info *info}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj/ubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)O}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj[)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__devm_uio_register_device (C function)c.__devm_uio_register_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hcint __devm_uio_register_device (struct module *owner, struct device *parent, struct uio_info *info)h]h)}(hbint __devm_uio_register_device(struct module *owner, struct device *parent, struct uio_info *info)h](j8)}(hinth]hint}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM2ubj")}(h__devm_uio_register_deviceh]j()}(h__devm_uio_register_deviceh]h__devm_uio_register_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM2ubj8)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j9)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hj>hhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hownerh]howner}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct device *parenth](h)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j,c.__devm_uio_register_deviceasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hj`ubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubj9)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]j,c.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hinfoh]hinfo}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubeh}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhM2ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM2ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM2hjhhubjV)}(hhh]j[)}(h&Resource managed uio_register_device()h]h&Resource managed uio_register_device()}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM2hjRhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM2ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjmj{jmj|j}j~uh1hhhhj]hNhNubj)}(h**Parameters** ``struct module *owner`` module that creates the new device ``struct device *parent`` parent device ``struct uio_info *info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM6hjqubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hjh]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM3hjubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM4hjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjubj)}(h2``struct uio_info *info`` UIO device capabilities h](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM5hjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubeh}(h]h ]h"]h$]h&]uh1jhjqubj[)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM7hjqubj[)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM6hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"uio_unregister_device (C function)c.uio_unregister_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(h2void uio_unregister_device (struct uio_info *info)h]h)}(h1void uio_unregister_device(struct uio_info *info)h](j8)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j8ah"]h$]h&]uh1j8hjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMSubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMSubj")}(huio_unregister_deviceh]j()}(huio_unregister_deviceh]huio_unregister_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMSubj8)}(h(struct uio_info *info)h]j9)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej<9 reftargetjmodnameN classnameNj@9jC9)}jF9]jI9)}j<9jsbc.uio_unregister_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj]9)}(hj`9h]h*}(hjhhhNhNubah}(h]h ]ji9ah"]h$]h&]uh1j\9hjubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j9hjubah}(h]h ]h"]h$]h&]j?j@uh1j8hjhhhjhMSubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMSubah}(h]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMShj}hhubjV)}(hhh]j[)}(h!unregister a industrial IO deviceh]h!unregister a industrial IO device}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMShjEhhubah}(h]h ]h"]h$]h&]uh1jUhj}hhhjhMSubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj`j{j`j|j}j~uh1hhhhj]hNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](j[)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMWhjdubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMYhjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_mem (C struct) c.uio_memhNtauh1hhj]hhhNhNubh)}(hhh](h)}(huio_memh]h)}(hstruct uio_memh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(huio_memh]j()}(hjh]huio_mem}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(h"description of a UIO memory regionh]h"description of a UIO memory region}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj"hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj=j{j=j|j}j~uh1hhhhj]hNhNubj)}(hX**Definition**:: struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; }; **Members** ``name`` name of the memory region for identification ``addr`` address of the device's memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types) ``dma_addr`` DMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (**addr** should be the void * returned from the same dma_alloc_coherent call) ``offs`` offset of device memory within the page ``size`` size of IO (multiple of page size) ``memtype`` type of memory addr points to ``internal_addr`` ioremap-ped version of addr, for driver internal use ``dma_device`` device struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only ``map`` for use by the UIO core only.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh:}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjAubj)}(hX)struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; };h]hX)struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; };}hjbsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjAubj[)}(h **Members**h]j)}(hjsh]hMembers}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK*hjAubj)}(hhh](j)}(h6``name`` name of the memory region for identification h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(h,name of the memory region for identificationh]h,name of the memory region for identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``addr`` address of the device's memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types) h](j)}(h``addr``h]j)}(hjh]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(haddress of the device's memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types)h]haddress of the device’s memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``dma_addr`` DMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (**addr** should be the void * returned from the same dma_alloc_coherent call) h](j)}(h ``dma_addr``h]j)}(hjh]hdma_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK"hjubj)}(hhh]j[)}(hDMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (**addr** should be the void * returned from the same dma_alloc_coherent call)h](hKDMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (}(hjhhhNhNubj)}(h**addr**h]haddr}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE should be the void * returned from the same dma_alloc_coherent call)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(h1``offs`` offset of device memory within the page h](j)}(h``offs``h]j)}(hjQh]hoffs}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK#hjKubj)}(hhh]j[)}(h'offset of device memory within the pageh]h'offset of device memory within the page}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhK#hjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhK#hjubj)}(h,``size`` size of IO (multiple of page size) h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK$hjubj)}(hhh]j[)}(h"size of IO (multiple of page size)h]h"size of IO (multiple of page size)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjubj)}(h*``memtype`` type of memory addr points to h](j)}(h ``memtype``h]j)}(hjh]hmemtype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK%hjubj)}(hhh]j[)}(htype of memory addr points toh]htype of memory addr points to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK%hjubj)}(hG``internal_addr`` ioremap-ped version of addr, for driver internal use h](j)}(h``internal_addr``h]j)}(hjh]h internal_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK&hjubj)}(hhh]j[)}(h4ioremap-ped version of addr, for driver internal useh]h4ioremap-ped version of addr, for driver internal use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjubj)}(hh``dma_device`` device struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only h](j)}(h``dma_device``h]j)}(hj5h]h dma_device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK(hj/ubj)}(hhh]j[)}(hXdevice struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT onlyh]hXdevice struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK'hjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK(hjubj)}(h%``map`` for use by the UIO core only.h](j)}(h``map``h]j)}(hjoh]hmap}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK(hjiubj)}(hhh]j[)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK)hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubeh}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_port (C struct) c.uio_porthNtauh1hhj]hhhNhNubh)}(hhh](h)}(huio_porth]h)}(hstruct uio_porth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK/ubj")}(huio_porth]j()}(hjh]huio_port}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhK/ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhK/ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK/hjhhubjV)}(hhh]j[)}(h description of a UIO port regionh]h description of a UIO port region}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK;hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhK/ubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj#j{j#j|j}j~uh1hhhhj]hNhNubj)}(hX**Definition**:: struct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; }; **Members** ``name`` name of the port region for identification ``start`` start of port region ``size`` size of port region ``porttype`` type of port (see UIO_PORT_* below) ``portio`` for use by the UIO core only.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubh:}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hj'ubj)}(hstruct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; };h]hstruct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; };}hjHsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKAhj'ubj[)}(h **Members**h]j)}(hjYh]hMembers}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKIhj'ubj)}(hhh](j)}(h4``name`` name of the port region for identification h](j)}(h``name``h]j)}(hjxh]hname}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK=hjrubj)}(hhh]j[)}(h*name of the port region for identificationh]h*name of the port region for identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK=hjubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhK=hjoubj)}(h``start`` start of port region h](j)}(h ``start``h]j)}(hjh]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK>hjubj)}(hhh]j[)}(hstart of port regionh]hstart of port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjoubj)}(h``size`` size of port region h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hjubj)}(hhh]j[)}(hsize of port regionh]hsize of port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjoubj)}(h1``porttype`` type of port (see UIO_PORT_* below) h](j)}(h ``porttype``h]j)}(hj#h]hporttype}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK@hjubj)}(hhh]j[)}(h#type of port (see UIO_PORT_* below)h]h#type of port (see UIO_PORT_* below)}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hK@hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hK@hjoubj)}(h(``portio`` for use by the UIO core only.h](j)}(h ``portio``h]j)}(hj\h]hportio}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK@hjVubj)}(hhh]j[)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKAhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhK@hjoubeh}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_info (C struct) c.uio_infohNtauh1hhj]hhhNhNubh)}(hhh](h)}(huio_infoh]h)}(hstruct uio_infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKGubj")}(huio_infoh]j()}(hjh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKGubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKGubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKGhjhhubjV)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKZhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKGubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj)}(hX'**Definition**:: struct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); }; **Members** ``uio_dev`` the UIO device this info belongs to ``name`` device name ``version`` device driver version ``mem`` list of mappable memory regions, size==0 for end of list ``port`` list of port regions, size==0 for end of list ``irq`` interrupt number or UIO_IRQ_CUSTOM ``irq_flags`` flags for request_irq() ``priv`` optional private data ``handler`` the device's irq handler ``mmap_prepare`` mmap_prepare operation for this uio device ``open`` open operation for this uio device ``release`` release operation for this uio device ``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hjubj)}(hXqstruct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };h]hXqstruct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };}hj5sbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK`hjubj[)}(h **Members**h]j)}(hjFh]hMembers}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKphjubj)}(hhh](j)}(h0``uio_dev`` the UIO device this info belongs to h](j)}(h ``uio_dev``h]j)}(hjeh]huio_dev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK\hj_ubj)}(hhh]j[)}(h#the UIO device this info belongs toh]h#the UIO device this info belongs to}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzhK\hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhK\hj\ubj)}(h``name`` device name h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK]hjubj)}(hhh]j[)}(h device nameh]h device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK]hj\ubj)}(h"``version`` device driver version h](j)}(h ``version``h]j)}(hjh]hversion}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hjubj)}(hhh]j[)}(hdevice driver versionh]hdevice driver version}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK^hj\ubj)}(hA``mem`` list of mappable memory regions, size==0 for end of list h](j)}(h``mem``h]j)}(hjh]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK_hj ubj)}(hhh]j[)}(h8list of mappable memory regions, size==0 for end of listh]h8list of mappable memory regions, size==0 for end of list}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%hK_hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hK_hj\ubj)}(h7``port`` list of port regions, size==0 for end of list h](j)}(h``port``h]j)}(hjIh]hport}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK`hjCubj)}(hhh]j[)}(h-list of port regions, size==0 for end of listh]h-list of port regions, size==0 for end of list}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hK`hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hK`hj\ubj)}(h+``irq`` interrupt number or UIO_IRQ_CUSTOM h](j)}(h``irq``h]j)}(hjh]hirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKahj|ubj)}(hhh]j[)}(h"interrupt number or UIO_IRQ_CUSTOMh]h"interrupt number or UIO_IRQ_CUSTOM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKahjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKahj\ubj)}(h&``irq_flags`` flags for request_irq() h](j)}(h ``irq_flags``h]j)}(hjh]h irq_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKbhjubj)}(hhh]j[)}(hflags for request_irq()h]hflags for request_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKbhj\ubj)}(h``priv`` optional private data h](j)}(h``priv``h]j)}(hjh]hpriv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKchjubj)}(hhh]j[)}(hoptional private datah]hoptional private data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKchj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKchj\ubj)}(h%``handler`` the device's irq handler h](j)}(h ``handler``h]j)}(hj-h]hhandler}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKdhj'ubj)}(hhh]j[)}(hthe device's irq handlerh]hthe device’s irq handler}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhKdhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKdhj\ubj)}(h<``mmap_prepare`` mmap_prepare operation for this uio device h](j)}(h``mmap_prepare``h]j)}(hjfh]h mmap_prepare}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKehj`ubj)}(hhh]j[)}(h*mmap_prepare operation for this uio deviceh]h*mmap_prepare operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hKehj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKehj\ubj)}(h,``open`` open operation for this uio device h](j)}(h``open``h]j)}(hjh]hopen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKfhjubj)}(hhh]j[)}(h"open operation for this uio deviceh]h"open operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhj\ubj)}(h2``release`` release operation for this uio device h](j)}(h ``release``h]j)}(hjh]hrelease}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKghjubj)}(hhh]j[)}(h%release operation for this uio deviceh]h%release operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghj\ubj)}(hC``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j)}(h``irqcontrol``h]j)}(hjh]h irqcontrol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKghj ubj)}(hhh]j[)}(h4disable/enable irqs when 0/1 is written to /dev/uioXh]h4disable/enable irqs when 0/1 is written to /dev/uioX}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKghj\ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_register_device (C macro)c.uio_register_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(huio_register_deviceh]h)}(huio_register_deviceh]j")}(huio_register_deviceh]j()}(hjeh]huio_register_device}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjchhhjhKubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhj`hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj`hhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj[)}(h&``uio_register_device (parent, info)``h]j)}(hjh]h"uio_register_device (parent, info)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj]hhubjO)}(h#register a new userspace IO device h]j[)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubah}(h]h ]h"]h$]h&]uh1jNhjhKhj]hhubj)}(h**Parameters** ``parent`` parent device ``info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh](j)}(h``parent`` parent device h](j)}(h ``parent``h]j)}(hjh]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hj.h]hinfo}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj(ubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjChKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj[)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_uio_register_device (C macro)c.devm_uio_register_devicehNtauh1hhj]hhhNhNubh)}(hhh](h)}(hdevm_uio_register_deviceh]h)}(hdevm_uio_register_deviceh]j")}(hdevm_uio_register_deviceh]j()}(hjh]hdevm_uio_register_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj]hNhNubj[)}(h+``devm_uio_register_device (parent, info)``h]j)}(hjh]h'devm_uio_register_device (parent, info)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj]hhubjO)}(h'Resource managed uio_register_device() h]j[)}(h&Resource managed uio_register_device()h]h&Resource managed uio_register_device()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubah}(h]h ]h"]h$]h&]uh1jNhj hKhj]hhubj)}(h**Parameters** ``parent`` parent device ``info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh](j)}(h``parent`` parent device h](j)}(h ``parent``h]j)}(hj8h]hparent}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj2ubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hjqh]hinfo}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjkubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhKhj/ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj[)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj]hhhNhNubeh}(h]userspace-io-devicesah ]h"]userspace io devicesah$]h&]uh1hhhhhhhhK`ubeh}(h]device-drivers-infrastructureah ]h"]device drivers infrastructureah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjj]j]jMjJjFjCjZjWjju nametypes}(jj]jMjFjZjuh}(jhj]hhhj8j=jjjjjjj j j j j j jX j] jjjjjjjjjVj[jj jjj$j)jjj;j@jjjxj}jjj!j!j<#jA#j$j$j{&j&j'j'jt5jy5j8j8j ;j;j<j<j>j>j*@j/@jAjAjCjCj=FjBFj Hj%HjcIjhIjmJjsJjPjPjUSj[SjVjWjXjXjJj]j^j^j:_j?_jajajcjcjPfjUfjhjhjjjjjljlj(nj-njqjqj ujujxjxjzj{j8}j=}j~j~j:j?j<jAj!j&jjjjjbjgjjjՎjڎjjj8j=jWj\jvj{jjjʛjϛjjjğjɟjjjۢjjjjj jبjݨjjjIjNjdjij?jDjjŶjdjijjjjjpjujjjpjujjjjjjjNjSjxj}jjjjjjjojtjjjjjj j{jjjj"j'jjjjjj"j j%jjj~jj`jej_jdjj jcjhjgjljkjpjjjF jK j j j1j6jjj=jBjjjljqjQjVjjj'j,j}jj j j!j!j#j#j$j$j&j&j'j'j)j)j*j*j,j,j.j.j/j/jP1jU1ji2jn2j4j4j6j6j18j68j9j9j`>je>jCjCjNGjSGjWKj\Kj'Nj,NjQj Qj3Sj8SjjUjoUjmXjrXjZjZj ]j]j^j^j{bjbj1ej6ejogjtgjijijkjkj*mj/mjAojFojrjrjtjtj)vj.vjwjwjOyjTyjzjzj|j|j~j~j)j.jzjjSjXjVj[jjjjjӓjؓjHjMjj˜jjjIjNjjßjjjGjLjjjAjFj®jǮj^jcjjjvj{jjj_jdjCjPjmjrjkjpj:j?jVj[jBjGjjjxj}jjjWjIjfjkjjjjj j%j{jjjjjjjjj jjjj jj]jzjjjjjj{jjjjjjjj^jcjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.