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.hhK2hjWhhubah}(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.hhK6hjubh 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.hhK8hjubj[)}(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.hhK@hjubhdefinition_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.hhK4hjubh definition)}(hhh]j[)}(hname of the device functionh]hname of the device function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK4hjubj)}(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.hhK5hjubj)}(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.hK5hj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hK5hjubj)}(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.hhK6hjLubj)}(hhh]j[)}(h1the list of functions registered at the subsystemh]h1the list of functions registered at the subsystem}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghK6hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghK6hjubj)}(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.hhK7hjubj)}(hhh]j[)}(h(device hookup to device function handlerh]h(device hookup to device function handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubj)}(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.hhK7hjubj)}(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.hhK8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjubeh}(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;hhhhubj[)}(hXSimple interfaces attached to a subsystem. Multiple interfaces can attach to a subsystem and its devices. Unlike drivers, they do not exclusively claim or control devices. Interfaces usually represent a specific functionality of a subsystem/class of devices.h]hXSimple interfaces attached to a subsystem. Multiple interfaces can attach to a subsystem and its devices. Unlike drivers, they do not exclusively claim or control devices. Interfaces usually represent a specific functionality of a subsystem/class of devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK8hhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_attribute (C struct)c.device_attributehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_attributeh]h)}(hstruct device_attributeh](h)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK@ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjRhK@ubj")}(hdevice_attributeh]j()}(hj?h]hdevice_attribute}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjAhhhjRhK@ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=hhhjRhK@ubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjRhK@hj:hhubjV)}(hhh]j[)}(h*Interface for exporting device attributes.h]h*Interface for exporting device attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKchjhhubah}(h]h ]h"]h$]h&]uh1jUhj:hhhjRhK@ubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(hX**Definition**:: struct device_attribute { struct attribute attr; union { ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*show_const)(struct device *dev, const struct device_attribute *attr, char *buf); }; union { ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); ssize_t (*store_const)(struct device *dev, const struct device_attribute *attr, const char *buf, size_t count); }; }; **Members** ``attr`` sysfs attribute definition. ``{unnamed_union}`` anonymous ``show`` Show handler. ``{unnamed_union}`` anonymous ``store`` Store handler.h](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.hhKghjubj)}(hXstruct device_attribute { struct attribute attr; union { ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*show_const)(struct device *dev, const struct device_attribute *attr, char *buf); }; union { ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); ssize_t (*store_const)(struct device *dev, const struct device_attribute *attr, const char *buf, size_t count); }; };h]hXstruct device_attribute { struct attribute attr; union { ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*show_const)(struct device *dev, const struct device_attribute *attr, char *buf); }; union { ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); ssize_t (*store_const)(struct device *dev, const struct device_attribute *attr, const char *buf, size_t count); }; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKihjubj[)}(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.hhKuhjubj)}(hhh](j)}(h%``attr`` sysfs attribute definition. h](j)}(h``attr``h]j)}(hjh]hattr}(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.hhKehjubj)}(hhh]j[)}(hsysfs attribute definition.h]hsysfs attribute definition.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKehj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKehjubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hj-h]h{unnamed_union}}(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[)}(h anonymoush]h anonymous}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjubj)}(h``show`` Show handler. h](j)}(h``show``h]j)}(hjfh]hshow}(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.hhKfhj`ubj)}(hhh]j[)}(h Show handler.h]h Show handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hKfhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKfhjubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(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[)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``store`` Store handler.h](j)}(h ``store``h]j)}(hjh]hstore}(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.hhKfhjubj)}(hhh]j[)}(hStore handler.h]hStore handler.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_ext_attribute (C struct)c.dev_ext_attributehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdev_ext_attributeh]h)}(hstruct dev_ext_attributeh](h)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKmubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hKmubj")}(hdev_ext_attributeh]j()}(hj,h]hdev_ext_attribute}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj.hhhj?hKmubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj*hhhj?hKmubah}(h]j%ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj?hKmhj'hhubjV)}(hhh]j[)}(h-Exported device attribute with extra context.h]h-Exported device attribute with extra context.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKyhjqhhubah}(h]h ]h"]h$]h&]uh1jUhj'hhhj?hKmubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(h**Definition**:: struct dev_ext_attribute { struct device_attribute attr; void *var; }; **Members** ``attr`` Exported device attribute. ``var`` Pointer to context.h](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.hhK}hjubj)}(hNstruct dev_ext_attribute { struct device_attribute attr; void *var; };h]hNstruct dev_ext_attribute { struct device_attribute attr; void *var; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj[)}(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.hhKhjubj)}(hhh](j)}(h$``attr`` Exported device attribute. h](j)}(h``attr``h]j)}(hjh]hattr}(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.hhK{hjubj)}(hhh]j[)}(hExported device attribute.h]hExported device attribute.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK{hjubj)}(h``var`` Pointer to context.h](j)}(h``var``h]j)}(hjh]hvar}(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.hhK{hjubj)}(hhh]j[)}(hPointer to context.h]hPointer to context.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK|hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hK{hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR (C macro) c.DEVICE_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(h DEVICE_ATTRh]h)}(h DEVICE_ATTRh]j")}(h DEVICE_ATTRh]j()}(hjnh]h DEVICE_ATTR}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjphhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjlhhhjhKubah}(h]jgah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjihhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjihhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h-``DEVICE_ATTR (_name, _mode, _show, _store)``h]j)}(hjh]h)DEVICE_ATTR (_name, _mode, _show, _store)}(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.hhKhhhhubh block_quote)}(hDefine a device attribute. h]j[)}(hDefine a device attribute.h]hDefine a 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&]uh1jhjhKhhhhubj)}(hX;**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_show`` Show handler. Optional, but mandatory if attribute is readable. ``_store`` Store handler. Optional, but mandatory if attribute is writable. **Description** Convenience macro for defining a struct device_attribute. For example, ``DEVICE_ATTR(foo, 0644, foo_show, foo_store);`` expands to: .. code-block:: c struct device_attribute dev_attr_foo = { .attr = { .name = "foo", .mode = 0644 }, .show = foo_show, .store = foo_store, };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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hj9h]h_mode}(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[)}(h File mode.h]h File mode.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjNhKhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhKhjubj)}(hJ``_show`` Show handler. Optional, but mandatory if attribute is readable. h](j)}(h ``_show``h]j)}(hjrh]h_show}(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[)}(h?Show handler. Optional, but mandatory if attribute is readable.h]h?Show handler. Optional, but mandatory if attribute is readable.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hL``_store`` Store handler. Optional, but mandatory if attribute is writable. h](j)}(h ``_store``h]j)}(hjh]h_store}(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[)}(h@Store handler. Optional, but mandatory if attribute is writable.h]h@Store handler. Optional, but mandatory if attribute is writable.}(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}(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[)}(h9Convenience macro for defining a struct device_attribute.h]h9Convenience macro for defining a struct device_attribute.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj[)}(hIFor example, ``DEVICE_ATTR(foo, 0644, foo_show, foo_store);`` expands to:h](h For example, }(hj hhhNhNubj)}(h0``DEVICE_ATTR(foo, 0644, foo_show, foo_store);``h]h,DEVICE_ATTR(foo, 0644, foo_show, foo_store);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh expands to:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hstruct device_attribute dev_attr_foo = { .attr = { .name = "foo", .mode = 0644 }, .show = foo_show, .store = foo_store, };h]hstruct device_attribute dev_attr_foo = { .attr = { .name = "foo", .mode = 0644 }, .show = foo_show, .store = foo_store, };}hj,sbah}(h]h ]h"]h$]h&]j?j@forcelanguagejthighlight_args}uh1jh_/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_RW (C macro)c.DEVICE_ATTR_RWhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_RWh]h)}(hDEVICE_ATTR_RWh]j")}(hDEVICE_ATTR_RWh]j()}(hjYh]hDEVICE_ATTR_RW}(hjchhhNhNubah}(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@jGuh1hjHjIhjWhhhjvhKubah}(h]jRah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjvhKhjThhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjThhhjvhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_RW (_name)``h]j)}(hjh]hDEVICE_ATTR_RW (_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.hhKhhhhubj)}(h&Define a read-write device attribute. h]j[)}(h%Define a read-write device attribute.h]h%Define a read-write 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&]uh1jhjhKhhhhubj)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0644, **_show** is <_name>_show, and **_store** is <_name>_store.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.}(hj hhhNhNubah}(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)}(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.hhKhjubj[)}(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}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubh is 0644, }(hj: hhhNhNubj)}(h **_show**h]h_show}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubh is <_name>_show, and }(hj: hhhNhNubj)}(h **_store**h]h_store}(hjf 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.hhKhjubeh}(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&]jyjtjzj j{j 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.hhKhhhhubj)}(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.}(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&]uh1jhj hKhhhhubj)}(hk**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR_RW(), but **_mode** is 0600.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.}(hjB 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)}(hjd h]h Description}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb 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 **_mode** is 0600.h](hLike DEVICE_ATTR_RW(), but }(hjz hhhNhNubj)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz ubh is 0600.}(hjz 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_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.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hMubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMhj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhj hMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_RW_NAMED (_name, _attrname)``h]j)}(hj h]h'DEVICE_ATTR_RW_NAMED (_name, _attrname)}(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.hhMhhhhubj)}(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.}(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 hMhhhhubj)}(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.hhMhj ubj)}(hhh](j)}(h%``_name`` Attribute function preface h](j)}(h ``_name``h]j)}(hjE h]h_name}(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[)}(hAttribute function prefaceh]hAttribute function preface}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZ hMhj[ ubah}(h]h ]h"]h$]h&]uh1jhj? ubeh}(h]h ]h"]h$]h&]uh1jhjZ hMhj< 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.hhMhjx 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 hMhj ubah}(h]h ]h"]h$]h&]uh1jhjx ubeh}(h]h ]h"]h$]h&]uh1jhj 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&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj 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}(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.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hMubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMhj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhj hMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj. j{j. j|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_RO (_name)``h]j)}(hj4 h]hDEVICE_ATTR_RO (_name)}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2 ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj)}(h$Define a readable device attribute. h]j[)}(h#Define a readable device attribute.h]h#Define a readable device attribute.}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjJ ubah}(h]h ]h"]h$]h&]uh1jhj\ hMhhhhubj)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0444 and **_show** is <_name>_show.h](j[)}(h**Parameters**h]j)}(hji h]h Parameters}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjc 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.hhMhj ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(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&]uh1jhjc 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.hhMhjc 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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is 0444 and }(hj hhhNhNubj)}(h **_show**h]h_show}(hj hhhNhNubah}(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.hhMhjc 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()}(hj& h]hDEVICE_ATTR_ADMIN_RO}(hj0 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.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj$ hhhjC hMubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjC hMhj! hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj! hhhjC hMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj\ j{j\ j|j}j~uh1hhhhhhNhNubj[)}(h ``DEVICE_ATTR_ADMIN_RO (_name)``h]j)}(hjb h]hDEVICE_ATTR_ADMIN_RO (_name)}(hjd 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.hhMhhhhubj)}(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.}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjx ubah}(h]h ]h"]h$]h&]uh1jhj hMhhhhubj)}(hk**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR_RO(), but **_mode** is 0400.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.hhMhj 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.hhMhj ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(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)}(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.hhMhj ubj[)}(h-Like DEVICE_ATTR_RO(), but **_mode** is 0400.h](hLike DEVICE_ATTR_RO(), but }(hjhhhNhNubj)}(h **_mode**h]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0400.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubeh}(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()}(hjBh]hDEVICE_ATTR_RO_NAMED}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjDhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM#ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj@hhhj_hM#ubah}(h]j;ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj_hM#hj=hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj=hhhj_hM#ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjxj{jxj|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_RO_NAMED (_name, _attrname)``h]j)}(hj~h]h'DEVICE_ATTR_RO_NAMED (_name, _attrname)}(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%hhhhubj)}(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.hhM#hjubah}(h]h ]h"]h$]h&]uh1jhjhM#hhhhubj)}(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.hhM'hjubj)}(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.hhM%hjubj)}(hhh]j[)}(hAttribute function prefaceh]hAttribute function preface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjubj)}(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.hhM&hjubj)}(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 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)}(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:7: ./include/linux/device.hhM(hjubj[)}(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.}(hj\hhhNhNubah}(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_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.hhM2ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM2ubah}(h]j~ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM2hjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhM2ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_WO (_name)``h]j)}(hjh]hDEVICE_ATTR_WO (_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.hhM4hhhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM2hjubah}(h]h ]h"]h$]h&]uh1jhjhM2hhhhubj)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.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.hhM6hjubj)}(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.hhM3hjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*hM3hj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hM3hj ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(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:7: ./include/linux/device.hhM5hjubj[)}(hJLike DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hjfhhhNhNubj)}(h **_mode**h]h_mode}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh is 0200 and }(hjfhhhNhNubj)}(h **_store**h]h_store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh is <_name>_store.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4hjubeh}(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}(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_ATTR_WO_NAMED (_name, _attrname)``h]j)}(hjh]h'DEVICE_ATTR_WO_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.hhM=hhhhubj)}(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.}(hj hhhNhNubah}(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&]uh1jhjhM;hhhhubj)}(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)}(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?hjubj)}(hhh](j)}(h%``_name`` Attribute function preface h](j)}(h ``_name``h]j)}(hjCh]h_name}(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.hhM=hj=ubj)}(hhh]j[)}(hAttribute function prefaceh]hAttribute function preface}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhM=hjYubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM=hj: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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM>hjvubj)}(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&]uh1jZhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(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[)}(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.}(hjhhhNhNubah}(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_ULONG_ATTR (C macro)c.DEVICE_ULONG_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ULONG_ATTRh]h)}(hDEVICE_ULONG_ATTRh]j")}(hDEVICE_ULONG_ATTRh]j()}(hjh]hDEVICE_ULONG_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.hhMJubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMJubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMJhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhMJubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj,j{j,j|j}j~uh1hhhhhhNhNubj[)}(h*``DEVICE_ULONG_ATTR (_name, _mode, _var)``h]j)}(hj2h]h&DEVICE_ULONG_ATTR (_name, _mode, _var)}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMLhhhhubj)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMJhjHubah}(h]h ]h"]h$]h&]uh1jhjZhMJhhhhubj)}(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)}(hjgh]h Parameters}(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.hhMNhjaubj)}(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.hhMKhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhj}ubj)}(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.hhMLhjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhj}ubj)}(h&``_var`` Identifier of unsigned long. 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.hhMMhjubj)}(hhh]j[)}(hIdentifier of unsigned long.h]hIdentifier of unsigned long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMMhj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubj[)}(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:7: ./include/linux/device.hhMOhjaubj[)}(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 }(hjIhhhNhNubj)}(h **_show**h]h_show}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh and }(hjIhhhNhNubj)}(h **_store**h]h_store}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh^ are automatically provided such that reads and writes to the attribute from userspace affect }(hjIhhhNhNubj)}(h**_var**h]h_var}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMNhjaubeh}(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.hhMWubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMWubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMWhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhMWubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h(``DEVICE_INT_ATTR (_name, _mode, _var)``h]j)}(hjh]h$DEVICE_INT_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.hhMYhhhhubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMWhjubah}(h]h ]h"]h$]h&]uh1jhj hMWhhhhubj)}(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&]uh1jhjubah}(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)}(hj8h]h_name}(hj:hhhNhNubah}(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.hhMXhj2ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhMXhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMXhj/ubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hjqh]h_mode}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMYhjkubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMYhj/ubj)}(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.hhMZhjubj)}(hhh]j[)}(hIdentifier of int.h]hIdentifier of int.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhj/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 an int.h](hLike DEVICE_ULONG_ATTR(), but }(hjhhhNhNubj)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is an int.}(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_BOOL_ATTR (C macro)c.DEVICE_BOOL_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_BOOL_ATTRh]h)}(hDEVICE_BOOL_ATTRh]j")}(hDEVICE_BOOL_ATTRh]j()}(hj6h]hDEVICE_BOOL_ATTR}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMcubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhjShMcubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjShMchj1hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj1hhhjShMcubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjlj{jlj|j}j~uh1hhhhhhNhNubj[)}(h)``DEVICE_BOOL_ATTR (_name, _mode, _var)``h]j)}(hjrh]h%DEVICE_BOOL_ATTR (_name, _mode, _var)}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMehhhhubj)}(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.hhMchjubah}(h]h ]h"]h$]h&]uh1jhjhMchhhhubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMghjubj)}(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.hhMdhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjubj)}(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.hhMehjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubj)}(h``_var`` Identifier of bool. h](j)}(h``_var``h]j)}(hj8h]h_var}(hj:hhhNhNubah}(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.hhMfhj2ubj)}(hhh]j[)}(hIdentifier of bool.h]hIdentifier of bool.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhMfhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMfhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhjubj[)}(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.hhMghjubeh}(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()}(hjh]hDEVICE_STRING_ATTR_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.hhMoubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMoubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMohjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhMoubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h.``DEVICE_STRING_ATTR_RO (_name, _mode, _var)``h]j)}(hjh]h*DEVICE_STRING_ATTR_RO (_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.hhMqhhhhubj)}(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.hhMohjubah}(h]h ]h"]h$]h&]uh1jhj(hMohhhhubj)}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMshj/ubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjTh]h_name}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMphjNubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihMphjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMphjKubj)}(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.hhMqhjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhjKubj)}(h``_var`` Identifier of string. 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.hhMrhjubj)}(hhh]j[)}(hIdentifier of string.h]hIdentifier of string.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjKubeh}(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:7: ./include/linux/device.hhMthj/ubj[)}(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 }(hjhhhNhNubj)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhf is a string. Because the length of the string allocation is unknown, the attribute must be read-only.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMshj/ubeh}(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}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMyubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjfhMyubj")}(h dl_dev_stateh]j()}(hjRh]h dl_dev_state}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjThhhjfhMyubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjPhhhjfhMyubah}(h]jKah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjfhMyhjMhhubjV)}(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&]uh1jUhjMhhhjfhMyubeh}(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)}(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@``DL_DEV_NO_DRIVER`` There is no driver attached to the device. h](j)}(h``DL_DEV_NO_DRIVER``h]j)}(hjh]hDL_DEV_NO_DRIVER}(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*There is no driver attached to the device.h]h*There is no driver attached to the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h(``DL_DEV_PROBING`` A driver is probing. h](j)}(h``DL_DEV_PROBING``h]j)}(hjh]hDL_DEV_PROBING}(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[)}(hA driver is probing.h]hA driver is probing.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjubj)}(hA``DL_DEV_DRIVER_BOUND`` The driver has been bound to the device. h](j)}(h``DL_DEV_DRIVER_BOUND``h]j)}(hjNh]hDL_DEV_DRIVER_BOUND}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj)}(hhh]j[)}(h(The driver has been bound to the device.h]h(The driver has been bound to the device.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjubj)}(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&]uh1jhjhMhjubeh}(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)}(hjZh]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_removableh]j()}(hjh]hdevice_removable}(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[)}(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.}(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_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)}(hjEh]h Constants}(hjGhhhNhNubah}(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.hhMhj?ubj)}(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)}(hjdh]hDEVICE_REMOVABLE_NOT_SUPPORTED}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj^ubj)}(hhh]j[)}(h:This attribute is not supported for this device (default).h]h:This attribute is not supported for this device (default).}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(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&]uh1jhjhMhj[ubj)}(h6``DEVICE_FIXED`` Device is not removable by the user. h](j)}(h``DEVICE_FIXED``h]j)}(hjh]h DEVICE_FIXED}(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$Device is not removable by the user.h]h$Device is not removable by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubj)}(h5``DEVICE_REMOVABLE`` Device is removable by the user.h](j)}(h``DEVICE_REMOVABLE``h]j)}(hjh]hDEVICE_REMOVABLE}(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[)}(h Device is removable by the user.h]h Device is removable by the user.}(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[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubeh}(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}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjwhMubj")}(hdev_links_infoh]j()}(hjdh]hdev_links_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjfhhhjwhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhjwhMubah}(h]j]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjwhMhj_hhubjV)}(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&]uh1jUhj_hhhjwhMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|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}(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_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; };}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)}(h1``suppliers`` List of links to supplier devices. h](j)}(h ``suppliers``h]j)}(hjh]h suppliers}(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 supplier devices.h]h"List of links to supplier devices.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjubj)}(h1``consumers`` List of links to consumer devices. h](j)}(h ``consumers``h]j)}(hjRh]h consumers}(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.hhMhjLubj)}(hhh]j[)}(h"List of links to consumer devices.h]h"List of links to consumer devices.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``status`` Driver status information.h](j)}(h ``status``h]j)}(hjh]hstatus}(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[)}(hDriver status information.h]hDriver status information.}(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&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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 }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hMubj")}(h dev_msi_infoh]j()}(hjh]h dev_msi_info}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj+hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj+hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+hMhjhhubjV)}(hhh]j[)}(hDevice data related to MSIh]hDevice data related to MSI}(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&]uh1jUhjhhhj+hMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjxj{jxj|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.hhMhj|ubj)}(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.hhMhj|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:7: ./include/linux/device.hhMhj|ubj)}(hhh](j)}(h=``domain`` The MSI interrupt domain associated to the device h](j)}(h ``domain``h]j)}(hjh]hdomain}(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[)}(h1The MSI interrupt domain associated to the deviceh]h1The MSI interrupt domain associated to the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``data`` Pointer to MSI device datah](j)}(h``data``h]j)}(hjh]hdata}(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[)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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_panel (C enum) c.device_physical_location_panelhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_physical_location_panelh]h)}(h#enum device_physical_location_panelh](h)}(hjZh]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 }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjmhMubj")}(hdevice_physical_location_panelh]j()}(hjZh]hdevice_physical_location_panel}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj\hhhjmhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjXhhhjmhMubah}(h]jSah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjmhMhjUhhubjV)}(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.}(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&]uh1jUhjUhhhjmhMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzjj{jj|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)}(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)}(hB``DEVICE_PANEL_TOP`` Device connection point is on the top panel. h](j)}(h``DEVICE_PANEL_TOP``h]j)}(hjh]hDEVICE_PANEL_TOP}(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,Device connection point is on the top panel.h]h,Device connection point is on the top panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``DEVICE_PANEL_BOTTOM`` Device connection point is on the bottom panel. h](j)}(h``DEVICE_PANEL_BOTTOM``h]j)}(hjh]hDEVICE_PANEL_BOTTOM}(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/Device connection point is on the bottom panel.h]h/Device connection point is on the bottom panel.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubj)}(hD``DEVICE_PANEL_LEFT`` Device connection point is on the left panel. h](j)}(h``DEVICE_PANEL_LEFT``h]j)}(hjUh]hDEVICE_PANEL_LEFT}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjOubj)}(hhh]j[)}(h-Device connection point is on the left panel.h]h-Device connection point is on the left panel.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjubj)}(hF``DEVICE_PANEL_RIGHT`` Device connection point is on the right panel. h](j)}(h``DEVICE_PANEL_RIGHT``h]j)}(hjh]hDEVICE_PANEL_RIGHT}(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.Device connection point is on the right panel.h]h.Device connection point is on the right panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hF``DEVICE_PANEL_FRONT`` Device connection point is on the front panel. h](j)}(h``DEVICE_PANEL_FRONT``h]j)}(hjh]hDEVICE_PANEL_FRONT}(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[)}(h.Device connection point is on the front panel.h]h.Device connection point is on the front panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(hD``DEVICE_PANEL_BACK`` Device connection point is on the back panel. h](j)}(h``DEVICE_PANEL_BACK``h]j)}(hj h]hDEVICE_PANEL_BACK}(hj hhhNhNubah}(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[)}(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 hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM hjubj)}(hK``DEVICE_PANEL_UNKNOWN`` The panel with device connection point is unknown.h](j)}(h``DEVICE_PANEL_UNKNOWN``h]j)}(hj9 h]hDEVICE_PANEL_UNKNOWN}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7 ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj3 ubj)}(hhh]j[)}(h2The panel with device connection point is unknown.h]h2The panel with device connection point is unknown.}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjO ubah}(h]h ]h"]h$]h&]uh1jhj3 ubeh}(h]h ]h"]h$]h&]uh1jhjN hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hjZh]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.hhM hj hhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj hMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj j{j 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.hhMhj 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.hhMhj!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&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj+!hMhj !ubj)}(hO``DEVICE_VERT_POS_CENTER`` Device connection point is at center part of panel. h](j)}(h``DEVICE_VERT_POS_CENTER``h]j)}(hjO!h]hDEVICE_VERT_POS_CENTER}(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.hhMhjI!ubj)}(hhh]j[)}(h3Device connection point is at center part of panel.h]h3Device connection point is at center part of panel.}(hjh!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjd!hMhje!ubah}(h]h ]h"]h$]h&]uh1jhjI!ubeh}(h]h ]h"]h$]h&]uh1jhjd!hMhj !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!hMhj !ubeh}(h]h ]h"]h$]h&]uh1jhj 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)}(hjZh]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_horizontal_positionh]j()}(hj!h]h,device_physical_location_horizontal_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[)}(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!hhhj!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)}(hjF"h]h Constants}(hjH"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD"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)}(hje"h]hDEVICE_HORI_POS_LEFT}(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.hhM hj_"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&]uh1jZhjz"hM hj{"ubah}(h]h ]h"]h$]h&]uh1jhj_"ubeh}(h]h ]h"]h$]h&]uh1jhjz"hM hj\"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.hhM#hj"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"hM#hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hM#hj\"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.hhM%hj"ubj)}(hhh]j[)}(h2Device connection point is at right part of panel.h]h2Device connection point is at right part of panel.}(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%hj\"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}(hj1#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-#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_physical_locationh]j()}(hj+#h]hdevice_physical_location}(hjQ#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjM#ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj-#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[)}(hHDevice data related to physical location of the device connection point.h]hHDevice data related to physical location of the device connection point.}(hjs#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM&hjp#hhubah}(h]h ]h"]h$]h&]uh1jUhj&#hhhj>#hM+ubeh}(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.hhM*hj#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.hhM,hj#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.hhM4hj#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)}(hj#h]hpanel}(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[)}(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.hhM)hj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hM*hj#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.hhM,hj$ubj)}(hhh]j[)}(hBVertical position of the device connection point within the panel.h]hBVertical position of the device connection point within the panel.}(hj3$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM+hj0$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj/$hM,hj#ubj)}(h]``horizontal_position`` Horizontal position of the device connection point within the panel. h](j)}(h``horizontal_position``h]j)}(hjT$h]hhorizontal_position}(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.hhM.hjN$ubj)}(hhh]j[)}(hDHorizontal position of the device connection point within the panel.h]hDHorizontal position of the device connection point within the panel.}(hjm$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM-hjj$ubah}(h]h ]h"]h$]h&]uh1jhjN$ubeh}(h]h ]h"]h$]h&]uh1jhji$hM.hj#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.hhM0hj$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.hhM/hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM0hj#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}(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[)}(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.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$hM1hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM1hj#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)}(hjZh]henum}(hj!%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM8ubj)}(h h]h }(hj/%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj.%hM8ubj")}(hstruct_device_flagsh]j()}(hj%h]hstruct_device_flags}(hjA%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=%ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj%hhhj.%hM8ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj%hhhj.%hM8ubah}(h]j%ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj.%hM8hj%hhubjV)}(hhh]j[)}(hFlags in struct deviceh]hFlags in struct device}(hjc%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.%hM8ubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj{%j{j{%j|j}j~uh1hhhhhhNhNubj)}(hX**Constants** ``DEV_FLAG_READY_TO_PROBE`` If set then device_add() has finished enough initialization that probe could be called. ``DEV_FLAG_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. ``DEV_FLAG_DMA_IOMMU`` Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure. ``DEV_FLAG_DMA_SKIP_SYNC`` DMA sync operations can be skipped for coherent buffers. ``DEV_FLAG_DMA_OPS_BYPASS`` If set then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optional (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported. ``DEV_FLAG_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. ``DEV_FLAG_DMA_COHERENT`` This particular device is dma coherent, even if the architecture supports non-coherent devices. ``DEV_FLAG_OF_NODE_REUSED`` Set if the device-tree node is shared with an ancestor device. ``DEV_FLAG_OFFLINE_DISABLED`` If set, the device is permanently online. ``DEV_FLAG_OFFLINE`` Set after successful invocation of bus type's .offline(). ``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.hhM@hj%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.hhMDhj%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.hhMChj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMDhj%ubj)}(h``DEV_FLAG_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``DEV_FLAG_CAN_MATCH``h]j)}(hj%h]hDEV_FLAG_CAN_MATCH}(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.hhMIhj%ubj)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMGhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMIhj%ubj)}(hs``DEV_FLAG_DMA_IOMMU`` Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure. h](j)}(h``DEV_FLAG_DMA_IOMMU``h]j)}(hj&h]hDEV_FLAG_DMA_IOMMU}(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.hhMMhj&ubj)}(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.}(hj1&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMLhj.&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj-&hMMhj%ubj)}(hT``DEV_FLAG_DMA_SKIP_SYNC`` DMA sync operations can be skipped for coherent buffers. h](j)}(h``DEV_FLAG_DMA_SKIP_SYNC``h]j)}(hjR&h]hDEV_FLAG_DMA_SKIP_SYNC}(hjT&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMQhjL&ubj)}(hhh]j[)}(h8DMA sync operations can be skipped for coherent buffers.h]h8DMA sync operations can be skipped for coherent buffers.}(hjk&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMPhjh&ubah}(h]h ]h"]h$]h&]uh1jhjL&ubeh}(h]h ]h"]h$]h&]uh1jhjg&hMQhj%ubj)}(hX``DEV_FLAG_DMA_OPS_BYPASS`` If set then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optional (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``DEV_FLAG_DMA_OPS_BYPASS``h]j)}(hj&h]hDEV_FLAG_DMA_OPS_BYPASS}(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[)}(hIf set then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optional (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported.h]hIf set then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optional (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported.}(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%ubj)}(h``DEV_FLAG_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``DEV_FLAG_STATE_SYNCED``h]j)}(hj&h]hDEV_FLAG_STATE_SYNCED}(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[)}(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.}(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]hj%ubj)}(hz``DEV_FLAG_DMA_COHERENT`` This particular device is dma coherent, even if the architecture supports non-coherent devices. h](j)}(h``DEV_FLAG_DMA_COHERENT``h]j)}(hj'h]hDEV_FLAG_DMA_COHERENT}(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_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.}(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'hMahj%ubj)}(h[``DEV_FLAG_OF_NODE_REUSED`` Set if the device-tree node is shared with an ancestor device. h](j)}(h``DEV_FLAG_OF_NODE_REUSED``h]j)}(hj:'h]hDEV_FLAG_OF_NODE_REUSED}(hj<'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMehj4'ubj)}(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.}(hjS'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMdhjP'ubah}(h]h ]h"]h$]h&]uh1jhj4'ubeh}(h]h ]h"]h$]h&]uh1jhjO'hMehj%ubj)}(hH``DEV_FLAG_OFFLINE_DISABLED`` If set, the device is permanently online. h](j)}(h``DEV_FLAG_OFFLINE_DISABLED``h]j)}(hjt'h]hDEV_FLAG_OFFLINE_DISABLED}(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.hhMhhjn'ubj)}(hhh]j[)}(h)If set, the device is permanently online.h]h)If set, the device is permanently online.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'hMhhj'ubah}(h]h ]h"]h$]h&]uh1jhjn'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhhj%ubj)}(hO``DEV_FLAG_OFFLINE`` Set after successful invocation of bus type's .offline(). h](j)}(h``DEV_FLAG_OFFLINE``h]j)}(hj'h]hDEV_FLAG_OFFLINE}(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.hhMkhj'ubj)}(hhh]j[)}(h9Set after successful invocation of bus type's .offline().h]h;Set after successful invocation of bus type’s .offline().}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'hMkhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMkhj%ubj)}(h9``DEV_FLAG_COUNT`` Number of defined struct_device_flags.h](j)}(h``DEV_FLAG_COUNT``h]j)}(hj'h]hDEV_FLAG_COUNT}(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.hhMmhj'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.hhMnhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMmhj%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.hhMphhhhubj[)}(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.hhM=hhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice (C struct)c.devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdeviceh]h)}(h struct deviceh](h)}(hjh]hstruct}(hjg(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc(hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMCubj)}(h h]h }(hju(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc(hhhjt(hMCubj")}(hdeviceh]j()}(hja(h]hdevice}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjc(hhhjt(hMCubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj_(hhhjt(hMCubah}(h]jZ(ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjt(hMChj\(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.hhMjhj(hhubah}(h]h ]h"]h$]h&]uh1jUhj\(hhhjt(hMCubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj(j{j(j|j}j~uh1hhhhhhNhNubj)}(hXd**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; 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. ``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.hhMnhj(ubj)}(hXstruct 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; unsigned long flags[BITS_TO_LONGS( DEV_FLAG_COUNT)]; };h]hXstruct 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; unsigned long flags[BITS_TO_LONGS( DEV_FLAG_COUNT)]; };}hj(sbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMphj(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)}(hK``kobj`` A top-level, abstract class from which other classes are derived. h](j)}(h``kobj``h]j)}(hj)h]hkobj}(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.hhMrhj)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+)hMrhj,)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj+)hMrhj )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)}(hjO)h]hparent}(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.hhMohjI)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.}(hjh)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMlhje)ubah}(h]h ]h"]h$]h&]uh1jhjI)ubeh}(h]h ]h"]h$]h&]uh1jhjd)hMohj )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.hhMqhj)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.hhMphj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMqhj )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.hhMshj)ubj)}(hhh]j[)}(hInitial name of the device.h]hInitial name of the device.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)hMshj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMshj )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&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMvhj)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.}(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*hMvhj )ubj)}(h"``bus`` Type of bus device is on. h](j)}(h``bus``h]j)}(hj6*h]hbus}(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.hhMxhj0*ubj)}(hhh]j[)}(hType of bus device is on.h]hType of bus device is on.}(hjO*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjK*hMxhjL*ubah}(h]h ]h"]h$]h&]uh1jhj0*ubeh}(h]h ]h"]h$]h&]uh1jhjK*hMxhj )ubj)}(h+``driver`` Which driver has allocated this h](j)}(h ``driver``h]j)}(hjo*h]hdriver}(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.hhMyhji*ubj)}(hhh]j[)}(hWhich driver has allocated thish]hWhich driver has allocated this}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*hMyhj*ubah}(h]h ]h"]h$]h&]uh1jhji*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMyhj )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.hhMzhj*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*hMzhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMzhj )ubj)}(h:``driver_data`` Private pointer for driver specific info. h](j)}(h``driver_data``h]j)}(hj*h]h driver_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)Private pointer for driver specific info.h]h)Private pointer for driver specific info.}(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)}(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)}(hj+h]hdriver_override}(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_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.}(hj3+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj0+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj/+hMhj )ubj)}(h4``mutex`` Mutex to synchronize calls to its driver. h](j)}(h ``mutex``h]j)}(hjT+h]hmutex}(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.hhMwhjN+ubj)}(hhh]j[)}(h)Mutex to synchronize calls to its driver.h]h)Mutex to synchronize calls to its driver.}(hjm+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhji+hMwhjj+ubah}(h]h ]h"]h$]h&]uh1jhjN+ubeh}(h]h ]h"]h$]h&]uh1jhji+hMwhj )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.hhMhj+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+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj )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.hhMhj+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.hhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj )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}(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[)}(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.}(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)}(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&]uh1jhj8,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj4,ubj)}(hhh]j[)}(h(device's energy model performance domainh]h*device’s energy model performance domain}(hjS,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjO,hMhjP,ubah}(h]h ]h"]h$]h&]uh1jhj4,ubeh}(h]h ]h"]h$]h&]uh1jhjO,hMhj )ubj)}(h^``pins`` For device pin management. See Documentation/driver-api/pin-control.rst for details. h](j)}(h``pins``h]j)}(hjs,h]hpins}(hju,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjm,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.hhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjm,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj )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.hhMhj,ubj)}(hhh]j[)}(hMSI related datah]hMSI related data}(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)}(h4``dma_ops`` DMA mapping operations for this device. h](j)}(h ``dma_ops``h]j)}(hj,h]hdma_ops}(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'DMA mapping operations for this device.h]h'DMA mapping operations for this device.}(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)}(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.hhMhj-ubj)}(hhh]j[)}(hDma mask (if dma'ble device).h]hDma mask (if dma’ble device).}(hj8-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4-hMhj5-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj4-hMhj )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)}(hjX-h]hcoherent_dma_mask}(hjZ-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjR-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.}(hjq-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjn-ubah}(h]h ]h"]h$]h&]uh1jhjR-ubeh}(h]h ]h"]h$]h&]uh1jhjm-hMhj )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.hhMhj-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.hhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hMhj )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.hhMhj-ubj)}(hhh]j[)}(h1map for DMA memory ranges relative to that of RAMh]h1map for DMA memory ranges relative to that of RAM}(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)}(h^``dma_parms`` A low level driver may set these to teach IOMMU code about segment limitations. h](j)}(h ``dma_parms``h]j)}(hj.h]h dma_parms}(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[)}(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.hhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj )ubj)}(h-``dma_pools`` Dma pools (if dma'ble device). h](j)}(h ``dma_pools``h]j)}(hj?.h]h dma_pools}(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.hhMhj9.ubj)}(hhh]j[)}(hDma pools (if dma'ble device).h]h Dma pools (if dma’ble device).}(hjX.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjT.hMhjU.ubah}(h]h ]h"]h$]h&]uh1jhj9.ubeh}(h]h ]h"]h$]h&]uh1jhjT.hMhj )ubj)}(h0``dma_mem`` Internal for coherent mem override. h](j)}(h ``dma_mem``h]j)}(hjx.h]hdma_mem}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjr.ubj)}(hhh]j[)}(h#Internal for coherent mem override.h]h#Internal for coherent mem override.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjr.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj )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.hhMhj.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.hMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj )ubj)}(hC``dma_io_tlb_mem`` Software IO TLB allocator. Not for driver use. h](j)}(h``dma_io_tlb_mem``h]j)}(hj.h]hdma_io_tlb_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.hhMhj.ubj)}(hhh]j[)}(h/Software IO TLB allocator. Not for driver use.h]h/Software IO TLB allocator. Not for driver use.}(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)}(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.hhMhj/ubj)}(hhh]j[)}(h'List of transient swiotlb memory pools.h]h'List of transient swiotlb memory pools.}(hj 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.hhMhj<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.hhMhj<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<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.hhMhj<ubj)}(hhh]j[)}(hdriver to match againsth]hdriver to match against}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<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&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj<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.}(hj6=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj<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](jM7)}(hj9h]hbool}(hje=hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hja=hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjs=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja=hhhjr=hMubj")}(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!hja=hhhjr=hMubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetj=modnameN classnameNj7j7)}j7]j7)}j7j=sbc.device_iommu_mappedasbuh1hhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj7)}(hj7h]h*}(hj=hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj=ubj()}(hdevh]hdev}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj=ubah}(h]h ]h"]h$]h&]j?j@uh1j7hja=hhhjr=hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj]=hhhjr=hMubah}(h]jX=ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjr=hMhjZ=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.hhMhj!>hhubah}(h]h ]h"]h$]h&]uh1jUhjZ=hhhjr=hMubeh}(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)}(hjF>h]h Parameters}(hjH>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD>ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj@>ubj)}(hhh]j)}(h5``struct device *dev`` Device to perform the check onh](j)}(h``struct device *dev``h]j)}(hje>h]hstruct device *dev}(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[)}(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.hhMhj{>ubah}(h]h ]h"]h$]h&]uh1jhj_>ubeh}(h]h ]h"]h$]h&]uh1jhjz>hMhj\>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)}(hj8h]hconst}(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>hMubjM7)}(hcharh]hchar}(hj>hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj>hhhj>hMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hMubj7)}(hj7h]h*}(hj>hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj>hhhj>hMubj")}(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!hj>hhhj>hMubj7)}(h(const struct device *dev)h]j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hj$?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ?ubj)}(h h]h }(hj1?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ?ubh)}(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&] refdomainjtreftypej7 reftargetj_?modnameN classnameNj7j7)}j7]j7)}j7j ?sb c.dev_nameasbuh1hhj ?ubj)}(h h]h }(hj}?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ?ubj7)}(hj7h]h*}(hj?hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ?ubj()}(hdevh]hdev}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj?ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj>hhhj>hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj>hhhj>hMubah}(h]j>ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj>hMhj>hhubjV)}(hhh]j[)}(hReturn a device's name.h]hReturn a device’s name.}(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 ](jtfunctioneh"]h$]h&]jyjtjzj?j{j?j|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?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.hhMhj?ubj)}(hhh]j)}(h6``const struct device *dev`` Device with name to get. h](j)}(h``const struct device *dev``h]j)}(hj@h]hconst struct 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.hhMhj?ubj)}(hhh]j[)}(hDevice with name to get.h]hDevice with name to get.}(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 **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.hhMhj?ubj[)}(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.}(hjT@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj?ubeh}(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)}(hj8h]hconst}(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@hMubjM7)}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj@hhhj@hMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhj@hMubj7)}(hj7h]h*}(hj@hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj@hhhj@hMubj")}(h dev_bus_nameh]j()}(h dev_bus_nameh]h dev_bus_name}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj@hhhj@hMubj7)}(h(const struct device *dev)h]j7)}(hconst struct device *devh](h)}(hj8h]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}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubh)}(hhh]j()}(hdeviceh]hdevice}(hj!AhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj#AmodnameN classnameNj7j7)}j7]j7)}j7j@sbc.dev_bus_nameasbuh1hhj@ubj)}(h h]h }(hjAAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj7)}(hj7h]h*}(hjOAhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj@ubj()}(hdevh]hdev}(hj\AhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj@ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj@hhhj@hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj{@hhhj@hMubah}(h]jv@ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj@hMhjx@hhubjV)}(hhh]j[)}(h4Return a device's bus/class name, if at all possibleh]h6Return a device’s bus/class name, if at all possible}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjAhhubah}(h]h ]h"]h$]h&]uh1jUhjx@hhhj@hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjAj{jAj|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)}(hjAh]h Parameters}(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.hhMhjAubj)}(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)}(hjAh]hconst struct device *dev}(hjAhhhNhNubah}(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.hhMhjAubj)}(hhh]j[)}(h*struct device to get the bus/class name ofh]h*struct device to get the bus/class name of}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubj[)}(h**Description**h]j)}(hjBh]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjAubj[)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjAubeh}(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}(hjGBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCBhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjUBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCBhhhjTBhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjfBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcBubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjhBmodnameN classnameNj7j7)}j7]j7)}j7device_find_child_by_namesbc.device_find_child_by_nameasbuh1hhjCBhhhjTBhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCBhhhjTBhMubj7)}(hj7h]h*}(hjBhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCBhhhjTBhMubj")}(hdevice_find_child_by_nameh]j()}(hjBh]hdevice_find_child_by_name}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjCBhhhjTBhMubj7)}(h)(struct device *parent, const char *name)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j()}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjBmodnameN classnameNj7j7)}j7]jBc.device_find_child_by_nameasbuh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj7)}(hj7h]h*}(hj ChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjBubj()}(hparenth]hparent}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj1ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-Cubj)}(h h]h }(hj>ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-CubjM7)}(hcharh]hchar}(hjLChhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj-Cubj)}(h h]h }(hjZChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-Cubj7)}(hj7h]h*}(hjhChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-Cubj()}(hnameh]hname}(hjuChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-Cubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjCBhhhjTBhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj?BhhhjTBhMubah}(h]j:Bah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjTBhMhjprobe(). Take care to only override the default lockdep_no_validate class.h](j[)}(h**Parameters**h]j)}(hj Gh]h Parameters}(hj"GhhhNhNubah}(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.hhMhjGubj)}(hhh](j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hj?Gh]hdev}(hjAGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Gubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj9Gubj)}(hhh]j[)}(hdevice to modifyh]hdevice to modify}(hjXGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjTGhMhjUGubah}(h]h ]h"]h$]h&]uh1jhj9Gubeh}(h]h ]h"]h$]h&]uh1jhjTGhMhj6Gubj)}(h``key`` lock class key data h](j)}(h``key``h]j)}(hjxGh]hkey}(hjzGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvGubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjrGubj)}(hhh]j[)}(hlock class key datah]hlock class key data}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjrGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj6Gubeh}(h]h ]h"]h$]h&]uh1jhjGubj[)}(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.hhMhjGubj[)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjGubeh}(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()}(hjGh]hdevice_lock_reset_class}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjGhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjGhhhjHhMubah}(h]jGah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjHhMhjGhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjGhhhjHhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj(Hj{j(Hj|j}j~uh1hhhhhhNhNubj[)}(h!``device_lock_reset_class (dev)``h]j)}(hj.Hh]hdevice_lock_reset_class (dev)}(hj0HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,Hubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj)}(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}(hjHHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjDHubah}(h]h ]h"]h$]h&]uh1jhjVHhMhhhhubj)}(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)}(hjcHh]h Parameters}(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.hhMhj]Hubj)}(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.hhMhj|Hubj)}(hhh]j[)}(hdevice to modifyh]hdevice to modify}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhMhjHubah}(h]h ]h"]h$]h&]uh1jhj|Hubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjyHubah}(h]h ]h"]h$]h&]uh1jhj]Hubj[)}(h**Description**h]j)}(hjHh]h Description}(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.hhMhj]Hubj[)}(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().}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj]Hubeh}(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}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjIhKubj")}(hbus_typeh]j()}(hjHh]hbus_type}(hj#IhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjHhhhjIhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjHhhhjIhKubah}(h]jHah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhKhjHhhubjV)}(hhh]j[)}(hThe bus type of the deviceh]hThe bus type of the device}(hjEIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjBIhhubah}(h]h ]h"]h$]h&]uh1jUhjHhhhjIhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj]Ij{j]Ij|j}j~uh1hhhhhhjHhNubj)}(hXG**Definition**:: struct bus_type { const char *name; const char *dev_name; const struct attribute_group *const *bus_groups; const struct attribute_group *const *dev_groups; const struct attribute_group *const *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}(hjiIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeIubh:}(hjeIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjaIubj)}(hXstruct bus_type { const char *name; const char *dev_name; const struct attribute_group *const *bus_groups; const struct attribute_group *const *dev_groups; const struct attribute_group *const *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 *const *bus_groups; const struct attribute_group *const *dev_groups; const struct attribute_group *const *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; };}hjIsbah}(h]h ]h"]h$]h&]j?j@uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjaIubj[)}(h **Members**h]j)}(hjIh]hMembers}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK8hjaIubj)}(hhh](j)}(h``name`` The name of the bus. h](j)}(h``name``h]j)}(hjIh]hname}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjIubj)}(hhh]j[)}(hThe name of the bus.h]hThe name of the bus.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhKhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjIubj)}(hR``dev_name`` Used for subsystems to enumerate devices like ("foo``u``", dev->id). h](j)}(h ``dev_name``h]j)}(hjIh]hdev_name}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjIubj)}(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).}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjIubj)}(h.``bus_groups`` Default attributes of the bus. h](j)}(h``bus_groups``h]j)}(hj$Jh]h bus_groups}(hj&JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Jubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjJubj)}(hhh]j[)}(hDefault attributes of the bus.h]hDefault attributes of the bus.}(hj=JhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9JhKhj:Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj9JhKhjIubj)}(h=``dev_groups`` Default attributes of the devices on the bus. h](j)}(h``dev_groups``h]j)}(hj]Jh]h dev_groups}(hj_JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Jubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjWJubj)}(hhh]j[)}(h-Default attributes of the devices on the bus.h]h-Default attributes of the devices on the bus.}(hjvJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrJhKhjsJubah}(h]h ]h"]h$]h&]uh1jhjWJubeh}(h]h ]h"]h$]h&]uh1jhjrJhKhjIubj)}(hD``drv_groups`` Default attributes of the device drivers on the bus. h](j)}(h``drv_groups``h]j)}(hjJh]h drv_groups}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK hjJubj)}(hhh]j[)}(h4Default attributes of the device drivers on the bus.h]h4Default attributes of the device drivers on the bus.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhK hjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhK hjIubj)}(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)}(hjJh]hmatch}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK&hjJubj)}(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.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK!hjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhK&hjIubj)}(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)}(hj Kh]huevent}(hj KhhhNhNubah}(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.hhK*hjKubj)}(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.}(hj"KhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK)hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhK*hjIubj)}(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)}(hjCKh]hprobe}(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.hhK,hj=Kubj)}(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.}(hj\KhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK+hjYKubah}(h]h ]h"]h$]h&]uh1jhj=Kubeh}(h]h ]h"]h$]h&]uh1jhjXKhK,hjIubj)}(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)}(hj}Kh]h sync_state}(hjKhhhNhNubah}(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.hhK3hjwKubj)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK-hjKubah}(h]h ]h"]h$]h&]uh1jhjwKubeh}(h]h ]h"]h$]h&]uh1jhjKhK3hjIubj)}(h7``remove`` Called when a device removed from this bus. h](j)}(h ``remove``h]j)}(hjKh]hremove}(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.hhK4hjKubj)}(hhh]j[)}(h+Called when a device removed from this bus.h]h+Called when a device removed from this bus.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhK4hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhK4hjIubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hjKh]hshutdown}(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.hhK5hjKubj)}(hhh]j[)}(h/Called at shut-down time to quiesce the device.h]h/Called at shut-down time to quiesce the device.}(hj LhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhK5hjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjLhK5hjIubj)}(hG``irq_get_affinity`` Get IRQ affinity mask for the device on this bus. h](j)}(h``irq_get_affinity``h]j)}(hj)Lh]hirq_get_affinity}(hj+LhhhNhNubah}(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.hhK6hj#Lubj)}(hhh]j[)}(h1Get IRQ affinity mask for the device on this bus.h]h1Get IRQ affinity mask for the device on this bus.}(hjBLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>LhK6hj?Lubah}(h]h ]h"]h$]h&]uh1jhj#Lubeh}(h]h ]h"]h$]h&]uh1jhj>LhK6hjIubj)}(hF``online`` Called to put the device back online (after offlining it). h](j)}(h ``online``h]j)}(hjbLh]honline}(hjdLhhhNhNubah}(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.hhK8hj\Lubj)}(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).}(hj{LhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwLhK8hjxLubah}(h]h ]h"]h$]h&]uh1jhj\Lubeh}(h]h ]h"]h$]h&]uh1jhjwLhK8hjIubj)}(hH``offline`` Called to put the device offline for hot-removal. May fail. h](j)}(h ``offline``h]j)}(hjLh]hoffline}(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.hhK9hjLubj)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhK9hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK9hjIubj)}(hH``suspend`` Called when a device on this bus wants to go to sleep mode. h](j)}(h ``suspend``h]j)}(hjLh]hsuspend}(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 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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhK;hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK;hjIubj)}(hC``resume`` Called to bring a device on this bus out of sleep mode. h](j)}(h ``resume``h]j)}(hj Mh]hresume}(hjMhhhNhNubah}(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.hhKhj@Mubj)}(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.}(hj_MhhhNhNubah}(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&]uh1jhj@Mubeh}(h]h ]h"]h$]h&]uh1jhj[MhK>hjIubj)}(hM``dma_configure`` Called to setup DMA configuration on a device on this bus. h](j)}(h``dma_configure``h]j)}(hjMh]h dma_configure}(hjMhhhNhNubah}(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.hhK@hjzMubj)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK?hjMubah}(h]h ]h"]h$]h&]uh1jhjzMubeh}(h]h ]h"]h$]h&]uh1jhjMhK@hjIubj)}(hM``dma_cleanup`` Called to cleanup DMA configuration on a device on this bus. h](j)}(h``dma_cleanup``h]j)}(hjMh]h dma_cleanup}(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.hhKBhjMubj)}(hhh]j[)}(hXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Xubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK:hj6Xubj)}(hhh]j[)}(hThe module owner.h]hThe module owner.}(hjUXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQXhK:hjRXubah}(h]h ]h"]h$]h&]uh1jhj6Xubeh}(h]h ]h"]h$]h&]uh1jhjQXhK:hjWubj)}(h(``mod_name`` Used for built-in modules. h](j)}(h ``mod_name``h]j)}(hjuXh]hmod_name}(hjwXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsXubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK;hjoXubj)}(hhh]j[)}(hUsed for built-in modules.h]hUsed for built-in modules.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhK;hjXubah}(h]h ]h"]h$]h&]uh1jhjoXubeh}(h]h ]h"]h$]h&]uh1jhjXhK;hjWubj)}(h8``suppress_bind_attrs`` Disables bind/unbind via sysfs. h](j)}(h``suppress_bind_attrs``h]j)}(hjXh]hsuppress_bind_attrs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKhjYubj)}(hhh]j[)}(hThe open firmware table.h]hThe open firmware table.}(hj9YhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5YhK>hj6Yubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhj5YhK>hjWubj)}(h+``acpi_match_table`` The ACPI match table. h](j)}(h``acpi_match_table``h]j)}(hjYYh]hacpi_match_table}(hj[YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWYubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK?hjSYubj)}(hhh]j[)}(hThe ACPI match table.h]hThe ACPI match table.}(hjrYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnYhK?hjoYubah}(h]h ]h"]h$]h&]uh1jhjSYubeh}(h]h ]h"]h$]h&]uh1jhjnYhK?hjWubj)}(h``probe`` Called to query the existence of a specific device, whether this driver can work with it, and bind the driver to a specific device. h](j)}(h ``probe``h]j)}(hjYh]hprobe}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKBhjYubj)}(hhh]j[)}(hCalled to query the existence of a specific device, whether this driver can work with it, and bind the driver to a specific device.h]hCalled to query the existence of a specific device, whether this driver can work with it, and bind the driver to a specific device.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK@hjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKBhjWubj)}(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)}(hjYh]h sync_state}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKIhjYubj)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKChjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKIhjWubj)}(hb``remove`` Called when the device is removed from the system to unbind a device from this driver. h](j)}(h ``remove``h]j)}(hjZh]hremove}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKKhjZubj)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKJhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhKKhjWubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hj@Zh]hshutdown}(hjBZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>Zubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKLhj:Zubj)}(hhh]j[)}(h/Called at shut-down time to quiesce the device.h]h/Called at shut-down time to quiesce the device.}(hjYZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUZhKLhjVZubah}(h]h ]h"]h$]h&]uh1jhj:Zubeh}(h]h ]h"]h$]h&]uh1jhjUZhKLhjWubj)}(hR``suspend`` Called to put the device to sleep mode. Usually to a low power state. h](j)}(h ``suspend``h]j)}(hjyZh]hsuspend}(hj{ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwZubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKNhjsZubj)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKMhjZubah}(h]h ]h"]h$]h&]uh1jhjsZubeh}(h]h ]h"]h$]h&]uh1jhjZhKNhjWubj)}(h5``resume`` Called to bring a device from sleep mode. h](j)}(h ``resume``h]j)}(hjZh]hresume}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKOhjZubj)}(hhh]j[)}(h)Called to bring a device from sleep mode.h]h)Called to bring a device from sleep mode.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZhKOhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhKOhjWubj)}(hQ``groups`` Default attributes that get created by the driver core automatically. h](j)}(h ``groups``h]j)}(hjZh]hgroups}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKQhjZubj)}(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.hhKPhj[ubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhj[hKQhjWubj)}(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.hhKShj [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.hhKRhj<[ubah}(h]h ]h"]h$]h&]uh1jhj [ubeh}(h]h ]h"]h$]h&]uh1jhj;[hKShjWubj)}(hL``pm`` Power management operations of the device which matched this driver. h](j)}(h``pm``h]j)}(hj`[h]hpm}(hjb[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.hhKUhjZ[ubj)}(hhh]j[)}(hDPower management operations of the device which matched this driver.h]hDPower management operations of the device which matched this driver.}(hjy[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKThjv[ubah}(h]h ]h"]h$]h&]uh1jhjZ[ubeh}(h]h ]h"]h$]h&]uh1jhju[hKUhjWubj)}(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.hhKXhj[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.hhKVhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKXhjWubj)}(hT``p`` Driver core's private data, no one other than the driver core can touch this. h](j)}(h``p``h]j)}(hj[h]hp}(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.hhKZhj[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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKYhj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKZhjWubj)}(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.hhK[hj\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#\hK[hj$\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj#\hK[hjWubeh}(h]h ]h"]h$]h&]uh1jhjyWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhjUhNubj[)}(h**Description**h]j)}(hjP\h]h Description}(hjR\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN\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.}(hjf\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK\hhhhubeh}(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](jM7)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj\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\hKubj7)}(h(void)h]j7)}(hvoidh]jM7)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj\ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj\ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj\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)}(hj0]h]h Parameters}(hj2]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)}(hjO]h]hvoid}(hjQ]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhjI]ubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjh]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjd]hKhje]ubah}(h]h ]h"]h$]h&]uh1jhjI]ubeh}(h]h ]h"]h$]h&]uh1jhjd]hKhjF]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}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hKubh)}(hhh]j()}(hdeviceh]hdevice}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj]modnameN classnameNj7j7)}j7]j7)}j7driver_find_device_by_namesbc.driver_find_device_by_nameasbuh1hhj]hhhj]hKubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hKubj7)}(hj7h]h*}(hj^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]hhhj]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!hj]hhhj]hKubj7)}(h3(const struct device_driver *drv, const char *name)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjI^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE^ubj)}(h h]h }(hjV^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE^ubh)}(hjh]hstruct}(hjd^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE^ubj)}(h h]h }(hjq^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE^ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj^modnameN classnameNj7j7)}j7]j ^c.driver_find_device_by_nameasbuh1hhjE^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE^ubj7)}(hj7h]h*}(hj^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjE^ubj()}(hdrvh]hdrv}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjE^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjA^ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjM7)}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj7)}(hj7h]h*}(hj _hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^ubj()}(hnameh]hname}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjA^ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj]hhhj]hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj]hhhj]hKubah}(h]j]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj]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.}(hjB_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]hhhj]hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjZ_j{jZ_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)}(hjd_h]h Parameters}(hjf_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb_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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jhj}_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjz_ubj)}(h0``const char *name`` name of the device to matchh](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&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_ubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjz_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}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hj$`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj#`hKubh)}(hhh]j()}(hdeviceh]hdevice}(hj5`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2`ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj7`modnameN classnameNj7j7)}j7]j7)}j7driver_find_device_by_of_nodesbc.driver_find_device_by_of_nodeasbuh1hhj`hhhj#`hKubj)}(h h]h }(hjV`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj#`hKubj7)}(hj7h]h*}(hjd`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`hhhj#`hKubj")}(hdriver_find_device_by_of_nodeh]j()}(hjS`h]hdriver_find_device_by_of_node}(hju`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjq`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhj#`hKubj7)}(h?(const struct device_driver *drv, const struct device_node *np)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj`modnameN classnameNj7j7)}j7]jQ`c.driver_find_device_by_of_nodeasbuh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj7)}(hj7h]h*}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`ubj()}(hdrvh]hdrv}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubj7)}(hconst struct device_node *nph](h)}(hj8h]hconst}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hj(ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hjh]hstruct}(hj6ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjCahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j()}(h device_nodeh]h device_node}(hjTahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQaubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjVamodnameN classnameNj7j7)}j7]jQ`c.driver_find_device_by_of_nodeasbuh1hhjaubj)}(h h]h }(hjrahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj7)}(hj7h]h*}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjaubj()}(hnph]hnp}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj`hhhj#`hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj`hhhj#`hKubah}(h]j `ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj#`hKhj `hhubjV)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjahhubah}(h]h ]h"]h$]h&]uh1jUhj `hhhj#`hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjaj{jaj|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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjaubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjah]hconst struct device_driver *drv}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjaubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj bhKhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj bhKhjaubj)}(h:``const struct device_node *np`` of_node pointer to match.h](j)}(h ``const struct device_node *np``h]j)}(hj1bh]hconst struct device_node *np}(hj3bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/bubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj+bubj)}(hhh]j[)}(hof_node pointer to match.h]hof_node pointer to match.}(hjJbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjGbubah}(h]h ]h"]h$]h&]uh1jhj+bubeh}(h]h ]h"]h$]h&]uh1jhjFbhKhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubeh}(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}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjbmodnameN classnameNj7j7)}j7]j7)}j7driver_find_device_by_fwnodesbc.driver_find_device_by_fwnodeasbuh1hhjbhhhjbhKubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubj7)}(hj7h]h*}(hjbhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjbhhhjbhKubj")}(hdriver_find_device_by_fwnodeh]j()}(hjbh]hdriver_find_device_by_fwnode}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjbhhhjbhKubj7)}(h?(struct device_driver *drv, const struct fwnode_handle *fwnode)h](j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j()}(h device_driverh]h device_driver}(hj#chhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj cubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj%cmodnameN classnameNj7j7)}j7]jbc.driver_find_device_by_fwnodeasbuh1hhjcubj)}(h h]h }(hjAchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj7)}(hj7h]h*}(hjOchhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjcubj()}(hdrvh]hdrv}(hj\chhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjbubj7)}(h"const struct fwnode_handle *fwnodeh](h)}(hj8h]hconst}(hjuchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqcubh)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqcubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjcmodnameN classnameNj7j7)}j7]jbc.driver_find_device_by_fwnodeasbuh1hhjqcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqcubj7)}(hj7h]h*}(hjchhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjqcubj()}(hfwnodeh]hfwnode}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjbubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjbhhhjbhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhjbhKubah}(h]j~bah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjbhKhjbhhubjV)}(hhh]j[)}(hCdevice iterator for locating a particular device by fwnode pointer.h]hCdevice iterator for locating a particular device by fwnode pointer.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjdhhubah}(h]h ]h"]h$]h&]uh1jUhjbhhhjbhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj)dj{j)dj|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)}(hj3dh]h Parameters}(hj5dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1dubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj-dubj)}(hhh](j)}(h9``struct device_driver *drv`` the driver we're iterating h](j)}(h``struct device_driver *drv``h]j)}(hjRdh]hstruct device_driver *drv}(hjTdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPdubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjLdubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjkdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjgdhKhjhdubah}(h]h ]h"]h$]h&]uh1jhjLdubeh}(h]h ]h"]h$]h&]uh1jhjgdhKhjIdubj)}(h?``const struct fwnode_handle *fwnode`` fwnode pointer to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hjdh]h"const struct fwnode_handle *fwnode}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjdubj)}(hhh]j[)}(hfwnode pointer to match.h]hfwnode pointer to match.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjIdubeh}(h]h ]h"]h$]h&]uh1jhj-dubeh}(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}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjemodnameN classnameNj7j7)}j7]j7)}j7driver_find_device_by_devtsbc.driver_find_device_by_devtasbuh1hhjdhhhjdhKubj)}(h h]h }(hj%ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhKubj7)}(hj7h]h*}(hj3ehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjdhhhjdhKubj")}(hdriver_find_device_by_devth]j()}(hj"eh]hdriver_find_device_by_devt}(hjDehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@eubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjdhhhjdhKubj7)}(h-(const struct device_driver *drv, dev_t devt)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hj_ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[eubj)}(h h]h }(hjlehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[eubh)}(hjh]hstruct}(hjzehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[eubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[eubh)}(hhh]j()}(h device_driverh]h device_driver}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjemodnameN classnameNj7j7)}j7]j ec.driver_find_device_by_devtasbuh1hhj[eubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[eubj7)}(hj7h]h*}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[eubj()}(hdrvh]hdrv}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[eubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjWeubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjemodnameN classnameNj7j7)}j7]j ec.driver_find_device_by_devtasbuh1hhjeubj)}(h h]h }(hj fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj()}(hdevth]hdevt}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjWeubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjdhhhjdhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjdhhhjdhKubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjdhKhjdhhubjV)}(hhh]j[)}(h9device iterator for locating a particular device by devt.h]h9device iterator for locating a particular device by devt.}(hjCfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj@fhhubah}(h]h ]h"]h$]h&]uh1jUhjdhhhjdhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj[fj{j[fj|j}j~uh1hhhhj}\hNhNubj)}(hy**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``dev_t devt`` devt pointer to match.h](j[)}(h**Parameters**h]j)}(hjefh]h Parameters}(hjgfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcfubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_fubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjfh]hconst struct device_driver *drv}(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.hhKhj~fubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhKhjfubah}(h]h ]h"]h$]h&]uh1jhj~fubeh}(h]h ]h"]h$]h&]uh1jhjfhKhj{fubj)}(h%``dev_t devt`` devt pointer to match.h](j)}(h``dev_t devt``h]j)}(hjfh]h dev_t devt}(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.hhKhjfubj)}(hhh]j[)}(hdevt pointer to match.h]hdevt 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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhKhj{fubeh}(h]h ]h"]h$]h&]uh1jhj_fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+driver_find_device_by_acpi_dev (C function) c.driver_find_device_by_acpi_devhNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hpstruct device * driver_find_device_by_acpi_dev (const struct device_driver *drv, const struct acpi_device *adev)h]h)}(hnstruct device *driver_find_device_by_acpi_dev(const struct device_driver *drv, const struct acpi_device *adev)h](h)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjghhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hj%ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhj$ghKubh)}(hhh]j()}(hdeviceh]hdevice}(hj6ghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3gubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj8gmodnameN classnameNj7j7)}j7]j7)}j7driver_find_device_by_acpi_devsb c.driver_find_device_by_acpi_devasbuh1hhjghhhj$ghKubj)}(h h]h }(hjWghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhj$ghKubj7)}(hj7h]h*}(hjeghhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjghhhj$ghKubj")}(hdriver_find_device_by_acpi_devh]j()}(hjTgh]hdriver_find_device_by_acpi_dev}(hjvghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrgubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhj$ghKubj7)}(hA(const struct device_driver *drv, const struct acpi_device *adev)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(h device_driverh]h device_driver}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjgmodnameN classnameNj7j7)}j7]jRg c.driver_find_device_by_acpi_devasbuh1hhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj7)}(hj7h]h*}(hjghhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjgubj()}(hdrvh]hdrv}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjgubj7)}(hconst struct acpi_device *adevh](h)}(hj8h]hconst}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(h h]h }(hj)hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hjh]hstruct}(hj7hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(h h]h }(hjDhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjUhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjRhubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjWhmodnameN classnameNj7j7)}j7]jRg c.driver_find_device_by_acpi_devasbuh1hhjhubj)}(h h]h }(hjshhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj7)}(hj7h]h*}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhubj()}(hadevh]hadev}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjgubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjghhhj$ghKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjghhhj$ghKubah}(h]j gah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$ghKhj ghhubjV)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjhhhubah}(h]h ]h"]h$]h&]uh1jUhj ghhhj$ghKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhj{jhj|j}j~uh1hhhhj}\hNhNubj)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j[)}(h**Parameters**h]j)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjhubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjhh]hconst struct device_driver *drv}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjhubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihKhjiubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjihKhjhubj)}(hB``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hj2ih]hconst struct acpi_device *adev}(hj4ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0iubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj,iubj)}(hhh]j[)}(hACPI_COMPANION device to match.h]hACPI_COMPANION device to match.}(hjKihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjHiubah}(h]h ]h"]h$]h&]uh1jhj,iubeh}(h]h ]h"]h$]h&]uh1jhjGihKhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hmodule_driver (C macro)c.module_driverhNtauh1hhj}\hhhNhNubh)}(hhh](h)}(h module_driverh]h)}(h module_driverh]j")}(h module_driverh]j()}(hjih]h module_driver}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjihhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjihKubah}(h]jiah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjihKhjihhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjihhhjihKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjij{jij|j}j~uh1hhhhj}\hNhNubj[)}(h;``module_driver (__driver, __register, __unregister, ...)``h]j)}(hjih]h7module_driver (__driver, __register, __unregister, ...)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj}\hhubj)}(hHelper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit(). h]j[)}(hHelper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit().h]hHelper macro for drivers that don’t do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit().}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjiubah}(h]h ]h"]h$]h&]uh1jhjihKhj}\hhubj)}(hXf**Parameters** ``__driver`` driver name ``__register`` register function for this driver type ``__unregister`` unregister function for this driver type ``...`` Additional arguments to be passed to __register and __unregister. **Description** Use this macro to construct bus specific macros for registering drivers, and do not use it on its own.h](j[)}(h**Parameters**h]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjiubj)}(hhh](j)}(h``__driver`` driver name h](j)}(h ``__driver``h]j)}(hjjh]h__driver}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjjubj)}(hhh]j[)}(h driver nameh]h driver name}(hj/jhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+jhMhj,jubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhj+jhMhj jubj)}(h6``__register`` register function for this driver type h](j)}(h``__register``h]j)}(hjOjh]h __register}(hjQjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMjubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjIjubj)}(hhh]j[)}(h®ister function for this driver typeh]h®ister function for this driver type}(hjhjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdjhMhjejubah}(h]h ]h"]h$]h&]uh1jhjIjubeh}(h]h ]h"]h$]h&]uh1jhjdjhMhj jubj)}(h:``__unregister`` unregister function for this driver type h](j)}(h``__unregister``h]j)}(hjjh]h __unregister}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjjubj)}(hhh]j[)}(h(unregister function for this driver typeh]h(unregister function for this driver type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhj jubj)}(hJ``...`` Additional arguments to be passed to __register and __unregister. h](j)}(h``...``h]j)}(hjjh]h...}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjjubj)}(hhh]j[)}(hAAdditional arguments to be passed to __register and __unregister.h]hAAdditional arguments to be passed to __register and __unregister.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhj jubeh}(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&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjiubj[)}(hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.h]hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbuiltin_driver (C macro)c.builtin_driverhNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hbuiltin_driverh]h)}(hbuiltin_driverh]j")}(hbuiltin_driverh]j()}(hj;kh]hbuiltin_driver}(hjEkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj=khhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj9khhhjXkhMubah}(h]j4kah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjXkhMhj6khhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj6khhhjXkhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjqkj{jqkj|j}j~uh1hhhhj}\hNhNubj[)}(h.``builtin_driver (__driver, __register, ...)``h]j)}(hjwkh]h*builtin_driver (__driver, __register, ...)}(hjykhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjukubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhj}\hhubj)}(hXqHelper macro for drivers that don't do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver() above but without the __exit stuff that is not used for builtin cases. h]j[)}(hXpHelper macro for drivers that don't do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver() above but without the __exit stuff that is not used for builtin cases.h]hXrHelper macro for drivers that don’t do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver() above but without the __exit stuff that is not used for builtin cases.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkhMhj}\hhubj)}(hX**Parameters** ``__driver`` driver name ``__register`` register function for this driver type ``...`` Additional arguments to be passed to __register **Description** Use this macro to construct bus specific macros for registering drivers, and do not use it on its own.h](j[)}(h**Parameters**h]j)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjkubj)}(hhh](j)}(h``__driver`` driver name h](j)}(h ``__driver``h]j)}(hjkh]h__driver}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjkubj)}(hhh]j[)}(h driver nameh]h driver name}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubj)}(h6``__register`` register function for this driver type h](j)}(h``__register``h]j)}(hjlh]h __register}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjkubj)}(hhh]j[)}(h®ister function for this driver typeh]h®ister function for this driver type}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubj)}(h8``...`` Additional arguments to be passed to __register h](j)}(h``...``h]j)}(hj=lh]h...}(hj?lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;lubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhM hj7lubj)}(hhh]j[)}(h/Additional arguments to be passed to __registerh]h/Additional arguments to be passed to __register}(hjVlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRlhM hjSlubah}(h]h ]h"]h$]h&]uh1jhj7lubeh}(h]h ]h"]h$]h&]uh1jhjRlhM hjkubeh}(h]h ]h"]h$]h&]uh1jhjkubj[)}(h**Description**h]j)}(hjxlh]h Description}(hjzlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvlubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhM"hjkubj[)}(hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.h]hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhM!hjkubeh}(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](jM7)}(hinth]hint}(hjlhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjlhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK"ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhK"ubj")}(hdriver_for_each_deviceh]j()}(hdriver_for_each_deviceh]hdriver_for_each_device}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjlhhhjlhK"ubj7)}(hO(struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h](j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j()}(h device_driverh]h device_driver}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmmodnameN classnameNj7j7)}j7]j7)}j7jlsbc.driver_for_each_deviceasbuh1hhjlubj)}(h h]h }(hj8mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj7)}(hj7h]h*}(hjFmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlubj()}(hdrvh]hdrv}(hjSmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjlubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hjlmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhmubj)}(h h]h }(hjymhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhmubh)}(hhh]j()}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmmodnameN classnameNj7j7)}j7]j4mc.driver_for_each_deviceasbuh1hhjhmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhmubj7)}(hj7h]h*}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhmubj()}(hstarth]hstart}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjlubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj7)}(hj7h]h*}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjmubj()}(hdatah]hdata}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjlubj7)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj!nhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj#nmodnameN classnameNj7j7)}j7]j4mc.driver_for_each_deviceasbuh1hhjnubj)}(h h]h }(hj?nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj()}(hfnh]hfn}(hjMnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjlubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjlhhhjlhK"ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjlhhhjlhK"ubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjlhK"hjlhhubjV)}(hhh]j[)}(h'Iterator for devices bound to a driver.h]h'Iterator for devices bound to a driver.}(hjwnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK"hjtnhhubah}(h]h ]h"]h$]h&]uh1jUhjlhhhjlhK"ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjnj{jnj|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)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hjnubj)}(hhh](j)}(h6``struct device_driver *drv`` Driver we're iterating. h](j)}(h``struct device_driver *drv``h]j)}(hjnh]hstruct device_driver *drv}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK#hjnubj)}(hhh]j[)}(hDriver we're iterating.h]hDriver we’re iterating.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhK#hjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhK#hjnubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjnh]hstruct device *start}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK$hjnubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohK$hjoubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjohK$hjnubj)}(h-``void *data`` Data to pass to the callback. h](j)}(h``void *data``h]j)}(hj*oh]h void *data}(hj,ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(oubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK%hj$oubj)}(hhh]j[)}(hData to pass to the callback.h]hData to pass to the callback.}(hjCohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?ohK%hj@oubah}(h]h ]h"]h$]h&]uh1jhj$oubeh}(h]h ]h"]h$]h&]uh1jhj?ohK%hjnubj)}(h7``device_iter_t fn`` Function to call for each device. h](j)}(h``device_iter_t fn``h]j)}(hjcoh]hdevice_iter_t fn}(hjeohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hj]oubj)}(hhh]j[)}(h!Function to call for each device.h]h!Function to call for each device.}(hj|ohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxohK&hjyoubah}(h]h ]h"]h$]h&]uh1jhj]oubeh}(h]h ]h"]h$]h&]uh1jhjxohK&hjnubeh}(h]h ]h"]h$]h&]uh1jhjnubj[)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK(hjnubj[)}(hGIterate over the **drv**'s list of devices calling **fn** for each one.h](hIterate over the }(hjohhhNhNubj)}(h**drv**h]hdrv}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh’s list of devices calling }(hjohhhNhNubj)}(h**fn**h]hfn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh for each one.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK'hjnubeh}(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}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK>ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphK>ubh)}(hhh]j()}(hdeviceh]hdevice}(hj&phhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj#pubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj(pmodnameN classnameNj7j7)}j7]j7)}j7driver_find_devicesbc.driver_find_deviceasbuh1hhjphhhjphK>ubj)}(h h]h }(hjGphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjphK>ubj7)}(hj7h]h*}(hjUphhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjphhhjphK>ubj")}(hdriver_find_deviceh]j()}(hjDph]hdriver_find_device}(hjfphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbpubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjphhhjphK>ubj7)}(h_(const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}pubh)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}pubh)}(hhh]j()}(h device_driverh]h device_driver}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjpmodnameN classnameNj7j7)}j7]jBpc.driver_find_deviceasbuh1hhj}pubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}pubj7)}(hj7h]h*}(hjphhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj}pubj()}(hdrvh]hdrv}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}pubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjypubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hj qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j()}(hdeviceh]hdevice}(hj*qhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'qubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj,qmodnameN classnameNj7j7)}j7]jBpc.driver_find_deviceasbuh1hhjqubj)}(h h]h }(hjHqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj7)}(hj7h]h*}(hjVqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjqubj()}(hstarth]hstart}(hjcqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjypubj7)}(hconst void *datah](h)}(hj8h]hconst}(hj|qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxqubjM7)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjxqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxqubj7)}(hj7h]h*}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjxqubj()}(hdatah]hdata}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjypubj7)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjqmodnameN classnameNj7j7)}j7]jBpc.driver_find_deviceasbuh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj()}(hmatchh]hmatch}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjypubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjphhhjphK>ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjohhhjphK>ubah}(h]joah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjphK>hjohhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hj2rhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK>hj/rhhubah}(h]h ]h"]h$]h&]uh1jUhjohhhjphK>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjJrj{jJrj|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)}(hjTrh]h Parameters}(hjVrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRrubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKBhjNrubj)}(hhh](j)}(h8``const struct device_driver *drv`` The device's driver h](j)}(h#``const struct device_driver *drv``h]j)}(hjsrh]hconst struct device_driver *drv}(hjurhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqrubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK?hjmrubj)}(hhh]j[)}(hThe device's driverh]hThe device’s driver}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhK?hjrubah}(h]h ]h"]h$]h&]uh1jhjmrubeh}(h]h ]h"]h$]h&]uh1jhjrhK?hjjrubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjrh]hstruct device *start}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK@hjrubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhK@hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhK@hjjrubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hjrh]hconst void *data}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKAhjrubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhKAhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhKAhjjrubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjsh]hdevice_match_t match}(hj shhhNhNubah}(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.chKBhjsubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hj7shhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3shKBhj4subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj3shKBhjjrubeh}(h]h ]h"]h$]h&]uh1jhjNrubj[)}(h**Description**h]j)}(hjYsh]h Description}(hj[shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWsubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKDhjNrubj[)}(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 }(hjoshhhNhNubj)}(h **match**h]hmatch}(hjwshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjosubh callback.}(hjoshhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKChjNrubj[)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKGhjNrubeh}(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](jM7)}(hinth]hint}(hjshhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjshhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKdubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjshhhjshKdubj")}(hdriver_create_fileh]j()}(hdriver_create_fileh]hdriver_create_file}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjshhhjshKdubj7)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(h h]h }(hj thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(h h]h }(hj$thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubh)}(hhh]j()}(h device_driverh]h device_driver}(hj5thhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2tubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj7tmodnameN classnameNj7j7)}j7]j7)}j7jssbc.driver_create_fileasbuh1hhjsubj)}(h h]h }(hjUthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj7)}(hj7h]h*}(hjcthhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjsubj()}(hdrvh]hdrv}(hjpthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjsubj7)}(h#const struct driver_attribute *attrh](h)}(hj8h]hconst}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjtmodnameN classnameNj7j7)}j7]jQtc.driver_create_fileasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj7)}(hj7h]h*}(hjthhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjtubj()}(hattrh]hattr}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjsubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjshhhjshKdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjshhhjshKdubah}(h]jsah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjshKdhjshhubjV)}(hhh]j[)}(hcreate sysfs file for driver.h]hcreate sysfs file for driver.}(hj%uhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKdhj"uhhubah}(h]h ]h"]h$]h&]uh1jUhjshhhjshKdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj=uj{j=uj|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)}(hjGuh]h Parameters}(hjIuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEuubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhhjAuubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjfuh]hconst struct device_driver *drv}(hjhuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjduubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKehj`uubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{uhKehj|uubah}(h]h ]h"]h$]h&]uh1jhj`uubeh}(h]h ]h"]h$]h&]uh1jhj{uhKehj]uubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjuh]h#const struct driver_attribute *attr}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKghjuubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKfhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKghj]uubeh}(h]h ]h"]h$]h&]uh1jhjAuubeh}(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](jM7)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjuhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjvhKvubj")}(hdriver_remove_fileh]j()}(hdriver_remove_fileh]hdriver_remove_file}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuhhhjvhKvubj7)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hj6vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2vubj)}(h h]h }(hjCvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2vubh)}(hjh]hstruct}(hjQvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2vubj)}(h h]h }(hj^vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2vubh)}(hhh]j()}(h device_driverh]h device_driver}(hjovhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlvubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjqvmodnameN classnameNj7j7)}j7]j7)}j7jvsbc.driver_remove_fileasbuh1hhj2vubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2vubj7)}(hj7h]h*}(hjvhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj2vubj()}(hdrvh]hdrv}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2vubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj.vubj7)}(h#const struct driver_attribute *attrh](h)}(hj8h]hconst}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hjh]hstruct}(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjvmodnameN classnameNj7j7)}j7]jvc.driver_remove_fileasbuh1hhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj7)}(hj7h]h*}(hj(whhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjvubj()}(hattrh]hattr}(hj5whhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj.vubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjuhhhjvhKvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjuhhhjvhKvubah}(h]juah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjvhKvhjuhhubjV)}(hhh]j[)}(hremove sysfs file for driver.h]hremove sysfs file for driver.}(hj_whhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKvhj\whhubah}(h]h ]h"]h$]h&]uh1jUhjuhhhjvhKvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjwwj{jwwj|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)}(hjwh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKzhj{wubj)}(hhh](j)}(h,``const struct device_driver *drv`` 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.chKwhjwubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwhKwhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKwhjwubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjwh]h#const struct driver_attribute *attr}(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.chKyhjwubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKxhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhKyhjwubeh}(h]h ]h"]h$]h&]uh1jhj{wubeh}(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](jM7)}(hinth]hint}(hj3xhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj/xhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hjBxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/xhhhjAxhKubj")}(hdriver_registerh]j()}(hdriver_registerh]hdriver_register}(hjTxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/xhhhjAxhKubj7)}(h(struct device_driver *drv)h]j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjpxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlxubj)}(h h]h }(hj}xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlxubh)}(hhh]j()}(h device_driverh]h device_driver}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjxmodnameN classnameNj7j7)}j7]j7)}j7jVxsbc.driver_registerasbuh1hhjlxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlxubj7)}(hj7h]h*}(hjxhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlxubj()}(hdrvh]hdrv}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhxubah}(h]h ]h"]h$]h&]j?j@uh1j7hj/xhhhjAxhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj+xhhhjAxhKubah}(h]j&xah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjAxhKhj(xhhubjV)}(hhh]j[)}(hregister driver with bush]hregister driver with bus}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjxhhubah}(h]h ]h"]h$]h&]uh1jUhj(xhhhjAxhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj yj{j yj|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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjyubj)}(hhh]j)}(h1``struct device_driver *drv`` driver to register h](j)}(h``struct device_driver *drv``h]j)}(hj4yh]hstruct device_driver *drv}(hj6yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2yubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj.yubj)}(hhh]j[)}(hdriver to registerh]hdriver to register}(hjMyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIyhKhjJyubah}(h]h ]h"]h$]h&]uh1jhj.yubeh}(h]h ]h"]h$]h&]uh1jhjIyhKhj+yubah}(h]h ]h"]h$]h&]uh1jhjyubj[)}(h**Description**h]j)}(hjoyh]h Description}(hjqyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmyubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjyubj[)}(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.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjyubeh}(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](jM7)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjyhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjyhKubj")}(hdriver_unregisterh]j()}(hdriver_unregisterh]hdriver_unregister}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjyhhhjyhKubj7)}(h(struct device_driver *drv)h]j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j()}(h device_driverh]h device_driver}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj zubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjzmodnameN classnameNj7j7)}j7]j7)}j7jysbc.driver_unregisterasbuh1hhjyubj)}(h h]h }(hj/zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj7)}(hj7h]h*}(hj=zhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjyubj()}(hdrvh]hdrv}(hjJzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjyubah}(h]h ]h"]h$]h&]j?j@uh1j7hjyhhhjyhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjyhhhjyhKubah}(h]jyah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjyhKhjyhhubjV)}(hhh]j[)}(hremove driver from system.h]hremove driver from system.}(hjtzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjqzhhubah}(h]h ]h"]h$]h&]uh1jUhjyhhhjyhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjzj{jzj|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)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjzubj)}(hhh]j)}(h&``struct device_driver *drv`` driver. h](j)}(h``struct device_driver *drv``h]j)}(hjzh]hstruct device_driver *drv}(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.h]hdriver.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzhKhjzubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjzhKhjzubah}(h]h ]h"]h$]h&]uh1jhjzubj[)}(h**Description**h]j)}(hjzh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjzubj[)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjzubeh}(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](jM7)}(hvoidh]hvoid}(hj5{hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj1{hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMfubj)}(h h]h }(hjD{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1{hhhjC{hMfubj")}(hdevice_link_wait_removalh]j()}(hdevice_link_wait_removalh]hdevice_link_wait_removal}(hjV{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjR{ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj1{hhhjC{hMfubj7)}(h(void)h]j7)}(hvoidh]jM7)}(hvoidh]hvoid}(hjr{hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjn{ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjj{ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj1{hhhjC{hMfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj-{hhhjC{hMfubah}(h]j({ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjC{hMfhj*{hhubjV)}(hhh]j[)}(h2Wait for ongoing devlink removal jobs to terminateh]h2Wait for ongoing devlink removal jobs to terminate}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMfhj{hhubah}(h]h ]h"]h$]h&]uh1jUhj*{hhhjC{hMfubeh}(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.chMjhj{ubj)}(hhh]j)}(h``void`` no argumentsh](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:32: ./drivers/base/core.chMlhj{ubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMlhj{ubah}(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}(hj7|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3|hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjE|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|hhhjD|hMubh)}(hhh]j()}(h device_linkh]h device_link}(hjV|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjS|ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjX|modnameN classnameNj7j7)}j7]j7)}j7device_link_addsbc.device_link_addasbuh1hhj3|hhhjD|hMubj)}(h h]h }(hjw|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|hhhjD|hMubj7)}(hj7h]h*}(hj|hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj3|hhhjD|hMubj")}(hdevice_link_addh]j()}(hjt|h]hdevice_link_add}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj3|hhhjD|hMubj7)}(h=(struct device *consumer, struct device *supplier, u32 flags)h](j7)}(hstruct device *consumerh](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&] refdomainjtreftypej7 reftargetj|modnameN classnameNj7j7)}j7]jr|c.device_link_addasbuh1hhj|ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj7)}(hj7h]h*}(hj|hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj|ubj()}(hconsumerh]hconsumer}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj|ubj7)}(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}(hj?}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjA}modnameN classnameNj7j7)}j7]jr|c.device_link_addasbuh1hhj}ubj)}(h h]h }(hj]}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj7)}(hj7h]h*}(hjk}hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj}ubj()}(hsupplierh]hsupplier}(hjx}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj|ubj7)}(h u32 flagsh](h)}(hhh]j()}(hu32h]hu32}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj}modnameN classnameNj7j7)}j7]jr|c.device_link_addasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj()}(hflagsh]hflags}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj|ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj3|hhhjD|hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj/|hhhjD|hMubah}(h]j*|ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjD|hMhj,|hhubjV)}(hhh]j[)}(h"Create a link between two devices.h]h"Create a link between two devices.}(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,|hhhjD|hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj~j{j~j|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)}(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)}(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.chMhj%~ubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hjD~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@~hMhjA~ubah}(h]h ]h"]h$]h&]uh1jhj%~ubeh}(h]h ]h"]h$]h&]uh1jhj@~hMhj"~ubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjd~h]hstruct device *supplier}(hjf~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb~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.}(hj}~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjy~hMhjz~ubah}(h]h ]h"]h$]h&]uh1jhj^~ubeh}(h]h ]h"]h$]h&]uh1jhjy~hMhj"~ubj)}(h``u32 flags`` Link flags. h](j)}(h ``u32 flags``h]j)}(hj~h]h u32 flags}(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[)}(h Link flags.h]h Link flags.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj"~ubeh}(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:32: ./drivers/base/core.chMhj~ubj[)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj~ubj[)}(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.chMhj~ubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj~ubj[)}(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 }(hj$hhhNhNubj)}(h **flags**h]hflags}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubh, 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().}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj~ubj[)}(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 }(hjEhhhNhNubj)}(h **flags**h]hflags}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubhXz 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.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj~ubj[)}(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 }(hjfhhhNhNubj)}(h **flags**h]hflags}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh (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.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj~ubj[)}(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}(hjhhhNhNubah}(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}(hjhhhNhNubah}(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.chM hj~ubj[)}(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.chMhj~ubj[)}(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.chMhj~ubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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")}(hdevice_link_delh]j()}(hdevice_link_delh]hdevice_link_del}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj*hMubj7)}(h(struct device_link *link)h]j7)}(hstruct device_link *linkh](h)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubh)}(hhh]j()}(h device_linkh]h device_link}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjymodnameN classnameNj7j7)}j7]j7)}j7j?sbc.device_link_delasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjUubj()}(hlinkh]hlink}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjUubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjQubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj*hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj*hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj*hMhjhhubjV)}(hhh]j[)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(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&]uh1jUhjhhhj*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.chMhjubj)}(hhh]j)}(h4``struct device_link *link`` Device link to delete. h](j)}(h``struct device_link *link``h]j)}(hjh]hstruct device_link *link}(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 link to delete.h]hDevice link to delete.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hMhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hMhjubah}(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:32: ./drivers/base/core.chMhjubj[)}(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.}(hjnhhhNhNubah}(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_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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h)(void *consumer, struct device *supplier)h](j7)}(hvoid *consumerh](jM7)}(hvoidh]hvoid}(hjځhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjցubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjցubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjցubj()}(hconsumerh]hconsumer}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjցubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjҁubj7)}(hstruct device *supplierh](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'hj7ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj<modnameN classnameNj7j7)}j7]j7)}j7jsbc.device_link_removeasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hsupplierh]hsupplier}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjҁubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(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&]jyjtjzjj{jj|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)}(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)}(h-``void *consumer`` Consumer end of the link. h](j)}(h``void *consumer``h]j)}(hjh]hvoid *consumer}(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.chMhjڂubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjڂubeh}(h]h ]h"]h$]h&]uh1jhjhMhjׂubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjh]hstruct device *supplier}(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[)}(hSupplier end of the link.h]hSupplier end of the link.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhjׂubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjTh]h Description}(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.chMhjubj[)}(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.}(hjjhhhNhNubah}(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_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)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/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 ubjM7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhhjhM ubj)}(h h]h }(hjÃhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj7)}(hj7h]h*}(hjуhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhM ubj")}(hdev_driver_stringh]j()}(hdev_driver_stringh]hdev_driver_string}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjރubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM ubj7)}(h(const struct device *dev)h]j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(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()}(hdeviceh]hdevice}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj9modnameN classnameNj7j7)}j7]j7)}j7jsbc.dev_driver_stringasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM 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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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>``const struct device *dev`` struct device to get the name of h](j)}(h``const struct device *dev``h]j)}(hj݄h]hconst struct 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[)}(h struct device to get the name ofh]h struct device to get the name of}(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[)}(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.chM hjubeh}(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](jM7)}(hinth]hint}(hj]hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjYhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMu ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhMu ubj")}(hdevm_device_add_grouph]j()}(hdevm_device_add_grouph]hdevm_device_add_group}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjYhhhjkhMu ubj7)}(h7(struct device *dev, const struct attribute_group *grp)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.devm_device_add_groupasbuh1hhjubj)}(h h]h }(hj؅hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h!const struct attribute_group *grph](h)}(hj8h]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()}(hattribute_grouph]hattribute_group}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjGmodnameN classnameNj7j7)}j7]jԅc.devm_device_add_groupasbuh1hhjubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hgrph]hgrp}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjYhhhjkhMu ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjUhhhjkhMu ubah}(h]jPah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjkhMu hjRhhubjV)}(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.chMu hjhhubah}(h]h ]h"]h$]h&]uh1jUhjRhhhjkhMu ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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.chMy 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.chMv 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&]uh1jZhjhMv hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMv hjubj)}(hD``const struct attribute_group *grp`` The attribute group to create h](j)}(h%``const struct attribute_group *grp``h]j)}(hj"h]h!const struct attribute_group *grp}(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.chMw hjubj)}(hhh]j[)}(hThe attribute group to createh]hThe attribute group to create}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hMw hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMw hjubeh}(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[)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMx 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.chM{ 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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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_create_fileh]j()}(hdevice_create_fileh]hdevice_create_file}(hj҇hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj·ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM& ubj7)}(h9(struct device *dev, const struct device_attribute *attr)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jԇsbc.device_create_fileasbuh1hhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj:hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h#const struct device_attribute *attrh](h)}(hj8h]hconst}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j(c.device_create_fileasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj7)}(hj7h]h*}(hjňhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj\ubj()}(hattrh]hattr}(hj҈hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj\ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM& ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM& ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM& 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& hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM& ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj}\hNhNubj)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor.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.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' hj7ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRhM' hjSubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM' hj4ubj)}(hD``const struct device_attribute *attr`` device attribute descriptor.h](j)}(h'``const struct device_attribute *attr``h]j)}(hjvh]h#const struct device_attribute *attr}(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.chM) hjpubj)}(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&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjhM) hj4ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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](jM7)}(hvoidh]hvoid}(hjЉhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj̉hhh]/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&]uh1jhj̉hhhjމhM> 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̉hhhjމhM> ubj7)}(h9(struct device *dev, const struct device_attribute *attr)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj hhhNhNubah}(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&] refdomainjtreftypej7 reftargetj-modnameN classnameNj7j7)}j7]j7)}j7jsbc.device_remove_fileasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjYhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hdevh]hdev}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h#const struct device_attribute *attrh](h)}(hj8h]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()}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jGc.device_remove_fileasbuh1hhj{ubj)}(h h]h }(hj֊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj{ubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj̉hhhjމhM> ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjȉhhhjމhM> ubah}(h]jÉah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjމhM> hjʼnhhubjV)}(hhh]j[)}(hremove sysfs attribute file.h]hremove sysfs 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&]uh1jUhjʼnhhhjމhM> ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj3j{j3j|j}j~uh1hhhhj}\hNhNubj)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device 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.chMB hj7ubj)}(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&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM? hjVubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhM? hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM? hjSubj)}(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.chMA 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&]uh1jhjhMA hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(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](jM7)}(hj9h]hbool}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMK ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMK ubj")}(hdevice_remove_file_selfh]j()}(hdevice_remove_file_selfh]hdevice_remove_file_self}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMK ubj7)}(h9(struct device *dev, const struct device_attribute *attr)h](j7)}(hstruct device *devh](h)}(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&] refdomainjtreftypej7 reftargetjKmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_remove_file_selfasbuh1hhj'ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj7)}(hj7h]h*}(hjwhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj'ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj#ubj7)}(h#const struct device_attribute *attrh](h)}(hj8h]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()}(hdevice_attributeh]hdevice_attribute}(hj֌hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjӌubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj،modnameN classnameNj7j7)}j7]jec.device_remove_file_selfasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj#ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMK ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMK ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMK hjhhubjV)}(hhh]j[)}(h0remove sysfs attribute file from its own method.h]h0remove sysfs attribute file from its own method.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMK hj6hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMK ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjQj{jQj|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)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMO hjUubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjzh]hstruct device *dev}(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.chML hjtubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhML hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhML hjqubj)}(hE``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.chMM hjubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hj̍hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjȍhMM hjɍubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȍhMM hjqubeh}(h]h ]h"]h$]h&]uh1jhjUubj[)}(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.chMO hjUubj[)}(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.chMN hjUubeh}(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](jM7)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj/hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM\ ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhjAhM\ ubj")}(hdevice_create_bin_fileh]j()}(hdevice_create_bin_fileh]hdevice_create_bin_file}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/hhhjAhM\ ubj7)}(h6(struct device *dev, const struct bin_attribute *attr)h](j7)}(hstruct device *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()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jVsbc.device_create_bin_fileasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlubj()}(hdevh]hdev}(hjɎhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhubj7)}(h const struct bin_attribute *attrh](h)}(hj8h]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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގubh)}(hhh]j()}(h bin_attributeh]h bin_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_create_bin_fileasbuh1hhjގubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގubj7)}(hj7h]h*}(hjGhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjގubj()}(hattrh]hattr}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjގubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj/hhhjAhM\ ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj+hhhjAhM\ ubah}(h]j&ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjAhM\ hj(hhubjV)}(hhh]j[)}(h.create sysfs binary attribute file for device.h]h.create sysfs binary attribute file for device.}(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(hhhjAhM\ 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)}(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&]uh1jZhjԏhM] hjՏubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԏhM] hjubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hjh]h const struct bin_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[)}(h#device binary attribute descriptor.h]h#device binary 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&]uh1jhj hM_ hjubeh}(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](jM7)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjNhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMk ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj`hMk ubj")}(hdevice_remove_bin_fileh]j()}(hdevice_remove_bin_fileh]hdevice_remove_bin_file}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjNhhhj`hMk ubj7)}(h6(struct device *dev, const struct bin_attribute *attr)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jusbc.device_remove_bin_fileasbuh1hhjubj)}(h h]h }(hj͐hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjېhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h const struct bin_attribute *attrh](h)}(hj8h]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 bin_attributeh]h bin_attribute}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj<modnameN classnameNj7j7)}j7]jɐc.device_remove_bin_fileasbuh1hhjubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjfhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hattrh]hattr}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjNhhhj`hMk ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjJhhhj`hMk ubah}(h]jEah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj`hMk hjGhhubjV)}(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.chMk hjhhubah}(h]h ]h"]h$]h&]uh1jUhjGhhhj`hMk 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.chMo hjubj)}(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.chMl hjؑubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMl hjubah}(h]h ]h"]h$]h&]uh1jhjؑubeh}(h]h ]h"]h$]h&]uh1jhjhMl hjՑubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hjh]h const struct bin_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.chMn hjubj)}(hhh]j[)}(h#device binary attribute descriptor.h]h#device binary attribute descriptor.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMm hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMn hjՑubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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](jM7)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhM 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!hjmhhhjhM ubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetjΒmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_initializeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjmhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjhM ubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hjfhhubjV)}(hhh]j[)}(hinit device structure.h]hinit device structure.}(hj1hhhNhNubah}(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&]uh1jUhjfhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjIj{jIj|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)}(hjSh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjMubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjrh]hstruct device *dev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjlubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM hjiubah}(h]h ]h"]h$]h&]uh1jhjMubj[)}(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 hjMubj[)}(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}(hjݓhhhNhNubah}(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.chM hjMubj[)}(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}(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.chM hjMubj[)}(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.chM hjMubj[)}(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 }(hjAhhhNhNubj)}(h**dev**h]hdev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubh- directly once you have called this function.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjMubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj~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 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!hj~hhhjhM ubj7)}(h*(struct device *dev, const char *fmt, ...)h](j7)}(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&] refdomainjtreftypej7 reftargetjߔmodnameN classnameNj7j7)}j7]j7)}j7jsbc.dev_set_nameasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjM7)}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj-ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj7)}(hj7h]h*}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-ubj()}(hfmth]hfmt}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]j7)}(h...h]h...}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj~hhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjzhhhjhM ubah}(h]juah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hjwhhubjV)}(hhh]j[)}(hset a device nameh]hset a device name}(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&]uh1jUhjwhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjЕj{jЕj|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)}(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[)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h8``const char *fmt`` format string for the device's name h](j)}(h``const char *fmt``h]j)}(hj2h]hconst char *fmt}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(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}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhM hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hjkh]h...}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjԕubeh}(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](jM7)}(hinth]hint}(hjŖhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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_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!hjhhhjӖhMubj7)}(h(struct device *dev)h]j7)}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj"modnameN classnameNj7j7)}j7]j7)}j7jsb c.device_addasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjNhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjӖhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjӖhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjӖhMhjhhubjV)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjӖhMubeh}(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.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)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(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 }(hj&hhhNhNubj)}(h**dev**h]hdev}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubh 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.}(hj&hhhNhNubeh}(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 }(hjGhhhNhNubj)}(h**dev**h]hdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubhN have been dropped.) Allocate and register a fresh new struct device instead.}(hjGhhhNhNubeh}(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)}(hjjh]hNOTE}(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.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}(hjhhhNhNubah}(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.chM2hjubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](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&] refdomainjtreftypej7 reftargetjSmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_registerasbuh1hhj/ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj+ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(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.}(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)}(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)}(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)}(h7``struct device *dev`` pointer to the device structure 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[)}(hpointer to the device structureh]hpointer to the device structure}(hjhhhNhNubah}(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&]uh1jhjҙubj[)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjҙubj[)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjҙubj[)}(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().}(hjWhhhNhNubah}(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)}(hjhh]hNOTE}(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.chMhjҙubj[)}(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 }(hj~hhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.}(hj~hhhNhNubeh}(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](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}(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 }(hj͚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj̚hMubh)}(hhh]j()}(hdeviceh]hdevice}(hjޚhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjۚubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7 get_devicesb c.get_deviceasbuh1hhjhhhj̚hMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj̚hMubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhj̚hMubj")}(h get_deviceh]j()}(hjh]h get_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj̚hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j()}(hdeviceh]hdevice}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjYmodnameN classnameNj7j7)}j7]j c.get_deviceasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj5ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj1ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj̚hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj̚hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj̚hMhjhhubjV)}(hhh]j[)}(h%increment reference count for device.h]h%increment reference count for 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&]uh1jUhjhhhj̚hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjқj{jқj|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)}(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)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj֛ubj[)}(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.}(hjLhhhNhNubah}(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](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](jM7)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjwhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhM!ubj")}(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!hjwhhhjhM!ubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetj؜modnameN classnameNj7j7)}j7]j7)}j7jsb c.put_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjwhhhjhM!ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjshhhjhM!ubah}(h]jnah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM!hjphhubjV)}(hhh]j[)}(hdecrement reference count.h]hdecrement reference count.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM!hj8hhubah}(h]h ]h"]h$]h&]uh1jUhjphhhjhM!ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjSj{jSj|j}j~uh1hhhhj}\hNhNubj)}(h<**Parameters** ``struct device *dev`` device in question.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%hjWubj)}(hhh]j)}(h*``struct device *dev`` device in question.h](j)}(h``struct device *dev``h]j)}(hj|h]hstruct device *dev}(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.chM'hjvubj)}(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.chM"hjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(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](jM7)}(hvoidh]hvoid}(hj֝hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjҝ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_delh]j()}(h device_delh]h device_del}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjҝhhhjhM?ubj7)}(h(struct device *dev)h]j7)}(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}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj3modnameN classnameNj7j7)}j7]j7)}j7jsb c.device_delasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj_hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjҝhhhjhM?ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjΝhhhjhM?ubah}(h]jɝah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM?hj˝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.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 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)}(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.chMChjubj)}(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.chMBhjubj[)}(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.chMAhjubj[)}(h**NOTE**h]j)}(hj9h]hNOTE}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMGhjubj[)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMHhjubeh}(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](jM7)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjzhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhMubj")}(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!hjzhhhjhMubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetj۟modnameN classnameNj7j7)}j7]j7)}j7jsbc.device_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjzhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjvhhhjhMubah}(h]jqah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjshhubjV)}(hhh]j[)}(hunregister device from system.h]hunregister device from 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&]uh1jUhjshhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjVj{jVj|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)}(hj`h]h Parameters}(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.chMhjZubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjyubj)}(hhh]j[)}(hdevice going away.h]hdevice going away.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubj[)}(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.chMhjZubj[)}(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.}(hjРhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjZubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj")}(hdevice_for_each_childh]j()}(hdevice_for_each_childh]hdevice_for_each_child}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hMubj7)}(h5(struct device *parent, void *data, device_iter_t fn)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j()}(hdeviceh]hdevice}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj\modnameN classnameNj7j7)}j7]j7)}j7j"sbc.device_for_each_childasbuh1hhj8ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj8ubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj4ubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjʡhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdatah]hdata}(hjסhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj4ubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jvc.device_for_each_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj4ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMhjhhubjV)}(hhh]j[)}(hdevice child iterator.h]hdevice child iterator.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjaj{jaj|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)}(hjkh]h Parameters}(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.chMhjeubj)}(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&]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&]uh1jZhjآhMhj٢ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(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.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjeubj[)}(h**Description**h]j)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjeubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hjMhhhNhNubj)}(h **parent**h]hparent}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh’s child devices, and call }(hjMhhhNhNubj)}(h**fn**h]hfn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh for each, passing it }(hjMhhhNhNubj)}(h**data**h]hdata}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubh.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjeubj[)}(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.chMhjeubeh}(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](jM7)}(hinth]hint}(hjӣhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjϣ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_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!hjϣhhhjhM ubj7)}(h5(struct device *parent, void *data, device_iter_t fn)h](j7)}(hstruct device *parenth](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&] refdomainjtreftypej7 reftargetj0modnameN classnameNj7j7)}j7]j7)}j7jsbc.device_for_each_child_reverseasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hj\hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hparenth]hparent}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj~ubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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&] refdomainjtreftypej7 reftargetjɤmodnameN classnameNj7j7)}j7]jJc.device_for_each_child_reverseasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjϣhhhjhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjˣhhhjhM ubah}(h]jƣah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hjȣhhubjV)}(hhh]j[)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(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&]jyjtjzj5j{j5j|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}(hjAhhhNhNubah}(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.chMhj9ubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. 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.chM hjXubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshM hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM hjUubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjUubj)}(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}(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[)}(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&]uh1jhjhMhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubj[)}(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.chMhj9ubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hj!hhhNhNubj)}(h **parent**h]hparent}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh’s child devices, and call }(hj!hhhNhNubj)}(h**fn**h]hfn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubh for each, passing it }(hj!hhhNhNubj)}(h**data**h]hdata}(hjMhhhNhNubah}(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.chMhj9ubj[)}(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 }(hjfhhhNhNubj)}(h**fn**h]hfn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubhT each time. If it returns anything other than 0, we break out and return that value.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj9ubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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"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!hjhhhjhM*ubj7)}(hJ(struct device *parent, struct device *from, void *data, device_iter_t fn)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jʦsb$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj0hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hparenth]hparent}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjܦubj7)}(hstruct device *fromh](h)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubh)}(hhh]j()}(hdeviceh]hdevice}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjvmodnameN classnameNj7j7)}j7]j$c.device_for_each_child_reverse_fromasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjRubj()}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjRubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjܦubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjƧhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj§ubj)}(h h]h }(hjԧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj§ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj§ubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj§ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjܦubj7)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]j$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjܦubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM*ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM*ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM*hjhhubjV)}(hhh]j[)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(hjahhhNhNubah}(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&]jyjtjzjyj{jyj|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.chM.hj}ubj)}(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.chM+hjubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(h>``struct device *from`` optional starting point in child list h](j)}(h``struct device *from``h]j)}(hjۨh]hstruct device *from}(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%optional starting point in child listh]h%optional starting point in child list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjըubeh}(h]h ]h"]h$]h&]uh1jhjhM,hjubj)}(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.chM-hjubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(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)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjMh]hdevice_iter_t fn}(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.chM.hjGubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhM.hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM.hjubeh}(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.chM0hj}ubj[)}(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}(hjhhhNhNubah}(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}(hjܩhhhNhNubah}(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.chM/hj}ubj[)}(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}(hj hhhNhNubah}(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.chM3hj}ubeh}(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}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjQhMMubh)}(hhh]j()}(hdeviceh]hdevice}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjemodnameN classnameNj7j7)}j7]j7)}j7device_find_childsbc.device_find_childasbuh1hhj@hhhjQhMMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjQhMMubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj@hhhjQhMMubj")}(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!hj@hhhjQhMMubj7)}(h?(struct device *parent, const void *data, device_match_t match)h](j7)}(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}(hjܪhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj٪ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjުmodnameN classnameNj7j7)}j7]jc.device_find_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst void *datah](h)}(hj8h]hconst}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjM7)}(hvoidh]hvoid}(hjIhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj*ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj7)}(hj7h]h*}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj*ubj()}(hdatah]hdata}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_find_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmatchh]hmatch}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj@hhhjQhMMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj<hhhjQhMMubah}(h]j7ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjQhMMhj9hhubjV)}(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.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj9hhhjQhMMubeh}(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.chMQhjubj)}(hhh](j)}(h/``struct device *parent`` parent struct device 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.chMNhjubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:hMNhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMNhjubj)}(h4``const void *data`` Data to pass to match function 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&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMOhjXubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshMOhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMOhjubj)}(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.chMPhjubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubeh}(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.chMRhjubj[)}(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.chMQhjubj[)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMUhjubj[)}(h**NOTE**h]j)}(hjh]hNOTE}(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[)}(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.}(hj0hhhNhNubah}(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](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}(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 }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjlhMubh)}(hhh]j()}(hdeviceh]hdevice}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7__root_device_registersbc.__root_device_registerasbuh1hhj[hhhjlhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjlhMubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[hhhjlhMubj")}(h__root_device_registerh]j()}(hjh]h__root_device_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj[hhhjlhMubj7)}(h((const char *name, struct module *owner)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hj٭hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjխubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjխubjM7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjխubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjխubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjխubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjխubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjѭubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j()}(hmoduleh]hmodule}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjVmodnameN classnameNj7j7)}j7]jc.__root_device_registerasbuh1hhj2ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj2ubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjѭubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj[hhhjlhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjWhhhjlhMubah}(h]jRah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjlhMhjThhubjV)}(hhh]j[)}(h#allocate and register a root deviceh]h#allocate and register a root 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&]uh1jUhjThhhjlhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjϮj{jϮj|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)}(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 char *name`` root device name 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:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hroot device nameh]hroot device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(hN``struct module *owner`` owner module of the root device, usually THIS_MODULE h](j)}(h``struct module *owner``h]j)}(hj1h]hstruct module *owner}(hj3hhhNhNubah}(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[)}(h4owner module of the root device, usually THIS_MODULEh]h4owner module of the root device, usually THIS_MODULE}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubeh}(h]h ]h"]h$]h&]uh1jhjӮubj[)}(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:32: ./drivers/base/core.chMhjӮubj[)}(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.chMhjӮubj[)}(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.chMhjӮubj[)}(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.chMhjӮubj[)}(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 ](xrefjtc-typeeh"]h$]h&]uh1jhjɯubah}(h]h ]h"]h$]h&]refdocdriver-api/infrastructure refdomainjtreftypetype refexplicitrefwarnj7j7)}j7]sb reftargetdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhjӮubj[)}(h**Note**h]j)}(hjh]hNote}(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[)}(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.chMhjӮubeh}(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](jM7)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj<hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<hhhjNhM0ubj")}(hroot_device_unregisterh]j()}(hroot_device_unregisterh]hroot_device_unregister}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj<hhhjNhM0ubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jcsbc.root_device_unregisterasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj7)}(hj7h]h*}(hjɰhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjyubj()}(hdevh]hdev}(hjְhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjuubah}(h]h ]h"]h$]h&]j?j@uh1j7hj<hhhjNhM0ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj8hhhjNhM0ubah}(h]j3ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjNhM0hj5hhubjV)}(hhh]j[)}(h!unregister and free a root deviceh]h!unregister and free a root device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0hjhhubah}(h]h ]h"]h$]h&]uh1jUhj5hhhjNhM0ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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}(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.chM4hjubj)}(hhh]j)}(h)``struct device *dev`` device going away h](j)}(h``struct device *dev``h]j)}(hjAh]hstruct device *dev}(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.chM1hj;ubj)}(hhh]j[)}(hdevice going awayh]hdevice going away}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhM1hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM1hj8ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj|h]h Description}(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.chM3hjubj[)}(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.chM2hjubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrubj)}(h h]h }(hjϱhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjαhMrubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjݱubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7 device_createsbc.device_createasbuh1hhjhhhjαhMrubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjαhMrubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjαhMrubj")}(h device_createh]j()}(hjh]h device_create}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjαhMrubj7)}(hc(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j()}(hclassh]hclass}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjvmodnameN classnameNj7j7)}j7]jc.device_createasbuh1hhj7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj7ubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_createasbuh1hhj²ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj²ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj²ubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj²ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj;modnameN classnameNj7j7)}j7]jc.device_createasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj()}(hdevth]hdevt}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubj7)}(h void *drvdatah](jM7)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjzubj()}(hdrvdatah]hdrvdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjͳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hj۳hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubj7)}(h...h]j7)}(hjh]h...}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjαhMrubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjαhMrubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjαhMrhjhhubjV)}(hhh]j[)}(h,creates a device and registers it with sysfsh]h,creates a device and registers it with sysfs}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrhjChhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjαhMrubeh}(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 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)}(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:32: ./drivers/base/core.chMvhjbubj)}(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.chMshjubj)}(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&]uh1jZhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshj~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.chMthjubj)}(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&]uh1jZhjմhMthjִubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjմhMthj~ubj)}(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.chMuhjubj)}(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&]uh1jZhjhMuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMuhj~ubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hj2h]h void *drvdata}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMvhj,ubj)}(hhh]j[)}(h0the data to be added to the device for callbacksh]h0the data to be added to the device for callbacks}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMvhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMvhj~ubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjkh]hconst char *fmt}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMwhjeubj)}(hhh]j[)}(hstring for the device's nameh]hstring for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMwhj~ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj~ubeh}(h]h ]h"]h$]h&]uh1jhjbubj[)}(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.chKhjbubj[)}(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.chMxhjbubj[)}(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{hjbubj[)}(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 ](jׯjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj:hMhjbubeh}(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}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjahhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjrhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7device_create_with_groupssbc.device_create_with_groupsasbuh1hhjahhhjrhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjrhMubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjahhhjrhMubj")}(hdevice_create_with_groupsh]j()}(hjh]hdevice_create_with_groups}(hjĶhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjahhhjrhMubj7)}(h(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hj߶hhhNhNubah}(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()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_create_with_groupsasbuh1hhj۶ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۶ubj7)}(hj7h]h*}(hjDhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj۶ubj()}(hclassh]hclass}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj۶ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubj7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_create_with_groupsasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjfubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubj7)}(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&] refdomainjtreftypej7 reftargetj߷modnameN classnameNj7j7)}j7]jc.device_create_with_groupsasbuh1hhjַubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjַubj()}(hdevth]hdevt}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjַubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubj7)}(h void *drvdatah](jM7)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj>hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdrvdatah]hdrvdata}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubj7)}(h%const struct attribute_group **groupsh](h)}(hj8h]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()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_create_with_groupsasbuh1hhj`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj7)}(hj7h]h*}(hjɸhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`ubj7)}(hj7h]h*}(hjָhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`ubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj3hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hfmth]hfmt}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubj7)}(h...h]j7)}(hjh]h...}(hjYhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjUubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj׶ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjahhhjrhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj]hhhjrhMubah}(h]jXah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjrhMhjZhhubjV)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjZhhhjrhMubeh}(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.chMhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(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}(hjܹhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjعhMhjٹubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjعhMhjubj)}(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}(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>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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``dev_t devt`` the dev_t for the char device to be added h](j)}(h``dev_t devt``h]j)}(hj5h]h dev_t devt}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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 dev_t for the char device to be addedh]h)the dev_t for the char device to be added}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hjnh]h void *drvdata}(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[)}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]j[)}(h6NULL-terminated list of attribute groups to be createdh]h6NULL-terminated list of attribute groups to be created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]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[)}(hstring for the device's nameh]hstring for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjںubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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}(hj2hhhNhNubah}(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&]uh1jhjubj[)}(h**Description**h]j)}(hjTh]h Description}(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.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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(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.}(hjyhhhNhNubah}(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 }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](jׯjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhjubeh}(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](jM7)}(hvoidh]hvoid}(hjڻhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjֻhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֻhhhjhMubj")}(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!hjֻhhhjhMubj7)}(h'(const struct class *class, dev_t devt)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjMubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjRmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_destroyasbuh1hhjubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj~hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jlc.device_destroyasbuh1hhjubj)}(h h]h }(hjżhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjӼhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjֻhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjһhhhjhMubah}(h]jͻah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjϻhhubjV)}(hhh]j[)}(h6removes a device that was created with device_create()h]h6removes a device that was created with device_create()}(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** ``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)}(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)}(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)}(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.chMhj8ubj)}(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}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhj5ubj)}(hF``dev_t devt`` the dev_t of the device that was previously registered h](j)}(h``dev_t devt``h]j)}(hjwh]h dev_t devt}(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.chMhjqubj)}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhj5ubeh}(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[)}(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().}(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](hdevice_rename (C function)c.device_renamehNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj@modnameN classnameNj7j7)}j7]j c.device_moveasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(h new_parenth]h new_parent}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(henum dpm_order dpm_orderh](h)}(hjZh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h dpm_orderh]h dpm_order}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j c.device_moveasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(h dpm_orderh]h dpm_order}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjmhhhjhM6ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjhM6ubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM6hjfhhubjV)}(hhh]j[)}(hmoves a device to a new parenth]hmoves a device to a new parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM6hjhhubah}(h]h ]h"]h$]h&]uh1jUhjfhhhjhM6ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj}\hNhNubj)}(h**Parameters** ``struct device *dev`` the pointer to the struct device to be moved ``struct device *new_parent`` the new parent of the device (can be NULL) ``enum dpm_order dpm_order`` how to reorder the dpm_listh](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)}(hD``struct device *dev`` the pointer to the struct device to be moved h](j)}(h``struct device *dev``h]j)}(hjEh]hstruct device *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM7hj?ubj)}(hhh]j[)}(h,the pointer to the struct device to be movedh]h,the pointer to the struct device to be moved}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZhM7hj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhM7hj<ubj)}(hI``struct device *new_parent`` the new parent of the device (can be NULL) h](j)}(h``struct device *new_parent``h]j)}(hj~h]hstruct device *new_parent}(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.chM8hjxubj)}(hhh]j[)}(h*the new parent of the device (can be NULL)h]h*the new parent of the device (can be NULL)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjhM8hj<ubj)}(h8``enum dpm_order dpm_order`` how to reorder the dpm_listh](j)}(h``enum dpm_order dpm_order``h]j)}(hjh]henum dpm_order dpm_order}(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[)}(hhow to reorder the dpm_listh]hhow to reorder the dpm_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hj<ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_err_probe (C function)c.dev_err_probehNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hKint dev_err_probe (const struct device *dev, int err, const char *fmt, ...)h]h)}(hJint dev_err_probe(const struct device *dev, int err, const char *fmt, ...)h](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj 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")}(h dev_err_probeh]j()}(h dev_err_probeh]h dev_err_probe}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhMubj7)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7j4sbc.dev_err_probeasbuh1hhjJubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFubj7)}(hint errh](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(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@uh1j7hjFubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjM7)}(hcharh]hchar}(hj+hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjGhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hfmth]hfmt}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFubj7)}(h...h]j7)}(hjh]h...}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjiubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj hhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(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&]uh1jUhjhhhjhMubeh}(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.chMhj ubj)}(hhh]j[)}(herror value to testh]herror value to test}(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/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjIh]hconst char *fmt}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjCubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubj)}(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.chMhj|ubj)}(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&]uh1jhj|ubeh}(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.chM hjubj)}(h$return dev_err_probe(dev, err, ...);h]h$return dev_err_probe(dev, err, ...);}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(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}(hjhhhNhNubah}(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 }(hj0hhhNhNubj)}(h**err**h]herr}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh.}(hj0hhhNhNubeh}(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](jM7)}(hinth]hint}(hjqhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM)ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhM)ubj")}(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!hjmhhhjhM)ubj7)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j7)}(hconst struct device *devh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.dev_warn_probeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hj"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hint errh](jM7)}(hinth]hint}(hj;hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj()}(herrh]herr}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjM7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]j7)}(hjh]h...}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjmhhhjhM)ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjhM)ubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM)hjfhhubjV)}(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.chM)hjhhubah}(h]h ]h"]h$]h&]uh1jUhjfhhhjhM)ubeh}(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)}(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>``const struct device *dev`` the pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hj7h]hconst struct device *dev}(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[)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhM*hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM*hj.ubj)}(h ``int err`` error value to test h](j)}(h ``int err``h]j)}(hjph]hint err}(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[)}(herror value to testh]herror value to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hj.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.chM,hjubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM,hj.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.chM-hjubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(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:32: ./drivers/base/core.chM/hjubj[)}(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:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM.hjubj)}(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;}hjBsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM5hjubj[)}(hwith::h]hwith:}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM;hjubj)}(h%return dev_warn_probe(dev, err, ...);h]h%return dev_warn_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.chM=hjubj[)}(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 }(hjohhhNhNubj)}(h**err**h]herr}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubhX 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.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM?hjubj[)}(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.chMFhjubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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")}(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!hjhhhjhM^ubj7)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j7)}(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}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj.modnameN classnameNj7j7)}j7]j7)}j7jsbc.set_primary_fwnodeasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjZhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hdevh]hdev}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct fwnode_handle *fwnodeh](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 fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jHc.set_primary_fwnodeasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj|ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM^ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM^hjhhubjV)}(hhh]j[)}(h3Change the primary firmware node of a given device.h]h3Change the primary 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.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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}(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.chMbhjubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. h](j)}(h``struct device *dev``h]j)}(hjBh]hstruct device *dev}(hjDhhhNhNubah}(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 to handle.h]hDevice to handle.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjWhM_hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM_hj9ubj)}(hJ``struct fwnode_handle *fwnode`` New primary 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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM`hjuubj)}(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&]uh1jZhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhM`hj9ubeh}(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.chMbhjubj[)}(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.chMahjubj)}(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.chMghjubj)}(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.chMehj ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hprimary --> NULLh]j[)}(hj'h]hprimary --> NULL}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMfhj%ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hsecondary --> -ENODEVh]j[)}(hj?h]hsecondary --> -ENODEV}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMghj=ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(hNULLh]j[)}(hjVh]hNULL}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhhjTubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]bullet-uh1jhjhMehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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_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!hjhhhjhMubj7)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.set_secondary_fwnodeasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj/hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjumodnameN classnameNj7j7)}j7]jc.set_secondary_fwnodeasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjQubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(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.chMhjubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. 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 to handle.h]hDevice to handle.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(hL``struct fwnode_handle *fwnode`` New secondary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjPh]hstruct fwnode_handle *fwnode}(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[)}(h*New secondary firmware node of the device.h]h*New secondary firmware node of the device.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(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[)}(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.chMhjubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/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_remove_of_nodeh]j()}(hdevice_remove_of_nodeh]hdevice_remove_of_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j()}(hdeviceh]hdevice}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjQmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_remove_of_nodeasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj7)}(hj7h]h*}(hj}hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj)ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(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.chMhjubj)}(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.chMhjubj)}(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.chMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(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](jM7)}(hinth]hint}(hjOhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjKhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj]hMubj")}(hdevice_add_of_nodeh]j()}(hdevice_add_of_nodeh]hdevice_add_of_node}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjKhhhj]hMubj7)}(h1(struct device *dev, struct device_node *of_node)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jrsbc.device_add_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device_node *of_nodeh](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_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.device_add_of_nodeasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjHhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hof_nodeh]hof_node}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjKhhhj]hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjGhhhj]hMubah}(h]jBah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj]hMhjDhhubjV)}(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.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jUhjDhhhj]hMubeh}(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.chMhjubj)}(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.chMhjubj)}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]j[)}(hof_node to addh]hof_node to add}(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 **Return**h]j)}(hj4h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(h&0 on success or error code on failure.h]h&0 on success or error code on failure.}(hjJhhhNhNubah}(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(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](jM7)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjuhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubj")}(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!hjuhhhjhMubj7)}(h/(struct device *dev, const struct device *dev2)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_set_of_node_from_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device *dev2h](h)}(hj8h]hconst}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j()}(hdeviceh]hdevice}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjcmodnameN classnameNj7j7)}j7]jc.device_set_of_node_from_devasbuh1hhj$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$ubj()}(hdev2h]hdev2}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjuhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjhMubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjnhhubjV)}(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&]uh1jUhjnhhhjhMubeh}(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.chMhjubj)}(hhh]j[)}(h*device whose device-tree node is being seth]h*device whose device-tree node is being set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hL``const struct device *dev2`` device whose device-tree node is being reused h](j)}(h``const struct device *dev2``h]j)}(hj>h]hconst struct device *dev2}(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.chMhj8ubj)}(hhh]j[)}(h-device whose device-tree node is being reusedh]h-device whose device-tree node is being reused}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjShMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7get_dev_from_fwnodesbc.get_dev_from_fwnodeasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhMubj")}(hget_dev_from_fwnodeh]j()}(hjh]hget_dev_from_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct fwnode_handle *fwnode)h]j7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjXmodnameN classnameNj7j7)}j7]jc.get_dev_from_fwnodeasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj4ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(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)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(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.}(hjLhhhNhNubah}(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 }(hj[hhhNhNubj)}(h*not*h]hnot}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh4 have a reference count of the struct device itself.}(hj[hhhNhNubeh}(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.}(hj|hhhNhNubah}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh`/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!hjhhhjhKubj7)}(h(struct syscore *syscore)h]j7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.register_syscoreasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hsyscoreh]hsyscore}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjwhhubah}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hKubj")}(hunregister_syscoreh]j()}(hunregister_syscoreh]hunregister_syscore}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj#hKubj7)}(h(struct syscore *syscore)h]j7)}(hstruct syscore *syscoreh](h)}(hjh]hstruct}(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j()}(hsyscoreh]hsyscore}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjrmodnameN classnameNj7j7)}j7]j7)}j7j8sbc.unregister_syscoreasbuh1hhjNubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNubj()}(hsyscoreh]hsyscore}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjJubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj#hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj#hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj#hKhj hhubjV)}(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&]uh1jUhj hhhj#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)}(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.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.chKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hK$hj ubah}(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](jM7)}(hinth]hint}(hjphhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjlhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj~hK+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!hjlhhhj~hK+ubj7)}(h(void)h]j7)}(hvoidh]jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjlhhhj~hK+ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhhj~hK+ubah}(h]jcah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~hK+hjehhubjV)}(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&]uh1jUhjehhhj~hK+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)}(hjh]hvoid}(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 no argumentsh]h no arguments}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(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.}(hjihhhNhNubah}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh`/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!hjhhhjhKYubj7)}(h(void)h]j7)}(hvoidh]jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKYubeh}(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.}(hjhhhNhNubah}(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&]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)}(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:35: ./drivers/base/syscore.chK]hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj@h]hvoid}(hjBhhhNhNubah}(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.chKhj:ubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUhKhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKZhjubeh}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7class_find_device_by_namesbc.class_find_device_by_nameasbuh1hhjhhhjhKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKcubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKcubj")}(hclass_find_device_by_nameh]j()}(hjh]hclass_find_device_by_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKcubj7)}(h-(const struct class *class, const char *name)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j()}(hclassh]hclass}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjumodnameN classnameNj7j7)}j7]jc.class_find_device_by_nameasbuh1hhj6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj6ubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj2ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hnameh]hname}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj2ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKcubeh}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKchj0hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKcubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjKj{jKj|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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKghjOubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjth]hconst struct class *class}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKehjnubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhKehjkubj)}(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&]uh1jhjhKghjkubeh}(h]h ]h"]h$]h&]uh1jhjOubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKoubh)}(hhh]j()}(hdeviceh]hdevice}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj#ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj(modnameN classnameNj7j7)}j7]j7)}j7class_find_device_by_of_nodesbc.class_find_device_by_of_nodeasbuh1hhjhhhjhKoubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKoubj7)}(hj7h]h*}(hjUhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKoubj")}(hclass_find_device_by_of_nodeh]j()}(hjDh]hclass_find_device_by_of_node}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKoubj7)}(h9(const struct class *class, const struct device_node *np)h](j7)}(hconst struct class *classh](h)}(hj8h]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()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jBc.class_find_device_by_of_nodeasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj}ubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjyubj7)}(hconst struct device_node *nph](h)}(hj8h]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()}(h device_nodeh]h device_node}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjGmodnameN classnameNj7j7)}j7]jBc.class_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hnph]hnp}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjyubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKoubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKoubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKohjhhubjV)}(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&]uh1jUhjhhhjhKoubeh}(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&]uh1jZhjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(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}(hj$hhhNhNubah}(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.hhKshjubj)}(hhh]j[)}(hof_node of the device to match.h]hof_node of the device to match.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKrhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hKshjubeh}(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}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhf/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&]uh1jhjxhhhjhK{ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7class_find_device_by_fwnodesbc.class_find_device_by_fwnodeasbuh1hhjxhhhjhK{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhK{ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjxhhhjhK{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!hjxhhhjhK{ubj7)}(h?(const struct class *class, const struct fwnode_handle *fwnode)h](j7)}(hconst struct class *classh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj1modnameN classnameNj7j7)}j7]jc.class_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h"const struct fwnode_handle *fwnodeh](h)}(hj8h]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 fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_find_device_by_fwnodeasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj}ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjxhhhjhK{ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjthhhjhK{ubah}(h]joah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK{hjqhhubjV)}(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&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK{hjhhubah}(h]h ]h"]h$]h&]uh1jUhjqhhhjhK{ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj5j{j5j|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)}(hj?h]h Parameters}(hjAhhhNhNubah}(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.hhKhj9ubj)}(hhh](j)}(h)``const struct class *class`` class type 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&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK}hjXubj)}(hhh]j[)}(h class typeh]h class type}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshK}hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshK}hjUubj)}(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&]uh1jhjhKhjUubeh}(h]h ]h"]h$]h&]uh1jhj9ubeh}(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 }(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7class_find_device_by_devtsbc.class_find_device_by_devtasbuh1hhjhhhjhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj7)}(hj7h]h*}(hj?hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKubj")}(hclass_find_device_by_devth]j()}(hj.h]hclass_find_device_by_devt}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h'(const struct class *class, dev_t devt)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j,c.class_find_device_by_devtasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjgubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j,c.class_find_device_by_devtasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjLhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjgj{jgj|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)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjkubj)}(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&]uh1jhjkubeh}(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&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hKubh)}(hhh]j()}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjDmodnameN classnameNj7j7)}j7]j7)}j7class_find_device_by_acpi_devsbc.class_find_device_by_acpi_devasbuh1hhjhhhj0hKubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj0hKubj7)}(hj7h]h*}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhj0hKubj")}(hclass_find_device_by_acpi_devh]j()}(hj`h]hclass_find_device_by_acpi_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj0hKubj7)}(h;(const struct class *class, const struct acpi_device *adev)h](j7)}(hconst struct class *classh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j^c.class_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct acpi_device *adevh](h)}(hj8h]hconst}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hjh]hstruct}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjcmodnameN classnameNj7j7)}j7]j^c.class_find_device_by_acpi_devasbuh1hhj$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$ubj()}(hadevh]hadev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj0hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj0hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj0hKhjhhubjV)}(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&]uh1jUhjhhhj0hKubeh}(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.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)}(hB``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hj>h]hconst struct acpi_device *adev}(hj@hhhNhNubah}(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.hhKhj8ubj)}(hhh]j[)}(hACPI_COMPANION device to match.h]hACPI_COMPANION device to match.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKhjubeh}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7 class_createsbc.class_createasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKubj")}(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!hjhhhjhKubj7)}(h(const char *name)h]j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hj-hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjIhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hnameh]hname}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(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.chKhj}hhubah}(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}(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[)}(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)}(hj+h]h struct class}(hj-hhhNhNubah}(h]h ](jׯjtc-typeeh"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjclassuh1hh^/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&]uh1jZhjHhMhjubj[)}(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().}(hjShhhNhNubah}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj~hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhM%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!hj~hhhjhM%ubj7)}(h(const struct class *cls)h]j7)}(hconst struct class *clsh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.class_destroyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj&hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclsh]hcls}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj~hhhjhM%ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjzhhhjhM%ubah}(h]juah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM%hjwhhubjV)}(hhh]j[)}(h!destroys a struct class structureh]h!destroys a struct class structure}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%hjZhhubah}(h]h ]h"]h$]h&]uh1jUhjwhhhjhM%ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjuj{juj|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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM)hjyubj)}(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&]uh1jhjyubj[)}(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(hjyubj[)}(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'hjyubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hM5ubj")}(hclass_dev_iter_inith]j()}(hclass_dev_iter_inith]hclass_dev_iter_init}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj,hM5ubj7)}(ht(struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h](j7)}(hstruct class_dev_iter *iterh](h)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j()}(hclass_dev_iterh]hclass_dev_iter}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj{modnameN classnameNj7j7)}j7]j7)}j7jAsbc.class_dev_iter_initasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjWubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubj7)}(hconst struct class *classh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj2hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubj7)}(hconst struct device *starth](h)}(hj8h]hconst}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_dev_iter_initasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjTubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubj7)}(hconst struct device_type *typeh](h)}(hj8h]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_typeh]h device_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjHhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(htypeh]htype}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj,hM5ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj,hM5ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj,hM5hjhhubjV)}(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.chM5hj|hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj,hM5ubeh}(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)}(hj2h]hconst struct device *start}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM8hj,ubj)}(hhh]j[)}(h*the device to start iterating from, if anyh]h*the device to start iterating from, if any}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhM8hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM8hjubj)}(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)}(hjkh]hconst struct device_type *type}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjeubj)}(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&]uh1jhjeubeh}(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&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hMVubh)}(hhh]j()}(hdeviceh]hdevice}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjBmodnameN classnameNj7j7)}j7]j7)}j7class_dev_iter_nextsbc.class_dev_iter_nextasbuh1hhjhhhj.hMVubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hMVubj7)}(hj7h]h*}(hjohhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhj.hMVubj")}(hclass_dev_iter_nexth]j()}(hj^h]hclass_dev_iter_next}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj.hMVubj7)}(h(struct class_dev_iter *iter)h]j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j\c.class_dev_iter_nextasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj.hMVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj.hMVubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj.hMVhjhhubjV)}(hhh]j[)}(hiterate to the next deviceh]hiterate to the next device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj.hMVubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj4j{j4j|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)}(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:41: ./drivers/base/class.chMZhj8ubj)}(hhh]j)}(h:``struct class_dev_iter *iter`` class iterator to proceed 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.chMWhjWubj)}(hhh]j[)}(hclass iterator to proceedh]hclass iterator to proceed}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhMWhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMWhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubj[)}(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.chMYhj8ubj[)}(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.chMXhj8ubj[)}(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[hj8ubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMuubj")}(hclass_dev_iter_exith]j()}(hclass_dev_iter_exith]hclass_dev_iter_exit}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hMuubj7)}(h(struct class_dev_iter *iter)h]j7)}(hstruct class_dev_iter *iterh](h)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j()}(hclass_dev_iterh]hclass_dev_iter}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj[modnameN classnameNj7j7)}j7]j7)}j7j!sbc.class_dev_iter_exitasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj7ubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hMuubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hMuubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMuhjhhubjV)}(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&]uh1jUhjhhhj hMuubeh}(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)}(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.chMvhjubj)}(hhh]j[)}(hclass iterator to finishh]hclass iterator to finish}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(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.}(hjPhhhNhNubah}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj{hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhMubj")}(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!hj{hhhjhMubj7)}(hU(const struct class *class, const struct device *start, void *data, device_iter_t fn)h](j7)}(hconst struct class *classh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.class_for_each_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device *starth](h)}(hj8h]hconst}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_for_each_deviceasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjEubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_for_each_deviceasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj{hhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjwhhhjhMubah}(h]jrah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjthhubjV)}(hhh]j[)}(hdevice iteratorh]hdevice iterator}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jUhjthhhjhMubeh}(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&]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:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hdata for the callbackh]hdata for the callback}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjUubj)}(hhh]j[)}(h%function to be called for each deviceh]h%function to be called for each device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(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}(hj hhhNhNubah}(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}(hj(hhhNhNubah}(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](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}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjnhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7class_find_devicesbc.class_find_deviceasbuh1hhj]hhhjnhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjnhMubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]hhhjnhMubj")}(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!hj]hhhjnhMubj7)}(h_(const struct class *class, const struct device *start, const void *data, device_match_t match)h](j7)}(hconst struct class *classh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_find_deviceasbuh1hhjubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj@hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device *starth](h)}(hj8h]hconst}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.class_find_deviceasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjbubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj(hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdatah]hdata}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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&] refdomainjtreftypej7 reftargetjSmodnameN classnameNj7j7)}j7]jc.class_find_deviceasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj()}(hmatchh]hmatch}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj]hhhjnhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjYhhhjnhMubah}(h]jTah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjnhMhjVhhubjV)}(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&]uh1jUhjVhhhjnhMubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(h1``const void *data`` data for the 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:41: ./drivers/base/class.chMhjTubj)}(hhh]j[)}(hdata for the match functionh]hdata for the match function}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubj)}(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.}(hjhhhNhNubah}(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}(hj'hhhNhNubah}(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&]j?j@uh1j7hjhhhjhMMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMMhjhhubjV)}(hhh]j[)}(h unregister a compatibility classh]h unregister a compatibility class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj}\hNhNubj)}(hF**Parameters** ``struct class_compat *cls`` the class to unregisterh](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.chMQhjubj)}(hhh]j)}(h4``struct class_compat *cls`` the class to unregisterh](j)}(h``struct class_compat *cls``h]j)}(hj h]hstruct class_compat *cls}(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.chMShjubj)}(hhh]j[)}(hthe class to unregisterh]hthe class to unregister}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMNhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%class_compat_create_link (C function)c.class_compat_create_linkhNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hKint class_compat_create_link (struct class_compat *cls, struct device *dev)h]h)}(hJint class_compat_create_link(struct class_compat *cls, struct device *dev)h](jM7)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj`hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMXubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjrhMXubj")}(hclass_compat_create_linkh]j()}(hclass_compat_create_linkh]hclass_compat_create_link}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhjrhMXubj7)}(h.(struct class_compat *cls, struct device *dev)h](j7)}(hstruct class_compat *clsh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h class_compath]h class_compat}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.class_compat_create_linkasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclsh]hcls}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj3modnameN classnameNj7j7)}j7]jc.class_compat_create_linkasbuh1hhjubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj`hhhjrhMXubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj\hhhjrhMXubah}(h]jWah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjrhMXhjYhhubjV)}(hhh]j[)}(h8create a compatibility class device link to a bus deviceh]h8create 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.chMXhjhhubah}(h]h ]h"]h$]h&]uh1jUhjYhhhjrhMXubeh}(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.chM\hjubj)}(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.chMZhjubj)}(hhh]j[)}(hthe compatibility classh]hthe compatibility class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(h,``struct device *dev`` the target bus deviceh](j)}(h``struct device *dev``h]j)}(hjh]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:41: ./drivers/base/class.chM\hjubj)}(hhh]j[)}(hthe target bus deviceh]hthe target bus device}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM[hj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hM\hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%class_compat_remove_link (C function)c.class_compat_remove_linkhNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hLvoid class_compat_remove_link (struct class_compat *cls, struct device *dev)h]h)}(hKvoid class_compat_remove_link(struct class_compat *cls, struct device *dev)h](jM7)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjdhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMdubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhMdubj")}(hclass_compat_remove_linkh]j()}(hclass_compat_remove_linkh]hclass_compat_remove_link}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjdhhhjvhMdubj7)}(h.(struct class_compat *cls, struct device *dev)h](j7)}(hstruct class_compat *clsh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h class_compath]h class_compat}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.class_compat_remove_linkasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclsh]hcls}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj7modnameN classnameNj7j7)}j7]jc.class_compat_remove_linkasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjdhhhjvhMdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj`hhhjvhMdubah}(h]j[ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjvhMdhj]hhubjV)}(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&]uh1jUhj]hhhjvhMdubeh}(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}(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.chMhhj ubj)}(hhh]j[)}(hthe target bus deviceh]hthe target bus device}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMghj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhhjubeh}(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](jM7)}(hj9h]hbool}(hjlhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMpubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjyhMpubj")}(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!hjhhhhjyhMpubj7)}(h(const struct class *class)h]j7)}(hconst struct class *classh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.class_is_registeredasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhhjyhMpubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjdhhhjyhMpubah}(h]j_ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjyhMphjahhubjV)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMphjChhubah}(h]h ]h"]h$]h&]uh1jUhjahhhjyhMpubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj^j{j^j|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)}(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:41: ./drivers/base/class.chMthjbubj)}(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&]uh1jhjhMrhj~ubah}(h]h ]h"]h$]h&]uh1jhjbubj[)}(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.chMthjbubj[)}(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.chMshjbubj[)}(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.chMxhjbubeh}(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}(hjhhhNhNubah}(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 }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj$hKubj")}(h faux_deviceh]j()}(hjh]h faux_device}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj$hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj$hKubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$hKhj hhubjV)}(hhh]j[)}(ha "faux" deviceh]ha “faux” device}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjVhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj$hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjqj{jqj|j}j~uh1hhhhj}\hj hNubj)}(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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh:}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjuubj)}(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.hhKhjuubj[)}(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.hhKhjuubj)}(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&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhj hNubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(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.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.}(hjhhhNhNubah}(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}\hhhj hNubh)}(hhh](h)}(hfaux_device_opsh]h)}(hstruct faux_device_opsh](h)}(hjh]hstruct}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThKubj")}(hfaux_device_opsh]j()}(hjAh]hfaux_device_ops}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjThKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj?hhhjThKubah}(h]j:ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjThKhj<hhubjV)}(hhh]j[)}(h+a set of callbacks for a struct faux_deviceh]h+a set of callbacks for a struct faux_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK#hjhhubah}(h]h ]h"]h$]h&]uh1jUhj<hhhjThKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj}\hj hNubj)}(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}(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.hhK'hjubj)}(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); };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hjubj[)}(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.hhK.hjubj)}(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)}(hjh]hprobe}(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.hhK)hjubj)}(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.}(hjhhhNhNubah}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK)hjubj)}(h?``remove`` called when a faux device is removed from the systemh](j)}(h ``remove``h]j)}(hj0h]hremove}(hj2hhhNhNubah}(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[)}(h4called when a faux device is removed from the systemh]h4called when a faux device is removed from the system}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK*hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhK)hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhj hNubj[)}(h**Description**h]j)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(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 }(hjhhhNhNubj)}(h **probe**h]hprobe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **remove**h]hremove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* are optional, if not needed, set to NULL.}(hjhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKbubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7faux_device_create_with_groupssb c.faux_device_create_with_groupsasbuh1hhjhhhjhKbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKbubj7)}(hj7h]h*}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKbubj")}(hfaux_device_create_with_groupsh]j()}(hjh]hfaux_device_create_with_groups}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKbubj7)}(hx(const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjM7)}(hcharh]hchar}(hjjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjKubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j c.faux_device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(h&const struct faux_device_ops *faux_opsh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hfaux_device_opsh]hfaux_device_ops}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjRubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjWmodnameN classnameNj7j7)}j7]j c.faux_device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hfaux_opsh]hfaux_ops}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(h%const struct attribute_group **groupsh](h)}(hj8h]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()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j c.faux_device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hgroupsh]hgroups}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKbubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKbhjhhubjV)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKbhjMhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhj{jhj|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)}(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:47: ./drivers/base/faux.chKfhjlubj)}(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)}(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:47: ./drivers/base/faux.chKfhjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubj)}(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.chKihjubj)}(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.chKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKihjubj)}(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)}(hj h]h&const struct faux_device_ops *faux_ops}(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.chKkhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKkhjubj)}(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)}(hj? h]h%const struct attribute_group **groups}(hjA 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.chKmhj9 ubj)}(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.}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKlhjU ubah}(h]h ]h"]h$]h&]uh1jhj9 ubeh}(h]h ]h"]h$]h&]uh1jhjT hKmhjubeh}(h]h ]h"]h$]h&]uh1jhjlubj[)}(h**Description**h]j)}(hj{ h]h Description}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKohjlubj[)}(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}(hj hhhNhNubah}(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.chKnhjlubj[)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKshjlubj[)}(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:47: ./drivers/base/faux.chKyhjlubj)}(hhh](j )}(h2NULL if an error happened with creating the deviceh]j[)}(hj h]h2NULL if an error happened with creating the device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKzhj ubah}(h]h ]h"]h$]h&]uh1j hj ubj )}(hCpointer to a valid struct faux_device that is registered with sysfsh]j[)}(hj h]hCpointer to a valid struct faux_device that is registered with sysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chK{hj ubah}(h]h ]h"]h$]h&]uh1j hj ubeh}(h]h ]h"]h$]h&]jrj7uh1jhj hKzhjlubeh}(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}(hj2 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 }(hj@ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj. hhhj? hKubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hjQ hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjN ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjS modnameN classnameNj7j7)}j7]j7)}j7faux_device_createsbc.faux_device_createasbuh1hhj. hhhj? hKubj)}(h h]h }(hjr hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj. hhhj? hKubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj. hhhj? hKubj")}(hfaux_device_createh]j()}(hjo h]hfaux_device_create}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj. hhhj? hKubj7)}(hQ(const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjM7)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hnameh]hname}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(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&] refdomainjtreftypej7 reftargetj) modnameN classnameNj7j7)}j7]jm c.faux_device_createasbuh1hhj ubj)}(h h]h }(hjE hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjS hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hparenth]hparent}(hj` hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(h&const struct faux_device_ops *faux_opsh](h)}(hj8h]hconst}(hjy hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhju ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju ubh)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhju ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju ubh)}(hhh]j()}(hfaux_device_opsh]hfaux_device_ops}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]jm c.faux_device_createasbuh1hhju ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju ubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hju ubj()}(hfaux_opsh]hfaux_ops}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hju ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj. hhhj? hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj* hhhj? hKubah}(h]j% ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj? hKhj' hhubjV)}(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.chKhj hhubah}(h]h ]h"]h$]h&]uh1jUhj' hhhj? hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj- j{j- 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. **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)}(hj7 h]h Parameters}(hj9 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5 ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj1 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)}(hjV h]hconst char *name}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjP 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.}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjl ubah}(h]h ]h"]h$]h&]uh1jhjP ubeh}(h]h ]h"]h$]h&]uh1jhjk hKhjM 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.chKhj 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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjM 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)}(hj h]h&const struct faux_device_ops *faux_ops}(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.chKhj 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.chKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjM ubeh}(h]h ]h"]h$]h&]uh1jhj1 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:47: ./drivers/base/faux.chKhj1 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}(hj$ hhhNhNubah}(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.chKhj1 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.}(hj= hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj1 ubj[)}(h **Return**h]j)}(hjN h]hReturn}(hjP hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj1 ubj)}(hhh](j )}(h2NULL if an error happened with creating the deviceh]j[)}(hji h]h2NULL if an error happened with creating the device}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjg ubah}(h]h ]h"]h$]h&]uh1j hjd ubj )}(hCpointer to a valid struct faux_device that is registered with sysfsh]j[)}(hj h]hCpointer to a valid struct faux_device that is registered with sysfs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubah}(h]h ]h"]h$]h&]uh1j hjd ubeh}(h]h ]h"]h$]h&]jrj7uh1jhjx hKhj1 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](jM7)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubj")}(hfaux_device_destroyh]j()}(hfaux_device_destroyh]hfaux_device_destroy}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhj hKubj7)}(h(struct faux_device *faux_dev)h]j7)}(hstruct faux_device *faux_devh](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7j sbc.faux_device_destroyasbuh1hhj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjFhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hfaux_devh]hfaux_dev}(hjShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj hhhj hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hKubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhj hhubjV)}(hhh]j[)}(hdestroy a faux deviceh]hdestroy a faux device}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjzhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj hKubeh}(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}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhjKhKubj")}(hnode_access_nodesh]j()}(hj8h]hnode_access_nodes}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj:hhhjKhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj6hhhjKhKubah}(h]j1ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjKhKhj3hhubjV)}(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.chKJhj}hhubah}(h]h ]h"]h$]h&]uh1jUhj3hhhjKhKubeh}(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)}(hj&h]h list_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: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}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hKNhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKNhjubj)}(h!``access`` The access class rank h](j)}(h ``access``h]j)}(hj_h]haccess}(hjahhhNhNubah}(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.chKOhjYubj)}(hhh]j[)}(hThe access class rankh]hThe access class rank}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthKOhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKOhjubj)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKVubj")}(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!hjhhhjhKVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKVubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKVhjhhubjV)}(hhh]j[)}(h(Internal tracking for memory node cachesh]h(Internal tracking for memory node caches}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM"hj1hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKVubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjLj{jLj|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}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh:}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM&hjPubj)}(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; };}hjqsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM(hjPubj[)}(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.hjPubj)}(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}(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%hj ubj)}(hhh]j[)}(hAttributes for this cache levelh]hAttributes for this cache level}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM&hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hM%hjubeh}(h]h ]h"]h$]h&]uh1jhjPubeh}(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](jM7)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjihhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjihhhj{hMlubj")}(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!hjihhhj{hMlubj7)}(h8(unsigned int nid, struct node_cache_attrs *cache_attrs)h](j7)}(hunsigned int nidh](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(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@uh1j7hjubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.node_add_cacheasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjGhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(h cache_attrsh]h cache_attrs}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjihhhj{hMlubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjehhhj{hMlubah}(h]j`ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj{hMlhjbhhubjV)}(hhh]j[)}(h$add cache attribute to a memory nodeh]h$add cache attribute to a memory node}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlhj{hhubah}(h]h ]h"]h$]h&]uh1jUhjbhhhj{hMlubeh}(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&]uh1jhj hMohjubeh}(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](jM7)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjNhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNhhhj`hMubj")}(h'register_memory_node_under_compute_nodeh]j()}(h'register_memory_node_under_compute_nodeh]h'register_memory_node_under_compute_node}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjNhhhj`hMubj7)}(hQ(unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h](j7)}(hunsigned int mem_nidh](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(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@uh1j7hjubj7)}(hunsigned int cpu_nidh](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hcpu_nidh]hcpu_nid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h#enum access_coordinate_class accessh](h)}(hjZh]henum}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j()}(haccess_coordinate_classh]haccess_coordinate_class}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjQmodnameN classnameNj7j7)}j7]j7)}j7jusb)c.register_memory_node_under_compute_nodeasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj()}(haccessh]haccess}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjNhhhj`hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjJhhhj`hMubah}(h]jEah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj`hMhjGhhubjV)}(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&]uh1jUhjGhhhj`hMubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh]j[)}(hCpu node numberh]hCpu node number}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubj)}(hA``enum access_coordinate_class access`` Access class to register h](j)}(h'``enum access_coordinate_class access``h]j)}(hjZh]h#enum access_coordinate_class access}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjTubj)}(hhh]j[)}(hAccess class to registerh]hAccess class to register}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjubeh}(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.chMhjubj)}(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&]uh1jhjhMhjubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMjubj")}(h register_nodeh]j()}(h register_nodeh]h register_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMjubj7)}(h (int nid)h]j7)}(hint nidh](jM7)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hnidh]hnid}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMjubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMjubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMjhjhhubjV)}(hhh]j[)}(h(Initialize and register the node device.h]h(Initialize and register the node device.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMjhjdhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMjubeh}(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.chMnhjubj)}(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.chMkhjubj)}(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&]uh1jZhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubah}(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.chMmhjubj[)}(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.chMmhjubeh}(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](jM7)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj$hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj6hMubj")}(hunregister_nodeh]j()}(hunregister_nodeh]hunregister_node}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$hhhj6hMubj7)}(h (int nid)h]j7)}(hint nidh](jM7)}(hinth]hint}(hjehhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj()}(hnidh]hnid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj$hhhj6hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj6hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj6hMhjhhubjV)}(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&]uh1jUhjhhhj6hMubeh}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(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: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 }(hj=hhhNhNubj)}(h**nid**h]hnid}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubhP. All the devices on the node must be unregistered before calling this function.}(hj=hhhNhNubeh}(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)}(hhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK&hj;hhubah}(h]h ]h"]h$]h&]uh1jUhjshhhjhK&ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjVj{jVj|j}j~uh1hhhhj}\hNhNubj)}(hX**Parameters** ``struct transport_class *tclass`` a pointer to the transport class structure to be initialised **Description** The transport class contains an embedded class which is used to identify it. The caller should initialise this structure with zeros and then generic class must have been initialised with the actual transport class unique name. There's a macro DECLARE_TRANSPORT_CLASS() to do this (declared classes still must be registered). Returns 0 on success or error on failure.h](j[)}(h**Parameters**h]j)}(hj`h]h Parameters}(hjbhhhNhNubah}(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.chK*hjZubj)}(hhh]j)}(h```struct transport_class *tclass`` a pointer to the transport class structure to be initialised h](j)}(h"``struct transport_class *tclass``h]j)}(hjh]hstruct transport_class *tclass}(hjhhhNhNubah}(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.chK(hjyubj)}(hhh]j[)}(hhjubj)}(hhh]j)}(hE``struct transport_class *tclass`` The transport class to unregister h](j)}(h"``struct transport_class *tclass``h]j)}(hjh]hstruct transport_class *tclass}(hjhhhNhNubah}(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.chKhjubj[)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK=hjubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKPubj")}(hanon_transport_class_registerh]j()}(hanon_transport_class_registerh]hanon_transport_class_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKPubj7)}(h"(struct anon_transport_class *atc)h]j7)}(h struct anon_transport_class *atch](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.anon_transport_class_registerasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hatch]hatc}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKPubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKPhjhhubjV)}(hhh]j[)}(hregister an anonymous classh]hregister an anonymous class}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPhjLhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjgj{jgj|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)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjkubj)}(hhh]j)}(hJ``struct anon_transport_class *atc`` The anon transport class to register h](j)}(h$``struct anon_transport_class *atc``h]j)}(hjh]h struct anon_transport_class *atc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKRhjubj)}(hhh]j[)}(h$The anon transport class to registerh]h$The anon transport class to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubah}(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&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjkubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKShjkubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKfubj")}(hanon_transport_class_unregisterh]j()}(hanon_transport_class_unregisterh]hanon_transport_class_unregister}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhKfubj7)}(h"(struct anon_transport_class *atc)h]j7)}(h struct anon_transport_class *atch](h)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmmodnameN classnameNj7j7)}j7]j7)}j7j3sb!c.anon_transport_class_unregisterasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjIubj()}(hatch]hatc}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjEubah}(h]h ]h"]h$]h&]j?j@uh1j7hj hhhjhKfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKfubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKfhjhhubjV)}(hhh]j[)}(hunregister an anon classh]hunregister an anon class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKfhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhjubj)}(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)}(hjh]h struct anon_transport_class *atc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hKhhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhjubj[)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKihjubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(htransport_setup_deviceh]j()}(htransport_setup_deviceh]htransport_setup_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.transport_setup_deviceasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hj' hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(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.}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjN hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzji j{ji 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)}(hjs h]h Parameters}(hju hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjm 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&]uh1jhjm 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.chKhjm 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.chKhjm 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](jM7)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj!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}(hj3!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/!ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj!hhhj !hKubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjO!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjK!ubj)}(h h]h }(hj\!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK!ubh)}(hhh]j()}(hdeviceh]hdevice}(hjm!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjj!ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjo!modnameN classnameNj7j7)}j7]j7)}j7j5!sbc.transport_add_deviceasbuh1hhjK!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK!ubj7)}(hj7h]h*}(hj!hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjK!ubj()}(hdevh]hdev}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjK!ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjG!ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj!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}(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)}(hjN"h]h Description}(hjP"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL"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.}(hjd"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](jM7)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj"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"hKubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetj"modnameN classnameNj7j7)}j7]j7)}j7j"sbc.transport_configure_deviceasbuh1hhj"ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj7)}(hj7h]h*}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj"ubj()}(hdevh]hdev}(hj)#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj"ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj"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}(hjS#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjP#hhubah}(h]h ]h"]h$]h&]uh1jUhj"hhhj"hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjk#j{jk#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.h](j[)}(h**Parameters**h]j)}(hju#h]h Parameters}(hjw#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs#ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjo#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&]uh1jhjo#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.chKhjo#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.chKhjo#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](jM7)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj$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}(hj5$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1$ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$hhhj"$hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjQ$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjM$ubj)}(h h]h }(hj^$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM$ubh)}(hhh]j()}(hdeviceh]hdevice}(hjo$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjl$ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjq$modnameN classnameNj7j7)}j7]j7)}j7j7$sbc.transport_remove_deviceasbuh1hhjM$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM$ubj7)}(hj7h]h*}(hj$hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjM$ubj()}(hdevh]hdev}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjM$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjI$ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj$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&]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)}(hjP%h]h Description}(hjR%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN%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.}(hjf%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](jM7)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj%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 ubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetj%modnameN classnameNj7j7)}j7]j7)}j7j%sbc.transport_destroy_deviceasbuh1hhj%ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj7)}(hj7h]h*}(hj&hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj%ubj()}(hdevh]hdev}(hj+&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj%ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj%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}(hjU&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM hjR&hhubah}(h]h ]h"]h$]h&]uh1jUhj%hhhj%hM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjm&j{jm&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)}(hjw&h]h Parameters}(hjy&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju&ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM$hjq&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&]uh1jhjq&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$hjq&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#hjq&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](jM7)}(hinth]hint}(hj'hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj'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")}(h!driver_deferred_probe_check_stateh]j()}(h!driver_deferred_probe_check_stateh]h!driver_deferred_probe_check_state}(hj7'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj'hhhj$'hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjS'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjO'ubj)}(h h]h }(hj`'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO'ubh)}(hhh]j()}(hdeviceh]hdevice}(hjq'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjn'ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjs'modnameN classnameNj7j7)}j7]j7)}j7j9'sb#c.driver_deferred_probe_check_stateasbuh1hhjO'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO'ubj7)}(hj7h]h*}(hj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjO'ubj()}(hdevh]hdev}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjO'ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjK'ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj'hhhj$'hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'hhhj$'hMubah}(h]j 'ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$'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 'hhhj$'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}(hj0(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 **Return**h]j)}(hjR(h]hReturn}(hjT(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP(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[)}(hjm(h]h=-ENODEV if initcalls have completed and modules are disabled.}(hjo(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjk(ubah}(h]h ]h"]h$]h&]uh1j hjh(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&]uh1j hjh(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&]uh1j hjh(ubeh}(h]h ]h"]h$]h&]jrj7uh1jhj|(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](jM7)}(hj9h]hbool}(hj)hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj(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)hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj>)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:)ubj)}(h h]h }(hjK)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:)ubh)}(hhh]j()}(hdeviceh]hdevice}(hj\)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjY)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj^)modnameN classnameNj7j7)}j7]j7)}j7j$)sbc.device_is_boundasbuh1hhj:)ubj)}(h h]h }(hj|)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:)ubj7)}(hj7h]h*}(hj)hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:)ubj()}(hdevh]hdev}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:)ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6)ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj(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)}(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[)}(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.}(hjS*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.}(hjb*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](jM7)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj*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*hMubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetj*modnameN classnameNj7j7)}j7]j7)}j7j*sbc.device_bind_driverasbuh1hhj*ubj)}(h h]h }(hj +hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj7)}(hj7h]h*}(hj+hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj*ubj()}(hdevh]hdev}(hj'+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj*ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj*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.}(hjQ+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjN+hhubah}(h]h ]h"]h$]h&]uh1jUhj*hhhj*hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzji+j{ji+j|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)}(hjs+h]h Parameters}(hju+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq+ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjm+ubj)}(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:56: ./drivers/base/dd.chMhj+ubj)}(hhh]j[)}(hdevice.h]hdevice.}(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&]uh1jhjm+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.chMhjm+ubj[)}(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 }(hj+hhhNhNubj)}(h**dev->driver**h]h dev->driver}(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:56: ./drivers/base/dd.chMhjm+ubj[)}(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.)}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjm+ubj[)}(h7This function must be called with the device lock held.h]h7This function must be called with the device lock held.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjm+ubj[)}(hparent** lock must be held.h](j[)}(h**Parameters**h]j)}(hjL.h]h Parameters}(hjN.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ.ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMjhjF.ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjk.h]hstruct device *dev}(hjm.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMghje.ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMghj.ubah}(h]h ]h"]h$]h&]uh1jhje.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMghjb.ubah}(h]h ]h"]h$]h&]uh1jhjF.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.chMihjF.ubj[)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhhjF.ubj[)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMlhjF.ubj[)}(hCWhen called for a USB interface, **dev->parent** lock must be held.h](h!When called for a USB interface, }(hj.hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh lock must be held.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMphjF.ubeh}(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](jM7)}(hinth]hint}(hj/hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj/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_driver_attachh]j()}(hdevice_driver_attachh]hdevice_driver_attach}(hj/sbc.device_driver_attachasbuh1hhjT/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT/ubj7)}(hj7h]h*}(hj/hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjT/ubj()}(hdrvh]hdrv}(hj/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjT/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjP/ubj7)}(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}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj0modnameN classnameNj7j7)}j7]j/c.device_driver_attachasbuh1hhj/ubj)}(h h]h }(hj!0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj7)}(hj7h]h*}(hj/0hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/ubj()}(hdevh]hdev}(hj<0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjP/ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj/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-attach a specific driver to a specific deviceh]h-attach a specific driver to a specific device}(hjf0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjc0hhubah}(h]h ]h"]h$]h&]uh1jUhj/hhhj)/hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj~0j{j~0j|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)}(hj0h]h Parameters}(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.chMhj0ubj)}(hhh](j)}(h5``const struct device_driver *drv`` Driver to attach h](j)}(h#``const struct device_driver *drv``h]j)}(hj0h]hconst struct device_driver *drv}(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[)}(hDriver to attachh]hDriver to attach}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubj)}(h.``struct device *dev`` Device to attach it to 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 to attach it toh]hDevice to attach it to}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0ubj[)}(h**Description**h]j)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj0ubj[)}(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 }(hj11hhhNhNubj)}(h**dev**h]hdev}(hj91hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj11ubh lock and }(hj11hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjK1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj11ubh7 lock if needed. Returns 0 on success, -ERR on failure.}(hj11hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj0ubeh}(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](jM7)}(hinth]hint}(hj1hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj1hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj1hMubj")}(h driver_attachh]j()}(h driver_attachh]h driver_attach}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj1hhhj1hMubj7)}(h!(const struct device_driver *drv)h]j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hjh]hstruct}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj1modnameN classnameNj7j7)}j7]j7)}j7j1sbc.driver_attachasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj7)}(hj7h]h*}(hj(2hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj1ubj()}(hdrvh]hdrv}(hj52hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj1ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj1hhhj1hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj|1hhhj1hMubah}(h]jw1ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj1hMhjy1hhubjV)}(hhh]j[)}(htry to bind driver to devices.h]htry to bind driver to devices.}(hj_2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj\2hhubah}(h]h ]h"]h$]h&]uh1jUhjy1hhhj1hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjw2j{jw2j|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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj{2ubj)}(hhh]j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hj2h]hconst struct device_driver *drv}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj2ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj{2ubj[)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj{2ubj[)}(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 }(hj2hhhNhNubj)}(h**dev->driver**h]h dev->driver}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubh) is set, we’ve found a compatible pair.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj{2ubeh}(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](jM7)}(hvoidh]hvoid}(hj23hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj.3hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMbubj)}(h h]h }(hjA3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.3hhhj@3hMbubj")}(hdevice_release_driverh]j()}(hdevice_release_driverh]hdevice_release_driver}(hjS3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjO3ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj.3hhhj@3hMbubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjo3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk3ubj)}(h h]h }(hj|3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk3ubh)}(hhh]j()}(hdeviceh]hdevice}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj3modnameN classnameNj7j7)}j7]j7)}j7jU3sbc.device_release_driverasbuh1hhjk3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk3ubj7)}(hj7h]h*}(hj3hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjk3ubj()}(hdevh]hdev}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjk3ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjg3ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj.3hhhj@3hMbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj*3hhhj@3hMbubah}(h]j%3ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj@3hMbhj'3hhubjV)}(hhh]j[)}(h#manually detach device from driver.h]h#manually detach device from driver.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMbhj3hhubah}(h]h ]h"]h$]h&]uh1jUhj'3hhhj@3hMbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj 4j{j 4j|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)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMfhj4ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj34h]hstruct device *dev}(hj54hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj14ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMchj-4ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjL4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjH4hMchjI4ubah}(h]h ]h"]h$]h&]uh1jhj-4ubeh}(h]h ]h"]h$]h&]uh1jhjH4hMchj*4ubah}(h]h ]h"]h$]h&]uh1jhj4ubj[)}(h**Description**h]j)}(hjn4h]h Description}(hjp4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl4ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMehj4ubj[)}(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, }(hj4hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh lock must be held.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMdhj4ubj[)}(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 }(hj4hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubhv lock held, ensure that the device’s consumers are unbound in advance or that their locks can be acquired under the }(hj4hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh lock.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMghj4ubeh}(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}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhj5hKubj")}(hplatform_device_infoh]j()}(hj4h]hplatform_device_info}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj4hhhj5hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhj5hKubah}(h]j4ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj5hKhj4hhubjV)}(hhh]j[)}(h0set of parameters for creating a platform deviceh]h0set of parameters for creating a platform device}(hj:5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKuhj75hhubah}(h]h ]h"]h$]h&]uh1jUhj4hhhj5hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjR5j{jR5j|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}(hj^5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ5ubh:}(hjZ5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKyhjV5ubj)}(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; };}hjw5sbah}(h]h ]h"]h$]h&]j?j@uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK{hjV5ubj[)}(h **Members**h]j)}(hj5h]hMembers}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjV5ubj)}(hhh](j)}(h6``parent`` parent device for the new platform device. h](j)}(h ``parent``h]j)}(hj5h]hparent}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKwhj5ubj)}(hhh]j[)}(h*parent device for the new platform device.h]h*parent device for the new platform device.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5hKwhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKwhj5ubj)}(h5``fwnode`` firmware node associated with the device. h](j)}(h ``fwnode``h]j)}(hj5h]hfwnode}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKxhj5ubj)}(hhh]j[)}(h)firmware node associated with the device.h]h)firmware node associated with the device.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5hKxhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hKxhj5ubj)}(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)}(hj6h]hof_node_reused}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK}hj6ubj)}(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 }(hj26hhhNhNubj)}(h``true``h]htrue}(hj:6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj26ubh 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.}(hj26hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKyhj/6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj.6hK}hj5ubj)}(h``name`` name of the device. h](j)}(h``name``h]j)}(hje6h]hname}(hjg6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK~hj_6ubj)}(hhh]j[)}(hname of the device.h]hname of the device.}(hj~6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjz6hK~hj{6ubah}(h]h ]h"]h$]h&]uh1jhj_6ubeh}(h]h ]h"]h$]h&]uh1jhjz6hK~hj5ubj)}(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)}(hj6h]hid}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj6ubj)}(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 }(hj6hhhNhNubj)}(h``PLATFORM_DEVID_NONE``h]hPLATFORM_DEVID_NONE}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh1 if there is only one instance of the device, or }(hj6hhhNhNubj)}(h``PLATFORM_DEVID_AUTO``h]hPLATFORM_DEVID_AUTO}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh= to let the kernel automatically assign a unique instance ID.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj5ubj)}(h2``res`` set of resources to attach to the device. h](j)}(h``res``h]j)}(hj6h]hres}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj6ubj)}(hhh]j[)}(h)set of resources to attach to the device.h]h)set of resources to attach to the device.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj5ubj)}(h*``num_res`` number of entries in **res**. h](j)}(h ``num_res``h]j)}(hj57h]hnum_res}(hj77hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj37ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj/7ubj)}(hhh]j[)}(hnumber of entries in **res**.h](hnumber of entries in }(hjN7hhhNhNubj)}(h**res**h]hres}(hjV7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN7ubh.}(hjN7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjJ7hKhjK7ubah}(h]h ]h"]h$]h&]uh1jhj/7ubeh}(h]h ]h"]h$]h&]uh1jhjJ7hKhj5ubj)}(h8``data`` device-specific data for this platform device. h](j)}(h``data``h]j)}(hj7h]hdata}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~7ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjz7ubj)}(hhh]j[)}(h.device-specific data for this platform device.h]h.device-specific data for this platform device.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhjz7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj5ubj)}(h,``size_data`` size of device-specific data. h](j)}(h ``size_data``h]j)}(hj7h]h size_data}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj7ubj)}(hhh]j[)}(hsize of device-specific data.h]hsize of device-specific data.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj5ubj)}(h&``dma_mask`` DMA mask for the device. h](j)}(h ``dma_mask``h]j)}(hj7h]hdma_mask}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj7ubj)}(hhh]j[)}(hDMA mask for the device.h]hDMA mask for the device.}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj5ubj)}(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)}(hj+8h]hswnode}(hj-8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)8ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj%8ubj)}(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.}(hjD8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjA8ubah}(h]h ]h"]h$]h&]uh1jhj%8ubeh}(h]h ]h"]h$]h&]uh1jhj@8hKhj5ubj)}(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)}(hje8h]h properties}(hjg8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc8ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj_8ubj)}(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~8hhhNhNubj)}(h**properties**h]h properties}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~8ubh and }(hj~8hhhNhNubj)}(h **swnode**h]hswnode}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~8ubh is not allowed.}(hj~8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj{8ubah}(h]h ]h"]h$]h&]uh1jhj_8ubeh}(h]h ]h"]h$]h&]uh1jhjz8hKhj5ubeh}(h]h ]h"]h$]h&]uh1jhjV5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubj[)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(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().}(hj8hhhNhNubah}(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 }(hj8hhhNhNubj)}(h**name**h]hname}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, }(hj8hhhNhNubj)}(h**res**h]hres}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, }hj8sbj)}(h**data**h]hdata}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh and }(hj8hhhNhNubj)}(h**properties**h]h properties}(hj/9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, so the caller does not need to keep them after registration. If the registration is performed during initialization, these can be marked as __initconst.}(hj8hhhNhNubeh}(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}(hja9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]9hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hjo9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]9hhhjn9hKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj9modnameN classnameNj7j7)}j7]j7)}j7!platform_device_register_resndatasb#c.platform_device_register_resndataasbuh1hhj]9hhhjn9hKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]9hhhjn9hKubj7)}(hj7h]h*}(hj9hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]9hhhjn9hKubj")}(h!platform_device_register_resndatah]j()}(hj9h]h!platform_device_register_resndata}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj]9hhhjn9hKubj7)}(h~(struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h](j7)}(hstruct device *parenth](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}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj9modnameN classnameNj7j7)}j7]j9#c.platform_device_register_resndataasbuh1hhj9ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj7)}(hj7h]h*}(hj%:hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj9ubj()}(hparenth]hparent}(hj2:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjK:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjG:ubj)}(h h]h }(hjX:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG:ubjM7)}(hcharh]hchar}(hjf:hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjG:ubj)}(h h]h }(hjt:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjG:ubj7)}(hj7h]h*}(hj:hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjG:ubj()}(hnameh]hname}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjG:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubj7)}(hint idh](jM7)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj: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@uh1j7hj9ubj7)}(hconst struct resource *resh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj;modnameN classnameNj7j7)}j7]j9#c.platform_device_register_resndataasbuh1hhj:ubj)}(h h]h }(hj4;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj7)}(hj7h]h*}(hjB;hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:ubj()}(hresh]hres}(hjO;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubj7)}(hunsigned int numh](jM7)}(hunsignedh]hunsigned}(hjh;hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjd;ubj)}(h h]h }(hjv;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd;ubjM7)}(hinth]hint}(hj;hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjd;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd;ubj()}(hnumh]hnum}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjd;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubj7)}(hconst void *datah](h)}(hj8h]hconst}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjM7)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj7)}(hj7h]h*}(hj;hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj;ubj()}(hdatah]hdata}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubj7)}(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&] refdomainjtreftypej7 reftargetj<modnameN classnameNj7j7)}j7]j9#c.platform_device_register_resndataasbuh1hhj<ubj)}(h h]h }(hj7<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj()}(hsizeh]hsize}(hjE<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj]9hhhjn9hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjY9hhhjn9hKubah}(h]jT9ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjn9hKhjV9hhubjV)}(hhh]j[)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hjo<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjl<hhubah}(h]h ]h"]h$]h&]uh1jUhjV9hhhjn9hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj<j{j<j|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)}(hj<h]h Parameters}(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<ubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding 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&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj<ubj)}(hhh]j[)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(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:``const char *name`` base name of the device we're adding 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&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj<ubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(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``int id`` instance id h](j)}(h ``int id``h]j)}(hj"=h]hint id}(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 instance idh]h instance id}(hj;=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7=hKhj8=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj7=hKhj<ubj)}(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)}(hj[=h]hconst struct resource *res}(hj]=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY=ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjU=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}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjp=hKhjq=ubah}(h]h ]h"]h$]h&]uh1jhjU=ubeh}(h]h ]h"]h$]h&]uh1jhjp=hKhj<ubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hj=h]hunsigned int num}(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[)}(hnumber of resourcesh]hnumber of resources}(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)}(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&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj=ubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform 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_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj>h]h size_t size}(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 platform specific datah]hsize of platform 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<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj[)}(h**Description**h]j)}(hjA>h]h Description}(hjC>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<ubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjW>hhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hja>h]hstruct platform_device}(hjc>hhhNhNubah}(h]h ](jׯjtc-typeeh"]h$]h&]uh1jhj_>ubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjW>ubh+ pointer on success, or ERR_PTR() on error.}(hjW>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj~>hKhj<ubeh}(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}(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>hKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj>modnameN classnameNj7j7)}j7]j7)}j7platform_device_register_simplesb!c.platform_device_register_simpleasbuh1hhj>hhhj>hKubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhj>hKubj7)}(hj7h]h*}(hj>hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj>hhhj>hKubj")}(hplatform_device_register_simpleh]j()}(hj>h]hplatform_device_register_simple}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj>hhhj>hKubj7)}(hH(const char *name, int id, const struct resource *res, unsigned int num)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hj#?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(h h]h }(hj0?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjM7)}(hcharh]hchar}(hj>?hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj?ubj)}(h h]h }(hjL?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj7)}(hj7h]h*}(hjZ?hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj?ubj()}(hnameh]hname}(hjg?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj?ubj7)}(hint idh](jM7)}(hinth]hint}(hj?hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj|?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@uh1j7hj?ubj7)}(hconst struct resource *resh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj?modnameN classnameNj7j7)}j7]j>!c.platform_device_register_simpleasbuh1hhj?ubj)}(h h]h }(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj7)}(hj7h]h*}(hj@hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj?ubj()}(hresh]hres}(hj'@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj?ubj7)}(hunsigned int numh](jM7)}(hunsignedh]hunsigned}(hj@@hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj<@ubj)}(h h]h }(hjN@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<@ubjM7)}(hinth]hint}(hj\@hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj<@ubj)}(h h]h }(hjj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<@ubj()}(hnumh]hnum}(hjx@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<@ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj?ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj>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-add a platform-level device and its resourcesh]h-add a platform-level device and its resources}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj@hhubah}(h]h ]h"]h$]h&]uh1jUhj>hhhj>hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj@j{j@j|j}j~uh1hhhhj}\hNhNubj)}(hX**Parameters** ``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 **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. This 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". Returns :c:type:`struct platform_device ` 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&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj@ubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding 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&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj@ubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(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``int id`` instance id h](j)}(h ``int id``h]j)}(hjAh]hint id}(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 instance idh]h instance id}(hj5AhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1AhKhj2Aubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj1AhKhj@ubj)}(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)}(hjUAh]hconst struct resource *res}(hjWAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSAubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjOAubj)}(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}(hjnAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjAhKhjkAubah}(h]h ]h"]h$]h&]uh1jhjOAubeh}(h]h ]h"]h$]h&]uh1jhjjAhKhj@ubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjAh]hunsigned int num}(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[)}(hnumber of resourcesh]hnumber of resources}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubj[)}(h**Description**h]j)}(hjAh]h Description}(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.hhKhj@ubj[)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj@ubj[)}(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”.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj@ubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjAhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjBh]hstruct platform_device}(hj BhhhNhNubah}(h]h ](jׯjtc-typeeh"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjAubh+ pointer on success, or ERR_PTR() on error.}(hjAhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj$BhKhj@ubeh}(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}(hjOBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKBhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hj]BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKBhhhj\BhKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjnBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkBubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjpBmodnameN classnameNj7j7)}j7]j7)}j7platform_device_register_datasbc.platform_device_register_dataasbuh1hhjKBhhhj\BhKubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKBhhhj\BhKubj7)}(hj7h]h*}(hjBhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjKBhhhj\BhKubj")}(hplatform_device_register_datah]j()}(hjBh]hplatform_device_register_data}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjKBhhhj\BhKubj7)}(hP(struct device *parent, const char *name, int id, const void *data, size_t size)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j()}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjBmodnameN classnameNj7j7)}j7]jBc.platform_device_register_dataasbuh1hhjBubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj7)}(hj7h]h*}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjBubj()}(hparenth]hparent}(hj ChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj9ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5Cubj)}(h h]h }(hjFChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5CubjM7)}(hcharh]hchar}(hjTChhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj5Cubj)}(h h]h }(hjbChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Cubj7)}(hj7h]h*}(hjpChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj5Cubj()}(hnameh]hname}(hj}ChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5Cubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubj7)}(hint idh](jM7)}(hinth]hint}(hjChhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj()}(hidh]hid}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjM7)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj7)}(hj7h]h*}(hjDhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCubj()}(hdatah]hdata}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj+DhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(Dubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj-DmodnameN classnameNj7j7)}j7]jBc.platform_device_register_dataasbuh1hhj$Dubj)}(h h]h }(hjIDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Dubj()}(hsizeh]hsize}(hjWDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$Dubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjBubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjKBhhhj\BhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjGBhhhj\BhKubah}(h]jBBah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj\BhKhjDBhhubjV)}(hhh]j[)}(h7add a platform-level device with platform-specific datah]h7add a platform-level device with platform-specific data}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj~Dhhubah}(h]h ]h"]h$]h&]uh1jUhjDBhhhj\BhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjDj{jDj|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)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjDubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjDh]hstruct device *parent}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjDubj)}(hhh]j[)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDhKhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjDubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjDh]hconst char *name}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjDubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjDubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj4Eh]hint id}(hj6EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Eubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj.Eubj)}(hhh]j[)}(h instance idh]h instance id}(hjMEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIEhKhjJEubah}(h]h ]h"]h$]h&]uh1jhj.Eubeh}(h]h ]h"]h$]h&]uh1jhjIEhKhjDubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjmEh]hconst void *data}(hjoEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkEubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjgEubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjgEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjDubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjEh]h size_t size}(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[)}(hsize of platform specific datah]hsize of platform specific data}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhjDubeh}(h]h ]h"]h$]h&]uh1jhjDubj[)}(h**Description**h]j)}(hjEh]h Description}(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.hhKhjDubj[)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjDubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjFhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjFh]hstruct platform_device}(hjFhhhNhNubah}(h]h ](jׯjtc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjFubh+ pointer on success, or ERR_PTR() on error.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj-FhKhjDubeh}(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}(hjXFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTFhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0ubj)}(h h]h }(hjfFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTFhhhjeFhK0ubh)}(hhh]j()}(hresourceh]hresource}(hjwFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtFubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjyFmodnameN classnameNj7j7)}j7]j7)}j7platform_get_resourcesbc.platform_get_resourceasbuh1hhjTFhhhjeFhK0ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTFhhhjeFhK0ubj7)}(hj7h]h*}(hjFhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjTFhhhjeFhK0ubj")}(hplatform_get_resourceh]j()}(hjFh]hplatform_get_resource}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjTFhhhjeFhK0ubj7)}(hB(struct platform_device *dev, unsigned int type, unsigned int num)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjFmodnameN classnameNj7j7)}j7]jFc.platform_get_resourceasbuh1hhjFubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj7)}(hj7h]h*}(hjGhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjFubj()}(hdevh]hdev}(hj)GhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFubj7)}(hunsigned int typeh](jM7)}(hunsignedh]hunsigned}(hjBGhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj>Gubj)}(h h]h }(hjPGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>GubjM7)}(hinth]hint}(hj^GhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj>Gubj)}(h h]h }(hjlGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Gubj()}(htypeh]htype}(hjzGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>Gubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFubj7)}(hunsigned int numh](jM7)}(hunsignedh]hunsigned}(hjGhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjM7)}(hinth]hint}(hjGhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjGubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj()}(hnumh]hnum}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjTFhhhjeFhK0ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjPFhhhjeFhK0ubah}(h]jKFah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjeFhK0hjMFhhubjV)}(hhh]j[)}(hget a resource for a deviceh]hget a resource for a device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0hjGhhubah}(h]h ]h"]h$]h&]uh1jUhjMFhhhjeFhK0ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj Hj{j Hj|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)}(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.chK4hjHubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hj6Hh]hstruct platform_device *dev}(hj8HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Hubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK1hj0Hubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjOHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKHhK1hjLHubah}(h]h ]h"]h$]h&]uh1jhj0Hubeh}(h]h ]h"]h$]h&]uh1jhjKHhK1hj-Hubj)}(h$``unsigned int type`` resource type h](j)}(h``unsigned int type``h]j)}(hjoHh]hunsigned int type}(hjqHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmHubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK2hjiHubj)}(hhh]j[)}(h resource typeh]h resource type}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhK2hjHubah}(h]h ]h"]h$]h&]uh1jhjiHubeh}(h]h ]h"]h$]h&]uh1jhjHhK2hj-Hubj)}(h$``unsigned int num`` resource index h](j)}(h``unsigned int num``h]j)}(hjHh]hunsigned int num}(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.chK3hjHubj)}(hhh]j[)}(hresource indexh]hresource index}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhK3hjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhK3hj-Hubeh}(h]h ]h"]h$]h&]uh1jhjHubj[)}(h **Return**h]j)}(hjHh]hReturn}(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.chK5hjHubj[)}(h-a pointer to the resource or NULL on failure.h]h-a pointer to the resource or NULL on failure.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK5hjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h3devm_platform_get_and_ioremap_resource (C function)(c.devm_platform_get_and_ioremap_resourcehNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hvoid __iomem * devm_platform_get_and_ioremap_resource (struct platform_device *pdev, unsigned int index, struct resource **res)h]h)}(h}void __iomem *devm_platform_get_and_ioremap_resource(struct platform_device *pdev, unsigned int index, struct resource **res)h](jM7)}(hvoidh]hvoid}(hj(IhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj$Ihhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKWubj)}(h h]h }(hj7IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Ihhhj6IhKWubh__iomem}(hj$IhhhNhNubj)}(h h]h }(hjIIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Ihhhj6IhKWubj7)}(hj7h]h*}(hjWIhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$Ihhhj6IhKWubj")}(h&devm_platform_get_and_ioremap_resourceh]j()}(h&devm_platform_get_and_ioremap_resourceh]h&devm_platform_get_and_ioremap_resource}(hjhIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$Ihhhj6IhKWubj7)}(hI(struct platform_device *pdev, unsigned int index, struct resource **res)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjImodnameN classnameNj7j7)}j7]j7)}j7jjIsb(c.devm_platform_get_and_ioremap_resourceasbuh1hhjIubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj7)}(hj7h]h*}(hjIhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjIubj()}(hpdevh]hpdev}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj|Iubj7)}(hunsigned int indexh](jM7)}(hunsignedh]hunsigned}(hjIhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjIubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjM7)}(hinth]hint}(hjJhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjIubj)}(h h]h }(hj JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj()}(hindexh]hindex}(hj.JhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj|Iubj7)}(hstruct resource **resh](h)}(hjh]hstruct}(hjGJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCJubj)}(h h]h }(hjTJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCJubh)}(hhh]j()}(hresourceh]hresource}(hjeJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbJubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjgJmodnameN classnameNj7j7)}j7]jI(c.devm_platform_get_and_ioremap_resourceasbuh1hhjCJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCJubj7)}(hj7h]h*}(hjJhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCJubj7)}(hj7h]h*}(hjJhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCJubj()}(hresh]hres}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCJubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj|Iubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj$Ihhhj6IhKWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj Ihhhj6IhKWubah}(h]jIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj6IhKWhjIhhubjV)}(hhh]j[)}(hCcall devm_ioremap_resource() for a platform device and get resourceh]hCcall devm_ioremap_resource() for a platform device and get resource}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKWhjJhhubah}(h]h ]h"]h$]h&]uh1jUhjIhhhj6IhKWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjJj{jJj|j}j~uh1hhhhj}\hNhNubj)}(hXt**Parameters** ``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management ``unsigned int index`` resource index ``struct resource **res`` optional output parameter to store a pointer to the obtained resource. **Return** a pointer to the remapped memory or an ERR_PTR() encoded error code 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.chK[hjJubj)}(hhh](j)}(hw``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management h](j)}(h ``struct platform_device *pdev``h]j)}(hjKh]hstruct platform_device *pdev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK[hjKubj)}(hhh]j[)}(hUplatform device to use both for memory resource lookup as well as resource managementh]hUplatform device to use both for memory resource lookup as well as resource management}(hj/KhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKZhj,Kubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhj+KhK[hj Kubj)}(h&``unsigned int index`` resource index h](j)}(h``unsigned int index``h]j)}(hjPKh]hunsigned int index}(hjRKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNKubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK\hjJKubj)}(hhh]j[)}(hresource indexh]hresource index}(hjiKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjeKhK\hjfKubah}(h]h ]h"]h$]h&]uh1jhjJKubeh}(h]h ]h"]h$]h&]uh1jhjeKhK\hj Kubj)}(ha``struct resource **res`` optional output parameter to store a pointer to the obtained resource. h](j)}(h``struct resource **res``h]j)}(hjKh]hstruct resource **res}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK]hjKubj)}(hhh]j[)}(hFoptional output parameter to store a pointer to the obtained resource.h]hFoptional output parameter to store a pointer to the obtained resource.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhK]hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhK]hj Kubeh}(h]h ]h"]h$]h&]uh1jhjJubj[)}(h **Return**h]j)}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK_hjJubj[)}(hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h]hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK_hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+devm_platform_ioremap_resource (C function) c.devm_platform_ioremap_resourcehNtauh1hhj}\hhhNhNubh)}(hhh](h)}(h`void __iomem * devm_platform_ioremap_resource (struct platform_device *pdev, unsigned int index)h]h)}(h^void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, unsigned int index)h](jM7)}(hvoidh]hvoid}(hj LhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjLhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKpubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhKpubh__iomem}(hjLhhhNhNubj)}(h h]h }(hj*LhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhjLhKpubj7)}(hj7h]h*}(hj8LhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjLhhhjLhKpubj")}(hdevm_platform_ioremap_resourceh]j()}(hdevm_platform_ioremap_resourceh]hdevm_platform_ioremap_resource}(hjILhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjELubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjLhhhjLhKpubj7)}(h2(struct platform_device *pdev, unsigned int index)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjeLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaLubj)}(h h]h }(hjrLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaLubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjLmodnameN classnameNj7j7)}j7]j7)}j7jKLsb c.devm_platform_ioremap_resourceasbuh1hhjaLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaLubj7)}(hj7h]h*}(hjLhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjaLubj()}(hpdevh]hpdev}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaLubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]Lubj7)}(hunsigned int indexh](jM7)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjM7)}(hinth]hint}(hjLhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjLubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubj()}(hindexh]hindex}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]Lubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjLhhhjLhKpubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjLhhhjLhKpubah}(h]jKah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjLhKphjKhhubjV)}(hhh]j[)}(h2call devm_ioremap_resource() for a platform deviceh]h2call devm_ioremap_resource() for a platform device}(hj9MhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKphj6Mhhubah}(h]h ]h"]h$]h&]uh1jUhjKhhhjLhKpubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjQMj{jQMj|j}j~uh1hhhhj}\hNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management ``unsigned int index`` resource index **Return** a pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h](j[)}(h**Parameters**h]j)}(hj[Mh]h Parameters}(hj]MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYMubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKthjUMubj)}(hhh](j)}(hw``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management h](j)}(h ``struct platform_device *pdev``h]j)}(hjzMh]hstruct platform_device *pdev}(hj|MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxMubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKthjtMubj)}(hhh]j[)}(hUplatform device to use both for memory resource lookup as well as resource managementh]hUplatform device to use both for memory resource lookup as well as resource management}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKshjMubah}(h]h ]h"]h$]h&]uh1jhjtMubeh}(h]h ]h"]h$]h&]uh1jhjMhKthjqMubj)}(h&``unsigned int index`` resource index h](j)}(h``unsigned int index``h]j)}(hjMh]hunsigned int index}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKuhjMubj)}(hhh]j[)}(hresource indexh]hresource index}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhKuhjMubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhKuhjqMubeh}(h]h ]h"]h$]h&]uh1jhjUMubj[)}(h **Return**h]j)}(hjMh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKwhjUMubj[)}(hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h]hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKwhjUMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h2devm_platform_ioremap_resource_byname (C function)'c.devm_platform_ioremap_resource_bynamehNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hevoid __iomem * devm_platform_ioremap_resource_byname (struct platform_device *pdev, const char *name)h]h)}(hcvoid __iomem *devm_platform_ioremap_resource_byname(struct platform_device *pdev, const char *name)h](jM7)}(hvoidh]hvoid}(hj4NhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj0Nhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKubj)}(h h]h }(hjCNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0NhhhjBNhKubh__iomem}(hj0NhhhNhNubj)}(h h]h }(hjUNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0NhhhjBNhKubj7)}(hj7h]h*}(hjcNhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj0NhhhjBNhKubj")}(h%devm_platform_ioremap_resource_bynameh]j()}(h%devm_platform_ioremap_resource_bynameh]h%devm_platform_ioremap_resource_byname}(hjtNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpNubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj0NhhhjBNhKubj7)}(h0(struct platform_device *pdev, const char *name)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjNmodnameN classnameNj7j7)}j7]j7)}j7jvNsb'c.devm_platform_ioremap_resource_bynameasbuh1hhjNubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj7)}(hj7h]h*}(hjNhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNubj()}(hpdevh]hpdev}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjNubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjNubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjM7)}(hcharh]hchar}(hjOhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjNubj)}(h h]h }(hj+OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj7)}(hj7h]h*}(hj9OhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNubj()}(hnameh]hname}(hjFOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjNubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj0NhhhjBNhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj,NhhhjBNhKubah}(h]j'Nah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjBNhKhj)NhhubjV)}(hhh]j[)}(hOcall devm_ioremap_resource for a platform device, retrieve the resource by nameh]hOcall devm_ioremap_resource for a platform device, retrieve the resource by name}(hjpOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjmOhhubah}(h]h ]h"]h$]h&]uh1jUhj)NhhhjBNhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjOj{jOj|j}j~uh1hhhhj}\hNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management ``const char *name`` name of the resource **Return** a pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h](j[)}(h**Parameters**h]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(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.chKhjOubj)}(hhh](j)}(hw``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management h](j)}(h ``struct platform_device *pdev``h]j)}(hjOh]hstruct platform_device *pdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjOubj)}(hhh]j[)}(hUplatform device to use both for memory resource lookup as well as resource managementh]hUplatform device to use both for memory resource lookup as well as resource management}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjOubj)}(h*``const char *name`` name of the resource h](j)}(h``const char *name``h]j)}(hjOh]hconst char *name}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjOubj)}(hhh]j[)}(hname of the resourceh]hname of the resource}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjPhKhjPubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjOubeh}(h]h ]h"]h$]h&]uh1jhjOubj[)}(h **Return**h]j)}(hj&Ph]hReturn}(hj(PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$Pubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjOubj[)}(hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h]hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.}(hjhjXubj[)}(h5Number of IRQs a platform device uses or EPROBE_DEFERh]h5Number of IRQs a platform device uses or EPROBE_DEFER}(hj`YhhhNhNubah}(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,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](jM7)}(hinth]hint}(hjYhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjYhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMkubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjYhMkubj")}(hdevm_platform_get_irqs_affinityh]j()}(hdevm_platform_get_irqs_affinityh]hdevm_platform_get_irqs_affinity}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjYhhhjYhMkubj7)}(hn(struct platform_device *dev, struct irq_affinity *affd, unsigned int minvec, unsigned int maxvec, int **irqs)h](j7)}(hstruct platform_device *devh](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&] refdomainjtreftypej7 reftargetjYmodnameN classnameNj7j7)}j7]j7)}j7jYsb!c.devm_platform_get_irqs_affinityasbuh1hhjYubj)}(h h]h }(hj ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj7)}(hj7h]h*}(hjZhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjYubj()}(hdevh]hdev}(hj%ZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjYubj7)}(hstruct irq_affinity *affdh](h)}(hjh]hstruct}(hj>ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:Zubj)}(h h]h }(hjKZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Zubh)}(hhh]j()}(h irq_affinityh]h irq_affinity}(hj\ZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYZubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj^ZmodnameN classnameNj7j7)}j7]jZ!c.devm_platform_get_irqs_affinityasbuh1hhj:Zubj)}(h h]h }(hjzZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Zubj7)}(hj7h]h*}(hjZhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:Zubj()}(haffdh]haffd}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:Zubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjYubj7)}(hunsigned int minvech](jM7)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjM7)}(hinth]hint}(hjZhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj()}(hminvech]hminvec}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjYubj7)}(hunsigned int maxvech](jM7)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjZubj)}(h h]h }(hj [hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjM7)}(hinth]hint}(hj[hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjZubj)}(h h]h }(hj)[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj()}(hmaxvech]hmaxvec}(hj7[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjYubj7)}(h int **irqsh](jM7)}(hinth]hint}(hjP[hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjL[ubj)}(h h]h }(hj^[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL[ubj7)}(hj7h]h*}(hjl[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjL[ubj7)}(hj7h]h*}(hjy[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjL[ubj()}(hirqsh]hirqs}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjL[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjYubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjYhhhjYhMkubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjYhhhjYhMkubah}(h]jYah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjYhMkhjYhhubjV)}(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&]uh1jUhjYhhhjYhMkubeh}(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}(hj \hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMmhj\ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj\hMmhj[ubj)}(h2``struct irq_affinity *affd`` affinity descriptor h](j)}(h``struct irq_affinity *affd``h]j)}(hj*\h]hstruct irq_affinity *affd}(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.chMnhj$\ubj)}(hhh]j[)}(haffinity descriptorh]haffinity descriptor}(hjC\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?\hMnhj@\ubah}(h]h ]h"]h$]h&]uh1jhj$\ubeh}(h]h ]h"]h$]h&]uh1jhj?\hMnhj[ubj)}(h;``unsigned int minvec`` minimum count of interrupt vectors h](j)}(h``unsigned int minvec``h]j)}(hjc\h]hunsigned int minvec}(hje\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMohj]\ubj)}(hhh]j[)}(h"minimum count of interrupt vectorsh]h"minimum count of interrupt vectors}(hj|\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjx\hMohjy\ubah}(h]h ]h"]h$]h&]uh1jhj]\ubeh}(h]h ]h"]h$]h&]uh1jhjx\hMohj[ubj)}(h;``unsigned int maxvec`` maximum count of interrupt vectors h](j)}(h``unsigned int maxvec``h]j)}(hj\h]hunsigned int maxvec}(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.chMphj\ubj)}(hhh]j[)}(h"maximum count of interrupt vectorsh]h"maximum count of interrupt vectors}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMphj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMphj[ubj)}(h.``int **irqs`` pointer holder for IRQ numbers h](j)}(h``int **irqs``h]j)}(hj\h]h int **irqs}(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.chMqhj\ubj)}(hhh]j[)}(hpointer holder for IRQ numbersh]hpointer holder for IRQ numbers}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMqhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMqhj[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.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}(hj&]hhhNhNubah}(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)}(hj7]h]hReturn}(hj9]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5]ubah}(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.}(hjM]hhhNhNubah}(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}(hj|]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjx]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&]uh1jhjx]hhhj]hMubh)}(hhh]j()}(hresourceh]hresource}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj]modnameN classnameNj7j7)}j7]j7)}j7platform_get_resource_bynamesbc.platform_get_resource_bynameasbuh1hhjx]hhhj]hMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx]hhhj]hMubj7)}(hj7h]h*}(hj]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjx]hhhj]hMubj")}(hplatform_get_resource_bynameh]j()}(hj]h]hplatform_get_resource_byname}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjx]hhhj]hMubj7)}(hB(struct platform_device *dev, unsigned int type, const char *name)h](j7)}(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&] refdomainjtreftypej7 reftargetj^modnameN classnameNj7j7)}j7]j]c.platform_get_resource_bynameasbuh1hhj]ubj)}(h h]h }(hj2^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj7)}(hj7h]h*}(hj@^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]ubj()}(hdevh]hdev}(hjM^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]ubj7)}(hunsigned int typeh](jM7)}(hunsignedh]hunsigned}(hjf^hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjb^ubj)}(h h]h }(hjt^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb^ubjM7)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjb^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjb^ubj()}(htypeh]htype}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjb^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjM7)}(hcharh]hchar}(hj^hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj7)}(hj7h]h*}(hj^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^ubj()}(hnameh]hname}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjx]hhhj]hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjt]hhhj]hMubah}(h]jo]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj]hMhjq]hhubjV)}(hhh]j[)}(h#get a resource for a device by nameh]h#get a resource for a device by name}(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&]uh1jUhjq]hhhj]hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj=_j{j=_j|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)}(hjG_h]h Parameters}(hjI_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE_ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjA_ubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjf_h]hstruct platform_device *dev}(hjh_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd_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}(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)}(h$``unsigned int type`` resource type h](j)}(h``unsigned int type``h]j)}(hj_h]hunsigned int type}(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 resource typeh]h resource type}(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)}(h"``const char *name`` resource nameh](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&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj_ubj)}(hhh]j[)}(h resource nameh]h resource name}(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&]uh1jhjA_ubeh}(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](jM7)}(hinth]hint}(hj2`hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj.`hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjA`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.`hhhj@`hMubj")}(hplatform_get_irq_bynameh]j()}(hplatform_get_irq_bynameh]hplatform_get_irq_byname}(hjS`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjO`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj.`hhhj@`hMubj7)}(h/(struct platform_device *dev, const char *name)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjo`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk`ubj)}(h h]h }(hj|`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk`ubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj`modnameN classnameNj7j7)}j7]j7)}j7jU`sbc.platform_get_irq_bynameasbuh1hhjk`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk`ubj7)}(hj7h]h*}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjk`ubj()}(hdevh]hdev}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjk`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjg`ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjM7)}(hcharh]hchar}(hj`hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj`ubj)}(h h]h }(hj ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj7)}(hj7h]h*}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`ubj()}(hnameh]hname}(hj%ahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjg`ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj.`hhhj@`hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj*`hhhj@`hMubah}(h]j%`ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj@`hMhj'`hhubjV)}(hhh]j[)}(hget an IRQ for a device by nameh]hget an IRQ for a device by name}(hjOahhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjLahhubah}(h]h ]h"]h$]h&]uh1jUhj'`hhhj@`hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjgaj{jgaj|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)}(hjqah]h Parameters}(hjsahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoaubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkaubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjah]hstruct platform_device *dev}(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.chMhjaubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hjah]hconst char *name}(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.chMhjaubj)}(hhh]j[)}(hIRQ nameh]hIRQ name}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahMhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMhjaubeh}(h]h ]h"]h$]h&]uh1jhjkaubj[)}(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.chMhjkaubj[)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkaubj[)}(h **Return**h]j)}(hj+bh]hReturn}(hj-bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)bubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkaubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjAbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkaubeh}(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](jM7)}(hinth]hint}(hjpbhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjlbhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlbhhhj~bhM ubj")}(h platform_get_irq_byname_optionalh]j()}(h platform_get_irq_byname_optionalh]h platform_get_irq_byname_optional}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjlbhhhj~bhM ubj7)}(h/(struct platform_device *dev, const char *name)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjbmodnameN classnameNj7j7)}j7]j7)}j7jbsb"c.platform_get_irq_byname_optionalasbuh1hhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj7)}(hj7h]h*}(hjbhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjbubj()}(hdevh]hdev}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjbubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hj,chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjM7)}(hcharh]hchar}(hj:chhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjcubj)}(h h]h }(hjHchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj7)}(hj7h]h*}(hjVchhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjcubj()}(hnameh]hname}(hjcchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjbubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjlbhhhj~bhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhbhhhj~bhM ubah}(h]jcbah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~bhM hjebhhubjV)}(hhh]j[)}(h(get an optional IRQ for a device by nameh]h(get an optional IRQ for a device by name}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjchhubah}(h]h ]h"]h$]h&]uh1jUhjebhhhj~bhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjcj{jcj|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)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjcubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjch]hstruct platform_device *dev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjcubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchM hjcubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhjchM hjcubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hjdh]hconst char *name}(hj dhhhNhNubah}(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.chM hjdubj)}(hhh]j[)}(hIRQ nameh]hIRQ name}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjcubeh}(h]h ]h"]h$]h&]uh1jhjcubj[)}(h**Description**h]j)}(hjBdh]h Description}(hjDdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@dubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjcubj[)}(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.}(hjXdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjcubj[)}(h **Return**h]j)}(hjidh]hReturn}(hjkdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgdubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjcubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjcubeh}(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](jM7)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjdhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjdhMubj")}(hplatform_add_devicesh]j()}(hplatform_add_devicesh]hplatform_add_devices}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjdhhhjdhMubj7)}(h((struct platform_device **devs, int num)h](j7)}(hstruct platform_device **devsh](h)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj ehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj emodnameN classnameNj7j7)}j7]j7)}j7jdsbc.platform_add_devicesasbuh1hhjdubj)}(h h]h }(hj)ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj7)}(hj7h]h*}(hj7ehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjdubj7)}(hj7h]h*}(hjDehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjdubj()}(hdevsh]hdevs}(hjQehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdubj7)}(hint numh](jM7)}(hinth]hint}(hjjehhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjfeubj)}(h h]h }(hjxehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfeubj()}(hnumh]hnum}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjdhhhjdhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjdhhhjdhMubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjdhMhjdhhubjV)}(hhh]j[)}(h!add a numbers of platform devicesh]h!add a numbers of platform devices}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjehhubah}(h]h ]h"]h$]h&]uh1jUhjdhhhjdhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjej{jej|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)}(hjeh]h Parameters}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjeubj)}(hhh](j)}(hC``struct platform_device **devs`` array of platform devices to add h](j)}(h!``struct platform_device **devs``h]j)}(hjeh]hstruct platform_device **devs}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjeubj)}(hhh]j[)}(h array of platform devices to addh]h array of platform devices to add}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjeubj)}(h0``int num`` number of platform devices in array h](j)}(h ``int num``h]j)}(hj*fh]hint num}(hj,fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(fubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj$fubj)}(hhh]j[)}(h#number of platform devices in arrayh]h#number of platform devices in array}(hjCfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?fhMhj@fubah}(h]h ]h"]h$]h&]uh1jhj$fubeh}(h]h ]h"]h$]h&]uh1jhj?fhMhjeubeh}(h]h ]h"]h$]h&]uh1jhjeubj[)}(h **Return**h]j)}(hjefh]hReturn}(hjgfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcfubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjeubj[)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hj{fhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjeubeh}(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](jM7)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjfhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjfhMHubj")}(hplatform_device_puth]j()}(hplatform_device_puth]hplatform_device_put}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjfhhhjfhMHubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjgmodnameN classnameNj7j7)}j7]j7)}j7jfsbc.platform_device_putasbuh1hhjfubj)}(h h]h }(hj%ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj7)}(hj7h]h*}(hj3ghhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjfubj()}(hpdevh]hpdev}(hj@ghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjfubah}(h]h ]h"]h$]h&]j?j@uh1j7hjfhhhjfhMHubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjfhhhjfhMHubah}(h]jfah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjfhMHhjfhhubjV)}(hhh]j[)}(hdestroy a platform deviceh]hdestroy a platform device}(hjjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHhjgghhubah}(h]h ]h"]h$]h&]uh1jUhjfhhhjfhMHubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjgj{jgj|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)}(hjgh]h Parameters}(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.chMLhjgubj)}(hhh]j)}(h9``struct platform_device *pdev`` platform device to free h](j)}(h ``struct platform_device *pdev``h]j)}(hjgh]hstruct platform_device *pdev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMIhjgubj)}(hhh]j[)}(hplatform device to freeh]hplatform device to free}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghMIhjgubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjghMIhjgubah}(h]h ]h"]h$]h&]uh1jhjgubj[)}(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.chMKhjgubj[)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMJhjgubeh}(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}(hj+hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhubj)}(h h]h }(hj9hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhhj8hhMhubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjJhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGhubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjLhmodnameN classnameNj7j7)}j7]j7)}j7platform_device_allocsbc.platform_device_allocasbuh1hhj'hhhhj8hhMhubj)}(h h]h }(hjkhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhhhj8hhMhubj7)}(hj7h]h*}(hjyhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj'hhhhj8hhMhubj")}(hplatform_device_alloch]j()}(hjhhh]hplatform_device_alloc}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj'hhhhj8hhMhubj7)}(h(const char *name, int id)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjM7)}(hcharh]hchar}(hjhhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj7)}(hj7h]h*}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhubj()}(hnameh]hname}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhubj7)}(hint idh](jM7)}(hinth]hint}(hjihhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj()}(hidh]hid}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj'hhhhj8hhMhubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj#hhhhj8hhMhubah}(h]jhah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj8hhMhhj hhhubjV)}(hhh]j[)}(hcreate a platform deviceh]hcreate a platform device}(hjHihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhhjEihhubah}(h]h ]h"]h$]h&]uh1jUhj hhhhj8hhMhubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj`ij{j`ij|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)}(hjjih]h Parameters}(hjlihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhiubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMlhjdiubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding 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.chMihjiubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihMihjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMihjiubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hjih]hint id}(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.chMjhjiubj)}(hhh]j[)}(h instance idh]h instance id}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihMjhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMjhjiubeh}(h]h ]h"]h$]h&]uh1jhjdiubj[)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMlhjdiubj[)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMkhjdiubeh}(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](jM7)}(hinth]hint}(hjBjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj>jhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjQjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>jhhhjPjhMubj")}(hplatform_device_add_resourcesh]j()}(hplatform_device_add_resourcesh]hplatform_device_add_resources}(hjcjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_jubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj>jhhhjPjhMubj7)}(hL(struct platform_device *pdev, const struct resource *res, unsigned int num)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{jubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{jubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjjmodnameN classnameNj7j7)}j7]j7)}j7jejsbc.platform_device_add_resourcesasbuh1hhj{jubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{jubj7)}(hj7h]h*}(hjjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj{jubj()}(hpdevh]hpdev}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{jubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjwjubj7)}(hconst struct resource *resh](h)}(hj8h]hconst}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hjh]hstruct}(hj khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j()}(hresourceh]hresource}(hj*khhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'kubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj,kmodnameN classnameNj7j7)}j7]jjc.platform_device_add_resourcesasbuh1hhjjubj)}(h h]h }(hjHkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj7)}(hj7h]h*}(hjVkhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjjubj()}(hresh]hres}(hjckhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjwjubj7)}(hunsigned int numh](jM7)}(hunsignedh]hunsigned}(hj|khhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjxkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxkubjM7)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjxkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxkubj()}(hnumh]hnum}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxkubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjwjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj>jhhhjPjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj:jhhhjPjhMubah}(h]j5jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjPjhMhj7jhhubjV)}(hhh]j[)}(h"add resources to a platform deviceh]h"add resources to a platform device}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jUhj7jhhhjPjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjkj{jkj|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)}(hjlh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkubj)}(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)}(hjlh]hstruct platform_device *pdev}(hj!lhhhNhNubah}(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.chMhjlubj)}(hhh]j[)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hj8lhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4lhMhj5lubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhj4lhMhjlubj)}(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)}(hjXlh]hconst struct resource *res}(hjZlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVlubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjRlubj)}(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}(hjqlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmlhMhjnlubah}(h]h ]h"]h$]h&]uh1jhjRlubeh}(h]h ]h"]h$]h&]uh1jhjmlhMhjlubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjlh]hunsigned int num}(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.chMhjlubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjkubj[)}(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.chMhjkubj[)}(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.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkubeh}(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](jM7)}(hinth]hint}(hjmhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj mhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj mhhhjmhMubj")}(hplatform_device_add_datah]j()}(hplatform_device_add_datah]hplatform_device_add_data}(hj2mhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.mubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj mhhhjmhMubj7)}(h=(struct platform_device *pdev, const void *data, size_t size)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjNmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJmubj)}(h h]h }(hj[mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJmubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjlmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjimubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjnmmodnameN classnameNj7j7)}j7]j7)}j7j4msbc.platform_device_add_dataasbuh1hhjJmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJmubj7)}(hj7h]h*}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJmubj()}(hpdevh]hpdev}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFmubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjM7)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj7)}(hj7h]h*}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjmubj()}(hdatah]hdata}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFmubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj nhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj"nmodnameN classnameNj7j7)}j7]jmc.platform_device_add_dataasbuh1hhjnubj)}(h h]h }(hj>nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj()}(hsizeh]hsize}(hjLnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjFmubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj mhhhjmhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj mhhhjmhMubah}(h]jmah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjmhMhjmhhubjV)}(hhh]j[)}(h/add platform-specific data to a platform deviceh]h/add platform-specific data to a platform device}(hjvnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjsnhhubah}(h]h ]h"]h$]h&]uh1jUhjmhhhjmhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjnj{jnj|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)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjnubj)}(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)}(hjnh]hstruct platform_device *pdev}(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.chMhjnubj)}(hhh]j[)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjnubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjnh]hconst void *data}(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.chMhjnubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjohMhjnubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj)oh]h size_t size}(hj+ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'oubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj#oubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjBohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>ohMhj?oubah}(h]h ]h"]h$]h&]uh1jhj#oubeh}(h]h ]h"]h$]h&]uh1jhj>ohMhjnubeh}(h]h ]h"]h$]h&]uh1jhjnubj[)}(h**Description**h]j)}(hjdoh]h Description}(hjfohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjboubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjnubj[)}(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.}(hjzohhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjnubeh}(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](jM7)}(hinth]hint}(hjohhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjohhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjohMubj")}(hplatform_device_addh]j()}(hplatform_device_addh]hplatform_device_add}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjohhhjohMubj7)}(h(struct platform_device *pdev)h]j7)}(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}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjpmodnameN classnameNj7j7)}j7]j7)}j7josbc.platform_device_addasbuh1hhjoubj)}(h h]h }(hj$phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj7)}(hj7h]h*}(hj2phhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjoubj()}(hpdevh]hpdev}(hj?phhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjoubah}(h]h ]h"]h$]h&]j?j@uh1j7hjohhhjohMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjohhhjohMubah}(h]joah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjohMhjohhubjV)}(hhh]j[)}(h)add a platform device to device hierarchyh]h)add a platform device to device hierarchy}(hjiphhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjfphhubah}(h]h ]h"]h$]h&]uh1jUhjohhhjohMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjpj{jpj|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)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjpubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hjph]hstruct platform_device *pdev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjpubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhjpubj[)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjpubj[)}(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().}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjpubeh}(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](jM7)}(hvoidh]hvoid}(hj*qhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj&qhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj9qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&qhhhj8qhMubj")}(hplatform_device_delh]j()}(hplatform_device_delh]hplatform_device_del}(hjKqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGqubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj&qhhhj8qhMubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjgqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcqubj)}(h h]h }(hjtqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcqubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjqmodnameN classnameNj7j7)}j7]j7)}j7jMqsbc.platform_device_delasbuh1hhjcqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcqubj7)}(hj7h]h*}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjcqubj()}(hpdevh]hpdev}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj_qubah}(h]h ]h"]h$]h&]j?j@uh1j7hj&qhhhj8qhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj"qhhhj8qhMubah}(h]jqah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj8qhMhjqhhubjV)}(hhh]j[)}(hremove a platform-level deviceh]hremove a platform-level device}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jUhjqhhhj8qhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjrj{jrj|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)}(hj rh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjrubj)}(hhh]j)}(h@``struct platform_device *pdev`` platform device we're removing h](j)}(h ``struct platform_device *pdev``h]j)}(hj+rh]hstruct platform_device *pdev}(hj-rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)rubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj%rubj)}(hhh]j[)}(hplatform device we're removingh]h platform device we’re removing}(hjDrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@rhMhjArubah}(h]h ]h"]h$]h&]uh1jhj%rubeh}(h]h ]h"]h$]h&]uh1jhj@rhMhj"rubah}(h]h ]h"]h$]h&]uh1jhjrubj[)}(h**Description**h]j)}(hjfrh]h Description}(hjhrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdrubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjrubj[)}(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 (}(hj|rhhhNhNubj)}(h**dev->resource**h]h dev->resource}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|rubh]). This function must _only_ be externally called in error cases. All other usage is a bug.}(hj|rhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjrubeh}(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](jM7)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjrhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM.ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjrhM.ubj")}(hplatform_device_registerh]j()}(hplatform_device_registerh]hplatform_device_register}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjrhhhjrhM.ubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjsmodnameN classnameNj7j7)}j7]j7)}j7jrsbc.platform_device_registerasbuh1hhjrubj)}(h h]h }(hj8shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj7)}(hj7h]h*}(hjFshhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjrubj()}(hpdevh]hpdev}(hjSshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjrubah}(h]h ]h"]h$]h&]j?j@uh1j7hjrhhhjrhM.ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjrhhhjrhM.ubah}(h]jrah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjrhM.hjrhhubjV)}(hhh]j[)}(hadd a platform-level deviceh]hadd a platform-level device}(hj}shhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM.hjzshhubah}(h]h ]h"]h$]h&]uh1jUhjrhhhjrhM.ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjsj{jsj|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)}(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.chM2hjsubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding 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.chM/hjsubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshM/hjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshM/hjsubah}(h]h ]h"]h$]h&]uh1jhjsubj[)}(h**NOTE**h]j)}(hjsh]hNOTE}(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.chM1hjsubj[)}(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 }(hjthhhNhNubj)}(h**pdev**h]hpdev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubh 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.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM1hjsubeh}(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](jM7)}(hvoidh]hvoid}(hjPthhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjLthhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>ubj)}(h h]h }(hj_thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLthhhj^thM>ubj")}(hplatform_device_unregisterh]j()}(hplatform_device_unregisterh]hplatform_device_unregister}(hjqthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmtubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjLthhhj^thM>ubj7)}(h(struct platform_device *pdev)h]j7)}(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}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjtmodnameN classnameNj7j7)}j7]j7)}j7jstsbc.platform_device_unregisterasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj7)}(hj7h]h*}(hjthhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjtubj()}(hpdevh]hpdev}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjtubah}(h]h ]h"]h$]h&]j?j@uh1j7hjLthhhj^thM>ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjHthhhj^thM>ubah}(h]jCtah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj^thM>hjEthhubjV)}(hhh]j[)}(h"unregister a platform-level deviceh]h"unregister a platform-level device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj uhhubah}(h]h ]h"]h$]h&]uh1jUhjEthhhj^thM>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj(uj{j(uj|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)}(hj2uh]h Parameters}(hj4uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0uubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMBhj,uubj)}(hhh]j)}(hE``struct platform_device *pdev`` platform device we're unregistering h](j)}(h ``struct platform_device *pdev``h]j)}(hjQuh]hstruct platform_device *pdev}(hjSuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM?hjKuubj)}(hhh]j[)}(h#platform device we're unregisteringh]h%platform device we’re unregistering}(hjjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfuhM?hjguubah}(h]h ]h"]h$]h&]uh1jhjKuubeh}(h]h ]h"]h$]h&]uh1jhjfuhM?hjHuubah}(h]h ]h"]h$]h&]uh1jhj,uubj[)}(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.chMAhj,uubj[)}(hUnregistration 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]hUnregistration 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().}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM@hj,uubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj}\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*platform_device_register_full (C function)c.platform_device_register_fullhNtauh1hhj}\hhhNhNubh)}(hhh](h)}(hdstruct platform_device * platform_device_register_full (const struct platform_device_info *pdevinfo)h]h)}(hbstruct platform_device *platform_device_register_full(const struct platform_device_info *pdevinfo)h](h)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMMubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjumodnameN classnameNj7j7)}j7]j7)}j7platform_device_register_fullsbc.platform_device_register_fullasbuh1hhjuhhhjuhMMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjuhMMubj7)}(hj7h]h*}(hjvhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjuhhhjuhMMubj")}(hplatform_device_register_fullh]j()}(hjvh]hplatform_device_register_full}(hj0vhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,vubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuhhhjuhMMubj7)}(h-(const struct platform_device_info *pdevinfo)h]j7)}(h+const struct platform_device_info *pdevinfoh](h)}(hj8h]hconst}(hjKvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGvubj)}(h h]h }(hjXvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGvubh)}(hjh]hstruct}(hjfvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGvubj)}(h h]h }(hjsvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGvubh)}(hhh]j()}(hplatform_device_infoh]hplatform_device_info}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjvmodnameN classnameNj7j7)}j7]j vc.platform_device_register_fullasbuh1hhjGvubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGvubj7)}(hj7h]h*}(hjvhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjGvubj()}(hpdevinfoh]hpdevinfo}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjCvubah}(h]h ]h"]h$]h&]j?j@uh1j7hjuhhhjuhMMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjuhhhjuhMMubah}(h]juah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjuhMMhjuhhubjV)}(hhh]j[)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMMhjvhhubah}(h]h ]h"]h$]h&]uh1jUhjuhhhjuhMMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjvj{jvj|j}j~uh1hhhhj}\hNhNubj)}(h**Parameters** ``const struct platform_device_info *pdevinfo`` data used to create device **Description** Returns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hj wh]h Parameters}(hj whhhNhNubah}(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.chMQhjwubj)}(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)}(hj(wh]h+const struct platform_device_info *pdevinfo}(hj*whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&wubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMPhj"wubj)}(hhh]j[)}(hdata used to create deviceh]hdata used to create device}(hjAwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=whMPhj>wubah}(h]h ]h"]h$]h&]uh1jhj"wubeh}(h]h ]h"]h$]h&]uh1jhj=whMPhjwubah}(h]h ]h"]h$]h&]uh1jhjwubj[)}(h**Description**h]j)}(hjcwh]h Description}(hjewhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjawubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMRhjwubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjywhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjwh]hstruct platform_device}(hjwhhhNhNubah}(h]h ](jׯjtc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMQhjywubh+ pointer on success, or ERR_PTR() on error.}(hjywhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjwhMQhjwubeh}(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)}(hhint __platform_driver_register (struct platform_driver *drv, struct module *owner, const char *mod_name)h]h)}(hgint __platform_driver_register(struct platform_driver *drv, struct module *owner, const char *mod_name)h](jM7)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjwhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjwhMubj")}(h__platform_driver_registerh]j()}(h__platform_driver_registerh]h__platform_driver_register}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjwhhhjwhMubj7)}(hI(struct platform_driver *drv, struct module *owner, const char *mod_name)h](j7)}(hstruct platform_driver *drvh](h)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hj&xhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj#xubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj(xmodnameN classnameNj7j7)}j7]j7)}j7jwsbc.__platform_driver_registerasbuh1hhjxubj)}(h h]h }(hjFxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj7)}(hj7h]h*}(hjTxhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjxubj()}(hdrvh]hdrv}(hjaxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjzxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvxubh)}(hhh]j()}(hmoduleh]hmodule}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjxmodnameN classnameNj7j7)}j7]jBxc.__platform_driver_registerasbuh1hhjvxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvxubj7)}(hj7h]h*}(hjxhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjvxubj()}(hownerh]howner}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hconst char *mod_nameh](h)}(hj8h]hconst}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjM7)}(hcharh]hchar}(hjyhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjxubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj7)}(hj7h]h*}(hj!yhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjxubj()}(hmod_nameh]hmod_name}(hj.yhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjwhhhjwhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjwhhhjwhMubah}(h]jwah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjwhMhjwhhubjV)}(hhh]j[)}(h,register a driver for platform-level devicesh]h,register a driver for platform-level devices}(hjXyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjUyhhubah}(h]h ]h"]h$]h&]uh1jUhjwhhhjwhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjpyj{jpyj|j}j~uh1hhhhj}\hNhNubj)}(h**Parameters** ``struct platform_driver *drv`` platform driver structure ``struct module *owner`` owning module/driver ``const char *mod_name`` module name stringh](j[)}(h**Parameters**h]j)}(hjzyh]h Parameters}(hj|yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxyubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjtyubj)}(hhh](j)}(h:``struct platform_driver *drv`` platform driver structure h](j)}(h``struct platform_driver *drv``h]j)}(hjyh]hstruct platform_driver *drv}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjyubj)}(hhh]j[)}(hplatform driver structureh]hplatform driver structure}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubj)}(h.``struct module *owner`` owning module/driver h](j)}(h``struct module *owner``h]j)}(hjyh]hstruct module *owner}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjyubj)}(hhh]j[)}(howning module/driverh]howning module/driver}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjyubj)}(h+``const char *mod_name`` module name stringh](j)}(h``const char *mod_name``h]j)}(hj zh]hconst char *mod_name}(hj zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj zubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjzubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hj$zhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj!zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj zhMhjyubeh}(h]h ]h"]h$]h&]uh1jhjtyubeh}(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)}(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.chMhjubj)}(hhh](j)}(h=``struct platform_driver *driver`` platform driver structure h](j)}(h"``struct platform_driver *driver``h]j)}(hjՃh]hstruct platform_driver *driver}(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 driver structureh]hplatform driver structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjσubeh}(h]h ]h"]h$]h&]uh1jhjhMhj̃ubj)}(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&]uh1jhj ubah}(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}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj̃ubj)}(hT``struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``struct resource *res``h]j)}(hjGh]hstruct resource *res}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjAubj)}(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`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj̃ubj)}(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&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjzubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj̃ubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(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/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hj҄hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj΄hMhjτubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj΄hMhj̃ubj)}(h/``size_t size`` size of platform specific data 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&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj̃ubj)}(hG``struct module *module`` module which will be the owner of the driver h](j)}(h``struct module *module``h]j)}(hj+h]hstruct module *module}(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,module which will be the owner of the driverh]h,module which will be the owner of the driver}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj̃ubj)}(h,``const char *mod_name`` module name string h](j)}(h``const char *mod_name``h]j)}(hjdh]hconst char *mod_name}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj^ubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhM hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM 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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjubj[)}(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.chM hjubj[)}(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 ](jׯjtc-typeeh"]h$]h&]uh1jhj̅ubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj7jjplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjąubh+ pointer on success, or ERR_PTR() on error.}(hjąhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhM hjubeh}(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)}(hint __platform_register_drivers (struct platform_driver * const *drivers, unsigned int count, struct module *owner, const char *mod_name)h]h)}(hint __platform_register_drivers(struct platform_driver *const *drivers, unsigned int count, struct module *owner, const char *mod_name)h](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhha/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&]uh1jhjhhhj$hM;ubj")}(h__platform_register_driversh]j()}(h__platform_register_driversh]h__platform_register_drivers}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj$hM;ubj7)}(hh(struct platform_driver *const *drivers, unsigned int count, struct module *owner, const char *mod_name)h](j7)}(h&struct platform_driver *const *driversh](h)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjsmodnameN classnameNj7j7)}j7]j7)}j7j9sbc.__platform_register_driversasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjOubh)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj7)}(hj7h]h*}(hjdžhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjOubj()}(hdriversh]hdrivers}(hjԆhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjKubj7)}(hunsigned int counth](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hinth]hint}(hj hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hcounth]hcount}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjKubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j()}(hmoduleh]hmodule}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj^modnameN classnameNj7j7)}j7]jc.__platform_register_driversasbuh1hhj:ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:ubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjKubj7)}(hconst char *mod_nameh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hjɇhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjׇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hmod_nameh]hmod_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjKubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj$hM;ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj$hM;ubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$hM;hj hhubjV)}(hhh]j[)}(h%register an array of platform driversh]h%register 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.chM;hjhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj$hM;ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj4j{j4j|j}j~uh1hhhhj}\hNhNubj)}(hXC**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 ``const char *mod_name`` module name string **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?hj8ubj)}(hhh](j)}(hL``struct platform_driver * const *drivers`` an array of drivers to register 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.chM<hjWubj)}(hhh]j[)}(han array of drivers to registerh]han array of drivers to register}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhM<hjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhM<hjTubj)}(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=hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjTubj)}(h3``struct module *owner`` module owning the drivers h](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.chM>hjɈubj)}(hhh]j[)}(hmodule owning the driversh]hmodule owning the drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjɈubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjTubj)}(h,``const char *mod_name`` module name string h](j)}(h``const char *mod_name``h]j)}(hjh]hconst char *mod_name}(hj hhhNhNubah}(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 name stringh]hmodule name string}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjTubeh}(h]h ]h"]h$]h&]uh1jhj8ubj[)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMAhj8ubj[)}(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.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM@hj8ubj[)}(h **Return**h]j)}(hjjh]hReturn}(hjlhhhNhNubah}(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.chMEhj8ubj[)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMFhj8ubeh}(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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMfubj")}(hplatform_unregister_driversh]j()}(hplatform_unregister_driversh]hplatform_unregister_drivers}(hjЉhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̉ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMfubj7)}(h<(struct platform_driver *const *drivers, unsigned int count)h](j7)}(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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]j7)}j7j҉sbc.platform_unregister_driversasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubh)}(hj8h]hconst}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdriversh]hdrivers}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned int counth](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMfubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMfhjhhubjV)}(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.chMfhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMfubeh}(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)}(hj h]h Parameters}(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.chMjhjubj)}(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.chMghj#ubj)}(hhh]j[)}(h!an array of drivers to unregisterh]h!an array of drivers to unregister}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>hMghj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMghj ubj)}(h;``unsigned int count`` the number of drivers to unregister h](j)}(h``unsigned int count``h]j)}(hjbh]hunsigned int count}(hjdhhhNhNubah}(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.chMhhj\ubj)}(hhh]j[)}(h#the number of drivers to unregisterh]h#the number of drivers to unregister}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwhMhhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhhj 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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMjhjubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMihjubeh}(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&]uh1hhjދhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjދhhhjhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7platform_find_device_by_driversb c.platform_find_device_by_driverasbuh1hhjދhhhjhMubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjދhhhjhMubj7)}(hj7h]h*}(hj0hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjދhhhjhMubj")}(hplatform_find_device_by_driverh]j()}(hjh]hplatform_find_device_by_driver}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjދhhhjhMubj7)}(h7(struct device *start, const struct device_driver *drv)h](j7)}(hstruct device *starth](h)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j()}(hdeviceh]hdevice}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj|modnameN classnameNj7j7)}j7]j c.platform_find_device_by_driverasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjXubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjTubj7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hǰ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()}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j c.platform_find_device_by_driverasbuh1hhjȌubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȌubj7)}(hj7h]h*}(hj1hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjȌubj()}(hdrvh]hdrv}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjȌubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjTubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjދhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjڋhhhjhMubah}(h]jՋah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhj׋hhubjV)}(hhh]j[)}(h+Find a platform device with a given driver.h]h+Find a platform device with a given driver.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjehhubah}(h]h ]h"]h$]h&]uh1jUhj׋hhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chMhjubj)}(hhh](j)}(h>``struct device *start`` The device to start the search 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&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h$The device to start the search from.h]h$The device to start the search from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhj܍ubj)}(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&]uh1jhj܍ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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_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}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhKubh)}(hhh]j()}(hdeviceh]hdevice}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj]modnameN classnameNj7j7)}j7]j7)}j7bus_find_device_by_namesbc.bus_find_device_by_nameasbuh1hhj8hhhjIhKubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhKubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj8hhhjIhKubj")}(hbus_find_device_by_nameh]j()}(hjyh]hbus_find_device_by_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhhjIhKubj7)}(hD(const struct bus_type *bus, struct device *start, const char *name)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]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()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jwc.bus_find_device_by_nameasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *starth](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()}(hdeviceh]hdevice}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj\ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjamodnameN classnameNj7j7)}j7]jwc.bus_find_device_by_nameasbuh1hhj=ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj=ubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hj̏hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjڏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj8hhhjIhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhjIhKubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhKhj1hhubjV)}(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.}(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&]uh1jUhj1hhhjIhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj7j{j7j|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)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj;ubj)}(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}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjZubj)}(hhh]j[)}(hbus typeh]hbus type}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjuhKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjWubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(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[)}(hDevice to begin withh]hDevice to begin with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjWubj)}(h0``const char *name`` name of the device to matchh](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&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj̐ubj)}(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&]uh1jhj̐ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjWubeh}(h]h ]h"]h$]h&]uh1jhj;ubeh}(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}(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(hhhj9hKubh)}(hhh]j()}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjMmodnameN classnameNj7j7)}j7]j7)}j7bus_find_device_by_of_nodesbc.bus_find_device_by_of_nodeasbuh1hhj(hhhj9hKubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj9hKubj7)}(hj7h]h*}(hjzhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj(hhhj9hKubj")}(hbus_find_device_by_of_nodeh]j()}(hjih]hbus_find_device_by_of_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj(hhhj9hKubj7)}(h:(const struct bus_type *bus, const struct device_node *np)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]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()}(hbus_typeh]hbus_type}(hjߑhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjܑubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jgc.bus_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device_node *nph](h)}(hj8h]hconst}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hjh]hstruct}(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubh)}(hhh]j()}(h device_nodeh]h device_node}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjlmodnameN classnameNj7j7)}j7]jgc.bus_find_device_by_of_nodeasbuh1hhj-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-ubj()}(hnph]hnp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj(hhhj9hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj$hhhj9hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj9hKhj!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.}(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&]uh1jUhj!hhhj9hKubeh}(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)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(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)}(hjGh]hconst struct device_node *np}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjAubj)}(hhh]j[)}(hof_node of the device to match.h]hof_node of the device to match.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(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](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}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj“modnameN classnameNj7j7)}j7]j7)}j7bus_find_device_by_fwnodesbc.bus_find_device_by_fwnodeasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKubj")}(hbus_find_device_by_fwnodeh]j()}(hjޓh]hbus_find_device_by_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h@(const struct bus_type *bus, const struct fwnode_handle *fwnode)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjVmodnameN classnameNj7j7)}j7]jܓc.bus_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h"const struct fwnode_handle *fwnodeh](h)}(hj8h]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 fwnode_handleh]h fwnode_handle}(hjߔhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjܔubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jܓc.bus_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(hEdevice iterator for locating a particular device matching the fwnode.h]hEdevice iterator for locating a particular device matching the fwnode.}(hjBhhhNhNubah}(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&]jyjtjzjZj{jZj|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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj^ubj)}(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.hhKhj}ubj)}(hhh]j[)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjzubj)}(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&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hjՕhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjҕubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjѕhKhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubeh}(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}(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}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj7modnameN classnameNj7j7)}j7]j7)}j7bus_find_device_by_devtsbc.bus_find_device_by_devtasbuh1hhjhhhj#hKubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj#hKubj7)}(hj7h]h*}(hjdhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhj#hKubj")}(hbus_find_device_by_devth]j()}(hjSh]hbus_find_device_by_devt}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj#hKubj7)}(h((const struct bus_type *bus, dev_t devt)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj˖modnameN classnameNj7j7)}j7]jQc.bus_find_device_by_devtasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]jQc.bus_find_device_by_devtasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj#hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj#hKubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj#hKhj hhubjV)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjqhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj#hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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ʗhKhjubj)}(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&]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_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}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjUhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjimodnameN classnameNj7j7)}j7]j7)}j7bus_find_next_devicesbc.bus_find_next_deviceasbuh1hhjDhhhjUhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjUhKubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjDhhhjUhKubj")}(hbus_find_next_deviceh]j()}(hjh]hbus_find_next_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjDhhhjUhKubj7)}(h0(const struct bus_type *bus, struct device *cur)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hj˜hhhNhNubah}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.bus_find_next_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *curh](h)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j()}(hdeviceh]hdevice}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmmodnameN classnameNj7j7)}j7]jc.bus_find_next_deviceasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjIubj()}(hcurh]hcur}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjDhhhjUhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj@hhhjUhKubah}(h]j;ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjUhKhj=hhubjV)}(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.}(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&]uh1jUhj=hhhjUhKubeh}(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)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj ubj)}(hhh]j[)}(hbus typeh]hbus 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)}(h7``struct device *cur`` device to begin the search with.h](j)}(h``struct device *cur``h]j)}(hjHh]hstruct device *cur}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjBubj)}(hhh]j[)}(h device to begin the search with.h]h device to begin the search with.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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](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}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjÚmodnameN classnameNj7j7)}j7]j7)}j7bus_find_device_by_acpi_devsbc.bus_find_device_by_acpi_devasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhKubj")}(hbus_find_device_by_acpi_devh]j()}(hjߚh]hbus_find_device_by_acpi_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h<(const struct bus_type *bus, const struct acpi_device *adev)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjRubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjWmodnameN classnameNj7j7)}j7]jݚc.bus_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct acpi_device *adevh](h)}(hj8h]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()}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjݛubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jݚc.bus_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hadevh]hadev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(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.}(hjChhhNhNubah}(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&]jyjtjzj[j{j[j|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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj_ubj)}(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.hhKhj~ubj)}(hhh]j[)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj{ubj)}(hB``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hjh]hconst struct acpi_device *adev}(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[)}(hACPI COMPANION device to match.h]hACPI COMPANION device to match.}(hj֜hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjӜubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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](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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/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&]uh1jhjhhhj%hM_ubj")}(hbus_for_each_devh]j()}(hbus_for_each_devh]hbus_for_each_dev}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj%hM_ubj7)}(hP(const struct bus_type *bus, struct device *start, void *data, device_iter_t fn)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hjh]hstruct}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7j:sbc.bus_for_each_devasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjPubj()}(hbush]hbus}(hjȝhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.bus_for_each_devasbuh1hhjݝubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݝubj7)}(hj7h]h*}(hj+hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjݝubj()}(hstarth]hstart}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjݝubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj7)}(hj7h]h*}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjMubj()}(hdatah]hdata}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjMubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.bus_for_each_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjžhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj%hM_ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj%hM_ubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj%hM_hj hhubjV)}(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&]uh1jUhj hhhj%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)}(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: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)}(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.chM`hj'ubj)}(hhh]j[)}(h bus type.h]h bus type.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhM`hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM`hj$ubj)}(h9``struct device *start`` device to start iterating from. h](j)}(h``struct device *start``h]j)}(hjfh]hstruct device *start}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMahj`ubj)}(hhh]j[)}(hdevice to start iterating from.h]hdevice to start iterating from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hMahj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hMahj$ubj)}(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:68: ./drivers/base/bus.chMbhjubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhj$ubj)}(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}(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.chMchjҟ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&]uh1jZhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjҟubeh}(h]h ]h"]h$]h&]uh1jhjhMchj$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.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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh’s list of devices, and call }(hj)hhhNhNubj)}(h**fn**h]hfn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh for each, passing it }(hj)hhhNhNubj)}(h**data**h]hdata}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubh. If }(hj)hhhNhNubj)}(h **start**h]hstart}(hjghhhNhNubah}(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 }(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:68: ./drivers/base/bus.chMhhjubj[)}(h**NOTE**h]j)}(hjh]hNOTE}(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.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.}(hjhhhNhNubah}(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&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]j7)}j7bus_find_devicesbc.bus_find_deviceasbuh1hhjhhhjhMubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj7)}(hj7h]h*}(hj6hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhMubj")}(hbus_find_deviceh]j()}(hj%h]hbus_find_device}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hZ(const struct bus_type *bus, struct device *start, const void *data, device_match_t match)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hjh]hstruct}(hj}hhhNhNubah}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j#c.bus_find_deviceasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj7)}(hj7h]h*}(hjǡhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^ubj()}(hbush]hbus}(hjԡhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjZubj7)}(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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]j#c.bus_find_deviceasbuh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj7hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hstarth]hstart}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjZubj7)}(hconst void *datah](h)}(hj8h]hconst}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjM7)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjYubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjZubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j#c.bus_find_deviceasbuh1hhjubj)}(h h]h }(hjۢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmatchh]hmatch}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjZubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]j۠ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjݠhhubjV)}(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:68: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjݠhhhjhMubeh}(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)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(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 type h](j)}(h``const struct bus_type *bus``h]j)}(hjTh]hconst struct bus_type *bus}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjNubj)}(hhh]j[)}(hbus typeh]hbus type}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjKubj)}(h.``struct device *start`` Device to begin with 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.chMhjubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubj)}(h4``const void *data`` Data to pass to match function 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjߣhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjۣhMhjܣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۣhMhjKubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubj[)}(h**Description**h]j)}(hj:h]h Description}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj/ubj[)}(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 }(hjPhhhNhNubj)}(h **match**h]hmatch}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubh callback.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj/ubj[)}(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.}(hjqhhhNhNubah}(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_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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hbus_for_each_drvh]j()}(hbus_for_each_drvh]hbus_for_each_drv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hn(const struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver*, void*))h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjݤhhhNhNubah}(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()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jäsbc.bus_for_each_drvasbuh1hhj٤ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٤ubj7)}(hj7h]h*}(hjDhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj٤ubj()}(hbush]hbus}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj٤ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjդubj7)}(hstruct device_driver *starth](h)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubh)}(hhh]j()}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j2c.bus_for_each_drvasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjfubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjդubj7)}(h void *datah](jM7)}(hvoidh]hvoid}(hjڥhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj֥ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj֥ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj֥ubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj֥ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjդubj7)}(h'int (*fn)(struct device_driver*, void*)h](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj|h]h(}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(hj7h]h*}(hjEhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hfnh]hfn}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubj7)}(hj|h]h)}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(hj|h]h(}(hjmhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubh)}(hjh]hstruct}(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j2c.bus_for_each_drvasbuh1hhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(h,h]h,}(hjæhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjѦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hvoidh]hvoid}(hjߦhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(hj|h]h)}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjդubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(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&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj;j{j;j|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)}(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:68: ./drivers/base/bus.chMhj?ubj)}(hhh](j)}(h7``const struct bus_type *bus`` bus we're dealing with. h](j)}(h``const struct bus_type *bus``h]j)}(hjdh]hconst struct bus_type *bus}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj^ubj)}(hhh]j[)}(hbus we're dealing with.h]hbus we’re dealing with.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(h>``struct device_driver *start`` driver to start iterating on. h](j)}(h``struct device_driver *start``h]j)}(hjh]hstruct device_driver *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.chMhjubj)}(hhh]j[)}(hdriver to start iterating on.h]hdriver to start iterating on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubj)}(h-``void *data`` data to pass to 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:68: ./drivers/base/bus.chMhjЧubj)}(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&]uh1jhjЧubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubj)}(hP``int (*fn)(struct device_driver *, void *)`` function to call for each driver. h](j)}(h-``int (*fn)(struct device_driver *, void *)``h]j)}(hjh]h)int (*fn)(struct device_driver *, void *)}(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.chMhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj[ubeh}(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:68: ./drivers/base/bus.chMhj?ubj[)}(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 }(hj`hhhNhNubj)}(h**bus**h]hbus}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh , and call }(hj`hhhNhNubj)}(h**fn**h]hfn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh for each. If }(hj`hhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh8 returns anything but 0, we break out and return it. If }(hj`hhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh0 is not NULL, we use it as the head of the list.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj?ubj[)}(h**NOTE**h]j)}(hjh]hNOTE}(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.chMhj?ubj[)}(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.}(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_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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/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&]uh1jhjhhhj hM^ubj")}(hbus_rescan_devicesh]j()}(hbus_rescan_deviceshK]hbus_rescan_devices}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hM^ubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hjh]hstruct}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjvmodnameN classnameNj7j7)}j7]j7)}j7j!sbc.bus_rescan_devicesasbuh1hhj7ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj7ubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hM^ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hM^hjhhubjV)}(hhh]j[)}(h.rescan devices on the bus for possible driversh]h.rescan devices on the bus for possible drivers}(hj٩hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM^hj֩hhubah}(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`` 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.chMbhjubj)}(hhh]j)}(h0``const struct bus_type *bus`` the bus to scan. 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.chM_hjubj)}(hhh]j[)}(hthe bus to scan.h]hthe bus to scan.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hM_hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM_hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMahjubj[)}(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.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM`hjubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMlubj")}(hdevice_reprobeh]j()}(hdevice_reprobeh]hdevice_reprobe}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMlubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjתhhhNhNubah}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.device_reprobeasbuh1hhjӪubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӪubj7)}(hj7h]h*}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjӪubj()}(hdevh]hdev}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjӪubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjϪubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMlubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMlubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMlhjhhubjV)}(hhh]j[)}(h5remove driver for a device and probe for a new driverh]h5remove driver for a device and probe for a new driver}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMlhjWhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMlubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjrj{jrj|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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMphjvubj)}(hhh]j)}(h-``struct device *dev`` the device to reprobe 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:68: ./drivers/base/bus.chMmhjubj)}(hhh]j[)}(hthe device to reprobeh]hthe device to reprobe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjvubj[)}(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.chMohjvubj[)}(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.chMnhjvubeh}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hMubj")}(h bus_registerh]j()}(h bus_registerh]h bus_register}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj)hMubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7j>sbc.bus_registerasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjTubj()}(hbush]hbus}(hj̬hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj)hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj)hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj)hMhjhhubjV)}(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&]uh1jUhjhhhj)hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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 to register 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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj1ubj)}(hhh]j[)}(hbus to registerh]hbus to register}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(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.}(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_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](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjƭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŭhMubj")}(hbus_unregisterh]j()}(hbus_unregisterh]hbus_unregister}(hjحhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjԭubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjŭhMubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj/modnameN classnameNj7j7)}j7]j7)}j7jڭsbc.bus_unregisterasbuh1hhjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjŭhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjŭhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjŭhMhjhhubjV)}(hhh]j[)}(hremove a bus from the systemh]hremove a bus from the system}(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&]uh1jUhjhhhjŭhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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. 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.chMhjͮubj)}(hhh]j[)}(hbus.h]hbus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjͮubeh}(h]h ]h"]h$]h&]uh1jhjhMhjʮubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]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:68: ./drivers/base/bus.chMhjubj[)}(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.chMhjubeh}(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](jM7)}(hinth]hint}(hjShhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjOhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMEubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhjahMEubj")}(hsubsys_system_registerh]j()}(hsubsys_system_registerh]hsubsys_system_register}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjOhhhjahMEubj7)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j7)}(hconst struct bus_type *subsysh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetj˯modnameN classnameNj7j7)}j7]j7)}j7jvsbc.subsys_system_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hsubsysh]hsubsys}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h%const struct attribute_group **groupsh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjXmodnameN classnameNj7j7)}j7]jc.subsys_system_registerasbuh1hhjubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjOhhhjahMEubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjKhhhjahMEubah}(h]jFah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjahMEhjHhhubjV)}(hhh]j[)}(h,register a subsystem at /sys/devices/system/h]h,register a subsystem at /sys/devices/system/}(hjưhhhNhNubah}(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&]uh1jUhjHhhhjahMEubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjްj{jްj|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.chMIhjubj)}(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}(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.chMFhjubj)}(hhh]j[)}(hsystem subsystemh]hsystem subsystem}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hj@h]h%const struct attribute_group **groups}(hjBhhhNhNubah}(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.chMGhj:ubj)}(hhh]j[)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUhMGhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMGhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMIhjubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMHhjubj[)}(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/.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMOhjubeh}(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](jM7)}(hinth]hint}(hjϱhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj˱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")}(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!hj˱hhhjݱhM^ubj7)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j7)}(hconst struct bus_type *subsysh](h)}(hj8h]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&] refdomainjtreftypej7 reftargetjGmodnameN classnameNj7j7)}j7]j7)}j7jsbc.subsys_virtual_registerasbuh1hhjubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjshhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hsubsysh]hsubsys}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h%const struct attribute_group **groupsh](h)}(hj8h]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()}(hattribute_grouph]hattribute_group}(hjҲhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjϲubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjԲmodnameN classnameNj7j7)}j7]jac.subsys_virtual_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj˱hhhjݱhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjDZhhhjݱhM^ubah}(h]j±ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjݱhM^hjıhhubjV)}(hhh]j[)}(h-register a subsystem at /sys/devices/virtual/h]h-register a subsystem at /sys/devices/virtual/}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM^hj?hhubah}(h]h ]h"]h$]h&]uh1jUhjıhhhjݱhM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjZj{jZj|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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMbhj^ubj)}(hhh](j)}(h4``const struct bus_type *subsys`` virtual 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_hj}ubj)}(hhh]j[)}(hvirtual subsystemh]hvirtual subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjzubj)}(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`hjzubeh}(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.chMbhj^ubj[)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMahj^ubeh}(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}(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMvubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhMvubh)}(hhh]j()}(h device_driverh]h device_driver}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj]modnameN classnameNj7j7)}j7]j7)}j7 driver_findsb c.driver_findasbuh1hhj8hhhjIhMvubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhMvubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj8hhhjIhMvubj")}(h driver_findh]j()}(hjyh]h driver_find}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhhjIhMvubj7)}(h.(const char *name, const struct bus_type *bus)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjôhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hjѴhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjߴhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct bus_type *bush](h)}(hj8h]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()}(hbus_typeh]hbus_type}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjNmodnameN classnameNj7j7)}j7]jw c.driver_findasbuh1hhjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjxhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj8hhhjIhMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhjIhMvubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhMvhj1hhubjV)}(hhh]j[)}(h#locate driver on a bus by its name.h]h#locate driver on a bus by its name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jUhj1hhhjIhMvubeh}(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)}(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.chMzhj˵ubj)}(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.chMwhjubj)}(hhh]j[)}(hname of the driver.h]hname of the driver.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMwhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubj)}(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.chMxhj#ubj)}(hhh]j[)}(hbus to scan for the driver.h]hbus to scan for the driver.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>hMxhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMxhjubeh}(h]h ]h"]h$]h&]uh1jhj˵ubj[)}(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:68: ./drivers/base/bus.chMzhj˵ubj[)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMyhj˵ubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM|hj˵ubeh}(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}(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 }(hjƶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŶhMubh)}(hhh]j()}(hdeviceh]hdevice}(hj׶hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjԶubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjٶmodnameN classnameNj7j7)}j7]j7)}j7bus_get_dev_rootsbc.bus_get_dev_rootasbuh1hhjhhhjŶhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjŶhMubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjŶhMubj")}(hbus_get_dev_rooth]j()}(hjh]hbus_get_dev_root}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjŶhMubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmmodnameN classnameNj7j7)}j7]jc.bus_get_dev_rootasbuh1hhj.ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj.ubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj*ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjŶhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjŶhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjŶhMhjhhubjV)}(hhh]j[)}(h.return a pointer to the "device root" of a bush]h2return a pointer to the “device root” of a bus}(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&]uh1jUhjhhhjŶhMubeh}(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)}(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.chMhj ubj)}(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&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(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: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.}(hj`hhhNhNubah}(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.}(hjohhhNhNubah}(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.}(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}\hhhNhNubeh}(h]device-drivers-baseah ]h"]device drivers baseah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDevice Drivers DMA Managementh]hDevice Drivers DMA Management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKHubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdmam_free_coherent (C function)c.dmam_free_coherenthNtauh1hhjhhhNhNubh)}(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](jM7)}(hvoidh]hvoid}(hjƸhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj¸hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=ubj)}(h h]h }(hjոhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj¸hhhjԸhK=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!hj¸hhhjԸhK=ubj7)}(hE(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h](j7)}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj#modnameN classnameNj7j7)}j7]j7)}j7jsbc.dmam_free_coherentasbuh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjOhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjzmodnameN classnameNj7j7)}j7]j=c.dmam_free_coherentasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h void *vaddrh](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hj˹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjٹhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hvaddrh]hvaddr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j=c.dmam_free_coherentasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(h dma_handleh]h dma_handle}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj¸hhhjԸhK=ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjԸhK=ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjԸhK=hjhhubjV)}(hhh]j[)}(hManaged dma_free_coherent()h]hManaged dma_free_coherent()}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=hjUhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjԸhK=ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjpj{jpj|j}j~uh1hhhhjhNhNubj)}(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)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhjtubj)}(hhh](j)}(h:``struct device *dev`` Device to free 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.chK>hjubj)}(hhh]j[)}(h"Device to free coherent memory forh]h"Device to free coherent memory for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjҺh]h size_t size}(hjԺhhhNhNubah}(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.chK?hj̺ubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhj̺ubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(h6``void *vaddr`` Virtual address of the memory to free h](j)}(h``void *vaddr``h]j)}(hj h]h void *vaddr}(hj hhhNhNubah}(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.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@hjubj)}(h;``dma_addr_t dma_handle`` DMA handle of the memory to free h](j)}(h``dma_addr_t dma_handle``h]j)}(hjDh]hdma_addr_t dma_handle}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhj>ubj)}(hhh]j[)}(h DMA handle of the memory to freeh]h DMA handle of the memory to free}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhKAhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKAhjubeh}(h]h ]h"]h$]h&]uh1jhjtubj[)}(h**Description**h]j)}(hjh]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:74: ./kernel/dma/mapping.chKChjtubj[)}(hManaged dma_free_coherent().h]hManaged dma_free_coherent().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKBhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdmam_alloc_attrs (C function)c.dmam_alloc_attrshNtauh1hhjhhhNhNubh)}(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](jM7)}(hvoidh]hvoid}(hjĻhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPubj)}(h h]h }(hjӻhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjһhKPubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjһhKPubj")}(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!hjhhhjһhKPubj7)}(hY(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)h](j7)}(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}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj.modnameN classnameNj7j7)}j7]j7)}j7jsbc.dmam_alloc_attrsasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjZhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hdevh]hdev}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jHc.dmam_alloc_attrsasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hdma_addr_t *dma_handleh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hj˼hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjȼubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjͼmodnameN classnameNj7j7)}j7]jHc.dmam_alloc_attrsasbuh1hhjļubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjļubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjļubj()}(h dma_handleh]h dma_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjļubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h gfp_t gfph](h)}(hhh]j()}(hgfp_th]hgfp_t}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj"modnameN classnameNj7j7)}j7]jHc.dmam_alloc_attrsasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hgfph]hgfp}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned long attrsh](jM7)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjaubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjM7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj()}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjһhKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjһhKPubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjһhKPhjhhubjV)}(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.chKPhjĽhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjһhKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj߽j{j߽j|j}j~uh1hhhhjhNhNubj)}(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}(hj hhhNhNubah}(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}(hj!hhhNhNubah}(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)}(hjAh]h size_t size}(hjChhhNhNubah}(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.chKRhj;ubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhKRhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKRhjubj)}(hA``dma_addr_t *dma_handle`` Out argument for allocated DMA handle h](j)}(h``dma_addr_t *dma_handle``h]j)}(hjzh]hdma_addr_t *dma_handle}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKShjtubj)}(hhh]j[)}(h%Out argument for allocated DMA handleh]h%Out argument for allocated DMA handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKShjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKShjubj)}(h``gfp_t gfp`` Allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(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.chKThjubj)}(hhh]j[)}(hAllocation flagsh]hAllocation flags}(hj̾hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjȾhKThjɾubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(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: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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKVhjubj[)}(h **Return**h]j)}(hjNh]hReturn}(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.chKYhjubj[)}(h8Pointer to allocated memory on success, NULL on failure.h]h8Pointer to allocated memory on success, NULL on failure.}(hjdhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_map_sg_attrs (C function)c.dma_map_sg_attrshNtauh1hhjhhhNhNubh)}(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](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdma_map_sg_attrsh]j()}(hdma_map_sg_attrsh]hdma_map_sg_attrs}(hjпhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj̿ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hi(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)h](j7)}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]j7)}j7jҿsbc.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct scatterlist *sgh](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(h scatterlisth]h scatterlist}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj~modnameN classnameNj7j7)}j7]j&c.dma_map_sg_attrsasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjZubj()}(hsgh]hsg}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h int nentsh](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hnentsh]hnents}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(henum dma_data_direction dirh](h)}(hjZh]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}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj#modnameN classnameNj7j7)}j7]j&c.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdirh]hdir}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned long attrsh](jM7)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjbubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjM7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj()}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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)}(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: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}(hj"hhhNhNubah}(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)}(hjBh]hstruct scatterlist *sg}(hjDhhhNhNubah}(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[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjubj)}(h'``int nents`` Number of entries to map h](j)}(h ``int nents``h]j)}(hj{h]h int nents}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjuubj)}(hhh]j[)}(hNumber of entries to maph]hNumber of entries to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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.chMhjubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(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: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 }(hj>hhhNhNubj)}(h**dir**h]hdir}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh DMA operation by the }(hj>hhhNhNubj)}(h**dev**h]hdev}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh device.}(hj>hhhNhNubeh}(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.}(hjqhhhNhNubah}(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).}(hjhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_map_sgtable (C function)c.dma_map_sgtablehNtauh1hhjhhhNhNubh)}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubj")}(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!hjhhhjhM1ubj7)}(h\(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, unsigned long attrs)h](j7)}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj modnameN classnameNj7j7)}j7]j7)}j7jsbc.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct sg_table *sgth](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(hsg_tableh]hsg_table}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj~modnameN classnameNj7j7)}j7]j&c.dma_map_sgtableasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjZubj()}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(henum dma_data_direction dirh](h)}(hjZh]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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j&c.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned long attrsh](jM7)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj-ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjM7)}(hlongh]hlong}(hjMhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj-ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj()}(hattrsh]hattrs}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj-ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM1ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM1ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM1hjhhubjV)}(hhh]j[)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM1hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM1ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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)}(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.chM5hjubj)}(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.chM2hjubj)}(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&]uh1jZhjhM2hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(hC``struct sg_table *sgt`` The sg_table object describing the buffer h](j)}(h``struct sg_table *sgt``h]j)}(hj h]hstruct sg_table *sgt}(hjhhhNhNubah}(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.chM3hjubj)}(hhh]j[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hM3hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hM3hjubj)}(h.``enum dma_data_direction dir`` DMA direction h](j)}(h``enum dma_data_direction dir``h]j)}(hjFh]henum dma_data_direction dir}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM4hj@ubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj[hM4hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM4hjubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM5hjyubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubeh}(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.chM7hjubj[)}(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.chM6hjubj[)}(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=hjubj)}(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}hj-sbah}(h]h ]h"]h$]h&]uh1j+hj'ubhoption_argument)}(hINVALh]hINVAL}(hj=hhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1j;hj'ubeh}(h]h ]h"]h$]h&]uh1j%hj"ubah}(h]h ]h"]h$]h&]uh1j hjubh 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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM@hjZubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j!)}(hhh]j&)}(h-ENOMEMh](j,)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1j+hjubj<)}(hNOMEMh]hNOMEM}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1j;hjubeh}(h]h ]h"]h$]h&]uh1j%hj|ubah}(h]h ]h"]h$]h&]uh1j hjyubjY)}(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.}(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&]uh1jXhjyubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j!)}(hhh]j&)}(h-EIOh](j,)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1j+hjubj<)}(hIOh]hIO}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1j;hjubeh}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1j hjubjY)}(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.chMDhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j!)}(hhh]j&)}(h -EREMOTEIOh](j,)}(h-Eh]h-E}hj'sbah}(h]h ]h"]h$]h&]uh1j+hj#ubj<)}(hREMOTEIOh]hREMOTEIO}(hj5hhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1j;hj#ubeh}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1j hjubjY)}(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.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMGhjPubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjlhM@hjubah}(h]h ]h"]h$]h&]uh1jhjlhM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_need_unmap (C function)c.dma_need_unmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h(bool dma_need_unmap (struct device *dev)h]h)}(h'bool dma_need_unmap(struct device *dev)h](jM7)}(hj9h]hbool}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/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_need_unmaph]j()}(hdma_need_unmaph]hdma_need_unmap}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.dma_need_unmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h,does this device need dma_unmap_* operationsh]h,does this device need dma_unmap_* operations}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjWhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjrj{jrj|j}j~uh1hhhhjhNhNubj)}(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)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjvubj)}(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&]uh1jhjvubj[)}(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.chMhjvubj[)}(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.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_can_mmap (C function)c.dma_can_mmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h&bool dma_can_mmap (struct device *dev)h]h)}(h%bool dma_can_mmap(struct device *dev)h](jM7)}(hj9h]hbool}(hj-hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj)hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM'ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)hhhj:hM'ubj")}(h dma_can_mmaph]j()}(h dma_can_mmaph]h dma_can_mmap}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj)hhhj:hM'ubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jOsbc.dma_can_mmapasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjeubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjaubah}(h]h ]h"]h$]h&]j?j@uh1j7hj)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+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&]uh1jUhj"hhhj:hM'ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM+hjubj)}(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:74: ./kernel/dma/mapping.chM(hj'ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhM(hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhM(hj$ubah}(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:74: ./kernel/dma/mapping.chM*hjubj[)}(hrReturns ``true`` if **dev** supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.h](hReturns }(hj~hhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubh if }(hj~hhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubhW supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.}(hj~hhhNhNubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_mmap_attrs (C function)c.dma_mmap_attrshNtauh1hhjhhhNhNubh)}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/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:ubj7)}(hw(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)h](j7)}(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}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj.modnameN classnameNj7j7)}j7]j7)}j7jsbc.dma_mmap_attrsasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hjZhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hdevh]hdev}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct vm_area_struct *vmah](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()}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jHc.dma_mmap_attrsasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj|ubj()}(hvmah]hvma}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hvoid *cpu_addrh](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hcpu_addrh]hcpu_addr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hdma_addr_t dma_addrh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj7modnameN classnameNj7j7)}j7]jHc.dma_mmap_attrsasbuh1hhj.ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj()}(hdma_addrh]hdma_addr}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jHc.dma_mmap_attrsasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned long attrsh](jM7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(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@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM:ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM:ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM:hjhhubjV)}(hhh]j[)}(h-map a coherent DMA allocation into user spaceh]h-map a coherent DMA allocation into user space}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM:hj!hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM:ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj<j{j<j|j}j~uh1hhhhjhNhNubj)}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM>hj@ubj)}(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)}(hjeh]hstruct device *dev}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM;hj_ubj)}(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}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjzhM;hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM;hj\ubj)}(hP``struct vm_area_struct *vma`` vm_area_struct describing requested user mapping h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(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[)}(h0vm_area_struct describing requested user mappingh]h0vm_area_struct describing requested user mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hj\ubj)}(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.chM=hjubj)}(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&]uh1jZhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hj\ubj)}(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.chM>hj ubj)}(hhh]j[)}(h1device-view address returned from dma_alloc_attrsh]h1device-view address returned from dma_alloc_attrs}(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\ubj)}(hG``size_t size`` size of memory originally requested in dma_alloc_attrs h](j)}(h``size_t size``h]j)}(hjIh]h size_t size}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM?hjCubj)}(hhh]j[)}(h6size of memory originally requested in dma_alloc_attrsh]h6size of memory originally requested in dma_alloc_attrs}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hM?hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM?hj\ubj)}(hV``unsigned long attrs`` attributes of mapping properties requested in dma_alloc_attrs 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.chM@hj|ubj)}(hhh]j[)}(h=attributes of mapping properties requested in dma_alloc_attrsh]h=attributes of mapping properties requested in dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM@hj\ubeh}(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.chMBhj@ubj[)}(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.chMAhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#dma_addressing_limited (C function)c.dma_addressing_limitedhNtauh1hhjhhhNhNubh)}(hhh](h)}(h0bool dma_addressing_limited (struct device *dev)h]h)}(h/bool dma_addressing_limited(struct device *dev)h](jM7)}(hj9h]hbool}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh^/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}(hj"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j()}(hdeviceh]hdevice}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj^modnameN classnameNj7j7)}j7]j7)}j7j$sbc.dma_addressing_limitedasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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)}(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: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 }(hjShhhNhNubj)}(h``true``h]htrue}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhP if the devices DMA mask is too small to address all memory in the system, else }(hjShhhNhNubj)}(h ``false``h]hfalse}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubhc. Lack of addressing bits is the prime reason for bounce buffering, but might not be the only one.}(hjShhhNhNubeh}(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&]uh1jhjhhhNhNubeh}(h]device-drivers-dma-managementah ]h"]device drivers dma managementah$]h&]uh1hhhhhhhhKHubh)}(hhh](h)}(hDevice drivers PnP supporth]hDevice drivers PnP support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"pnp_register_protocol (C function)c.pnp_register_protocolhNtauh1hhjhhhNhNubh)}(hhh](h)}(h9int pnp_register_protocol (struct pnp_protocol *protocol)h]h)}(h8int pnp_register_protocol(struct pnp_protocol *protocol)h](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK*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!hjhhhjhK*ubj7)}(h(struct pnp_protocol *protocol)h]j7)}(hstruct pnp_protocol *protocolh](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 pnp_protocolh]h pnp_protocol}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.pnp_register_protocolasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjHhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hprotocolh]hprotocol}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhK*ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhK*ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK*hjhhubjV)}(hhh]j[)}(h$adds a pnp protocol to the pnp layerh]h$adds a pnp protocol to the pnp layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*hj|hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhK*ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(h**Parameters** ``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure **Description** Ex protocols: ISAPNP, PNPBIOS, etch](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:80: ./drivers/pnp/core.chK.hjubj)}(hhh]j)}(hV``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure h](j)}(h!``struct pnp_protocol *protocol``h]j)}(hjh]hstruct pnp_protocol *protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK+hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK+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:80: ./drivers/pnp/core.chK-hjubj)}(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&]uh1jhj"hK,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$pnp_request_card_device (C function)c.pnp_request_card_devicehNtauh1hhjhhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM#ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhM#ubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjjmodnameN classnameNj7j7)}j7]j7)}j7pnp_request_card_devicesbc.pnp_request_card_deviceasbuh1hhjEhhhjVhM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhM#ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjEhhhjVhM#ubj")}(hpnp_request_card_deviceh]j()}(hjh]hpnp_request_card_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjEhhhjVhM#ubj7)}(hC(struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h](j7)}(hstruct pnp_card_link *clinkh](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_card_linkh]h pnp_card_link}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.pnp_request_card_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hclinkh]hclink}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *idh](h)}(hj8h]hconst}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjM7)}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj/ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj7)}(hj7h]h*}(hjjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/ubj()}(hidh]hid}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct pnp_dev *fromh](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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.pnp_request_card_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjEhhhjVhM#ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjAhhhjVhM#ubah}(h]j<ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjVhM#hj>hhubjV)}(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&]uh1jUhj>hhhjVhM#ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj)j{j)j|j}j~uh1hhhhjhNhNubj)}(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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM'hj-ubj)}(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)}(hjRh]hstruct pnp_card_link *clink}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM$hjLubj)}(hhh]j[)}(h(pointer to the card link, cannot be NULLh]h(pointer to the card link, cannot be NULL}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghM$hjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghM$hjIubj)}(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)}(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:83: ./drivers/pnp/card.chM%hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM%hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hjIubj)}(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)}(hjh]hstruct pnp_dev *from}(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[)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$pnp_release_card_device (C function)c.pnp_release_card_devicehNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void pnp_release_card_device (struct pnp_dev *dev)h]h)}(h1void pnp_release_card_device(struct pnp_dev *dev)h](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hMWubj")}(hpnp_release_card_deviceh]j()}(hpnp_release_card_deviceh]hpnp_release_card_device}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj,hMWubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj{modnameN classnameNj7j7)}j7]j7)}j7jAsbc.pnp_release_card_deviceasbuh1hhjWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjWubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj,hMWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj,hMWubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj,hMWhjhhubjV)}(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&]uh1jUhjhhhj,hMWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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}(hj!hhhNhNubah}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMXhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM]hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%pnp_register_card_driver (C function)c.pnp_register_card_driverhNtauh1hhjhhhNhNubh)}(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](jM7)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjuhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhM}ubj")}(hpnp_register_card_driverh]j()}(hpnp_register_card_driverh]hpnp_register_card_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuhhhjhM}ubj7)}(h(struct pnp_card_driver *drv)h]j7)}(hstruct pnp_card_driver *drvh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_card_driverh]hpnp_card_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.pnp_register_card_driverasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjuhhhjhM}ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjhM}ubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM}hjnhhubjV)}(hhh]j[)}(h.registers a PnP card driver with the PnP Layerh]h.registers a PnP card driver with the PnP Layer}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}hj6hhubah}(h]h ]h"]h$]h&]uh1jUhjnhhhjhM}ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjQj{jQj|j}j~uh1hhhhjhNhNubj)}(hS**Parameters** ``struct pnp_card_driver *drv`` pointer to the driver to registerh](j[)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjUubj)}(hhh]j)}(hA``struct pnp_card_driver *drv`` pointer to the driver to registerh](j)}(h``struct pnp_card_driver *drv``h]j)}(hjzh]hstruct pnp_card_driver *drv}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjtubj)}(hhh]j[)}(h!pointer to the driver to registerh]h!pointer to the driver to register}(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&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'pnp_unregister_card_driver (C function)c.pnp_unregister_card_driverhNtauh1hhjhhhNhNubh)}(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}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM6ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hM6ubh)}(hhh]j()}(hpnp_idh]hpnp_id}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjPmodnameN classnameNj7j7)}j7]j7)}j7 pnp_add_idsb c.pnp_add_idasbuh1hhj+hhhj<hM6ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hM6ubj7)}(hj7h]h*}(hj}hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+hhhj<hM6ubj")}(h pnp_add_idh]j()}(hjlh]h pnp_add_id}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj+hhhj<hM6ubj7)}(h%(struct pnp_dev *dev, const char *id)h](j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jj c.pnp_add_idasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *idh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjM7)}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjPhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hidh]hid}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj+hhhj<hM6ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'hhhj<hM6ubah}(h]j"ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj<hM6hj$hhubjV)}(hhh]j[)}(h'adds an EISA id to the specified deviceh]h'adds an EISA id to the specified device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM6hjhhubah}(h]h ]h"]h$]h&]uh1jUhj$hhhj<hM6ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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)}(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:86: ./drivers/pnp/driver.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:86: ./drivers/pnp/driver.chM7hjubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(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&]uh1jhjhM9hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_start_dev (C function)c.pnp_start_devhNtauh1hhjhhhNhNubh)}(hhh](h)}(h'int pnp_start_dev (struct pnp_dev *dev)h]h)}(h&int pnp_start_dev(struct pnp_dev *dev)h](jM7)}(hinth]hint}(hj[hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjWhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWhhhjihMLubj")}(h pnp_start_devh]j()}(h pnp_start_devh]h pnp_start_dev}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjWhhhjihMLubj7)}(h(struct pnp_dev *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7j~sbc.pnp_start_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjWhhhjihMLubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjShhhjihMLubah}(h]jNah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjihMLhjPhhubjV)}(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&]uh1jUhjPhhhjihMLubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj3j{j3j|j}j~uh1hhhhjhNhNubj)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** assumes that resources have already been allocatedh](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:89: ./drivers/pnp/manager.chMPhj7ubj)}(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:89: ./drivers/pnp/manager.chMMhjVubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhMMhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMMhjSubah}(h]h ]h"]h$]h&]uh1jhj7ubj[)}(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.chMOhj7ubj[)}(h2assumes that resources have already been allocatedh]h2assumes that resources have already been allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMNhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_stop_dev (C function)c.pnp_stop_devhNtauh1hhjhhhNhNubh)}(hhh](h)}(h&int pnp_stop_dev (struct pnp_dev *dev)h]h)}(h%int pnp_stop_dev(struct pnp_dev *dev)h](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh_/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!hjhhhjhMdubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *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()}(hpnp_devh]hpnp_dev}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj9modnameN classnameNj7j7)}j7]j7)}j7jsbc.pnp_stop_devasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMdubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hq**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not free resourcesh](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.chMhhjubj)}(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&]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:89: ./drivers/pnp/manager.chMghjubj[)}(hdoes not free resourcesh]hdoes not free resources}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_activate_dev (C function)c.pnp_activate_devhNtauh1hhjhhhNhNubh)}(hhh](h)}(h*int pnp_activate_dev (struct pnp_dev *dev)h]h)}(h)int pnp_activate_dev(struct pnp_dev *dev)h](jM7)}(hinth]hint}(hj]hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjYhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhMzubj")}(hpnp_activate_devh]j()}(hpnp_activate_devh]hpnp_activate_dev}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjYhhhjkhMzubj7)}(h(struct pnp_dev *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.pnp_activate_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjYhhhjkhMzubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjUhhhjkhMzubah}(h]jPah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjkhMzhjRhhubjV)}(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&]uh1jUhjRhhhjkhMzubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj5j{j5j|j}j~uh1hhhhjhNhNubj)}(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)}(hj?h]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM~hj9ubj)}(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&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM{hjXubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshM{hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshM{hjUubah}(h]h ]h"]h$]h&]uh1jhj9ubj[)}(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.chM}hj9ubj[)}(h1does not validate or set resources so be careful.h]h1does not validate or set resources so be careful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM|hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_disable_dev (C function)c.pnp_disable_devhNtauh1hhjhhhNhNubh)}(hhh](h)}(h)int pnp_disable_dev (struct pnp_dev *dev)h]h)}(h(int pnp_disable_dev(struct pnp_dev *dev)h](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh_/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!hjhhhjhMubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *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()}(hpnp_devh]hpnp_dev}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj;modnameN classnameNj7j7)}j7]j7)}j7jsbc.pnp_disable_devasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjghhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hdisables deviceh]hdisables device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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)}(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.chMhjubj)}(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&]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:89: ./drivers/pnp/manager.chMhjubj[)}(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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_is_active (C function)c.pnp_is_activehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'int pnp_is_active (struct pnp_dev *dev)h]h)}(h&int pnp_is_active(struct pnp_dev *dev)h](jM7)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj[hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhhjmhKubj")}(h pnp_is_activeh]j()}(h pnp_is_activeh]h pnp_is_active}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj[hhhjmhKubj7)}(h(struct pnp_dev *dev)h]j7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jsbc.pnp_is_activeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj[hhhjmhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjWhhhjmhKubah}(h]jRah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjmhKhjThhubjV)}(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&]uh1jUhjThhhjmhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj7j{j7j|j}j~uh1hhhhjhNhNubj)}(hK**Parameters** ``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j[)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhj;ubj)}(hhh]j)}(h9``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j)}(h``struct pnp_dev *dev``h]j)}(hj`h]hstruct pnp_dev *dev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjZubj)}(hhh]j[)}(h!pointer to the desired PnP deviceh]h!pointer to the desired PnP device}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]device-drivers-pnp-supportah ]h"]device drivers pnp supportah$]h&]uh1hhhhhhhhKNubh)}(hhh](h)}(hUserspace IO devicesh]hUserspace IO devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK`ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_event_notify (C function)c.uio_event_notifyhNtauh1hhjhhhNhNubh)}(hhh](h)}(h-void uio_event_notify (struct uio_info *info)h]h)}(h,void uio_event_notify(struct uio_info *info)h](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh[/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!hjhhhjhMubj7)}(h(struct uio_info *info)h]j7)}(hstruct uio_info *infoh](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()}(huio_infoh]huio_info}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj+ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj0modnameN classnameNj7j7)}j7]j7)}j7jsbc.uio_event_notifyasbuh1hhj ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hj\hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hinfoh]hinfo}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(htrigger an interrupt eventh]htrigger an interrupt event}(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~uh1hhhhjhNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](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)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__uio_register_device (C function)c.__uio_register_devicehNtauh1hhjhhhNhNubh)}(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](jM7)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hj*hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hMubj")}(h__uio_register_deviceh]j()}(h__uio_register_deviceh]h__uio_register_device}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj*hhhj<hMubj7)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]j7)}j7jQsbc.__uio_register_deviceasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjgubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jc.__uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hparenth]hparent}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubj7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j()}(huio_infoh]huio_info}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetjmmodnameN classnameNj7j7)}j7]jc.__uio_register_deviceasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjIubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj*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 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&]uh1jUhj#hhhj<hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj ubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(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(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjHh]hstruct device *parent}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjBubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(h2``struct uio_info *info`` UIO device capabilities h](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.chMhj{ubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(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: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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__devm_uio_register_device (C function)c.__devm_uio_register_devicehNtauh1hhjhhhNhNubh)}(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](jM7)}(hinth]hint}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh[/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}(hj"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM2ubj7)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j()}(hmoduleh]hmodule}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj^modnameN classnameNj7j7)}j7]j7)}j7j$sbc.__devm_uio_register_deviceasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:ubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6ubj7)}(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&] refdomainjtreftypej7 reftargetjmodnameN classnameNj7j7)}j7]jxc.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6ubj7)}(hstruct uio_info *infoh](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()}(huio_infoh]huio_info}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj@modnameN classnameNj7j7)}j7]jxc.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hj7h]h*}(hjjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj()}(hinfoh]hinfo}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM2ubeh}(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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM2hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM2ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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.chM6hjubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hM4hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM4hjubj)}(h2``struct uio_info *info`` UIO device capabilities h](j)}(h``struct uio_info *info``h]j)}(hjTh]hstruct uio_info *info}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM5hjNubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihM5hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM5hjubeh}(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:98: ./drivers/uio/uio.chM7hjubj[)}(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.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"uio_unregister_device (C function)c.uio_unregister_devicehNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void uio_unregister_device (struct uio_info *info)h]h)}(h1void uio_unregister_device(struct uio_info *info)h](jM7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jY7ah"]h$]h&]uh1jL7hjhhh[/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!hjhhhjhMSubj7)}(h(struct uio_info *info)h]j7)}(hstruct uio_info *infoh](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()}(huio_infoh]huio_info}(hj/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ]h"]h$]h&] refdomainjtreftypej7 reftargetj1modnameN classnameNj7j7)}j7]j7)}j7jsbc.uio_unregister_deviceasbuh1hhj ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hj7h]h*}(hj]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj()}(hinfoh]hinfo}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMSubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMSubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMShjhhubjV)}(hhh]j[)}(h!unregister a industrial IO deviceh]h!unregister a industrial IO device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMShjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMSubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](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.chMWhjubj)}(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&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_mem (C struct) c.uio_memhNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_memh]h)}(hstruct uio_memh](h)}(hjh]hstruct}(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj<hKubj")}(huio_memh]j()}(hj)h]huio_mem}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj+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"description of a UIO memory regionh]h"description of a UIO memory region}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjnhhubah}(h]h ]h"]h$]h&]uh1jUhj$hhhj<hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(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}(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.hhKhjubj)}(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; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.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:101: ./include/linux/uio_driver.hhK*hjubj)}(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)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKhjubj)}(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)}(hjQh]hdma_addr}(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[)}(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 (}(hjjhhhNhNubj)}(h**addr**h]haddr}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubhE should be the void * returned from the same dma_alloc_coherent call)}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK hjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhK"hjubj)}(h1``offs`` offset of device memory within the page h](j)}(h``offs``h]j)}(hjh]hoffs}(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'offset of device memory within the pageh]h'offset of device memory within the page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#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&]uh1jhj ubah}(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[)}(htype of memory addr points toh]htype of memory addr points to}(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%hjubj)}(hG``internal_addr`` ioremap-ped version of addr, for driver internal use h](j)}(h``internal_addr``h]j)}(hjHh]h internal_addr}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK&hjBubj)}(hhh]j[)}(h4ioremap-ped version of addr, for driver internal useh]h4ioremap-ped version of addr, for driver internal use}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]hK&hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hK&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)}(hjh]h dma_device}(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[)}(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}(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&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubj)}(h%``map`` for use by the UIO core only.h](j)}(h``map``h]j)}(hjh]hmap}(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[)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_port (C struct) c.uio_porthNtauh1hhjhhhNhNubh)}(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 }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hK/ubj")}(huio_porth]j()}(hjh]huio_port}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj"hK/ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj"hK/ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj"hK/hj hhubjV)}(hhh]j[)}(h description of a UIO port regionh]h description of a UIO port region}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK;hjThhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj"hK/ubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjoj{joj|j}j~uh1hhhhjhNhNubj)}(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&]uh1jhjwubh:}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hjsubj)}(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; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKAhjsubj[)}(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:101: ./include/linux/uio_driver.hhKIhjsubj)}(hhh](j)}(h4``name`` name of the port 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.hhK=hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK=hjubj)}(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>hjubj)}(h``size`` size of port region h](j)}(h``size``h]j)}(hj6h]hsize}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hj0ubj)}(hhh]j[)}(hsize of port regionh]hsize of port region}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhK?hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhK?hjubj)}(h1``porttype`` type of port (see UIO_PORT_* below) h](j)}(h ``porttype``h]j)}(hjoh]hporttype}(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[)}(h#type of port (see UIO_PORT_* below)h]h#type of port (see UIO_PORT_* below)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(h(``portio`` for use by the UIO core only.h](j)}(h ``portio``h]j)}(hjh]hportio}(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[)}(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.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_info (C struct) c.uio_infohNtauh1hhjhhhNhNubh)}(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}(hj"hhhNhNubah}(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}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKZhjAhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKGubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj\j{j\j|j}j~uh1hhhhjhNhNubj)}(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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh:}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hj`ubj)}(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); };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK`hj`ubj[)}(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:101: ./include/linux/uio_driver.hhKphj`ubj)}(hhh](j)}(h0``uio_dev`` the UIO device this info belongs to h](j)}(h ``uio_dev``h]j)}(hjh]huio_dev}(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#the UIO device this info belongs toh]h#the UIO device this info belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubj)}(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]hjubj)}(h"``version`` device driver version h](j)}(h ``version``h]j)}(hj#h]hversion}(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[)}(hdevice driver versionh]hdevice driver version}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hK^hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hK^hjubj)}(hA``mem`` list of mappable memory regions, size==0 for end of list h](j)}(h``mem``h]j)}(hj\h]hmem}(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[)}(h8list of mappable memory regions, size==0 for end of listh]h8list of mappable memory regions, size==0 for end of list}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhK_hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhK_hjubj)}(h7``port`` list of port regions, size==0 for end of list h](j)}(h``port``h]j)}(hjh]hport}(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-list of port regions, size==0 for end of listh]h-list of port regions, size==0 for end of list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(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.hhKahjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKahjubj)}(h&``irq_flags`` flags for request_irq() h](j)}(h ``irq_flags``h]j)}(hjh]h irq_flags}(hj hhhNhNubah}(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()}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjubj)}(h``priv`` optional private data h](j)}(h``priv``h]j)}(hj@h]hpriv}(hjBhhhNhNubah}(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.hhKchj:ubj)}(hhh]j[)}(hoptional private datah]hoptional private data}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUhKchjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKchjubj)}(h%``handler`` the device's irq handler h](j)}(h ``handler``h]j)}(hjyh]hhandler}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKdhjsubj)}(hhh]j[)}(hthe device's irq handlerh]hthe device’s irq handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKdhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjubj)}(h<``mmap_prepare`` mmap_prepare operation for this uio device h](j)}(h``mmap_prepare``h]j)}(hjh]h mmap_prepare}(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.hhKehjubj)}(hhh]j[)}(h*mmap_prepare operation for this uio deviceh]h*mmap_prepare operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(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&]uh1jhjhKfhjubj)}(h2``release`` release operation for this uio device h](j)}(h ``release``h]j)}(hj$h]hrelease}(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.hhKghjubj)}(hhh]j[)}(h%release operation for this uio deviceh]h%release operation for this uio device}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9hKghj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKghjubj)}(hC``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j)}(h``irqcontrol``h]j)}(hj]h]h irqcontrol}(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.hhKghjWubj)}(hhh]j[)}(h4disable/enable irqs when 0/1 is written to /dev/uioXh]h4disable/enable irqs when 0/1 is written to /dev/uioX}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKghjubeh}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_register_device (C macro)c.uio_register_devicehNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_register_deviceh]h)}(huio_register_deviceh]j")}(huio_register_deviceh]j()}(hjh]huio_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~uh1hhhhjhNhNubj[)}(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.hhKhjhhubj)}(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&]uh1jhjhKhjhhubj)}(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)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(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)}(hjAh]hparent}(hjChhhNhNubah}(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[)}(h parent deviceh]h parent device}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhKhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj8ubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hjzh]hinfo}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjtubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhj8ubeh}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_uio_register_device (C macro)c.devm_uio_register_devicehNtauh1hhjhhhNhNubh)}(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&]jyjtjzj*j{j*j|j}j~uh1hhhhjhNhNubj[)}(h+``devm_uio_register_device (parent, info)``h]j)}(hj0h]h'devm_uio_register_device (parent, info)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhhubj)}(h'Resource managed uio_register_device() h]j[)}(h&Resource managed uio_register_device()h]h&Resource managed uio_register_device()}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjFubah}(h]h ]h"]h$]h&]uh1jhjXhKhjhhubj)}(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)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj_ubj)}(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.hhKhj~ubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj{ubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hjh]hinfo}(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[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj{ubeh}(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&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj_ubj[)}(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.hhKhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(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_handlerjWerror_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}(j1j.jz\jw\jjjjjjj)j&u nametypes}(j1jz\jjjj)uh}(j.hjw\hhhj8j=j%j*jgjljRjWj j j j j j j j$ j;j@j~jjjjjjjj/j4jjjKjPjjj]jbjjjSjXj j j!j!j$#j)#j%j%jZ(j_(j3j4j?7jD7j9j9j;j;jX=j]=j>j>jv@j{@j:Bj?BjDjDjFjFjGjGjHjHj,Oj1OjQjQjUjUjWjWjj}\j\j\j]j]j `j`j~bjbjdjdj gjgjijij4kj9kjljljojojsjsjujuj&xj+xjyjyj({j-{j*|j/|jjjjjjjPjUjjjÉjȉjjj&j+jEjJjdjijujzjjjjjjjnjsjɝjΝjqjvjjjƣjˣjjj7j<jRjWj3j8jjjXj]jͻjһjjjdjijj jdjijjjjjjjBjGjljqjjjjjj jcjhjjjjjjjojtjjjjjjjujzjjjjjjjrjwjTjYjSjXjjjWj\j[j`j_jdj jj:j?jjj% j* j j j1j6jjj`jejEjJjjjj jqjvjjjjjjjjj!j !j"j"j$j $j%j%j 'j'j(j(j*j*jD,jI,j]-jb-j/j/jw1j|1j%3j*3j4j4jT9jY9j>j>jBBjGBjKFjPFjIj IjKjLj'Nj,Nj^PjcPjaSjfSjUjUjXjXjYjYjo]jt]j%`j*`jcbjhbjdjdjfjfjhj#hj5jj:jjmj mjojojqj"qjrjrjCtjHtjujujwjwjXzj]zj{j{jjj jjjjՋjڋj/j4jj$jjj jj;j@jjj jj۠jjjjjjjjjjjjFjKj±jDZj/j4jjjjjjjjjjjjjjj j%jjjjjjjjj<jAjjjljqjjj"j'jNjSjjjPjUjjjRjWj&jjjj!j&jjjjj"j'jj jjjjjju 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.