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)}(hX1**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. ``show_const`` Show handler (read-only). ``{unnamed_union}`` anonymous ``store`` Store handler. ``store_const`` Store handler (read-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&]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)``show_const`` Show handler (read-only). h](j)}(h``show_const``h]j)}(hjh]h show_const}(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.hhKghjubj)}(hhh]j[)}(hShow handler (read-only).h]hShow handler (read-only).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubj)}(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.hhKhhj ubj)}(hhh]j[)}(hStore handler.h]hStore handler.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hKhhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hKhhjubj)}(h*``store_const`` Store handler (read-only).h](j)}(h``store_const``h]j)}(hjJh]h store_const}(hjLhhhNhNubah}(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.hhKhhjDubj)}(hhh]j[)}(hStore handler (read-only).h]hStore handler (read-only).}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKihj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hKhhjubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKoubj")}(hdev_ext_attributeh]j()}(hjh]hdev_ext_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKoubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKoubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKohjhhubjV)}(hhh]j[)}(h-Exported device attribute with extra context.h]h-Exported device attribute with extra context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK{hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKoubeh}(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}(hj hhhNhNubah}(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.hhKhjubj)}(hNstruct dev_ext_attribute { struct device_attribute attr; void *var; };h]hNstruct dev_ext_attribute { struct device_attribute attr; void *var; };}hj#sbah}(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)}(hj4h]hMembers}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(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)}(hjSh]hattr}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK}hjMubj)}(hhh]j[)}(hExported device attribute.h]hExported device attribute.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhhK}hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhK}hjJubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK}hjJubeh}(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()}(hjh]h DEVICE_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.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h-``DEVICE_ATTR (_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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj4ubah}(h]h ]h"]h$]h&]uh1j2hjFhKhhhhubj)}(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)}(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:7: ./include/linux/device.hhKhjMubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjrh]h_name}(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[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(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.hhKhjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(hJ``_show`` Show handler. Optional, but mandatory if attribute is readable. h](j)}(h ``_show``h]j)}(hjh]h_show}(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?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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjiubj)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hKhj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hKhjiubeh}(h]h ]h"]h$]h&]uh1jhjMubj[)}(h**Description**h]j)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjMubj[)}(h9Convenience macro for defining a struct device_attribute.h]h9Convenience macro for defining a struct device_attribute.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjMubj[)}(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.hhKhjMubj)}(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, };}hjsbah}(h]h ]h"]h$]h&]j?j@forcelanguagejthighlight_args}uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjMubeh}(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()}(hjh]hDEVICE_ATTR_RW}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_RW (_name)``h]j)}(hj h]hDEVICE_ATTR_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.hhKhhhhubj3)}(h&Define a read-write device attribute. h]j[)}(h%Define a read-write device attribute.h]h%Define a 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&]uh1j2hj/ hKhhhhubj)}(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)}(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.hhKhj6 ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj[ h]h_name}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjU ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjp hKhjq ubah}(h]h ]h"]h$]h&]uh1jhjU ubeh}(h]h ]h"]h$]h&]uh1jhjp hKhjR ubah}(h]h ]h"]h$]h&]uh1jhj6 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.hhKhj6 ubj[)}(hfLike DEVICE_ATTR(), but **_mode** is 0644, **_show** is <_name>_show, and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hj hhhNhNubj)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is 0644, }(hj hhhNhNubj)}(h **_show**h]h_show}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is <_name>_show, and }(hj hhhNhNubj)}(h **_store**h]h_store}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is <_name>_store.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj6 ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_ADMIN_RW (C macro)c.DEVICE_ATTR_ADMIN_RWhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_ADMIN_RWh]h)}(hDEVICE_ATTR_ADMIN_RWh]j")}(hDEVICE_ATTR_ADMIN_RWh]j()}(hj h]hDEVICE_ATTR_ADMIN_RW}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj( hKubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj( hKhj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhj( hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjA j{jA j|j}j~uh1hhhhhhNhNubj[)}(h ``DEVICE_ATTR_ADMIN_RW (_name)``h]j)}(hjG h]hDEVICE_ATTR_ADMIN_RW (_name)}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj3)}(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.}(hja 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&]uh1j2hjo 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&]uh1jhjz ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjv ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj h]h_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjv 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.hhKhjv ubj[)}(h-Like DEVICE_ATTR_RW(), but **_mode** is 0600.h](hLike DEVICE_ATTR_RW(), but }(hj hhhNhNubj)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh is 0600.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjv 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}(hj1 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% hhhjD hMubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjD hMhj" hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj" hhhjD hMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj] j{j] j|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_RW_NAMED (_name, _attrname)``h]j)}(hjc h]h'DEVICE_ATTR_RW_NAMED (_name, _attrname)}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj3)}(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.hhMhjy ubah}(h]h ]h"]h$]h&]uh1j2hj 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)}(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 function prefaceh]hAttribute function preface}(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@``_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.hhMhj 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&]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.hhM hj 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.}(hjA 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()}(hjj h]hDEVICE_ATTR_RO}(hjt hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjp ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjl hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjh hhhj hMubah}(h]jc ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMhje hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhje hhhj hMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_RO (_name)``h]j)}(hj h]hDEVICE_ATTR_RO (_name)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj3)}(h$Define a readable device attribute. h]j[)}(h#Define a readable device attribute.h]h#Define a readable device attribute.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubah}(h]h ]h"]h$]h&]uh1j2hj 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)}(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)}(hj5 h]h Description}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3 ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj[)}(hHLike DEVICE_ATTR(), but **_mode** is 0444 and **_show** is <_name>_show.h](hLike DEVICE_ATTR(), but }(hjK hhhNhNubj)}(h **_mode**h]h_mode}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK ubh is 0444 and }(hjK hhhNhNubj)}(h **_show**h]h_show}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK ubh is <_name>_show.}(hjK hhhNhNubeh}(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_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}(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_ADMIN_RO (_name)``h]j)}(hj h]hDEVICE_ATTR_ADMIN_RO (_name)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj3)}(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.hhMhj ubah}(h]h ]h"]h$]h&]uh1j2hj 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&]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)}(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.}(hjAhhhNhNubah}(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)}(hjch]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj[)}(h-Like DEVICE_ATTR_RO(), but **_mode** is 0400.h](hLike DEVICE_ATTR_RO(), but }(hjyhhhNhNubj)}(h **_mode**h]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubh is 0400.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hDEVICE_ATTR_RO_NAMED (C macro)c.DEVICE_ATTR_RO_NAMEDhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_RO_NAMEDh]h)}(hDEVICE_ATTR_RO_NAMEDh]j")}(hDEVICE_ATTR_RO_NAMEDh]j()}(hjh]hDEVICE_ATTR_RO_NAMED}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.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_RO_NAMED (_name, _attrname)``h]j)}(hjh]h'DEVICE_ATTR_RO_NAMED (_name, _attrname)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM'hhhhubj3)}(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&]uh1j2hjhM%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)}(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)}(hjDh]h_name}(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.hhM'hj>ubj)}(hhh]j[)}(hAttribute function prefaceh]hAttribute function preface}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhM'hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhM'hj;ubj)}(h@``_attrname`` Attribute name as it wil be exposed in the sysfs. h](j)}(h ``_attrname``h]j)}(hj}h]h _attrname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM(hjwubj)}(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&]uh1jhjwubeh}(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_RO(), but allows for reusing names under separate paths in the same driver.h]h\Like DEVICE_ATTR_RO(), but allows for reusing names under separate paths in the same driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.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.hhM4ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM4ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM4hjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhM4ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj-j{j-j|j}j~uh1hhhhhhNhNubj[)}(h``DEVICE_ATTR_WO (_name)``h]j)}(hj3h]hDEVICE_ATTR_WO (_name)}(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.hhM6hhhhubj3)}(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.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4hjIubah}(h]h ]h"]h$]h&]uh1j2hj[hM4hhhhubj)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.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:7: ./include/linux/device.hhM8hjbubj)}(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.hhM5hjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hj~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:7: ./include/linux/device.hhM7hjbubj[)}(hJLike DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hjhhhNhNubj)}(h **_mode**h]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is 0200 and }(hjhhhNhNubj)}(h **_store**h]h_store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is <_name>_store.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM6hjbubeh}(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()}(hj%h]hDEVICE_ATTR_WO_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.hhM=ubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj#hhhjBhM=ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjBhM=hj hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj hhhjBhM=ubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj[j{j[j|j}j~uh1hhhhhhNhNubj[)}(h+``DEVICE_ATTR_WO_NAMED (_name, _attrname)``h]j)}(hjah]h'DEVICE_ATTR_WO_NAMED (_name, _attrname)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM?hhhhubj3)}(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=hjwubah}(h]h ]h"]h$]h&]uh1j2hjhM=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)}(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.hhMAhjubj)}(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)}(hjh]h _attrname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubeh}(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.hhMBhjubj[)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMAhjubeh}(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()}(hjhh]hDEVICE_ULONG_ATTR}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMLubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjfhhhjhMLubah}(h]jaah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMLhjchhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjchhhjhMLubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h*``DEVICE_ULONG_ATTR (_name, _mode, _var)``h]j)}(hjh]h&DEVICE_ULONG_ATTR (_name, _mode, _var)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMNhhhhubj3)}(h6Define a device attribute backed by an unsigned long. h]j[)}(h5Define a device attribute backed by an unsigned long.h]h5Define a device attribute backed by an unsigned long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMLhjubah}(h]h ]h"]h$]h&]uh1j2hjhMLhhhhubj)}(hX**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of unsigned long. **Description** Like DEVICE_ATTR(), but **_show** and **_store** are automatically provided such that reads and writes to the attribute from userspace affect **_var**.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMPhjubj)}(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.hhMMhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMMhjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hj1h]h_mode}(hj3hhhNhNubah}(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.hhMNhj+ubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFhMNhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMNhjubj)}(h&``_var`` Identifier of unsigned long. h](j)}(h``_var``h]j)}(hjjh]h_var}(hjlhhhNhNubah}(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.hhMOhjdubj)}(hhh]j[)}(hIdentifier of unsigned long.h]hIdentifier of unsigned long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubeh}(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.hhMQhjubj[)}(hLike DEVICE_ATTR(), but **_show** and **_store** are automatically provided such that reads and writes to the attribute from userspace affect **_var**.h](hLike DEVICE_ATTR(), but }(hjhhhNhNubj)}(h **_show**h]h_show}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h **_store**h]h_store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh^ are automatically provided such that reads and writes to the attribute from userspace affect }(hjhhhNhNubj)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMPhjubeh}(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}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMYubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj7hMYubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj7hMYhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhj7hMYubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjPj{jPj|j}j~uh1hhhhhhNhNubj[)}(h(``DEVICE_INT_ATTR (_name, _mode, _var)``h]j)}(hjVh]h$DEVICE_INT_ATTR (_name, _mode, _var)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM[hhhhubj3)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMYhjlubah}(h]h ]h"]h$]h&]uh1j2hj~hMYhhhhubj)}(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)}(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.hhMZhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(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.hhM[hjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM[hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM[hjubj)}(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.hhM\hjubj)}(hhh]j[)}(hIdentifier of int.h]hIdentifier of int.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1hM\hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hM\hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(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 }(hjmhhhNhNubj)}(h**_var**h]h_var}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubh is an int.}(hjmhhhNhNubeh}(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()}(hjh]hDEVICE_BOOL_ATTR}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMeubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMeubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMehjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhMeubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj[)}(h)``DEVICE_BOOL_ATTR (_name, _mode, _var)``h]j)}(hjh]h%DEVICE_BOOL_ATTR (_name, _mode, _var)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMghhhhubj3)}(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.hhMehjubah}(h]h ]h"]h$]h&]uh1j2hj hMehhhhubj)}(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.hhMihjubj)}(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.hhMfhj2ubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhMfhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMfhj/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.hhMghjkubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMghj/ubj)}(h``_var`` Identifier of bool. h](j)}(h``_var``h]j)}(hjh]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhjubj)}(hhh]j[)}(hIdentifier of bool.h]hIdentifier of bool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhhj/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.hhMjhjubj[)}(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.hhMihjubeh}(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()}(hj6h]hDEVICE_STRING_ATTR_RO}(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.hhMqubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhjShMqubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjShMqhj1hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj1hhhjShMqubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjlj{jlj|j}j~uh1hhhhhhNhNubj[)}(h.``DEVICE_STRING_ATTR_RO (_name, _mode, _var)``h]j)}(hjrh]h*DEVICE_STRING_ATTR_RO (_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.hhMshhhhubj3)}(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.hhMqhjubah}(h]h ]h"]h$]h&]uh1j2hjhMqhhhhubj)}(hX**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of string. **Description** Like DEVICE_ULONG_ATTR(), but **_var** is a string. Because the length of the string allocation is unknown, the attribute must be read-only.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMuhjubj)}(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.hhMrhjubj)}(hhh]j[)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubj)}(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.hhMshjubj)}(hhh]j[)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMshjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubj)}(h``_var`` Identifier of string. 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.hhMthj2ubj)}(hhh]j[)}(hIdentifier of string.h]hIdentifier of string.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhMthjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMthjubeh}(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.hhMvhjubj[)}(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.hhMuhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdl_dev_state (C enum)c.dl_dev_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(h dl_dev_stateh]h)}(henum dl_dev_stateh](h)}(henumh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM{ubj")}(h dl_dev_stateh]j()}(hjh]h dl_dev_state}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM{ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM{ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM{hjhhubjV)}(hhh]j[)}(h,Device driver presence tracking information.h]h,Device driver presence tracking information.}(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&]uh1jUhjhhhjhM{ubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj%j{j%j|j}j~uh1hhhhhhNhNubj)}(hX**Constants** ``DL_DEV_NO_DRIVER`` There is no driver attached to the device. ``DL_DEV_PROBING`` A driver is probing. ``DL_DEV_DRIVER_BOUND`` The driver has been bound to the device. ``DL_DEV_UNBINDING`` The driver is unbinding from the device.h](j[)}(h **Constants**h]j)}(hj/h]h Constants}(hj1hhhNhNubah}(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@``DL_DEV_NO_DRIVER`` There is no driver attached to the device. h](j)}(h``DL_DEV_NO_DRIVER``h]j)}(hjNh]hDL_DEV_NO_DRIVER}(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*There is no driver attached to the device.h]h*There is no driver attached to the device.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubj)}(hA``DL_DEV_DRIVER_BOUND`` The driver has been bound to the device. h](j)}(h``DL_DEV_DRIVER_BOUND``h]j)}(hjh]hDL_DEV_DRIVER_BOUND}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h(The driver has been bound to the device.h]h(The driver has been bound to the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjEubj)}(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&]uh1jhjhMhjEubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_removable (C enum)c.device_removablehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_removableh]h)}(henum device_removableh](h)}(hjh]henum}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj`hMubj")}(hdevice_removableh]j()}(hjMh]hdevice_removable}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjOhhhj`hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjKhhhj`hMubah}(h]jFah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj`hMhjHhhubjV)}(hhh]j[)}(hWhether the device is removable. The criteria for a device to be classified as removable is determined by its subsystem or bus.h]hWhether the device is removable. The criteria for a device to be classified as removable is determined by its subsystem or bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjHhhhj`hMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(hX**Constants** ``DEVICE_REMOVABLE_NOT_SUPPORTED`` This attribute is not supported for this device (default). ``DEVICE_REMOVABLE_UNKNOWN`` Device location is Unknown. ``DEVICE_FIXED`` Device is not removable by the user. ``DEVICE_REMOVABLE`` Device is removable by the user.h](j[)}(h **Constants**h]j)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h^``DEVICE_REMOVABLE_NOT_SUPPORTED`` This attribute is not supported for this device (default). h](j)}(h"``DEVICE_REMOVABLE_NOT_SUPPORTED``h]j)}(hjh]hDEVICE_REMOVABLE_NOT_SUPPORTED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h:This attribute is not supported for this device (default).h]h:This attribute is not supported for this device (default).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``DEVICE_REMOVABLE_UNKNOWN`` Device location is Unknown. h](j)}(h``DEVICE_REMOVABLE_UNKNOWN``h]j)}(hjh]hDEVICE_REMOVABLE_UNKNOWN}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj)}(hhh]j[)}(hDevice location is Unknown.h]hDevice location is Unknown.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(h6``DEVICE_FIXED`` Device is not removable by the user. h](j)}(h``DEVICE_FIXED``h]j)}(hjIh]h DEVICE_FIXED}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjCubj)}(hhh]j[)}(h$Device is not removable by the user.h]h$Device is not removable by the user.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubj)}(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.}(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&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_links_info (C struct)c.dev_links_infohNtauh1hhhhhhNhNubh)}(hhh](h)}(hdev_links_infoh]h)}(hstruct dev_links_infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdev_links_infoh]j()}(hjh]hdev_links_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h$Device data related to device links.h]h$Device data related to device links.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj6j{j6j|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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh:}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj:ubj)}(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; };}hj[sbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj:ubj[)}(h **Members**h]j)}(hjlh]hMembers}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj:ubj)}(hhh](j)}(h1``suppliers`` List of links to supplier devices. h](j)}(h ``suppliers``h]j)}(hjh]h suppliers}(hjhhhNhNubah}(h]h ]h"]h$]h&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h1``consumers`` List of links to consumer devices. h](j)}(h ``consumers``h]j)}(hjh]h consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]j[)}(h"List of links to consumer devices.h]h"List of links to consumer devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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)}(hj6h]hstatus}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj0ubj)}(hhh]j[)}(hDriver status information.h]hDriver status information.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubeh}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_msi_info (C struct)c.dev_msi_infohNtauh1hhhhhhNhNubh)}(hhh](h)}(h dev_msi_infoh]h)}(hstruct dev_msi_infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h dev_msi_infoh]j()}(hjh]h dev_msi_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hDevice data related to MSIh]hDevice data related to MSI}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhhhNhNubj)}(hX**Definition**:: struct dev_msi_info { #ifdef CONFIG_GENERIC_MSI_IRQ; struct irq_domain *domain; struct msi_device_data *data; #endif; }; **Members** ``domain`` The MSI interrupt domain associated to the device ``data`` Pointer to MSI device datah](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hstruct dev_msi_info { #ifdef CONFIG_GENERIC_MSI_IRQ; struct irq_domain *domain; struct msi_device_data *data; #endif; };h]hstruct dev_msi_info { #ifdef CONFIG_GENERIC_MSI_IRQ; struct irq_domain *domain; struct msi_device_data *data; #endif; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj[)}(h **Members**h]j)}(hj h]hMembers}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h=``domain`` The MSI interrupt domain associated to the device h](j)}(h ``domain``h]j)}(hj?h]hdomain}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj9ubj)}(hhh]j[)}(h1The MSI interrupt domain associated to the deviceh]h1The MSI interrupt domain associated to the device}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjThMhjUubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhj6ubj)}(h#``data`` Pointer to MSI device datah](j)}(h``data``h]j)}(hjxh]hdata}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjrubj)}(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&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjhMhj6ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'device_physical_location_panel (C enum) c.device_physical_location_panelhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_physical_location_panelh]h)}(h#enum device_physical_location_panelh](h)}(hjh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_physical_location_panelh]j()}(hjh]hdevice_physical_location_panel}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h]Describes which panel surface of the system's housing the device connection point resides on.h]h_Describes which panel surface of the system’s housing the device connection point resides on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj,j{j,j|j}j~uh1hhhhhhNhNubj)}(hX **Constants** ``DEVICE_PANEL_TOP`` Device connection point is on the top panel. ``DEVICE_PANEL_BOTTOM`` Device connection point is on the bottom panel. ``DEVICE_PANEL_LEFT`` Device connection point is on the left panel. ``DEVICE_PANEL_RIGHT`` Device connection point is on the right panel. ``DEVICE_PANEL_FRONT`` Device connection point is on the front panel. ``DEVICE_PANEL_BACK`` Device connection point is on the back panel. ``DEVICE_PANEL_UNKNOWN`` The panel with device connection point is unknown.h](j[)}(h **Constants**h]j)}(hj6h]h Constants}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj0ubj)}(hhh](j)}(hB``DEVICE_PANEL_TOP`` Device connection point is on the top panel. h](j)}(h``DEVICE_PANEL_TOP``h]j)}(hjUh]hDEVICE_PANEL_TOP}(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 top panel.h]h,Device connection point is on the top panel.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(hD``DEVICE_PANEL_LEFT`` Device connection point is on the left panel. h](j)}(h``DEVICE_PANEL_LEFT``h]j)}(hjh]hDEVICE_PANEL_LEFT}(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 left panel.h]h-Device connection point is on the left panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(hF``DEVICE_PANEL_RIGHT`` Device connection point is on the right panel. h](j)}(h``DEVICE_PANEL_RIGHT``h]j)}(hj h]hDEVICE_PANEL_RIGHT}(hj hhhNhNubah}(h]h ]h"]h$]h&]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 right panel.h]h.Device connection point is on the right 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 hjLubj)}(hF``DEVICE_PANEL_FRONT`` Device connection point is on the front panel. h](j)}(h``DEVICE_PANEL_FRONT``h]j)}(hj9 h]hDEVICE_PANEL_FRONT}(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.hhM hj3 ubj)}(hhh]j[)}(h.Device connection point is on the front panel.h]h.Device connection point is on the front panel.}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjN hM hjO ubah}(h]h ]h"]h$]h&]uh1jhj3 ubeh}(h]h ]h"]h$]h&]uh1jhjN hM hjLubj)}(hD``DEVICE_PANEL_BACK`` Device connection point is on the back panel. h](j)}(h``DEVICE_PANEL_BACK``h]j)}(hjr h]hDEVICE_PANEL_BACK}(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.hhMhjl ubj)}(hhh]j[)}(h-Device connection point is on the back panel.h]h-Device connection point is on the back panel.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjl ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjLubj)}(hK``DEVICE_PANEL_UNKNOWN`` The panel with device connection point is unknown.h](j)}(h``DEVICE_PANEL_UNKNOWN``h]j)}(hj h]hDEVICE_PANEL_UNKNOWN}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj)}(hhh]j[)}(h2The panel with device connection point is unknown.h]h2The panel with device connection point is unknown.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h3device_physical_location_vertical_position (C enum),c.device_physical_location_vertical_positionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h*device_physical_location_vertical_positionh]h)}(h/enum device_physical_location_vertical_positionh](h)}(hjh]henum}(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hMubj")}(h*device_physical_location_vertical_positionh]j()}(hj h]h*device_physical_location_vertical_position}(hj%!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!!ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj!hhhj!hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj!hMubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj!hMhj hhubjV)}(hhh]j[)}(hPDescribes vertical position of the device connection point on the panel surface.h]hPDescribes vertical position of the device connection point on the panel surface.}(hjG!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjD!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)}(hji!h]h Constants}(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)}(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)}(hj!h]hDEVICE_VERT_POS_CENTER}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj!ubj)}(hhh]j[)}(h3Device connection point is at center part of panel.h]h3Device connection point is at center part of panel.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!hMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj!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&]uh1jhjc!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h5device_physical_location_horizontal_position (C enum).c.device_physical_location_horizontal_positionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h,device_physical_location_horizontal_positionh]h)}(h1enum device_physical_location_horizontal_positionh](h)}(hjh]henum}(hjT"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP"hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM ubj)}(h h]h }(hjb"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP"hhhja"hM ubj")}(h,device_physical_location_horizontal_positionh]j()}(hjN"h]h,device_physical_location_horizontal_position}(hjt"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjp"ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjP"hhhja"hM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjL"hhhja"hM ubah}(h]jG"ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhja"hM hjI"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&]uh1jUhjI"hhhja"hM ubeh}(h]h ](jtenumeh"]h$]h&]jyjtjzj"j{j"j|j}j~uh1hhhhhhNhNubj)}(h**Constants** ``DEVICE_HORI_POS_LEFT`` Device connection point is at left part of panel. ``DEVICE_HORI_POS_CENTER`` Device connection point is at center part of panel. ``DEVICE_HORI_POS_RIGHT`` Device connection point is at right part of panel.h](j[)}(h **Constants**h]j)}(hj"h]h Constants}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubj)}(hhh](j)}(hK``DEVICE_HORI_POS_LEFT`` Device connection point is at left part of panel. h](j)}(h``DEVICE_HORI_POS_LEFT``h]j)}(hj"h]hDEVICE_HORI_POS_LEFT}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.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&]uh1jZhj"hM"hj"ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"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)}(hjI#h]hDEVICE_HORI_POS_RIGHT}(hjK#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG#ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM'hjC#ubj)}(hhh]j[)}(h2Device connection point is at right part of panel.h]h2Device connection point is at right part of panel.}(hjb#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&]uh1jhjC#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}(hj#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}(hj#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj#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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM(hj#hhubah}(h]h ]h"]h$]h&]uh1jUhj#hhhj#hM-ubeh}(h]h ](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)}(hj3$h]hMembers}(hj5$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1$ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM6hj$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)}(hjR$h]hpanel}(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.hhM,hjL$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.}(hjk$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM+hjh$ubah}(h]h ]h"]h$]h&]uh1jhjL$ubeh}(h]h ]h"]h$]h&]uh1jhjg$hM,hjI$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.}(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.hjI$ubj)}(h]``horizontal_position`` Horizontal position of the device connection point within the panel. h](j)}(h``horizontal_position``h]j)}(hj$h]hhorizontal_position}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM0hj$ubj)}(hhh]j[)}(hDHorizontal position of the device connection point within the panel.h]hDHorizontal position of the device connection point within the panel.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM/hj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hM0hjI$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.hhM2hj$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.hhM1hj%ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj%hM2hjI$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&]uh1jhj8%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM3hj4%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.}(hjS%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjO%hM3hjP%ubah}(h]h ]h"]h$]h&]uh1jhj4%ubeh}(h]h ]h"]h$]h&]uh1jhjO%hM3hjI$ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hstruct_device_flags (C enum)c.struct_device_flagshNtauh1hhhhhhNhNubh)}(hhh](h)}(hstruct_device_flagsh]h)}(henum struct_device_flagsh](h)}(hjh]henum}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM:ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hM:ubj")}(hstruct_device_flagsh]j()}(hj%h]hstruct_device_flags}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj%hhhj%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[)}(hFlags in struct deviceh]hFlags in struct device}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM>hj%hhubah}(h]h ]h"]h$]h&]uh1jUhj%hhhj%hM:ubeh}(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.hhMBhj%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.hhMFhj&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.hhMEhj,&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj+&hMFhj &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)}(hjP&h]hDEV_FLAG_CAN_MATCH}(hjR&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMKhjJ&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.}(hji&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMIhjf&ubah}(h]h ]h"]h$]h&]uh1jhjJ&ubeh}(h]h ]h"]h$]h&]uh1jhje&hMKhj &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.hhMOhj&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.}(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&hMOhj &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)}(hj&h]hDEV_FLAG_DMA_SKIP_SYNC}(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[)}(h8DMA sync operations can be skipped for coherent buffers.h]h8DMA sync operations can be skipped for coherent buffers.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMRhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMShj &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.hhMZhj&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.hhMVhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMZhj &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)}(hj8'h]hDEV_FLAG_STATE_SYNCED}(hj:'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM_hj2'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.}(hjQ'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM]hjN'ubah}(h]h ]h"]h$]h&]uh1jhj2'ubeh}(h]h ]h"]h$]h&]uh1jhjM'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)}(hjr'h]hDEV_FLAG_DMA_COHERENT}(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.hhMchjl'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.hhMbhj'ubah}(h]h ]h"]h$]h&]uh1jhjl'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMchj &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&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMghj'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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMfhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMghj &ubj)}(hH``DEV_FLAG_OFFLINE_DISABLED`` If set, the device is permanently online. h](j)}(h``DEV_FLAG_OFFLINE_DISABLED``h]j)}(hj'h]hDEV_FLAG_OFFLINE_DISABLED}(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.hhMjhj'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'hMjhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hMjhj &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.hhMmhj(ubj)}(hhh]j[)}(h9Set after successful invocation of bus type's .offline().h]h;Set after successful invocation of bus type’s .offline().}(hj8(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4(hMmhj5(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj4(hMmhj &ubj)}(h9``DEV_FLAG_COUNT`` Number of defined struct_device_flags.h](j)}(h``DEV_FLAG_COUNT``h]j)}(hjX(h]hDEV_FLAG_COUNT}(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.hhMohjR(ubj)}(hhh]j[)}(h&Number of defined struct_device_flags.h]h&Number of defined struct_device_flags.}(hjq(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMphjn(ubah}(h]h ]h"]h$]h&]uh1jhjR(ubeh}(h]h ]h"]h$]h&]uh1jhjm(hMohj &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.hhMrhhhhubj[)}(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}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMEubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hMEubj")}(hdeviceh]j()}(hj(h]hdevice}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj(hhhj(hMEubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj(hhhj(hMEubah}(h]j(ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj(hMEhj(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.hhMlhj)hhubah}(h]h ]h"]h$]h&]uh1jUhj(hhhj(hMEubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj3)j{j3)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.hhMphj7)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)]; };}hjX)sbah}(h]h ]h"]h$]h&]j?j@uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMrhj7)ubj[)}(h **Members**h]j)}(hji)h]hMembers}(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.hhMhj7)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.hhMthj)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)hMthj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMthj)ubj)}(h``parent`` The device's "parent" device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want. h](j)}(h ``parent``h]j)}(hj)h]hparent}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMqhj)ubj)}(hhh]j[)}(hThe device's "parent" device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want.h]hThe device’s “parent” device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMnhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hMqhj)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.hhMshj)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.hhMrhj*ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj*hMshj)ubj)}(h*``init_name`` Initial name of the device. h](j)}(h ``init_name``h]j)}(hj5*h]h init_name}(hj7*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMuhj/*ubj)}(hhh]j[)}(hInitial name of the device.h]hInitial name of the device.}(hjN*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJ*hMuhjK*ubah}(h]h ]h"]h$]h&]uh1jhj/*ubeh}(h]h ]h"]h$]h&]uh1jhjJ*hMuhj)ubj)}(hd``type`` The type of device. This identifies the device type and carries type-specific information. h](j)}(h``type``h]j)}(hjn*h]htype}(hjp*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMxhjh*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.hhMvhj*ubah}(h]h ]h"]h$]h&]uh1jhjh*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMxhj)ubj)}(h"``bus`` Type of bus device is on. h](j)}(h``bus``h]j)}(hj*h]hbus}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMzhj*ubj)}(hhh]j[)}(hType of bus device is on.h]hType of bus device is on.}(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`` Which driver has allocated this h](j)}(h ``driver``h]j)}(hj*h]hdriver}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM{hj*ubj)}(hhh]j[)}(hWhich driver has allocated thish]hWhich driver has allocated this}(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)}(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.hhM|hj+ubj)}(hhh]j[)}(h%Platform data specific to the device.h]h%Platform data specific to the device.}(hj3+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/+hM|hj0+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj/+hM|hj)ubj)}(h:``driver_data`` Private pointer for driver specific info. h](j)}(h``driver_data``h]j)}(hjS+h]h driver_data}(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[)}(h)Private pointer for driver specific info.h]h)Private pointer for driver specific info.}(hjl+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjh+hMhji+ubah}(h]h ]h"]h$]h&]uh1jhjM+ubeh}(h]h ]h"]h$]h&]uh1jhjh+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.}(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)}(h4``mutex`` Mutex to synchronize calls to its driver. h](j)}(h ``mutex``h]j)}(hj+h]hmutex}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMyhj+ubj)}(hhh]j[)}(h)Mutex to synchronize calls to its driver.h]h)Mutex to synchronize calls to its driver.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+hMyhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMyhj)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)}(hj8,h]hpower}(hj:,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj2,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.}(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&]uh1jhj2,ubeh}(h]h ]h"]h$]h&]uh1jhjM,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)}(hjr,h]h pm_domain}(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.hhMhjl,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&]uh1jhjl,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&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj,ubj)}(hhh]j[)}(h(device's energy model performance domainh]h*device’s energy model performance domain}(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^``pins`` For device pin management. See Documentation/driver-api/pin-control.rst for details. h](j)}(h``pins``h]j)}(hj,h]hpins}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj,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&]uh1jhj,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}(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)}(h4``dma_ops`` DMA mapping operations for this device. h](j)}(h ``dma_ops``h]j)}(hjX-h]hdma_ops}(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'DMA mapping operations for this device.h]h'DMA mapping operations for this device.}(hjq-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjm-hMhjn-ubah}(h]h ]h"]h$]h&]uh1jhjR-ubeh}(h]h ]h"]h$]h&]uh1jhjm-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).}(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``coherent_dma_mask`` Like dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors. h](j)}(h``coherent_dma_mask``h]j)}(hj-h]hcoherent_dma_mask}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj-ubj)}(hhh]j[)}(hLike dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors.h]hLike dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-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.hhMhj8.ubj)}(hhh]j[)}(h1map for DMA memory ranges relative to that of RAMh]h1map for DMA memory ranges relative to that of RAM}(hjW.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjS.hMhjT.ubah}(h]h ]h"]h$]h&]uh1jhj8.ubeh}(h]h ]h"]h$]h&]uh1jhjS.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)}(hjw.h]h dma_parms}(hjy.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjq.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&]uh1jhjq.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}(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 pools (if dma'ble device).h]h Dma pools (if dma’ble 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)}(h0``dma_mem`` Internal for coherent mem override. h](j)}(h ``dma_mem``h]j)}(hj.h]hdma_mem}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj.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&]uh1jhj.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 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}(hj7=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3=hMhj4=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj3=hMhj=ubj)}(h<``const struct device_driver *drv`` driver to match against h](j)}(h#``const struct device_driver *drv``h]j)}(hjW=h]hconst struct device_driver *drv}(hjY=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU=ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjQ=ubj)}(hhh]j[)}(hdriver to match againsth]hdriver to match against}(hjp=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjl=hMhjm=ubah}(h]h ]h"]h$]h&]uh1jhjQ=ubeh}(h]h ]h"]h$]h&]uh1jhjl=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.}(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](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](j7)}(hj:h]hbool}(hj=hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj=hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubj")}(hdevice_iommu_mappedh]j()}(hdevice_iommu_mappedh]hdevice_iommu_mapped}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj=hhhj=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}(hj1>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.>ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj3>modnameN classnameNj:8j=8)}j@8]jC8)}j68j=sbc.device_iommu_mappedasbuh1hhj>ubj)}(h h]h }(hjQ>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjW8)}(hjZ8h]h*}(hj_>hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj>ubj()}(hdevh]hdev}(hjl>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[)}(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&]uh1jUhj=hhhj=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)}(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)}(h5``struct device *dev`` Device to perform the check onh](j)}(h``struct device *dev``h]j)}(hj>h]hstruct device *dev}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.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&]uh1jhj>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}(hj1?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>?hMubj7)}(hcharh]hchar}(hjM?hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-?hhhj>?hMubj)}(h h]h }(hj[?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-?hhhj>?hMubjW8)}(hjZ8h]h*}(hji?hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj-?hhhj>?hMubj")}(hdev_nameh]j()}(hdev_nameh]hdev_name}(hjz?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjv?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}(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&] refdomainjtreftypej68 reftargetj?modnameN classnameNj:8j=8)}j@8]jC8)}j68j|?sb c.dev_nameasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjW8)}(hjZ8h]h*}(hj?hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj?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.}(hj4@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj1@hhubah}(h]h ]h"]h$]h&]uh1jUhj&?hhhj>?hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjL@j{jL@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)}(hjV@h]h Parameters}(hjX@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT@ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjP@ubj)}(hhh]j)}(h6``const struct device *dev`` Device with name to get. h](j)}(h``const struct device *dev``h]j)}(hju@h]hconst struct device *dev}(hjw@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs@ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjo@ubj)}(hhh]j[)}(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&]uh1jhjo@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhjl@ubah}(h]h ]h"]h$]h&]uh1jhjP@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.hhMhjP@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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjP@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 }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjAhMubj7)}(hcharh]hchar}(hjAhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj@hhhjAhMubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhjAhMubjW8)}(hjZ8h]h*}(hj-AhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj@hhhjAhMubj")}(h dev_bus_nameh]j()}(h dev_bus_nameh]h dev_bus_name}(hj>AhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:Aubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj@hhhjAhMubj7)}(h(const struct device *dev)h]j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hjZAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVAubj)}(h h]h }(hjgAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVAubh)}(hjh]hstruct}(hjuAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVAubh)}(hhh]j()}(hdeviceh]hdevice}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjAmodnameN classnameNj:8j=8)}j@8]jC8)}j68j@Asbc.dev_bus_nameasbuh1hhjVAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVAubjW8)}(hjZ8h]h*}(hjAhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVAubj()}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVAubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRAubah}(h]h ]h"]h$]h&]j?j@uh1j7hj@hhhjAhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj@hhhjAhMubah}(h]j@ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjAhMhj@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&]uh1jUhj@hhhjAhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjBj{jBj|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)}(hjBh]h Parameters}(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.hhMhjBubj)}(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)}(hj9Bh]hconst struct device *dev}(hj;BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Bubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj3Bubj)}(hhh]j[)}(h*struct device to get the bus/class name ofh]h*struct device to get the bus/class name of}(hjRBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjNBhMhjOBubah}(h]h ]h"]h$]h&]uh1jhj3Bubeh}(h]h ]h"]h$]h&]uh1jhjNBhMhj0Bubah}(h]h ]h"]h$]h&]uh1jhjBubj[)}(h**Description**h]j)}(hjtBh]h Description}(hjvBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrBubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjBubj[)}(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.hhMhjBubeh}(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}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjBmodnameN classnameNj:8j=8)}j@8]jC8)}j68device_find_child_by_namesbc.device_find_child_by_nameasbuh1hhjBhhhjBhMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhMubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjBhhhjBhMubj")}(hdevice_find_child_by_nameh]j()}(hjBh]hdevice_find_child_by_name}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjBhhhjBhMubj7)}(h)(struct device *parent, const char *name)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hj3ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/Cubj)}(h h]h }(hj@ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/Cubh)}(hhh]j()}(hdeviceh]hdevice}(hjQChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNCubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjSCmodnameN classnameNj:8j=8)}j@8]jBc.device_find_child_by_nameasbuh1hhj/Cubj)}(h h]h }(hjoChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/CubjW8)}(hjZ8h]h*}(hj}ChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj/Cubj()}(hparenth]hparent}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/Cubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj+Cubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj7)}(hcharh]hchar}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjCubj()}(hnameh]hname}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj+Cubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjBhhhjBhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjBhhhjBhMubah}(h]jBah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjBhMhjBhhubjV)}(hhh]j[)}(h,device iterator for locating a child device.h]h,device iterator for locating a child device.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjDhhubah}(h]h ]h"]h$]h&]uh1jUhjBhhhjBhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj)Dj{j)Dj|j}j~uh1hhhhhhNhNubj)}(hXM**Parameters** ``struct device *parent`` parent struct device ``const char *name`` name of the child device **Description** This is similar to the device_find_child() function above, but it returns a reference to a device that has the name **name**. **NOTE** you will need to drop the reference with put_device() after use.h](j[)}(h**Parameters**h]j)}(hj3Dh]h Parameters}(hj5DhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1Dubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj-Dubj)}(hhh](j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hjRDh]hstruct device *parent}(hjTDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPDubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjLDubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hjkDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjgDhMhjhDubah}(h]h ]h"]h$]h&]uh1jhjLDubeh}(h]h ]h"]h$]h&]uh1jhjgDhMhjIDubj)}(h.``const char *name`` name of the child device h](j)}(h``const char *name``h]j)}(hjDh]hconst char *name}(hjDhhhNhNubah}(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.hhMhjDubj)}(hhh]j[)}(hname of the child deviceh]hname of the child device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjIDubeh}(h]h ]h"]h$]h&]uh1jhj-Dubj[)}(h**Description**h]j)}(hjDh]h Description}(hjDhhhNhNubah}(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.hhMhj-Dubj[)}(h}This is similar to the device_find_child() function above, but it returns a reference to a device that has the name **name**.h](htThis is similar to the device_find_child() function above, but it returns a reference to a device that has the name }(hjDhhhNhNubj)}(h**name**h]hname}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj-Dubj[)}(h**NOTE**h]j)}(hjDh]hNOTE}(hjEhhhNhNubah}(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.hhMhj-Dubj[)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj-Dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_find_any_child (C function)c.device_find_any_childhNtauh1hhhhhhNhNubh)}(hhh](h)}(h=struct device * device_find_any_child (struct device *parent)h]h)}(h;struct device *device_find_any_child(struct device *parent)h](h)}(hjh]hstruct}(hjDEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@Ehhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubj)}(h h]h }(hjREhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@EhhhjQEhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjcEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`Eubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjeEmodnameN classnameNj:8j=8)}j@8]jC8)}j68device_find_any_childsbc.device_find_any_childasbuh1hhj@EhhhjQEhMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@EhhhjQEhMubjW8)}(hjZ8h]h*}(hjEhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj@EhhhjQEhMubj")}(hdevice_find_any_childh]j()}(hjEh]hdevice_find_any_child}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj@EhhhjQEhMubj7)}(h(struct device *parent)h]j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j()}(hdeviceh]hdevice}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjEmodnameN classnameNj:8j=8)}j@8]jEc.device_find_any_childasbuh1hhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjW8)}(hjZ8h]h*}(hjFhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjEubj()}(hparenth]hparent}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjEubah}(h]h ]h"]h$]h&]j?j@uh1j7hj@EhhhjQEhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjGhMubah}(h]jGah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj>GhMhjGhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjGhhhj>GhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjWGj{jWGj|j}j~uh1hhhhhhNhNubj[)}(h$``device_lock_set_class (dev, key)``h]j)}(hj]Gh]h device_lock_set_class (dev, key)}(hj_GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[Gubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj3)}(hFSpecify a temporary lock class while a device is attached to a driver h]j[)}(hESpecify a temporary lock class while a device is attached to a driverh]hESpecify a temporary lock class while a device is attached to a driver}(hjwGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjsGubah}(h]h ]h"]h$]h&]uh1j2hjGhMhhhhubj)}(h**Parameters** ``dev`` device to modify ``key`` lock class key data **Description** This must be called with the device_lock() already held, for example from driver ->probe(). Take care to only override the default lockdep_no_validate class.h](j[)}(h**Parameters**h]j)}(hjGh]h Parameters}(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)}(hhh](j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hjGh]hdev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjGubj)}(hhh]j[)}(hdevice to modifyh]hdevice to modify}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(h``key`` lock class key data h](j)}(h``key``h]j)}(hjGh]hkey}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjGubj)}(hhh]j[)}(hlock class key datah]hlock class key data}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjGubj[)}(h**Description**h]j)}(hj%Hh]h Description}(hj'HhhhNhNubah}(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.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.}(hj;HhhhNhNubah}(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()}(hjdHh]hdevice_lock_reset_class}(hjnHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjHubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjfHhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbHhhhjHhMubah}(h]j]Hah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjHhMhj_HhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj_HhhhjHhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjHj{jHj|j}j~uh1hhhhhhNhNubj[)}(h!``device_lock_reset_class (dev)``h]j)}(hjHh]hdevice_lock_reset_class (dev)}(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.hhMhhhhubj3)}(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}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubah}(h]h ]h"]h$]h&]uh1j2hjHhMhhhhubj)}(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)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj)}(hhh]j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hjHh]hdev}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj)}(hhh]j[)}(hdevice to modifyh]hdevice to modify}(hj IhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj IhMhj Iubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhj IhMhjHubah}(h]h ]h"]h$]h&]uh1jhjHubj[)}(h**Description**h]j)}(hj/Ih]h Description}(hj1IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-Iubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubj[)}(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().}(hjEIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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}(hjuIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqIhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqIhhhjIhKubj")}(hbus_typeh]j()}(hjoIh]hbus_type}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjqIhhhjIhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjmIhhhjIhKubah}(h]jgIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhKhjjIhhubjV)}(hhh]j[)}(hThe bus type of the deviceh]hThe bus type of the device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjIhhubah}(h]h ]h"]h$]h&]uh1jUhjjIhhhjIhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjIj{jIj|j}j~uh1hhhhhhjiIhNubj)}(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}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh:}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjIubj)}(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; };ih]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.hhKhjIubj[)}(h **Members**h]j)}(hjJh]hMembers}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK8hjIubj)}(hhh](j)}(h``name`` The name of the bus. h](j)}(h``name``h]j)}(hj$Jh]hname}(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[)}(hThe name of the bus.h]hThe name of the bus.}(hj=JhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9JhKhj:Jubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhj9JhKhjJubj)}(hR``dev_name`` Used for subsystems to enumerate devices like ("foo``u``", dev->id). h](j)}(h ``dev_name``h]j)}(hj]Jh]hdev_name}(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[)}(hDUsed for subsystems to enumerate devices like ("foo``u``", dev->id).h]hHUsed for subsystems to enumerate devices like (“foo``u``”, dev->id).}(hjvJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrJhKhjsJubah}(h]h ]h"]h$]h&]uh1jhjWJubeh}(h]h ]h"]h$]h&]uh1jhjrJhKhjJubj)}(h.``bus_groups`` Default attributes of the bus. h](j)}(h``bus_groups``h]j)}(hjJh]h bus_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.hhKhjJubj)}(hhh]j[)}(hDefault attributes of the bus.h]hDefault attributes of the bus.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjJubj)}(h=``dev_groups`` Default attributes of the devices on the bus. h](j)}(h``dev_groups``h]j)}(hjJh]h dev_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.hhKhjJubj)}(hhh]j[)}(h-Default attributes of the devices on the bus.h]h-Default attributes of the devices on the bus.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjJubj)}(hD``drv_groups`` Default attributes of the device drivers on the bus. h](j)}(h``drv_groups``h]j)}(hjKh]h drv_groups}(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[)}(h4Default attributes of the device drivers on the bus.h]h4Default attributes of the device drivers on the bus.}(hj!KhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhK hjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhK hjJubj)}(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)}(hjAKh]hmatch}(hjCKhhhNhNubah}(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.hhK&hj;Kubj)}(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.}(hjZKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK!hjWKubah}(h]h ]h"]h$]h&]uh1jhj;Kubeh}(h]h ]h"]h$]h&]uh1jhjVKhK&hjJubj)}(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&]uh1jhjyKubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK*hjuKubj)}(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.}(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&]uh1jhjuKubeh}(h]h ]h"]h$]h&]uh1jhjKhK*hjJubj)}(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)}(hjKh]hprobe}(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.hhK,hjKubj)}(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.}(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&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhK,hjJubj)}(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)}(hjKh]h sync_state}(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.hhK3hjKubj)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK-hjLubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjLhK3hjJubj)}(h7``remove`` Called when a device removed from this bus. h](j)}(h ``remove``h]j)}(hj)Lh]hremove}(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.hhK4hj#Lubj)}(hhh]j[)}(h+Called when a device removed from this bus.h]h+Called when a device removed from this bus.}(hjBLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>LhK4hj?Lubah}(h]h ]h"]h$]h&]uh1jhj#Lubeh}(h]h ]h"]h$]h&]uh1jhj>LhK4hjJubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hjbLh]hshutdown}(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.hhK5hj\Lubj)}(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&]uh1jZhjwLhK5hjxLubah}(h]h ]h"]h$]h&]uh1jhj\Lubeh}(h]h ]h"]h$]h&]uh1jhjwLhK5hjJubj)}(hG``irq_get_affinity`` Get IRQ affinity mask for the device on this bus. h](j)}(h``irq_get_affinity``h]j)}(hjLh]hirq_get_affinity}(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.hhK6hjLubj)}(hhh]j[)}(h1Get IRQ affinity mask for the device on this bus.h]h1Get IRQ affinity mask for the device on this bus.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhK6hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK6hjJubj)}(hF``online`` Called to put the device back online (after offlining it). h](j)}(h ``online``h]j)}(hjLh]honline}(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.hhK8hjLubj)}(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).}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhK8hjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK8hjJubj)}(hH``offline`` Called to put the device offline for hot-removal. May fail. h](j)}(h ``offline``h]j)}(hj Mh]hoffline}(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.hhK9hjMubj)}(hhh]j[)}(h;Called to put the device offline for hot-removal. May fail.h]h;Called to put the device offline for hot-removal. May fail.}(hj&MhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"MhK9hj#Mubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhj"MhK9hjJubj)}(hH``suspend`` Called when a device on this bus wants to go to sleep mode. h](j)}(h ``suspend``h]j)}(hjFMh]hsuspend}(hjHMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDMubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK;hj@Mubj)}(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.}(hj_MhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj[MhK;hj\Mubah}(h]h ]h"]h$]h&]uh1jhj@Mubeh}(h]h ]h"]h$]h&]uh1jhj[MhK;hjJubj)}(hC``resume`` Called to bring a device on this bus out of sleep mode. h](j)}(h ``resume``h]j)}(hjMh]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.hhKhjMubj)}(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.}(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&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjMhK>hjJubj)}(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&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK@hjMubj)}(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.}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK?hjNubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjNhK@hjJubj)}(hM``dma_cleanup`` Called to cleanup DMA configuration on a device on this bus. h](j)}(h``dma_cleanup``h]j)}(hj,Nh]h dma_cleanup}(hj.NhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Nubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKBhj&Nubj)}(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.hhK8hj6Xubj)}(hhh]j[)}(hName of the device driver.h]hName of the device driver.}(hjUXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQXhK8hjRXubah}(h]h ]h"]h$]h&]uh1jhj6Xubeh}(h]h ]h"]h$]h&]uh1jhjQXhK8hj3Xubj)}(h<``bus`` The bus which the device of this driver belongs to. h](j)}(h``bus``h]j)}(hjuXh]hbus}(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.hhK9hjoXubj)}(hhh]j[)}(h3The bus which the device of this driver belongs to.h]h3The bus which the device of this driver belongs to.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhK9hjXubah}(h]h ]h"]h$]h&]uh1jhjoXubeh}(h]h ]h"]h$]h&]uh1jhjXhK9hj3Xubj)}(h``owner`` The module owner. h](j)}(h ``owner``h]j)}(hjXh]howner}(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.hhK:hjXubj)}(hhh]j[)}(hThe module owner.h]hThe module owner.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhK:hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhK:hj3Xubj)}(h(``mod_name`` Used for built-in modules. h](j)}(h ``mod_name``h]j)}(hjXh]hmod_name}(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.hhK;hjXubj)}(hhh]j[)}(hUsed for built-in modules.h]hUsed for built-in modules.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjXhK;hjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhK;hj3Xubj)}(h8``suppress_bind_attrs`` Disables bind/unbind via sysfs. h](j)}(h``suppress_bind_attrs``h]j)}(hj Yh]hsuppress_bind_attrs}(hj"YhhhNhNubah}(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.hhKhjYubj)}(hhh]j[)}(hThe open firmware table.h]hThe open firmware table.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhK>hjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhK>hj3Xubj)}(h+``acpi_match_table`` The ACPI match table. h](j)}(h``acpi_match_table``h]j)}(hjYh]hacpi_match_table}(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.hhK?hjYubj)}(hhh]j[)}(hThe ACPI match table.h]hThe ACPI match table.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhK?hjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhK?hj3Xubj)}(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)}(hjZh]hprobe}(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.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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK@hjZubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjZhKBhj3Xubj)}(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>Zh]h sync_state}(hj@ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:[hKOhj;[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj:[hKOhj3Xubj)}(hQ``groups`` Default attributes that get created by the driver core automatically. h](j)}(h ``groups``h]j)}(hj^[h]hgroups}(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.hhKQhjX[ubj)}(hhh]j[)}(hEDefault attributes that get created by the driver core automatically.h]hEDefault attributes that get created by the driver core automatically.}(hjw[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKPhjt[ubah}(h]h ]h"]h$]h&]uh1jhjX[ubeh}(h]h ]h"]h$]h&]uh1jhjs[hKQhj3Xubj)}(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[hKShj3Xubj)}(hL``pm`` Power management operations of the device which matched this driver. h](j)}(h``pm``h]j)}(hj[h]hpm}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKUhj[ubj)}(hhh]j[)}(hDPower management operations of the device which matched this driver.h]hDPower management operations of the device which matched this driver.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKThj[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj[hKUhj3Xubj)}(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!\hKXhj3Xubj)}(hT``p`` Driver core's private data, no one other than the driver core can touch this. h](j)}(h``p``h]j)}(hjF\h]hp}(hjH\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD\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[\hKZhj3Xubj)}(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[hjz\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&]uh1jhjz\ubeh}(h]h ]h"]h$]h&]uh1jhj\hK[hj3Xubeh}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhjUhNubj[)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK_hhhhubj[)}(hXThe device driver-model tracks all of the drivers known to the system. The main reason for this tracking is to enable the driver core to match up drivers with new devices. Once drivers are known objects within the system, however, a number of other things become possible. Device drivers can export information and configuration variables that are independent of any specific device.h]hXThe device driver-model tracks all of the drivers known to the system. The main reason for this tracking is to enable the driver core to match up drivers with new devices. Once drivers are known objects within the system, however, a number of other things become possible. Device drivers can export information and configuration variables that are independent of any specific device.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.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](j7)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]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'hj6]ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj]hhhj']hKubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hjV]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjR]ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjN]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)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj]ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj]h]hvoid}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj]ubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj]hKhj]ubah}(h]h ]h"]h$]h&]uh1jhj]ubj[)}(h**Description**h]j)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj]ubj[)}(hcCall the driver model init functions to initialize their subsystems. Called early from init/main.c.h]hcCall the driver model init functions to initialize their subsystems. Called early from init/main.c.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'driver_find_device_by_name (C function)c.driver_find_device_by_namehNtauh1hhj\hhhNhNubh)}(hhh](h)}(h^struct device * driver_find_device_by_name (const struct device_driver *drv, const char *name)h]h)}(h\struct device *driver_find_device_by_name(const struct device_driver *drv, const char *name)h](h)}(hjh]hstruct}(hjA^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 }(hjO^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=^hhhjN^hKubh)}(hhh]j()}(hdeviceh]hdevice}(hj`^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjb^modnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_namesbc.driver_find_device_by_nameasbuh1hhj=^hhhjN^hKubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=^hhhjN^hKubjW8)}(hjZ8h]h*}(hj^hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj=^hhhjN^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=^hhhjN^hKubj7)}(h3(const struct device_driver *drv, const char *name)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&] refdomainjtreftypej68 reftargetj^modnameN classnameNj:8j=8)}j@8]j|^c.driver_find_device_by_nameasbuh1hhj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjW8)}(hjZ8h]h*}(hj _hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj^ubj()}(hdrvh]hdrv}(hj-_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj^ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjF_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB_ubj)}(h h]h }(hjS_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB_ubj7)}(hcharh]hchar}(hja_hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjB_ubj)}(h h]h }(hjo_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB_ubjW8)}(hjZ8h]h*}(hj}_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjB_ubj()}(hnameh]hname}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjB_ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj^ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj=^hhhjN^hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj9^hhhjN^hKubah}(h]j4^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjN^hKhj6^hhubjV)}(hhh]j[)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_hhubah}(h]h ]h"]h$]h&]uh1jUhj6^hhhjN^hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj_j{j_j|j}j~uh1hhhhj\hNhNubj)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const char *name`` name of the device to matchh](j[)}(h**Parameters**h]j)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_ubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hj_h]hconst struct device_driver *drv}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_ubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(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)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hj.`h]hconst char *name}(hj0`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}(hjG`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjD`ubah}(h]h ]h"]h$]h&]uh1jhj(`ubeh}(h]h ]h"]h$]h&]uh1jhjC`hKhj_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}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj`modnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_of_nodesbc.driver_find_device_by_of_nodeasbuh1hhj`hhhj`hKubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hKubjW8)}(hjZ8h]h*}(hj`hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj`hhhj`hKubj")}(hdriver_find_device_by_of_nodeh]j()}(hj`h]hdriver_find_device_by_of_node}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhj`hKubj7)}(h?(const struct device_driver *drv, const struct device_node *np)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(h h]h }(hj*ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubh)}(hhh]j()}(h device_driverh]h device_driver}(hj;ahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8aubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj=amodnameN classnameNj:8j=8)}j@8]j`c.driver_find_device_by_of_nodeasbuh1hhj`ubj)}(h h]h }(hjYahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjW8)}(hjZ8h]h*}(hjgahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj`ubj()}(hdrvh]hdrv}(hjtahhhNhNubah}(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 }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hjh]hstruct}(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j()}(h device_nodeh]h device_node}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjamodnameN classnameNj:8j=8)}j@8]j`c.driver_find_device_by_of_nodeasbuh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjW8)}(hjZ8h]h*}(hjahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjaubj()}(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.}(hj)bhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj&bhhubah}(h]h ]h"]h$]h&]uh1jUhj}`hhhj`hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjAbj{jAbj|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)}(hjKbh]h Parameters}(hjMbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIbubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjEbubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjjbh]hconst struct device_driver *drv}(hjlbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhbubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjdbubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhKhjbubah}(h]h ]h"]h$]h&]uh1jhjdbubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjabubj)}(h:``const struct device_node *np`` of_node pointer to match.h](j)}(h ``const struct device_node *np``h]j)}(hjbh]hconst struct device_node *np}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjbubj)}(hhh]j[)}(hof_node pointer to match.h]hof_node pointer to match.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhKhjabubeh}(h]h ]h"]h$]h&]uh1jhjEbubeh}(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 }(hj chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhj chKubh)}(hhh]j()}(hdeviceh]hdevice}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjcmodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_fwnodesbc.driver_find_device_by_fwnodeasbuh1hhjbhhhj chKubj)}(h h]h }(hj=chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhj chKubjW8)}(hjZ8h]h*}(hjKchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjbhhhj chKubj")}(hdriver_find_device_by_fwnodeh]j()}(hj:ch]hdriver_find_device_by_fwnode}(hj\chhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXcubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjbhhhj chKubj7)}(h?(struct device_driver *drv, const struct fwnode_handle *fwnode)h](j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjwchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjscubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjscubh)}(hhh]j()}(h device_driverh]h device_driver}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjcmodnameN classnameNj:8j=8)}j@8]j8cc.driver_find_device_by_fwnodeasbuh1hhjscubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjscubjW8)}(hjZ8h]h*}(hjchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjscubj()}(hdrvh]hdrv}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjscubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjocubj7)}(h"const struct fwnode_handle *fwnodeh](h)}(hj8h]hconst}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hj dhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj"dmodnameN classnameNj:8j=8)}j@8]j8cc.driver_find_device_by_fwnodeasbuh1hhjcubj)}(h h]h }(hj>dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjW8)}(hjZ8h]h*}(hjLdhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjcubj()}(hfwnodeh]hfwnode}(hjYdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjocubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjbhhhj chKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhj chKubah}(h]jbah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj chKhjbhhubjV)}(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&]uh1jUhjbhhhj chKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjdj{jdj|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)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjdubj)}(hhh](j)}(h9``struct device_driver *drv`` the driver we're iterating h](j)}(h``struct device_driver *drv``h]j)}(hjdh]hstruct device_driver *drv}(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[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjdubj)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjeubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjehKhjdubeh}(h]h ]h"]h$]h&]uh1jhjdubeh}(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}(hjWehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSehhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubj)}(h h]h }(hjeehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSehhhjdehKubh)}(hhh]j()}(hdeviceh]hdevice}(hjvehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjseubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjxemodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_devtsbc.driver_find_device_by_devtasbuh1hhjSehhhjdehKubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSehhhjdehKubjW8)}(hjZ8h]h*}(hjehhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjSehhhjdehKubj")}(hdriver_find_device_by_devth]j()}(hjeh]hdriver_find_device_by_devt}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjSehhhjdehKubj7)}(h-(const struct device_driver *drv, dev_t devt)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j()}(h device_driverh]h device_driver}(hj fhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj fmodnameN classnameNj:8j=8)}j@8]jec.driver_find_device_by_devtasbuh1hhjeubj)}(h h]h }(hj(fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjW8)}(hjZ8h]h*}(hj6fhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjeubj()}(hdrvh]hdrv}(hjCfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hj_fhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj\fubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjafmodnameN classnameNj:8j=8)}j@8]jec.driver_find_device_by_devtasbuh1hhjXfubj)}(h h]h }(hj}fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXfubj()}(hdevth]hdevt}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjSehhhjdehKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjOehhhjdehKubah}(h]jJeah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjdehKhjLehhubjV)}(hhh]j[)}(h9device iterator for locating a particular device by devt.h]h9device iterator for locating a particular device by devt.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjfhhubah}(h]h ]h"]h$]h&]uh1jUhjLehhhjdehKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjfj{jfj|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)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjfubj)}(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.hhKhjfubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj ghKhj gubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhj ghKhjfubj)}(h%``dev_t devt`` devt pointer to match.h](j)}(h``dev_t devt``h]j)}(hj/gh]h dev_t devt}(hj1ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-gubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj)gubj)}(hhh]j[)}(hdevt pointer to match.h]hdevt pointer to match.}(hjHghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjEgubah}(h]h ]h"]h$]h&]uh1jhj)gubeh}(h]h ]h"]h$]h&]uh1jhjDghKhjfubeh}(h]h ]h"]h$]h&]uh1jhjfubeh}(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 }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKubh)}(hhh]j()}(hdeviceh]hdevice}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjgmodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_acpi_devsb c.driver_find_device_by_acpi_devasbuh1hhjghhhjghKubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjghKubjW8)}(hjZ8h]h*}(hjghhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjghhhjghKubj")}(hdriver_find_device_by_acpi_devh]j()}(hjgh]hdriver_find_device_by_acpi_dev}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhjghKubj7)}(hA(const struct device_driver *drv, const struct acpi_device *adev)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hj+hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(h device_driverh]h device_driver}(hjhmodnameN classnameNj:8j=8)}j@8]jg c.driver_find_device_by_acpi_devasbuh1hhjgubj)}(h h]h }(hjZhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjW8)}(hjZ8h]h*}(hjhhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjgubj()}(hdrvh]hdrv}(hjuhhhhNhNubah}(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 }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjhmodnameN classnameNj:8j=8)}j@8]jg c.driver_find_device_by_acpi_devasbuh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhubj()}(hadevh]hadev}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjgubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjghhhjghKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjghhhjghKubah}(h]j|gah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjghKhj~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.}(hj*ihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj'ihhubah}(h]h ]h"]h$]h&]uh1jUhj~ghhhjghKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjBij{jBij|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)}(hjLih]h Parameters}(hjNihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJiubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjFiubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjkih]hconst struct device_driver *drv}(hjmihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiiubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjeiubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihKhjiubah}(h]h ]h"]h$]h&]uh1jhjeiubeh}(h]h ]h"]h$]h&]uh1jhjihKhjbiubj)}(hB``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hjih]hconst struct acpi_device *adev}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjiubj)}(hhh]j[)}(hACPI_COMPANION device to match.h]hACPI_COMPANION device to match.}(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&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihKhjbiubeh}(h]h ]h"]h$]h&]uh1jhjFiubeh}(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}(hjjhhhNhNubah}(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@jGuh1hjHjIhjihhhjjhKubah}(h]jiah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjjhKhjihhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjihhhjjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj.jj{j.jj|j}j~uh1hhhhj\hNhNubj[)}(h;``module_driver (__driver, __register, __unregister, ...)``h]j)}(hj4jh]h7module_driver (__driver, __register, __unregister, ...)}(hj6jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2jubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj\hhubj3)}(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().}(hjNjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjJjubah}(h]h ]h"]h$]h&]uh1j2hj\jhKhj\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)}(hjijh]h Parameters}(hjkjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgjubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjcjubj)}(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}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubj)}(h6``__register`` register function for this driver type h](j)}(h``__register``h]j)}(hjjh]h __register}(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®ister function for this driver typeh]h®ister function for this driver type}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjjubj)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjjubj)}(hJ``...`` Additional arguments to be passed to __register and __unregister. h](j)}(h``...``h]j)}(hj3kh]h...}(hj5khhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1kubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhj-kubj)}(hhh]j[)}(hAAdditional arguments to be passed to __register and __unregister.h]hAAdditional arguments to be passed to __register and __unregister.}(hjLkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHkhMhjIkubah}(h]h ]h"]h$]h&]uh1jhj-kubeh}(h]h ]h"]h$]h&]uh1jhjHkhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjcjubj[)}(h**Description**h]j)}(hjnkh]h Description}(hjpkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlkubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjcjubj[)}(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.hhMhjcjubeh}(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()}(hjkh]hbuiltin_driver}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjkhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjkhhhjkhMubah}(h]jkah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjkhMhjkhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjkhhhjkhMubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjkj{jkj|j}j~uh1hhhhj\hNhNubj[)}(h.``builtin_driver (__driver, __register, ...)``h]j)}(hjkh]h*builtin_driver (__driver, __register, ...)}(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.hhMhj\hhubj3)}(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.}(hjlhhhNhNubah}(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&]uh1j2hjlhMhj\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)}(hjlh]h Parameters}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjlubj)}(hhh](j)}(h``__driver`` driver name h](j)}(h ``__driver``h]j)}(hj=lh]h__driver}(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.hhMhj7lubj)}(hhh]j[)}(h driver nameh]h driver name}(hjVlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRlhMhjSlubah}(h]h ]h"]h$]h&]uh1jhj7lubeh}(h]h ]h"]h$]h&]uh1jhjRlhMhj4lubj)}(h6``__register`` register function for this driver type h](j)}(h``__register``h]j)}(hjvlh]h __register}(hjxlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtlubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjplubj)}(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&]uh1jhjplubeh}(h]h ]h"]h$]h&]uh1jhjlhMhj4lubj)}(h8``...`` Additional arguments to be passed to __register h](j)}(h``...``h]j)}(hjlh]h...}(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.hhM hjlubj)}(hhh]j[)}(h/Additional arguments to be passed to __registerh]h/Additional arguments to be passed to __register}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhM hjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhM hj4lubeh}(h]h ]h"]h$]h&]uh1jhjlubj[)}(h**Description**h]j)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhM"hjlubj[)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhM!hjlubeh}(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](j7)}(hinth]hint}(hj/mhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+mhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK"ubj)}(h h]h }(hj>mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+mhhhj=mhK"ubj")}(hdriver_for_each_deviceh]j()}(hdriver_for_each_deviceh]hdriver_for_each_device}(hjPmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLmubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj+mhhhj=mhK"ubj7)}(hO(struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h](j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjlmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhmubj)}(h h]h }(hjymhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhmubh)}(hhh]j()}(h device_driverh]h device_driver}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmmodnameN classnameNj:8j=8)}j@8]jC8)}j68jRmsbc.driver_for_each_deviceasbuh1hhjhmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhmubjW8)}(hjZ8h]h*}(hjmhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhmubj()}(hdrvh]hdrv}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdmubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubh)}(hhh]j()}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmmodnameN classnameNj:8j=8)}j@8]jmc.driver_for_each_deviceasbuh1hhjmubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjW8)}(hjZ8h]h*}(hj(nhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjmubj()}(hstarth]hstart}(hj5nhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdmubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjNnhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJnubj)}(h h]h }(hj\nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJnubjW8)}(hjZ8h]h*}(hjjnhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjJnubj()}(hdatah]hdata}(hjwnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdmubj7)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjnmodnameN classnameNj:8j=8)}j@8]jmc.driver_for_each_deviceasbuh1hhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj()}(hfnh]hfn}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdmubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj+mhhhj=mhK"ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'mhhhj=mhK"ubah}(h]j"mah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj=mhK"hj$mhhubjV)}(hhh]j[)}(h'Iterator for devices bound to a driver.h]h'Iterator for devices bound to a driver.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK"hjnhhubah}(h]h ]h"]h$]h&]uh1jUhj$mhhhj=mhK"ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjoj{joj|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)}(hj oh]h Parameters}(hj ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj oubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hjoubj)}(hhh](j)}(h6``struct device_driver *drv`` Driver we're iterating. h](j)}(h``struct device_driver *drv``h]j)}(hj*oh]hstruct device_driver *drv}(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[)}(hDriver we're iterating.h]hDriver we’re iterating.}(hjCohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?ohK#hj@oubah}(h]h ]h"]h$]h&]uh1jhj$oubeh}(h]h ]h"]h$]h&]uh1jhj?ohK#hj!oubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjcoh]hstruct device *start}(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[)}(hDevice to begin withh]hDevice to begin with}(hj|ohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxohK$hjyoubah}(h]h ]h"]h$]h&]uh1jhj]oubeh}(h]h ]h"]h$]h&]uh1jhjxohK$hj!oubj)}(h-``void *data`` Data to pass to the callback. h](j)}(h``void *data``h]j)}(hjoh]h void *data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK%hjoubj)}(hhh]j[)}(hData to pass to the callback.h]hData to pass to the callback.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohK%hjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohK%hj!oubj)}(h7``device_iter_t fn`` Function to call for each device. h](j)}(h``device_iter_t fn``h]j)}(hjoh]hdevice_iter_t fn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hjoubj)}(hhh]j[)}(h!Function to call for each device.h]h!Function to call for each device.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohK&hjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohK&hj!oubeh}(h]h ]h"]h$]h&]uh1jhjoubj[)}(h**Description**h]j)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK(hjoubj[)}(hGIterate over the **drv**'s list of devices calling **fn** for each one.h](hIterate over the }(hj&phhhNhNubj)}(h**drv**h]hdrv}(hj.phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&pubh’s list of devices calling }(hj&phhhNhNubj)}(h**fn**h]hfn}(hj@phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&pubh for each one.}(hj&phhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK'hjoubeh}(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}(hjyphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuphhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK>ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuphhhjphK>ubh)}(hhh]j()}(hdeviceh]hdevice}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjpmodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_devicesbc.driver_find_deviceasbuh1hhjuphhhjphK>ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuphhhjphK>ubjW8)}(hjZ8h]h*}(hjphhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjuphhhjphK>ubj")}(hdriver_find_deviceh]j()}(hjph]hdriver_find_device}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuphhhjphK>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&]uh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j()}(h device_driverh]h device_driver}(hj,qhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)qubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj.qmodnameN classnameNj:8j=8)}j@8]jpc.driver_find_deviceasbuh1hhjpubj)}(h h]h }(hjJqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjW8)}(hjZ8h]h*}(hjXqhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjpubj()}(hdrvh]hdrv}(hjeqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjpubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hj~qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzqubh)}(hhh]j()}(hdeviceh]hdevice}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjqmodnameN classnameNj:8j=8)}j@8]jpc.driver_find_deviceasbuh1hhjzqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzqubjW8)}(hjZ8h]h*}(hjqhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjzqubj()}(hstarth]hstart}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjpubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj7)}(hvoidh]hvoid}(hj rhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjqubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjW8)}(hjZ8h]h*}(hj%rhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjqubj()}(hdatah]hdata}(hj2rhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjpubj7)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hjNrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKrubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjPrmodnameN classnameNj:8j=8)}j@8]jpc.driver_find_deviceasbuh1hhjGrubj)}(h h]h }(hjlrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGrubj()}(hmatchh]hmatch}(hjzrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjpubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjuphhhjphK>ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqphhhjphK>ubah}(h]jlpah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjphK>hjnphhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK>hjrhhubah}(h]h ]h"]h$]h&]uh1jUhjnphhhjphK>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjrj{jrj|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)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKBhjrubj)}(hhh](j)}(h8``const struct device_driver *drv`` The device's driver h](j)}(h#``const struct device_driver *drv``h]j)}(hjrh]hconst struct device_driver *drv}(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[)}(hThe device's driverh]hThe device’s driver}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhK?hjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhK?hjrubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjsh]hstruct device *start}(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.chK@hjsubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hj7shhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3shK@hj4subah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhj3shK@hjrubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hjWsh]hconst void *data}(hjYshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKAhjQsubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjpshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlshKAhjmsubah}(h]h ]h"]h$]h&]uh1jhjQsubeh}(h]h ]h"]h$]h&]uh1jhjlshKAhjrubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjsh]hdevice_match_t match}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKBhjsubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshKBhjsubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjshKBhjrubeh}(h]h ]h"]h$]h&]uh1jhjrubj[)}(h**Description**h]j)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKDhjrubj[)}(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 }(hjshhhNhNubj)}(h **match**h]hmatch}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubh callback.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKChjrubj[)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKGhjrubeh}(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](j7)}(hinth]hint}(hj1thhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-thhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKdubj)}(h h]h }(hj@thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-thhhj?thKdubj")}(hdriver_create_fileh]j()}(hdriver_create_fileh]hdriver_create_file}(hjRthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNtubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj-thhhj?thKdubj7)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjnthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjtubj)}(h h]h }(hj{thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjtubh)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjtubh)}(hhh]j()}(h device_driverh]h device_driver}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjtmodnameN classnameNj:8j=8)}j@8]jC8)}j68jTtsbc.driver_create_fileasbuh1hhjjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjtubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjjtubj()}(hdrvh]hdrv}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjftubj7)}(h#const struct driver_attribute *attrh](h)}(hj8h]hconst}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(h h]h }(hj#uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hj4uhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1uubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj6umodnameN classnameNj:8j=8)}j@8]jtc.driver_create_fileasbuh1hhjtubj)}(h h]h }(hjRuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjW8)}(hjZ8h]h*}(hj`uhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjtubj()}(hattrh]hattr}(hjmuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjftubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj-thhhj?thKdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj)thhhj?thKdubah}(h]j$tah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj?thKdhj&thhubjV)}(hhh]j[)}(hcreate sysfs file for driver.h]hcreate sysfs file for driver.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKdhjuhhubah}(h]h ]h"]h$]h&]uh1jUhj&thhhj?thKdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjuj{juj|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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhhjuubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjuh]hconst struct device_driver *drv}(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.chKehjuubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjuhKehjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhKehjuubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjvh]h#const struct driver_attribute *attr}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKghj vubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hj*vhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKfhj'vubah}(h]h ]h"]h$]h&]uh1jhj vubeh}(h]h ]h"]h$]h&]uh1jhj&vhKghjuubeh}(h]h ]h"]h$]h&]uh1jhjuubeh}(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](j7)}(hvoidh]hvoid}(hjkvhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjgvhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKvubj)}(h h]h }(hjzvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgvhhhjyvhKvubj")}(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!hjgvhhhjyvhKvubj7)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j7)}(hconst struct device_driver *drvh](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()}(h device_driverh]h device_driver}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjvmodnameN classnameNj:8j=8)}j@8]jC8)}j68jvsbc.driver_remove_fileasbuh1hhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjW8)}(hjZ8h]h*}(hjwhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjvubj()}(hdrvh]hdrv}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjvubj7)}(h#const struct driver_attribute *attrh](h)}(hj8h]hconst}(hj5whhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1wubj)}(h h]h }(hjBwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1wubh)}(hjh]hstruct}(hjPwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1wubj)}(h h]h }(hj]whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1wubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hjnwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkwubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjpwmodnameN classnameNj:8j=8)}j@8]jvc.driver_remove_fileasbuh1hhj1wubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1wubjW8)}(hjZ8h]h*}(hjwhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj1wubj()}(hattrh]hattr}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1wubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjvubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjgvhhhjyvhKvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjcvhhhjyvhKvubah}(h]j^vah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjyvhKvhj`vhhubjV)}(hhh]j[)}(hremove sysfs file for driver.h]hremove sysfs file for driver.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKvhjwhhubah}(h]h ]h"]h$]h&]uh1jUhj`vhhhjyvhKvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjwj{jwj|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.chKzhjwubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjxh]hconst struct device_driver *drv}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKwhj xubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj+xhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'xhKwhj(xubah}(h]h ]h"]h$]h&]uh1jhj xubeh}(h]h ]h"]h$]h&]uh1jhj'xhKwhj xubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjKxh]h#const struct driver_attribute *attr}(hjMxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIxubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKyhjExubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjdxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKxhjaxubah}(h]h ]h"]h$]h&]uh1jhjExubeh}(h]h ]h"]h$]h&]uh1jhj`xhKyhj xubeh}(h]h ]h"]h$]h&]uh1jhjwubeh}(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](j7)}(hinth]hint}(hjxhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjxhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjxhKubj")}(hdriver_registerh]j()}(hdriver_registerh]hdriver_register}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjxhhhjxhKubj7)}(h(struct device_driver *drv)h]j7)}(hstruct device_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()}(h device_driverh]h device_driver}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjymodnameN classnameNj:8j=8)}j@8]jC8)}j68jxsbc.driver_registerasbuh1hhjxubj)}(h h]h }(hj yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjW8)}(hjZ8h]h*}(hj.yhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjxubj()}(hdrvh]hdrv}(hj;yhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubah}(h]h ]h"]h$]h&]j?j@uh1j7hjxhhhjxhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjxhhhjxhKubah}(h]jxah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjxhKhjxhhubjV)}(hhh]j[)}(hregister driver with bush]hregister driver with bus}(hjeyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjbyhhubah}(h]h ]h"]h$]h&]uh1jUhjxhhhjxhKubeh}(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)}(hjyh]hstruct device_driver *drv}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjyubj)}(hhh]j[)}(hdriver to registerh]hdriver to register}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhKhjyubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjyhKhjyubah}(h]h ]h"]h$]h&]uh1jhjyubj[)}(h**Description**h]j)}(hjyh]h Description}(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[)}(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](j7)}(hvoidh]hvoid}(hj&zhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj"zhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubj)}(h h]h }(hj5zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"zhhhj4zhKubj")}(hdriver_unregisterh]j()}(hdriver_unregisterh]hdriver_unregister}(hjGzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCzubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj"zhhhj4zhKubj7)}(h(struct device_driver *drv)h]j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjczhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_zubj)}(h h]h }(hjpzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_zubh)}(hhh]j()}(h device_driverh]h device_driver}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~zubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjzmodnameN classnameNj:8j=8)}j@8]jC8)}j68jIzsbc.driver_unregisterasbuh1hhj_zubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_zubjW8)}(hjZ8h]h*}(hjzhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj_zubj()}(hdrvh]hdrv}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_zubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj[zubah}(h]h ]h"]h$]h&]j?j@uh1j7hj"zhhhj4zhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjzhhhj4zhKubah}(h]jzah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj4zhKhjzhhubjV)}(hhh]j[)}(hremove driver from system.h]hremove driver from system.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjzhhubah}(h]h ]h"]h$]h&]uh1jUhjzhhhj4zhKubeh}(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)}(hj{h]h Parameters}(hj {hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj{ubj)}(hhh]j)}(h&``struct device_driver *drv`` driver. h](j)}(h``struct device_driver *drv``h]j)}(hj'{h]hstruct device_driver *drv}(hj){hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%{ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj!{ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj@{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<{hKhj={ubah}(h]h ]h"]h$]h&]uh1jhj!{ubeh}(h]h ]h"]h$]h&]uh1jhj<{hKhj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubj[)}(h**Description**h]j)}(hjb{h]h Description}(hjd{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`{ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj{ubj[)}(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.}(hjx{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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](j7)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj{hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMfubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhj{hMfubj")}(hdevice_link_wait_removalh]j()}(hdevice_link_wait_removalh]hdevice_link_wait_removal}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj{hhhj{hMfubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj{ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj{ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj{hhhj{hMfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj{hhhj{hMfubah}(h]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj{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{hhhj{hMfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&|j{j&|j|j}j~uh1hhhhj\hNhNubj)}(h'**Parameters** ``void`` no argumentsh](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:32: ./drivers/base/core.chMjhj*|ubj)}(hhh]j)}(h``void`` no argumentsh](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:32: ./drivers/base/core.chMlhjI|ubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjh|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhje|ubah}(h]h ]h"]h$]h&]uh1jhjI|ubeh}(h]h ]h"]h$]h&]uh1jhjd|hMlhjF|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}(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hMubh)}(hhh]j()}(h device_linkh]h device_link}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj|modnameN classnameNj:8j=8)}j@8]jC8)}j68device_link_addsbc.device_link_addasbuh1hhj|hhhj|hMubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhj|hMubjW8)}(hjZ8h]h*}(hj|hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj|hhhj|hMubj")}(hdevice_link_addh]j()}(hj|h]hdevice_link_add}(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 *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 }(hj0}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubh)}(hhh]j()}(hdeviceh]hdevice}(hjA}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjC}modnameN classnameNj:8j=8)}j@8]j|c.device_link_addasbuh1hhj}ubj)}(h h]h }(hj_}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjW8)}(hjZ8h]h*}(hjm}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj}ubj()}(hconsumerh]hconsumer}(hjz}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&] refdomainjtreftypej68 reftargetj}modnameN classnameNj:8j=8)}j@8]j|c.device_link_addasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj}ubj()}(hsupplierh]hsupplier}(hj}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&] refdomainjtreftypej68 reftargetj~modnameN classnameNj:8j=8)}j@8]j|c.device_link_addasbuh1hhj}ubj)}(h h]h }(hj$~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj()}(hflagsh]hflags}(hj2~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|hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj|hhhj|hMubah}(h]j|ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj|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.chMhjY~hhubah}(h]h ]h"]h$]h&]uh1jUhj|hhhj|hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjt~j{jt~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.chMhjx~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.}(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)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hj~h]hstruct device *supplier}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj~ubj)}(hhh]j[)}(hSupplier end of the link.h]hSupplier end of the link.}(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``u32 flags`` Link flags. h](j)}(h ``u32 flags``h]j)}(hjh]h u32 flags}(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[)}(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&]uh1jhjx~ubj[)}(h **Return**h]j)}(hjJh]hReturn}(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.chMhjx~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.chMhjx~ubj[)}(h**Description**h]j)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjx~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.chMhjx~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 }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh, 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().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjx~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 }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXz 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjx~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 }(hjhhhNhNubj)}(h **flags**h]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh (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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjx~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}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhXN pair exists already when this function is called for them, the existing link will be returned regardless of its current type and status (the link’s flags may be modified then). The caller of this function is then expected to treat the link as though it has just been created, so (in particular) if DL_FLAG_STATELESS was passed in }(hjhhhNhNubj)}(h **flags**h]hflags}(hj7hhhNhNubah}(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 hjx~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).}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjx~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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjx~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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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_delh]j()}(hdevice_link_delh]hdevice_link_del}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device_link *link)h]j7)}(hstruct device_link *linkh](h)}(hjh]hstruct}(hjˀhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjǀubj)}(h h]h }(hj؀hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǀubh)}(hhh]j()}(h device_linkh]h device_link}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_link_delasbuh1hhjǀubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǀubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjǀubj()}(hlinkh]hlink}(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@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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjKhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjfj{jfj|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)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjjubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjjubj[)}(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.chMhjjubj[)}(hXThe caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to be deleted as often. Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del() is then no longer allowed.h]hXThe caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to be deleted as often. Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del() is then no longer allowed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjjubeh}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj 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_link_removeh]j()}(hdevice_link_removeh]hdevice_link_remove}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhMubj7)}(h)(void *consumer, struct device *supplier)h](j7)}(hvoid *consumerh](j7)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjHubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjHubj()}(hconsumerh]hconsumer}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjDubj7)}(hstruct device *supplierh](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68j2sbc.device_link_removeasbuh1hhjubj)}(h h]h }(hĵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjڂhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsupplierh]hsupplier}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjDubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj hhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj)j{j)j|j}j~uh1hhhhj\hNhNubj)}(h**Parameters** ``void *consumer`` Consumer end of the link. ``struct device *supplier`` Supplier end of the link. **Description** The caller must ensure proper synchronization of this function with runtime PM.h](j[)}(h**Parameters**h]j)}(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:32: ./drivers/base/core.chMhj-ubj)}(hhh](j)}(h-``void *consumer`` Consumer end of the link. h](j)}(h``void *consumer``h]j)}(hjRh]hvoid *consumer}(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.chMhjLubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhjIubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjIubeh}(h]h ]h"]h$]h&]uh1jhj-ubj[)}(h**Description**h]j)}(hjƃh]h Description}(hjȃhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjăubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj-ubj[)}(hOThe caller must ensure proper synchronization of this function with runtime PM.h]hOThe caller must ensure proper synchronization of this function with runtime PM.}(hj܃hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_driver_string (C function)c.dev_driver_stringhNtauh1hhj\hhhNhNubh)}(hhh](h)}(h9const char * dev_driver_string (const struct device *dev)h]h)}(h7const char *dev_driver_string(const struct device *dev)h](h)}(hj8h]hconst}(hj hhhNhNubah}(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 ubj7)}(hcharh]hchar}(hj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhM ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhM ubj")}(hdev_driver_stringh]j()}(hdev_driver_stringh]hdev_driver_string}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubah}(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}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jVsbc.dev_driver_stringasbuh1hhjlubj)}(h h]h }(hjɄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjW8)}(hjZ8h]h*}(hjׄhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjlubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhubah}(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 hj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhj\hNhNubj)}(hXM**Parameters** ``const struct device *dev`` struct device to get the name of **Description** Will return the device's driver's name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.h](j[)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj*ubj)}(hhh]j)}(h>``const struct device *dev`` struct device to get the name of h](j)}(h``const struct device *dev``h]j)}(hjOh]hconst struct device *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjIubj)}(hhh]j[)}(h struct device to get the name ofh]h struct device to get the name of}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhM hjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhM hjFubah}(h]h ]h"]h$]h&]uh1jhj*ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj*ubj[)}(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.}(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](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](j7)}(hinth]hint}(hjυhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj˅hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMu ubj)}(h h]h }(hjޅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˅hhhj݅hMu ubj")}(hdevm_device_add_grouph]j()}(hdevm_device_add_grouph]hdevm_device_add_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj˅hhhj݅hMu ubj7)}(h7(struct device *dev, const struct attribute_group *grp)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj hhhNhNubah}(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&] refdomainjtreftypej68 reftargetj,modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.devm_device_add_groupasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjehhhNhNubah}(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&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jFc.devm_device_add_groupasbuh1hhjzubj)}(h h]h }(hjՆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjzubj()}(hgrph]hgrp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj˅hhhj݅hMu ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjDžhhhj݅hMu ubah}(h]j…ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj݅hMu hjąhhubjV)}(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&]uh1jUhjąhhhj݅hMu ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj2j{j2j|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 hj6ubj)}(hhh](j)}(h:``struct device *dev`` The device to create the group for h](j)}(h``struct device *dev``h]j)}(hj[h]hstruct device *dev}(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.chMv hjUubj)}(hhh]j[)}(h"The device to create the group forh]h"The device to create the group for}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMv hjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMv hjRubj)}(hD``const struct attribute_group *grp`` The attribute group to create h](j)}(h%``const struct attribute_group *grp``h]j)}(hjh]h!const struct attribute_group *grp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMw hjubj)}(hhh]j[)}(hThe attribute group to createh]hThe attribute group to create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMw hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMw hjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubj[)}(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 hj6ubj[)}(hThis function creates a group for the first time. It will explicitly warn and error if any of the attribute files being created already exist.h]hThis function creates a group for the first time. It will explicitly warn and error if any of the attribute files being created already exist.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMx hj6ubj[)}(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{ hj6ubeh}(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](j7)}(hinth]hint}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM& ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hM& ubj")}(hdevice_create_fileh]j()}(hdevice_create_fileh]hdevice_create_file}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj1hM& 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 }(hjmhhhNhNubah}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jFsbc.device_create_fileasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj\ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj\ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjXubj7)}(h#const struct device_attribute *attrh](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}(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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]jc.device_create_fileasbuh1hhjΈubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΈubjW8)}(hjZ8h]h*}(hj7hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjΈubj()}(hattrh]hattr}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjΈubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjXubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj1hM& ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj1hM& ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj1hM& hjhhubjV)}(hhh]j[)}(h'create sysfs attribute file for device.h]h'create sysfs attribute file for device.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM& hjkhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj1hM& 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}(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ʼnubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjĉhM' hjubj)}(hD``const struct device_attribute *attr`` device attribute descriptor.h](j)}(h'``const struct device_attribute *attr``h]j)}(hjh]h#const struct device_attribute *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM) hjubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM( hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM) hjubeh}(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](j7)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj>hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM> ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hhhjPhM> ubj")}(hdevice_remove_fileh]j()}(hdevice_remove_fileh]hdevice_remove_file}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj>hhhjPhM> 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&]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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jesbc.device_remove_fileasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjW8)}(hjZ8h]h*}(hjˊhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj{ubj()}(hdevh]hdev}(hj؊hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjwubj7)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj,modnameN classnameNj:8j=8)}j@8]jc.device_remove_fileasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjVhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hattrh]hattr}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjwubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj>hhhjPhM> ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj:hhhjPhM> ubah}(h]j5ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjPhM> hj7hhubjV)}(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&]uh1jUhj7hhhjPhM> 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}(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.chMB hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj΋h]hstruct device *dev}(hjЋhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̋ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM? hjȋubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM? hjubah}(h]h ]h"]h$]h&]uh1jhjȋubeh}(h]h ]h"]h$]h&]uh1jhjhM? hjŋubj)}(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}(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.chMA hjubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hj hhhNhNubah}(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 hjŋubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$device_remove_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](j7)}(hj:h]hbool}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMK ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhjnhMK 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!hj]hhhjnhMK 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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_remove_file_selfasbuh1hhjubj)}(h h]h }(hjیhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjJmodnameN classnameNj:8j=8)}j@8]j׌c.device_remove_file_selfasbuh1hhj ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj 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]hhhjnhMK ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjYhhhjnhMK ubah}(h]jTah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjnhMK hjVhhubjV)}(hhh]j[)}(h0remove sysfs attribute file from its own method.h]h0remove sysfs attribute file from its own method.}(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&]uh1jUhjVhhhjnhMK ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjÍj{jÍj|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&]uh1jhjˍubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMO 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.chML hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhML hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhML hjubj)}(hE``const struct device_attribute *attr`` device attribute descriptor. h](j)}(h'``const struct device_attribute *attr``h]j)}(hj%h]h#const struct device_attribute *attr}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.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 hjubeh}(h]h ]h"]h$]h&]uh1jhjǍubj[)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMO hjǍubj[)}(h%See kernfs_remove_self() for details.h]h%See kernfs_remove_self() for details.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMN hjǍubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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_bin_fileh]j()}(hdevice_create_bin_fileh]hdevice_create_bin_file}(hjƎhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjŽubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM\ 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&]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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jȎsbc.device_create_bin_fileasbuh1hhjގubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjގubjW8)}(hjZ8h]h*}(hj.hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjގubj()}(hdevh]hdev}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjގubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjڎubj7)}(h const struct bin_attribute *attrh](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()}(h bin_attributeh]h bin_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_create_bin_fileasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjPubj()}(hattrh]hattr}(hjƏhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubeh}(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.create sysfs binary attribute file for device.h]h.create sysfs binary attribute file for device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM\ hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM\ 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` hj ubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj1h]hstruct device *dev}(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.chM] hj+ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFhM] hjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhM] hj(ubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hjjh]h const struct bin_attribute *attr}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM_ hjdubj)}(hhh]j[)}(h#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&]uh1jhjdubeh}(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](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](j7)}(hvoidh]hvoid}(hjĐhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMk ubj)}(h h]h }(hjӐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjҐhMk ubj")}(hdevice_remove_bin_fileh]j()}(hdevice_remove_bin_fileh]hdevice_remove_bin_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjҐ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&] refdomainjtreftypej68 reftargetj!modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_remove_bin_fileasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjMhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h const struct bin_attribute *attrh](h)}(hj8h]hconst}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubh)}(hhh]j()}(h bin_attributeh]h bin_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j;c.device_remove_bin_fileasbuh1hhjoubj)}(h h]h }(hjʑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjW8)}(hjZ8h]h*}(hjؑhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjoubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjҐhMk ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjҐhMk ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjҐhMk hjhhubjV)}(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 hj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjҐhMk ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj'j{j'j|j}j~uh1hhhhj\hNhNubj)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.h](j[)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj3hhhNhNubah}(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.chMo hj+ubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjPh]hstruct device *dev}(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.chMl hjJubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjehMl hjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMl hjGubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMm hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMn hjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_initialize (C function)c.device_initializehNtauh1hhj\hhhNhNubh)}(hhh](h)}(h+void device_initialize (struct device *dev)h]h)}(h*void device_initialize(struct device *dev)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjߒ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_initializeh]j()}(hdevice_initializeh]hdevice_initialize}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj@modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_initializeasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjlhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjyhhhNhNubah}(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@jGuh1hjHjIhjےhhhjhM ubah}(h]j֒ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM hjؒhhubjV)}(hhh]j[)}(hinit device structure.h]hinit device structure.}(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 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)}(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 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 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}(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[)}(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 }(hj5hhhNhNubj)}(h**dev**h]hdev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh\’s fields. In particular, get_device()/put_device() may be used for reference counting of }(hj5hhhNhNubj)}(h**dev**h]hdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh after calling this function.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj[)}(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 }(hjhhhhNhNubj)}(h**dev**h]hdev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh 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 }(hjhhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh.}(hjhhhhNhNubeh}(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)}(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.chM hjubj[)}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh- directly once you have called this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM ubj")}(h dev_set_nameh]j()}(h dev_set_nameh]h dev_set_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM ubj7)}(h*(struct device *dev, const char *fmt, ...)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&] refdomainjtreftypej68 reftargetjQmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.dev_set_nameasbuh1hhj-ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj-ubj()}(hdevh]hdev}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj̕hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjڕhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj)ubj7)}(h...h]jW8)}(h...h]h...}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubah}(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[)}(hset a device nameh]hset a device name}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj'hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjBj{jBj|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)}(hjLh]h Parameters}(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.chM hjFubj)}(hhh](j)}(h``struct device *dev`` device h](j)}(h``struct device *dev``h]j)}(hjkh]hstruct device *dev}(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[)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM hjbubj)}(h8``const char *fmt`` format string for the device's name h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j[)}(h#format string for the device's nameh]h%format string for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjbubj)}(h``...`` variable argumentsh](j)}(h``...``h]j)}(hjݖh]h...}(hjߖhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۖubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjזubj)}(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&]uh1jhjזubeh}(h]h ]h"]h$]h&]uh1jhjhM hjbubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(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](j7)}(hinth]hint}(hj7hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj3hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhjEhMubj")}(h device_addh]j()}(h device_addh]h device_add}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj3hhhjEhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jZsb c.device_addasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjpubj()}(hdevh]hdev}(hj͗hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjlubah}(h]h ]h"]h$]h&]j?j@uh1j7hj3hhhjEhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj/hhhjEhMubah}(h]j*ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjEhMhj,hhubjV)}(hhh]j[)}(hadd device to device hierarchy.h]hadd device to device hierarchy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj,hhhjEhMubeh}(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)}(hj8h]hstruct device *dev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj2ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhj/ubah}(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: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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh 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.}(hjhhhNhNubeh}(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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhN have been dropped.) Allocate and register a fresh new struct device instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM&hjubj[)}(h**NOTE**h]j)}(hjܘh]hNOTE}(hjޘhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjژubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM-hjubj[)}(h_Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up your reference instead.h](h_Never_ directly free }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhv after calling this function, even if it returned an error! Always use put_device() to give up your reference instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM.hjubj[)}(hRule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has *not* succeeded, use *only* put_device() to drop the reference count.h](h}Rule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has }(hjhhhNhNubhemphasis)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh succeeded, use }(hjhhhNhNubj)}(h*only*h]honly}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* put_device() to drop the reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.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](j7)}(hinth]hint}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjdhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdhhhjvhMubj")}(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!hjdhhhjvhMubj7)}(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&] refdomainjtreftypej68 reftargetjřmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjdhhhjvhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj`hhhjvhMubah}(h]j[ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjvhMhj]hhubjV)}(hhh]j[)}(h"register a device with the system.h]h"register a device with the system.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj%hhubah}(h]h ]h"]h$]h&]uh1jUhj]hhhjvhMubeh}(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)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubj)}(hhh]j)}(h7``struct device *dev`` pointer to the device structure h](j)}(h``struct device *dev``h]j)}(hjih]hstruct device *dev}(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[)}(hpointer to the device structureh]hpointer to the device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj~hMhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubj[)}(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().}(hjɚhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubj[)}(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.chMhjDubj[)}(h_Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.h](h_Never_ directly free }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubeh}(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}(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMubh)}(hhh]j()}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjMubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjRmodnameN classnameNj:8j=8)}j@8]jC8)}j68 get_devicesb c.get_deviceasbuh1hhj-hhhj>hMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj>hMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj-hhhj>hMubj")}(h get_deviceh]j()}(hjnh]h get_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(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}(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&] refdomainjtreftypej68 reftargetj˛modnameN classnameNj:8j=8)}j@8]jl c.get_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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-hhhj>hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj)hhhj>hMubah}(h]j$ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj>hMhj&hhubjV)}(hhh]j[)}(h%increment reference count for device.h]h%increment reference count for device.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj)hhubah}(h]h ]h"]h$]h&]uh1jUhj&hhhj>hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjDj{jDj|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)}(hjNh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjHubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjmh]hstruct device *dev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjgubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubj[)}(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.chMhjHubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjHubeh}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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 put_deviceh]j()}(h put_deviceh]h put_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM!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 }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubh)}(hhh]j()}(hdeviceh]hdevice}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjJmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsb c.put_deviceasbuh1hhj&ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjW8)}(hjZ8h]h*}(hjvhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj&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@uh1j7hjhhhjhM!ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM!ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM!hjhhubjV)}(hhh]j[)}(hdecrement reference count.h]hdecrement reference count.}(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&]jyjtjzjŝj{jŝj|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%hjɝubj)}(hhh]j)}(h*``struct device *dev`` device in question.h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM'hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubah}(h]h ]h"]h$]h&]uh1jhjɝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_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](j7)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjDhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM?ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhjVhM?ubj")}(h device_delh]j()}(h device_delh]h device_del}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjDhhhjVhM?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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jksb c.device_delasbuh1hhjubj)}(h h]h }(hjÞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjўhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjޞhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj}ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjDhhhjVhM?ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj@hhhjVhM?ubah}(h]j;ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjVhM?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=hhhjVhM?ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhj\hNhNubj)}(hX**Parameters** ``struct device *dev`` device. **Description** This is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy. **NOTE** this should be called manually _iff_ device_add() was also called manually.h](j[)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMChj$ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjIh]hstruct device *dev}(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.chM@hjCubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hM@hj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hM@hj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMBhj$ubj[)}(hThis is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy.h]hThis is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMAhj$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.chMGhj$ubj[)}(hKthis should be called manually _iff_ device_add() was also called manually.h]hKthis should be called manually _iff_ device_add() was also called manually.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMHhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_unregister (C function)c.device_unregisterhNtauh1hhj\hhhNhNubh)}(hhh](h)}(h+void device_unregister (struct device *dev)h]h)}(h*void device_unregister(struct device *dev)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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_unregisterh]j()}(hdevice_unregisterh]hdevice_unregister}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(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 }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]j()}(hdeviceh]hdevice}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjMmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_unregisterasbuh1hhj)ubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjW8)}(hjZ8h]h*}(hjyhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj)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[)}(hunregister device from system.h]hunregister device from system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjȠj{jȠj|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}(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 going away. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hdevice going away.h]hdevice going away.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj̠ubj[)}(h**Description**h]j)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj̠ubj[)}(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.}(hjBhhhNhNubah}(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"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](j7)}(hinth]hint}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhMubj")}(hdevice_for_each_childh]j()}(hdevice_for_each_childh]hdevice_for_each_child}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjmhhhjhMubj7)}(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&]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&] refdomainjtreftypej68 reftargetjΡmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_for_each_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdatah]hdata}(hjIhhhNhNubah}(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}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjgmodnameN classnameNj:8j=8)}j@8]jc.device_for_each_childasbuh1hhj^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjmhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjhMubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjfhhubjV)}(hhh]j[)}(hdevice child iterator.h]hdevice child iterator.}(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&]uh1jUhjfhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjӢj{jӢj|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}(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)}(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)}(hj5h]h void *data}(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[)}(hdata for the callback.h]hdata for the callback.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjnh]hdevice_iter_t fn}(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[)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjעubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjעubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hjhhhNhNubj)}(h **parent**h]hparent}(hjǣhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s child devices, and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hj٣hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each, passing it }(hjhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjעubj[)}(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:32: ./drivers/base/core.chMhjעubeh}(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](j7)}(hinth]hint}(hjEhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjAhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShM ubj")}(hdevice_for_each_child_reverseh]j()}(hdevice_for_each_child_reverseh]hdevice_for_each_child_reverse}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjAhhhjShM 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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jhsbc.device_for_each_child_reverseasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjW8)}(hjZ8h]h*}(hjΤhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj~ubj()}(hparenth]hparent}(hjۤhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjzubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjzubj7)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj;modnameN classnameNj:8j=8)}j@8]jc.device_for_each_child_reverseasbuh1hhj2ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj()}(hfnh]hfn}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjzubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjAhhhjShM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=hhhjShM ubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjShM 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:hhhjShM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(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 hjʥubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjʥubeh}(h]h ]h"]h$]h&]uh1jhjhM hjǥubj)}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjǥubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjBh]hdevice_iter_t fn}(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.chMhj<ubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjWhMhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjǥubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s child 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.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 }(hjئhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjئubhT each time. If it returns anything other than 0, we break out and return that value.}(hjئhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM*ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj'hM*ubj")}(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'hj6ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj'hM*ubj7)}(hJ(struct device *parent, struct device *from, void *data, device_iter_t fn)h](j7)}(hstruct device *parenth](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&] refdomainjtreftypej68 reftargetjvmodnameN classnameNj:8j=8)}j@8]jC8)}j68j<sb$c.device_for_each_child_reverse_fromasbuh1hhjRubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjRubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjRubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjNubj7)}(hstruct device *fromh](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j$c.device_for_each_child_reverse_fromasbuh1hhjħubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjħubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjħubj()}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjħubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjNubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj4ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW8)}(hjZ8h]h*}(hjThhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj4ubj()}(hdatah]hdata}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjNubj7)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j$c.device_for_each_child_reverse_fromasbuh1hhjvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjNubeh}(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*hjhhubjV)}(hhh]j[)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(hjӨhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM*hjШhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj'hM*ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj\hNhNubj)}(hXf**Parameters** ``struct device *parent`` parent struct device. ``struct device *from`` optional starting point in child list ``void *data`` data for the callback. ``device_iter_t fn`` function to be called for each device. **Description** Iterate over **parent**'s child devices, starting at **from**, and call **fn** for each, passing it **data**. This helper is identical to device_for_each_child_reverse() when **from** is NULL. **fn** is checked each iteration. If it returns anything other than 0, iteration stop and that value is returned to the caller of device_for_each_child_reverse_from();h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM.hjubj)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)hM+hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM+hj ubj)}(h>``struct device *from`` optional starting point in child list h](j)}(h``struct device *from``h]j)}(hjMh]hstruct device *from}(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%optional starting point in child listh]h%optional starting point in child list}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhM,hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM,hj 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:32: ./drivers/base/core.chM-hjubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hj ubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM.hjubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjةhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjԩhM.hjթubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԩhM.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.chM0hjubj[)}(hIterate over **parent**'s child devices, starting at **from**, and call **fn** for each, passing it **data**. This helper is identical to device_for_each_child_reverse() when **from** is NULL.h](h Iterate over }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh ’s child devices, starting at }(hjhhhNhNubj)}(h**from**h]hfrom}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each, passing it }(hjhhhNhNubj)}(h**data**h]hdata}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhC. This helper is identical to device_for_each_child_reverse() when }(hjhhhNhNubj)}(h**from**h]hfrom}(hj`hhhNhNubah}(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/hjubj[)}(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&]uh1jhjyubh 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();}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM3hjubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMMubj)}(h h]h }(hjĪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjêhMMubh)}(hhh]j()}(hdeviceh]hdevice}(hjժhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjҪubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjתmodnameN classnameNj:8j=8)}j@8]jC8)}j68device_find_childsbc.device_find_childasbuh1hhjhhhjêhMMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjêhMMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjêhMMubj")}(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!hjhhhjêhMMubj7)}(h?(struct device *parent, const void *data, device_match_t match)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubh)}(hhh]j()}(hdeviceh]hdevice}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjPmodnameN classnameNj:8j=8)}j@8]jc.device_find_childasbuh1hhj,ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjW8)}(hjZ8h]h*}(hjzhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj,ubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj(ubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjɫhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj׫hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj(ubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_find_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmatchh]hmatch}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj(ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjêhMMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjêhMMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjêhMMhjhhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMMhjShhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjêhMMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjnj{jnj|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)}(hjxh]h Parameters}(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.chMQhjrubj)}(hhh](j)}(h/``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.chMNhjubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubj)}(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.chMOhjʬubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMOhjubah}(h]h ]h"]h$]h&]uh1jhjʬubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hj h]hdevice_match_t match}(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.chMPhjubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMPhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMPhjubeh}(h]h ]h"]h$]h&]uh1jhjrubj[)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMRhjrubj[)}(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 }(hjZhhhNhNubj)}(h **match**h]hmatch}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh callback.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMQhjrubj[)}(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.chMUhjrubj[)}(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.chMZhjrubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM[hjrubeh}(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 }(hj߭hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͭhhhjޭhMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68__root_device_registersbc.__root_device_registerasbuh1hhjͭhhhjޭhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͭhhhjޭhMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjͭhhhjޭhMubj")}(h__root_device_registerh]j()}(hjh]h__root_device_register}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjͭhhhjޭhMubj7)}(h((const char *name, struct module *owner)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj7)}(hcharh]hchar}(hjfhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjGubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjGubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjCubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hjƮhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjîubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjȮmodnameN classnameNj:8j=8)}j@8]j c.__root_device_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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#allocate and register a root deviceh]h#allocate and register a root device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jUhjƭhhhjޭhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjAj{jAj|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)}(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)}(h&``const char *name`` root device name h](j)}(h``const char *name``h]j)}(hjjh]hconst char *name}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubj)}(hhh]j[)}(hroot device nameh]hroot device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(hN``struct module *owner`` owner module of the root device, usually THIS_MODULE 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:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h4owner module of the root device, usually THIS_MODULEh]h4owner module of the root device, usually THIS_MODULE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubj[)}(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.chMhjEubj[)}(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.chMhjEubj[)}(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.chMhjEubj[)}(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.chMhjEubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj3hhhNhNubh)}(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 refexplicitrefwarnj:8j=8)}j@8]sb reftargetdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj3ubh+ pointer on success, or ERR_PTR() on error.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj`hMhjEubj[)}(h**Note**h]j)}(hjmh]hNote}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjEubj[)}(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.chMhjEubeh}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM0ubj")}(hroot_device_unregisterh]j()}(hroot_device_unregisterh]hroot_device_unregister}(hjӰhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjϰubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM0ubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jհsbc.root_device_unregisterasbuh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj;hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM0ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM0ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM0hjhhubjV)}(hhh]j[)}(h!unregister and free a root deviceh]h!unregister and free a root device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM0hjohhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM0ubeh}(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)}(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.chM4hjubj)}(hhh]j)}(h)``struct device *dev`` device going away h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM1hjubj)}(hhh]j[)}(hdevice going awayh]hdevice going away}(hj̱hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjȱhM1hjɱubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȱhM1hjubah}(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.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}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hMrubh)}(hhh]j()}(hdeviceh]hdevice}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjTmodnameN classnameNj:8j=8)}j@8]jC8)}j68 device_createsbc.device_createasbuh1hhj/hhhj@hMrubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhhj@hMrubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj/hhhj@hMrubj")}(h device_createh]j()}(hjph]h device_create}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/hhhj@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}(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()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jnc.device_createasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *parenth](h)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j()}(hdeviceh]hdevice}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjXmodnameN classnameNj:8j=8)}j@8]jnc.device_createasbuh1hhj4ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj4ubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jnc.device_createasbuh1hhjubj)}(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@uh1j7hjubj7)}(h void *drvdatah](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvdatah]hdrvdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj7)}(hcharh]hchar}(hjMhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj.ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjW8)}(hjZ8h]h*}(hjihhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj.ubj()}(hfmth]hfmt}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]jW8)}(hjh]h...}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj/hhhj@hMrubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj+hhhj@hMrubah}(h]j&ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj@hMrhj(hhubjV)}(hhh]j[)}(h,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.chMrhjhhubah}(h]h ]h"]h$]h&]uh1jUhj(hhhj@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)}(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.chMvhjԴubj)}(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&]uh1jhjhMshjubj)}(hY``struct device *parent`` pointer to the parent struct device of this new device, if any h](j)}(h``struct device *parent``h]j)}(hj2h]hstruct device *parent}(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.chMthj,ubj)}(hhh]j[)}(h>pointer to the parent struct device of this new device, if anyh]h>pointer to the parent struct device of this new device, if any}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMthjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMthjubj)}(h9``dev_t devt`` the dev_t for the char device to be added h](j)}(h``dev_t devt``h]j)}(hjkh]h dev_t devt}(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.chMuhjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMuhjubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hjh]h void *drvdata}(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.chMvhjubj)}(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&]uh1jZhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjݵh]hconst char *fmt}(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.chMwhj׵ubj)}(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&]uh1jhj׵ubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubj)}(hhh]j[)}(hvariable argumentsh]hvariable arguments}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj+hKhj,ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj+hKhjubeh}(h]h ]h"]h$]h&]uh1jhjԴubj[)}(h**Description**h]j)}(hjQh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjԴubj[)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMxhjԴubj[)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM{hjԴubj[)}(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 ](jIjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^deviceuh1hh]/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Դubeh}(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}(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 }(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68device_create_with_groupssbc.device_create_with_groupsasbuh1hhjӶhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӶhhhjhMubjW8)}(hjZ8h]h*}(hj%hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjӶhhhjhMubj")}(hdevice_create_with_groupsh]j()}(hjh]hdevice_create_with_groups}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjӶhhhjhMubj7)}(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}(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_create_with_groupsasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjMubj()}(hclassh]hclass}(hj÷hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjMubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubj7)}(hstruct device *parenth](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_create_with_groupsasbuh1hhjطubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjطubjW8)}(hjZ8h]h*}(hj&hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjطubj()}(hparenth]hparent}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjطubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjQmodnameN classnameNj:8j=8)}j@8]jc.device_create_with_groupsasbuh1hhjHubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj()}(hdevth]hdevt}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubj7)}(h void *drvdatah](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvdatah]hdrvdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubj7)}(h%const struct attribute_group **groupsh](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()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_create_with_groupsasbuh1hhjҸubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjҸubjW8)}(hjZ8h]h*}(hj;hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjҸubjW8)}(hjZ8h]h*}(hjHhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjҸubj()}(hgroupsh]hgroups}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjҸubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjjubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubj7)}(h...h]jW8)}(hjh]h...}(hj˹hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjǹubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubeh}(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,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&]uh1jUhj̶hhhjhMubeh}(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 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)}(hj5h]hconst struct class *class}(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[)}(hDpointer to the struct class that this device should be registered toh]hDpointer to the struct class that this device should be registered to}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhMhj,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)}(hjnh]hstruct device *parent}(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[)}(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&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,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.chMhjubj)}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hjh]h void *drvdata}(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[)}(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&]uh1jhjںubeh}(h]h ]h"]h$]h&]uh1jhjhMhj,ubj)}(ha``const struct attribute_group **groups`` NULL-terminated list of attribute groups to be created h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h6NULL-terminated list of attribute groups to be createdh]h6NULL-terminated list of attribute groups to be created}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj,ubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjRh]hconst char *fmt}(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.chMhjLubj)}(hhh]j[)}(hstring for the device's nameh]hstring for the device’s name}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghMhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhj,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&]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.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.}(hjܻhhhNhNubah}(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.}(hjhhhNhNubah}(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 ](jIjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^deviceuh1hh]/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!hMhjubeh}(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](j7)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjHhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhjZhMubj")}(hdevice_destroyh]j()}(hdevice_destroyh]hdevice_destroy}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjHhhhjZhMubj7)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hj¼hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjļmodnameN classnameNj:8j=8)}j@8]jC8)}j68josbc.device_destroyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j޼c.device_destroyasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjHhhhjZhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjDhhhjZhMubah}(h]j?ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjZhMhjAhhubjV)}(hhh]j[)}(h6removes a device that was created with device_create()h]h6removes a device that was created with device_create()}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jUhjAhhhjZhMubeh}(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}(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 class *class`` pointer to the struct class that this device was registered with 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.chMhjubj)}(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}(hjɽhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjŽhMhjƽubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŽhMhjubj)}(hF``dev_t devt`` the dev_t of the device that was previously registered h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(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&]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: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&] refdomainjtreftypej68 reftargetj@modnameN classnameNj:8j=8)}j@8]jC8)}j68jsb c.device_moveasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjlhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *new_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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jZ c.device_moveasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(h new_parenth]h new_parent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(henum dpm_order dpm_orderh](h)}(hjh]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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj"modnameN classnameNj:8j=8)}j@8]jZ c.device_moveasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(h dpm_orderh]h dpm_order}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM6ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM6ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM6hjhhubjV)}(hhh]j[)}(hmoves a device to a new parenth]hmoves a device to a new parent}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM6hjshhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM6ubeh}(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)}(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)}(hD``struct device *dev`` the pointer to the struct device to be moved 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.chM7hjubj)}(hhh]j[)}(h,the pointer to the struct device to be movedh]h,the pointer to the struct device to be moved}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(hI``struct device *new_parent`` the new parent of the device (can be NULL) h](j)}(h``struct device *new_parent``h]j)}(hjh]hstruct device *new_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.chM8hjubj)}(hhh]j[)}(h*the new parent of the device (can be NULL)h]h*the new parent of the device (can be NULL)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hjubj)}(h8``enum dpm_order dpm_order`` how to reorder the dpm_listh](j)}(h``enum dpm_order dpm_order``h]j)}(hj)h]henum dpm_order dpm_order}(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[)}(hhow to reorder the dpm_listh]hhow to reorder the dpm_list}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM9hj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(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](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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h dev_err_probeh]j()}(h dev_err_probeh]h dev_err_probe}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.dev_err_probeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj'hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hint errh](j7)}(hinth]hint}(hjMhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjIubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj()}(herrh]herr}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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~ubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj~ubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]jW8)}(hjh]h...}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj{hhhjhMubah}(h]jvah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjxhhubjV)}(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&]uh1jUhjxhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|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)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubj)}(hhh](j)}(h>``const struct device *dev`` the pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hjIh]hconst struct device *dev}(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[)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubj)}(h/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj@ubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hj hhhNhNubah}(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&]uh1jhj$ubj[)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubj[)}(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:}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubj)}(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;}hjTsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubj[)}(hwith::h]hwith:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj$ubj)}(h$return dev_err_probe(dev, err, ...);h]h$return dev_err_probe(dev, err, ...);}hjrsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj$ubj[)}(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.chMhj$ubj[)}(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.chMhj$ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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")}(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!hjhhhjhM)ubj7)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j7)}(hconst struct device *devh](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 }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj[modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.dev_warn_probeasbuh1hhjubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hint errh](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(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@uh1j7hjubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfmth]hfmt}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]jW8)}(hjh]h...}(hj?hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj;ubah}(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 probe error check and log helperh]h probe error check and log helper}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM)hjehhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM)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)}(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.chM*hjubj)}(hhh]j[)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjubj)}(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.chM+hjubj)}(hhh]j[)}(herror value to testh]herror value to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+hjubj)}(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}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hM,hj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hM,hjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjTh]h...}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM-hjNubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihM-hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM-hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure: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:}(hjhhhNhNubah}(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;}hjsbah}(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:}(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_warn_probe(dev, err, ...);h]h%return dev_warn_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[)}(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 }(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_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.}(hjhhhNhNubeh}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.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](j7)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj?hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM^ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhM^ubj")}(hset_primary_fwnodeh]j()}(hset_primary_fwnodeh]hset_primary_fwnode}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj?hhhjQhM^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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jfsbc.set_primary_fwnodeasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj|ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.set_primary_fwnodeasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj?hhhjQhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj;hhhjQhM^ubah}(h]j6ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjQhM^hj8hhubjV)}(hhh]j[)}(h3Change the primary firmware node of a given device.h]h3Change the primary firmware node of a given device.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM^hjphhubah}(h]h ]h"]h$]h&]uh1jUhj8hhhjQhM^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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMbhjubj)}(hhh](j)}(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.chM_hjubj)}(hhh]j[)}(hDevice to handle.h]hDevice to handle.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(hJ``struct fwnode_handle *fwnode`` New primary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM`hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubeh}(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.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 }(hj>hhhNhNubj)}(h **fwnode**h]hfwnode}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubhI, but if a secondary firmware node of the device is present, preserve it.}(hj>hhhNhNubeh}(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:}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMghjbubj)}(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.chMehjubah}(h]h ]h"]h$]h&]uh1j}hjzubj~)}(hprimary --> NULLh]j[)}(hjh]hprimary --> NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMfhjubah}(h]h ]h"]h$]h&]uh1j}hjzubj~)}(hsecondary --> -ENODEVh]j[)}(hjh]hsecondary --> -ENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthMghjubah}(h]h ]h"]h$]h&]uh1j}hjzubj~)}(hNULLh]j[)}(hjh]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhhjubah}(h]h ]h"]h$]h&]uh1j}hjzubeh}(h]h ]h"]h$]h&]bullet-uh1jxhjhMehjuubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjthMghj_ubah}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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")}(hset_secondary_fwnodeh]j()}(hset_secondary_fwnodeh]hset_secondary_fwnode}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj&hMubj7)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j()}(hdeviceh]hdevice}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjumodnameN classnameNj:8j=8)}j@8]jC8)}j68j;sbc.set_secondary_fwnodeasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjQubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjMubj7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.set_secondary_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjMubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj&hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj&hMubah}(h]j ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj&hMhj hhubjV)}(hhh]j[)}(h5Change the secondary firmware node of a given device.h]h5Change the secondary firmware node of a given device.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjEhhubah}(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 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)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hL``struct fwnode_handle *fwnode`` New secondary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h*New secondary firmware node of the device.h]h*New secondary firmware node of the 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&]uh1jhjdubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubj[)}(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}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubeh}(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](j7)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjbhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjthMubj")}(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!hjbhhhjthMubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_remove_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjbhhhjthMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj^hhhjthMubah}(h]jYah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjthMhj[hhubjV)}(hhh]j[)}(hRemove an of_node from a deviceh]hRemove an of_node from a device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jUhj[hhhjthMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj>j{j>j|j}j~uh1hhhhj\hNhNubj)}(hW**Parameters** ``struct device *dev`` device whose device tree node is being removedh](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.chMhjBubj)}(hhh]j)}(hE``struct device *dev`` device whose device tree node is being removedh](j)}(h``struct device *dev``h]j)}(hjgh]hstruct device *dev}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjaubj)}(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&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/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_add_of_nodeh]j()}(hdevice_add_of_nodeh]hdevice_add_of_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_add_of_nodeasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjJhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device_node *of_nodeh](h)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j()}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j8c.device_add_of_nodeasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjlubj()}(hof_nodeh]hof_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(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[)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|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.chMhj ubj)}(hhh](j)}(hD``struct device *dev`` device whose device tree node is being added h](j)}(h``struct device *dev``h]j)}(hj2h]hstruct device *dev}(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.chMhj,ubj)}(hhh]j[)}(h,device whose device tree node is being addedh]h,device whose device tree node is being added}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhj)ubj)}(h/``struct device_node *of_node`` of_node to add h](j)}(h``struct device_node *of_node``h]j)}(hjkh]hstruct device_node *of_node}(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.chMhjeubj)}(hhh]j[)}(hof_node to addh]hof_node to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj)ubeh}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj[)}(h&0 on success or error code on failure.h]h&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.chMhj ubeh}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_set_of_node_from_devh]j()}(hdevice_set_of_node_from_devh]hdevice_set_of_node_from_dev}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h/(struct device *dev, const struct device *dev2)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j()}(hdeviceh]hdevice}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjHmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_set_of_node_from_devasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(hconst struct device *dev2h](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jbc.device_set_of_node_from_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdev2h]hdev2}(hj hhhNhNubah}(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(reuse device-tree node of another deviceh]h(reuse device-tree node of another device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjNj{jNj|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)}(hjXh]h Parameters}(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.chMhjRubj)}(hhh](j)}(hB``struct device *dev`` device whose device-tree node is being set h](j)}(h``struct device *dev``h]j)}(hjwh]hstruct device *dev}(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[)}(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&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(hL``const struct device *dev2`` device whose device-tree node is being reused h](j)}(h``const struct device *dev2``h]j)}(hjh]hconst struct device *dev2}(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 reusedh]h-device whose device-tree node is being reused}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubj[)}(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.chMhjRubj[)}(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.chMhjRubeh}(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}(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hMubh)}(hhh]j()}(hdeviceh]hdevice}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjQmodnameN classnameNj:8j=8)}j@8]jC8)}j68get_dev_from_fwnodesbc.get_dev_from_fwnodeasbuh1hhj,hhhj=hMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj=hMubjW8)}(hjZ8h]h*}(hj~hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj,hhhj=hMubj")}(hget_dev_from_fwnodeh]j()}(hjmh]hget_dev_from_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj,hhhj=hMubj7)}(h(struct fwnode_handle *fwnode)h]j7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jkc.get_dev_from_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(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[)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jUhj%hhhj=hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjCj{jCj|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)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubj)}(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)}(hjlh]hstruct fwnode_handle *fwnode}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjfubj)}(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&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubah}(h]h ]h"]h$]h&]uh1jhjGubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubj[)}(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 }(hjhhhNhNubj)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh4 have a reference count of the struct device itself.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubj[)}(hHence, it is a UAF (and thus a bug) to call this function if the caller can't guarantee that the last reference count of the corresponding struct device is not dropped concurrently.h]hHence, it is a UAF (and thus a bug) to call this function if the caller can’t guarantee that the last reference count of the corresponding struct device is not dropped concurrently.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubj[)}(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.chMhjGubeh}(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](j7)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj(hhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj:hKubj")}(hregister_syscoreh]j()}(hregister_syscoreh]hregister_syscore}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj(hhhj:hKubj7)}(h(struct syscore *syscore)h]j7)}(hstruct syscore *syscoreh](h)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hhh]j()}(hsyscoreh]hsyscore}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jOsbc.register_syscoreasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjeubj()}(hsyscoreh]hsyscore}(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:hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj$hhhj:hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj:hKhj!hhubjV)}(hhh]j[)}(h)Register a set of system core operations.h]h)Register a set of system core operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhj!hhhj:hKubeh}(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&]uh1jhj ubah}(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)}(hj-h]hstruct syscore *syscore}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhj'ubj)}(hhh]j[)}(h#System core operations to register.h]h#System core operations to register.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhKhj$ubah}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(hunregister_syscoreh]j()}(hunregister_syscoreh]hunregister_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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.unregister_syscoreasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsyscoreh]hsyscore}(hjhhhNhNubah}(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]jzah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhj|hhubjV)}(hhh]j[)}(h+Unregister a set of system core operations.h]h+Unregister a set of system core operations.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjDhhubah}(h]h ]h"]h$]h&]uh1jUhj|hhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj_j{j_j|j}j~uh1hhhhj\hNhNubj)}(hS**Parameters** ``struct syscore *syscore`` System core operations to unregister.h](j[)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK"hjcubj)}(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.}(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&]uh1jhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK+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!hjhhhjhK+ubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubah}(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[)}(h9Execute all the registered system core suspend callbacks.h]h9Execute all the registered system core suspend callbacks.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+hjFhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhK+ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjaj{jaj|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)}(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:35: ./drivers/base/syscore.chK/hjeubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjeubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjeubj[)}(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.chK,hjeubeh}(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](j7)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh`/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}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKYubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj?ubah}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKYhjnhhubah}(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)}(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}(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: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}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKcubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hKcubh)}(hhh]j()}(hdeviceh]hdevice}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjSmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_device_by_namesbc.class_find_device_by_nameasbuh1hhj.hhhj?hKcubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj?hKcubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj.hhhj?hKcubj")}(hclass_find_device_by_nameh]j()}(hjoh]hclass_find_device_by_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj.hhhj?hKcubj7)}(h-(const struct class *class, const char *name)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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jmc.class_find_device_by_nameasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj7)}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj3ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjW8)}(hjZ8h]h*}(hjnhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj3ubj()}(hnameh]hname}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj.hhhj?hKcubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj*hhhj?hKcubah}(h]j%ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj?hKchj'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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKchjhhubah}(h]h ]h"]h$]h&]uh1jUhj'hhhj?hKcubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.hhKghjubj)}(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.hhKehjubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hj!hhhNhNubah}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKfhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hKghjubeh}(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_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}(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKoubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_device_by_of_nodesbc.class_find_device_by_of_nodeasbuh1hhjuhhhjhKoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhKoubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjuhhhjhKoubj")}(hclass_find_device_by_of_nodeh]j()}(hjh]hclass_find_device_by_of_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjuhhhjhKoubj7)}(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&]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&] refdomainjtreftypej68 reftargetj.modnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device_node *nph](h)}(hj8h]hconst}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j()}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_of_nodeasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjzubj()}(hnph]hnp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjuhhhjhKoubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjhKoubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKohjnhhubjV)}(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&]uh1jUhjnhhhjhKoubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj2j{j2j|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)}(hj<h]h Parameters}(hj>hhhNhNubah}(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.hhKshj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKqhjUubj)}(hhh]j[)}(h class typeh]h class type}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphKqhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphKqhjRubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(hjh]hconst struct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKshjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(class_find_device_by_fwnode (C function)c.class_find_device_by_fwnodehNtauh1hhj\hhhNhNubh)}(hhh](h)}(hkstruct device * class_find_device_by_fwnode (const struct class *class, const struct fwnode_handle *fwnode)h]h)}(histruct device *class_find_device_by_fwnode(const struct class *class, const struct fwnode_handle *fwnode)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK{ubh)}(hhh]j()}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_device_by_fwnodesbc.class_find_device_by_fwnodeasbuh1hhjhhhjhK{ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK{ubjW8)}(hjZ8h]h*}(hj<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhK{ubj")}(hclass_find_device_by_fwnodeh]j()}(hj+h]hclass_find_device_by_fwnode}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhK{ubj7)}(h?(const struct class *class, const struct fwnode_handle *fwnode)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j)c.class_find_device_by_fwnodeasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubj7)}(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 }(hjhhhNhNubah}(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&] refdomainjtreftypej68 reftargetj.modnameN classnameNj:8j=8)}j@8]j)c.class_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubeh}(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[)}(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&]uh1jUhjhhhjhK{ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.hhK}hjubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK}hjubj)}(hE``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hj h]h"const struct fwnode_handle *fwnode}(hj hhhNhNubah}(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.}(hj"hhhNhNubah}(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&]uh1jhjhKhjubeh}(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_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}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjphKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_device_by_devtsbc.class_find_device_by_devtasbuh1hhj_hhhjphKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjphKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj_hhhjphKubj")}(hclass_find_device_by_devth]j()}(hjh]hclass_find_device_by_devt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj_hhhjphKubj7)}(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 }(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_devtasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjBhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hjOhhhNhNubah}(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}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmmodnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_devtasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj_hhhjphKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj[hhhjphKubah}(h]jVah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjphKhjXhhubjV)}(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.}(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&]uh1jUhjXhhhjphKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hj;h]h dev_t devt}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj5ubj)}(hhh]j[)}(h#device type of the device to match.h]h#device type of the device to match.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjubeh}(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_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}(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'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_device_by_acpi_devsbc.class_find_device_by_acpi_devasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(hclass_find_device_by_acpi_devh]j()}(hjh]hclass_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 class *class, const struct acpi_device *adev)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}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hclassh]hclass}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjJmodnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_acpi_devasbuh1hhj ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hadevh]hadev}(hj hhhNhNubah}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj3hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjNj{jNj|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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjRubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjwh]hconst struct class *class}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjqubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhKhjnubj)}(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&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]j[)}(hACPI_COMPANION device to match.h]hACPI_COMPANION 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&]uh1jhjhKhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubeh}(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}(hj hhhNhNubah}(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}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj&ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj+modnameN classnameNj:8j=8)}j@8]jC8)}j68 class_createsbc.class_createasbuh1hhjhhhjhKubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(h class_createh]j()}(hjGh]h class_create}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubah}(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&]uh1jhjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnameh]hname}(hjhhhNhNubah}(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.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|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)}(hj3h]hconst char *name}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj-ubj)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhj*ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure: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 }(hjhhhNhNubh)}(h:c:type:`struct class `h]j)}(hjh]h struct class}(hjhhhNhNubah}(h]h ](jIjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^classuh1hh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhjubj[)}(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().}(hjhhhNhNubah}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM%ubj")}(h class_destroyh]j()}(h class_destroyh]h class_destroy}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM%ubj7)}(h(const struct class *cls)h]j7)}(hconst struct class *clsh](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()}(hclassh]hclass}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjlmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.class_destroyasbuh1hhj-ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj-ubj()}(hclsh]hcls}(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@uh1j7hjhhhjhM%ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM%ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM%hjhhubjV)}(hhh]j[)}(h!destroys a struct class structureh]h!destroys a struct class structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM%ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj\hNhNubj)}(h**Parameters** ``const struct class *cls`` pointer to the struct class that is to be destroyed **Description** Note, the pointer to be destroyed must have been created with a call to class_create().h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM)hjubj)}(hhh]j)}(hP``const struct class *cls`` pointer to the struct class that is to be destroyed h](j)}(h``const struct class *cls``h]j)}(hjh]hconst struct class *cls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM&hj ubj)}(hhh]j[)}(h3pointer to the struct class that is to be destroyedh]h3pointer to the struct class that is to be destroyed}(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&hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM(hjubj[)}(hWNote, the pointer to be destroyed must have been created with a call to class_create().h]hWNote, the pointer to be destroyed must have been created with a call to class_create().}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_init (C function)c.class_dev_iter_inithNtauh1hhj\hhhNhNubh)}(hhh](h)}(hvoid class_dev_iter_init (struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h]h)}(hvoid class_dev_iter_init(struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM5ubj")}(hclass_dev_iter_inith]j()}(hclass_dev_iter_inith]hclass_dev_iter_init}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM5ubj7)}(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}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hiterh]hiter}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct class *classh](h)}(hj8h]hconst}(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;ubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j()}(hclassh]hclass}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjzmodnameN classnameNj:8j=8)}j@8]jc.class_dev_iter_initasbuh1hhj;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj;ubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device *starth](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj/hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device_type *typeh](h)}(hj8h]hconst}(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubh)}(hhh]j()}(h device_typeh]h device_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_dev_iter_initasbuh1hhjQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjQubj()}(htypeh]htype}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjQubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM5ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM5ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM5hjhhubjV)}(hhh]j[)}(h initialize class device iteratorh]h initialize class device iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM5ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|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.chM9hj ubj)}(hhh](j)}(h=``struct class_dev_iter *iter`` class iterator to initialize h](j)}(h``struct class_dev_iter *iter``h]j)}(hj2h]hstruct class_dev_iter *iter}(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.chM6hj,ubj)}(hhh]j[)}(hclass iterator to initializeh]hclass iterator to initialize}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhM6hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM6hj)ubj)}(h>``const struct class *class`` the class we wanna iterate over h](j)}(h``const struct class *class``h]j)}(hjkh]hconst struct class *class}(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.chM7hjeubj)}(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&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM7hj)ubj)}(hJ``const struct device *start`` the device to start iterating from, 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.chM8hjubj)}(hhh]j[)}(h*the device to start iterating from, if anyh]h*the device to start iterating from, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM8hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM8hj)ubj)}(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)}(hjh]hconst struct device_type *type}(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.chM9hjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hj)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:41: ./drivers/base/class.chM;hj ubj[)}(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 }(hj.hhhNhNubj)}(h**iter**h]hiter}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh' such that it iterates over devices of }(hj.hhhNhNubj)}(h **class**h]hclass}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubh. If }(hj.hhhNhNubj)}(h **start**h]hstart}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubhy is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM:hj ubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMVubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_dev_iter_nextsbc.class_dev_iter_nextasbuh1hhjhhhjhMVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMVubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhMVubj")}(hclass_dev_iter_nexth]j()}(hjh]hclass_dev_iter_next}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMVubj7)}(h(struct class_dev_iter *iter)h]j7)}(hstruct class_dev_iter *iterh](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()}(hclass_dev_iterh]hclass_dev_iter}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj-modnameN classnameNj:8j=8)}j@8]jc.class_dev_iter_nextasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hiterh]hiter}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMVubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMVhjhhubjV)}(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&]uh1jUhjhhhjhMVubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chMZhjubj)}(hhh]j)}(h:``struct class_dev_iter *iter`` class iterator to proceed 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.chMWhjubj)}(hhh]j[)}(hclass iterator to proceedh]hclass iterator to proceed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMYhjubj[)}(hZProceed **iter** to the next device and return it. Returns NULL if iteration is complete.h](hProceed }(hj hhhNhNubj)}(h**iter**h]hiter}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhJ to the next device and return it. Returns NULL if iteration is complete.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMXhjubj[)}(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.}(hjAhhhNhNubah}(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_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](j7)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj~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!hjlhhhj~hMuubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.class_dev_iter_exitasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjlhhhj~hMuubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhhj~hMuubah}(h]jcah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~hMuhjehhubjV)}(hhh]j[)}(hfinish iterationh]hfinish iteration}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuhj-hhubah}(h]h ]h"]h$]h&]uh1jUhjehhhj~hMuubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjHj{jHj|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)}(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:41: ./drivers/base/class.chMyhjLubj)}(hhh]j)}(h9``struct class_dev_iter *iter`` class iterator to finish h](j)}(h``struct class_dev_iter *iter``h]j)}(hjqh]hstruct class_dev_iter *iter}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMvhjkubj)}(hhh]j[)}(hclass iterator to finishh]hclass iterator to finish}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjhubah}(h]h ]h"]h$]h&]uh1jhjLubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMxhjLubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMwhjLubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hclass_for_each_deviceh]j()}(hclass_for_each_deviceh]hclass_for_each_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hU(const struct class *class, const struct device *start, void *data, device_iter_t fn)h](j7)}(hconst struct class *classh](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}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubh)}(hhh]j()}(hclassh]hclass}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjimodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.class_for_each_deviceasbuh1hhj*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj*ubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj&ubj7)}(hconst struct device *starth](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_for_each_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj&ubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjBubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjW8)}(hjZ8h]h*}(hjbhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjBubj()}(hdatah]hdata}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj&ubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_for_each_deviceasbuh1hhjubj)}(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@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[)}(hdevice iteratorh]hdevice iterator}(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&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj\hNhNubj)}(hX**Parameters** ``const struct class *class`` the class we're iterating ``const struct device *start`` the device to start with in the list, if any. ``void *data`` data for the callback ``device_iter_t fn`` function to be called for each device **Description** Iterate over **class**'s list of devices, and call **fn** for each, passing it **data**. If **start** is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list. We check the return of **fn** each time. If it returns anything other than 0, we break out and return that value. **fn** is allowed to do anything including calling back into class code. There's no locking restriction.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(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:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hthe class we're iteratingh]hthe class we’re iterating}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(hM``const struct device *start`` the device to start with in the list, if any. h](j)}(h``const struct device *start``h]j)}(hj[h]hconst struct device *start}(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-the device to start with in the list, if any.h]h-the device to start with in the list, if any.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubj)}(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:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(hdata for the callbackh]hdata for the callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``device_iter_t fn`` function to be called for each device h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j[)}(h%function to be called for each deviceh]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&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj[)}(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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s list of devices, and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each, passing it }(hjhhhNhNubj)}(h**data**h]hdata}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **start**h]hstart}(hj\hhhNhNubah}(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 }(hjuhhhNhNubj)}(h**fn**h]hfn}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubhT each time. If it returns anything other than 0, we break out and return that value.}(hjuhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hjhhhNhNubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_devicesbc.class_find_deviceasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjW8)}(hjZ8h]h*}(hj!hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhMubj")}(hclass_find_deviceh]j()}(hjh]hclass_find_device}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(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}(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_find_deviceasbuh1hhjIubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjIubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjEubj7)}(hconst struct device *starth](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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_find_deviceasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj=hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjEubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj7)}(hvoidh]hvoid}(hj~hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj_ubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjEubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_find_deviceasbuh1hhjubj)}(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@uh1j7hjEubeh}(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[)}(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&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj1j{j1j|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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj5ubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(hjZh]hconst struct class *class}(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[)}(hthe class we're iteratingh]hthe class we’re iterating}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(h4``const struct device *start`` Device to begin with 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[)}(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&]uh1jhjhMhjQubj)}(h1``const void *data`` data for the match function h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(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[)}(hdata for the match functionh]hdata for the match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(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&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj[)}(h**Description**h]j)}(hj@h]h Description}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj5ubj[)}(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 }(hjVhhhNhNubj)}(h **match**h]hmatch}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh callback.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj5ubj[)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj5ubj[)}(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.chMhj5ubj[)}(hl**match** is allowed to do anything including calling back into class code. There's no locking restriction.h](j)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj5ubeh}(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)}(hubj)}(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\hjzubj)}(hhh]j[)}(hthe target bus deviceh]hthe target bus device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM[hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(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](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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMdubj")}(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!hjhhhjhMdubj7)}(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 }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h class_compath]h class_compat}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj7modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.class_compat_remove_linkasbuh1hhjubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclsh]hcls}(hjphhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jQc.class_compat_remove_linkasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(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[)}(h8remove a compatibility class device link to a bus deviceh]h8remove a compatibility class device link to a bus device}(hj hhhNhNubah}(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&]uh1jUhjhhhjhMdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj"j{j"j|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)}(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.chMhhj&ubj)}(hhh](j)}(h5``struct class_compat *cls`` the compatibility class h](j)}(h``struct class_compat *cls``h]j)}(hjKh]hstruct class_compat *cls}(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.chMfhjEubj)}(hhh]j[)}(hthe compatibility classh]hthe compatibility class}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`hMfhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMfhjBubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMghjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubeh}(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](j7)}(hj:h]hbool}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMpubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMpubj")}(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!hjhhhjhMpubj7)}(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 }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(hjShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjUmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.class_is_registeredasbuh1hhjubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjhhhjhMpubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMpubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMphjhhubjV)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMphjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMpubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chMthjubj)}(hhh]j)}(h1``const struct class *class`` the class to check h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMrhjubj)}(hhh]j[)}(hthe class to checkh]hthe class to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMthjubj[)}(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).}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMshjubj[)}(hBe careful in using this.h]hBe careful in using this.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMxhjubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(h faux_deviceh]j()}(hjh]h faux_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhj~hhubjV)}(hhh]j[)}(ha "faux" deviceh]ha “faux” device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhj~hhhjhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(h.struct faux_device { struct device dev; };h]h.struct faux_device { struct device dev; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj[)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(hhh]j)}(h,``dev`` internal struct device of the objecth](j)}(h``dev``h]j)}(hj8h]hdev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhj2ubj)}(hhh]j[)}(h$internal struct device of the objecth]h$internal struct device of the object}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhj}hNubj[)}(h**Description**h]j)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(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}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(hfaux_device_opsh]j()}(hjh]hfaux_device_ops}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(h+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&]uh1jUhjhhhjhKubeh}(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); };}hj8sbah}(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)}(hjIh]hMembers}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(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)}(hjhh]hprobe}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hjbubj)}(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&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hK)hj_ubj)}(h?``remove`` called when a faux device is removed from the systemh](j)}(h ``remove``h]j)}(hjh]hremove}(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[)}(h4called when a faux device is removed from the systemh]h4called when a faux device is removed from the system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK*hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK)hj_ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhj}hNubj[)}(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: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}(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKbubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThKbubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjhmodnameN classnameNj:8j=8)}j@8]jC8)}j68faux_device_create_with_groupssb c.faux_device_create_with_groupsasbuh1hhjChhhjThKbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThKbubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjChhhjThKbubj")}(hfaux_device_create_with_groupsh]j()}(hjh]hfaux_device_create_with_groups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjThKbubj7)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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'hj9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj>modnameN classnameNj:8j=8)}j@8]j c.faux_device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h&const struct faux_device_ops *faux_opsh](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()}(hfaux_device_opsh]hfaux_device_ops}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j c.faux_device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfaux_opsh]hfaux_ops}(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}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjTmodnameN classnameNj:8j=8)}j@8]j c.faux_device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj~hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjChhhjThKbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj?hhhjThKbubah}(h]j:ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjThKbhj<hhubjV)}(hhh]j[)}(hwCreate and register with the driver core a faux device and populate the device with an initial set of sysfs attributes.h]hwCreate and register with the driver core a faux device and populate the device with an initial set of sysfs attributes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKbhjhhubah}(h]h ]h"]h$]h&]uh1jUhj<hhhjThKbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chKfhjubj)}(hhh](j)}(h```const char *name`` The name of the device we are adding, must be unique for all faux devices. h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKehj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKfhjubj)}(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.chKihj7 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.}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKghjS ubah}(h]h ]h"]h$]h&]uh1jhj7 ubeh}(h]h ]h"]h$]h&]uh1jhjR hKihjubj)}(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)}(hjw h]h&const struct faux_device_ops *faux_ops}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKkhjq ubj)}(hhh]j[)}(hLstruct faux_device_ops that the new device will call back into, can be NULL.h]hLstruct faux_device_ops that the new device will call back into, can be NULL.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKjhj ubah}(h]h ]h"]h$]h&]uh1jhjq ubeh}(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}(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.chKmhj 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKlhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKmhjubeh}(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:47: ./drivers/base/faux.chKohjubj[)}(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.chKnhjubj[)}(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.chKshjubj[)}(h **Return**h]j)}(hj5 h]hReturn}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3 ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKyhjubjy)}(hhh](j~)}(h2NULL if an error happened with creating the deviceh]j[)}(hjP h]h2NULL if an error happened with creating the device}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKzhjN ubah}(h]h ]h"]h$]h&]uh1j}hjK ubj~)}(hCpointer to a valid struct faux_device that is registered with sysfsh]j[)}(hjh h]hCpointer to a valid struct faux_device that is registered with sysfs}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chK{hjf ubah}(h]h ]h"]h$]h&]uh1j}hjK ubeh}(h]h ]h"]h$]h&]jjZ8uh1jxhj_ hKzhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfaux_device_create (C function)c.faux_device_createhNtauh1hhj\hhhNhNubh)}(hhh](h)}(hystruct faux_device * faux_device_create (const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h]h)}(hwstruct faux_device *faux_device_create(const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]jC8)}j68faux_device_createsbc.faux_device_createasbuh1hhj hhhj hKubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hKubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj hhhj hKubj")}(hfaux_device_createh]j()}(hj 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 ubj7)}(hcharh]hchar}(hj9 hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj)}(h h]h }(hjG hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjU hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hnameh]hname}(hjb 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&]uh1hhjw ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw ubh)}(hhh]j()}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]j c.faux_device_createasbuh1hhjw ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw ubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjw ubj()}(hparenth]hparent}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjw ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(h&const struct faux_device_ops *faux_opsh](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()}(hfaux_device_opsh]hfaux_device_ops}(hj$ hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj! ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj& modnameN classnameNj:8j=8)}j@8]j c.faux_device_createasbuh1hhj ubj)}(h h]h }(hjB hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjP hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hfaux_opsh]hfaux_ops}(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@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)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubj)}(hhh](j)}(h```const char *name`` The name of the device we are adding, must be unique for all faux devices. h](j)}(h``const char *name``h]j)}(hj h]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubj)}(hhh]j[)}(hJThe name of the device we are adding, must be unique for all faux devices.h]hJThe name of the device we are adding, must be unique for all faux devices.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj 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 hKhj 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.chKhj6 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.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h**Description**h]j)}(hjx h]h Description}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubj[)}(hCreate a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle.h](h_Create a new faux device and register it in the driver core properly. If present, callbacks in }(hj hhhNhNubj)}(h **faux_ops**h]hfaux_ops}(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.chKhj ubj[)}(hNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time.h]hNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubj[)}(h **Return**h]j)}(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.chKhj ubjy)}(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.chKhj 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.chKhj ubah}(h]h ]h"]h$]h&]uh1j}hj ubeh}(h]h ]h"]h$]h&]jjZ8uh1jxhj hKhj 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](j7)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+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}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLubah}(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}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(hhh]j()}(h faux_deviceh]h faux_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jRsbc.faux_device_destroyasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhubj()}(hfaux_devh]hfaux_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjhhubah}(h]h ]h"]h$]h&]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.chKhj ubj)}(hhh]j)}(h8``struct faux_device *faux_dev`` faux device to destroy h](j)}(h ``struct faux_device *faux_dev``h]j)}(hj0h]hstruct faux_device *faux_dev}(hj2hhhNhNubah}(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[)}(hfaux device to destroyh]hfaux device to destroy}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h**Description**h]j)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubj[)}(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.chKhj ubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(hnode_access_nodesh]j()}(hjh]hnode_access_nodes}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(hFAccess class device to hold user visible relationships to other nodes.h]hFAccess class device to hold user visible relationships to other nodes.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKJhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj j{j j|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; };}hj/sbah}(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)}(hj@h]hMembers}(hjBhhhNhNubah}(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.chKYhjubj)}(hhh](j)}(h,``dev`` Device for this memory access class h](j)}(h``dev``h]j)}(hj_h]hdev}(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.chKMhjYubj)}(hhh]j[)}(h#Device for this memory access classh]h#Device for this memory access class}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthKMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKMhjVubj)}(h5``list_node`` List element in the node's access list h](j)}(h ``list_node``h]j)}(hjh]h list_node}(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.chKNhjubj)}(hhh]j[)}(h&List element in the node's access listh]h(List element in the node’s access list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKNhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKNhjVubj)}(h!``access`` The access class rank h](j)}(h ``access``h]j)}(hjh]haccess}(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[)}(hThe access class rankh]hThe access class rank}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjVubj)}(h6``coord`` Heterogeneous memory performance coordinatesh](j)}(h ``coord``h]j)}(hj h]hcoord}(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.chKOhjubj)}(hhh]j[)}(h,Heterogeneous memory performance coordinatesh]h,Heterogeneous memory performance coordinates}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKPhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKOhjVubeh}(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}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKVubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjqhKVubj")}(hnode_cache_infoh]j()}(hj^h]hnode_cache_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhjqhKVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj\hhhjqhKVubah}(h]jWah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhKVhjYhhubjV)}(hhh]j[)}(h(Internal tracking for memory node cachesh]h(Internal tracking for memory node caches}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM"hjhhubah}(h]h ]h"]h$]h&]uh1jUhjYhhhjqhKVubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|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}(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.chM&hjubj)}(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; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM(hjubj[)}(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.hjubj)}(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$hj ubj)}(hhh]j[)}(h"Device represeting the cache levelh]h"Device represeting the cache level}(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)}(h/``node`` List element for tracking in the node h](j)}(h``node``h]j)}(hjLh]hnode}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM%hjFubj)}(hhh]j[)}(h%List element for tracking in the nodeh]h%List element for tracking in the node}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahM%hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM%hj ubj)}(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%hjubj)}(hhh]j[)}(hAttributes for this cache levelh]hAttributes for this cache level}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM%hj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMlubj")}(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!hjhhhjhMlubj7)}(h8(unsigned int nid, struct node_cache_attrs *cache_attrs)h](j7)}(hunsigned int nidh](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hinth]hint}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hnidh]hnid}(hjThhhNhNubah}(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}(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubh)}(hhh]j()}(hnode_cache_attrsh]hnode_cache_attrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.node_add_cacheasbuh1hhjiubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjiubj()}(h cache_attrsh]h cache_attrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(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[)}(h$add cache attribute to a memory nodeh]h$add cache attribute to a memory node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMlubeh}(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.chMphj ubj)}(hhh](j)}(hC``unsigned int nid`` Node identifier that has new cache attributes h](j)}(h``unsigned int nid``h]j)}(hj1h]hunsigned int nid}(hj3hhhNhNubah}(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.chMmhj+ubj)}(hhh]j[)}(h-Node identifier that has new cache attributesh]h-Node identifier that has new cache attributes}(hjJhhhNhNubah}(h]h ]h"]h$]5h&]uh1jZhjFhMmhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMmhj(ubj)}(hM``struct node_cache_attrs *cache_attrs`` Attributes for the cache being addedh](j)}(h(``struct node_cache_attrs *cache_attrs``h]j)}(hjjh]h$struct node_cache_attrs *cache_attrs}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMohjdubj)}(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&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMohj(ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h'register_memory_node_under_compute_nodeh]j()}(h'register_memory_node_under_compute_nodeh]h'register_memory_node_under_compute_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hQ(unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h](j7)}(hunsigned int mem_nidh](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmem_nidh]hmem_nid}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned int cpu_nidh](j7)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj7)}(hinth]hint}(hjnhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj()}(hcpu_nidh]hcpu_nid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h#enum access_coordinate_class accessh](h)}(hjh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(haccess_coordinate_classh]haccess_coordinate_class}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsb)c.register_memory_node_under_compute_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(haccessh]haccess}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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[)}(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&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj1j{j1j|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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj5ubj)}(hhh](j)}(h,``unsigned int mem_nid`` Memory node number h](j)}(h``unsigned int mem_nid``h]j)}(hjZh]hunsigned int mem_nid}(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[)}(hMemory node numberh]hMemory node number}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMhjQubj)}(h*``unsigned int cpu_nid`` Cpu node number h](j)}(h``unsigned int cpu_nid``h]j)}(hjh]hunsigned int cpu_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[)}(hCpu node numberh]hCpu node number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubj)}(hA``enum access_coordinate_class access`` Access class to register h](j)}(h'``enum access_coordinate_class access``h]j)}(hjh]h#enum access_coordinate_class access}(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[)}(hAccess class to registerh]hAccess class to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubj[)}(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:50: ./drivers/base/node.chMhj5ubj3)}(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.}(hj!hhhNhNubah}(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&]uh1j2hj/hMhj5ubeh}(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](j7)}(hinth]hint}(hjVhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjRhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMjubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhhjdhMjubj")}(h register_nodeh]j()}(h register_nodeh]h register_node}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjRhhhjdhMjubj7)}(h (int nid)h]j7)}(hint nidh](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(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@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjRhhhjdhMjubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjNhhhjdhMjubah}(h]jIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjdhMjhjKhhubjV)}(hhh]j[)}(h(Initialize and register the node device.h]h(Initialize and register the node device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMjhjhhubah}(h]h ]h"]h$]h&]uh1jUhjKhhhjdhMjubeh}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hMkhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMkhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h **Return**h]j)}(hjUh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(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}(hjkhhhNhNubah}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hunregister_nodeh]j()}(hunregister_nodeh]hunregister_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h (int nid)h]j7)}(hint nidh](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(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@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[)}(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&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj5j{j5j|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)}(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:50: ./drivers/base/node.chMhj9ubj)}(hhh]j)}(h'``int nid`` nid of the node going away h](j)}(h ``int nid``h]j)}(hj^h]hint nid}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjXubj)}(hhh]j[)}(hnid of the node going awayh]hnid of the node going away}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshMhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshMhjUubah}(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:50: ./drivers/base/node.chMhj9ubj[)}(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 }(hjhhhNhNubj)}(h**nid**h]hnid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP. All the devices on the node must be unregistered before calling this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%transport_class_register (C function)c.transport_class_registerhNtauh1hhj\hhhNhNubh)}(hhh](h)}(h=int transport_class_register (struct transport_class *tclass)h]h)}(hhj\ubj)}(hhh]j)}(hE``struct transport_class *tclass`` The transport class to unregister h](j)}(h"``struct transport_class *tclass``h]j)}(hjh]hstruct transport_class *tclass}(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.chKhj\ubj[)}(hHMust be called prior to deallocating the memory for the transport class.h]hHMust be called prior to deallocating the memory for the transport class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK=hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*anon_transport_class_register (C function)c.anon_transport_class_registerhNtauh1hhj\hhhNhNubh)}(hhh](h)}(hEvoid anon_transport_class_register (struct anon_transport_class *atc)h]h)}(hDvoid anon_transport_class_register(struct anon_transport_class *atc)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhh/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}(hj"hhhNhNubah}(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}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj^modnameN classnameNj:8j=8)}j@8]jC8)}j68j$sbc.anon_transport_class_registerasbuh1hhj:ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj:ubj()}(hatch]hatc}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6ubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chKThjubj)}(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&]uh1jhjubj[)}(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.chKThjubj[)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKShjubeh}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj~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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(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}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsb!c.anon_transport_class_unregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hatch]hatc}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj~hhhjhKfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjzhhhjhKfubah}(h]juah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKfhjwhhubjV)}(hhh]j[)}(hunregister an anon classh]hunregister an anon class}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKfhj?hhubah}(h]h ]h"]h$]h&]uh1jUhjwhhhjhKfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjZj{jZj|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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhj^ubj)}(hhh]j)}(hW``struct anon_transport_class *atc`` Pointer to the anon transport class to unregister h](j)}(h$``struct anon_transport_class *atc``h]j)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhKhhjzubah}(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&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhj^ubj[)}(hMMust be called prior to deallocating the memory for the anon transport class.h]hMMust be called prior to deallocating the memory for the anon transport class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKihj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#transport_setup_device (C function)c.transport_setup_devicehNtauh1hhj\hhhNhNubh)}(hhh](h)}(h0void transport_setup_device (struct device *dev)h]h)}(h/void transport_setup_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhh/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&]uh1jhjhhhj hKubj")}(htransport_setup_deviceh]j()}(htransport_setup_deviceh]htransport_setup_device}(hj$ hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj 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 }(hjM 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&] refdomainjtreftypej68 reftargetj` modnameN classnameNj:8j=8)}j@8]jC8)}j68j& sbc.transport_setup_deviceasbuh1hhj< ubj)}(h h]h }(hj~ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< ubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj< ubj()}(hdevh]hdev}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj< ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj8 ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhjhhubjV)}(hhh]j[)}(hPdeclare a new dev for transport class association but don't make it visible yet.h]hRdeclare a new dev for transport class association but don’t make it visible yet.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhj\hNhNubj)}(hX**Parameters** ``struct device *dev`` the generic device representing the entity being added **Description** Usually, dev represents some component in the HBA system (either the HBA itself or a device remote across the HBA bus). This routine is simply a trigger point to see if any set of transport classes wishes to associate with the added device. This allocates storage for the class device and initialises it, but does not yet add it to the system or add attributes to it (you do this with transport_add_device). If you have no need for a separate setup and add operations, use transport_register_device (see transport_class.h).h](j[)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.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)}(hj?!h]h Description}(hjA!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[)}(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).}(hjU!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_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](j7)}(hinth]hint}(hj!hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj!hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj!hKubj")}(htransport_add_deviceh]j()}(htransport_add_deviceh]htransport_add_device}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj!hhhj!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&] refdomainjtreftypej68 reftargetj!modnameN classnameNj:8j=8)}j@8]jC8)}j68j!sbc.transport_add_deviceasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjW8)}(hjZ8h]h*}(hj "hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj!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]jw!ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj!hKhjy!hhubjV)}(hhh]j[)}(h1declare a new dev for transport class associationh]h1declare a new dev for transport class association}(hjD"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjA"hhubah}(h]h ]h"]h$]h&]uh1jUhjy!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)}(hjf"h]h Parameters}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd"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)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj`"ubj[)}(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.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj`"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'transport_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](j7)}(hvoidh]hvoid}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj#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}(hjB#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>#ubj)}(h h]h }(hjO#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&] refdomainjtreftypej68 reftargetjb#modnameN classnameNj:8j=8)}j@8]jC8)}j68j(#sbc.transport_configure_deviceasbuh1hhj>#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>#ubjW8)}(hjZ8h]h*}(hj#hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj>#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}(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)}(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)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj#ubj)}(hhh]j)}(hK``struct device *dev`` generic device representing device to be configured h](j)}(h``struct device *dev``h]j)}(hj$h]hstruct device *dev}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj$ubj)}(hhh]j[)}(h3generic device representing device to be configuredh]h3generic device representing device to be configured}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubj[)}(h**Description**h]j)}(hjA$h]h Description}(hjC$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?$ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj#ubj[)}(hXThe idea of configure is simply to provide a point within the setup process to allow the transport class to extract information from a device after it has been setup. This is used in SCSI because we have to have a setup device to begin using the HBA, but after we send the initial inquiry, we use configure to extract the device parameters. The device need not have been added to be configured.h]hXThe idea of configure is simply to provide a point within the setup process to allow the transport class to extract information from a device after it has been setup. This is used in SCSI because we have to have a setup device to begin using the HBA, but after we send the initial inquiry, we use configure to extract the device parameters. The device need not have been added to be configured.}(hjW$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$transport_remove_device (C function)c.transport_remove_devicehNtauh1hhj\hhhNhNubh)}(hhh](h)}(h1void transport_remove_device (struct device *dev)h]h)}(h0void transport_remove_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$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}(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&] refdomainjtreftypej68 reftargetj$modnameN classnameNj:8j=8)}j@8]jC8)}j68j$sbc.transport_remove_deviceasbuh1hhj$ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW8)}(hjZ8h]h*}(hj%hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$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]jy$ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj$hMhj{$hhubjV)}(hhh]j[)}(h!remove the visibility of a deviceh]h!remove the visibility of a device}(hjF%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjC%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)}(hjh%h]h Parameters}(hjj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf%ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjb%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&]uh1jhjb%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.chMhjb%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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjb%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](j7)}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj&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}(hjD&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@&ubj)}(h h]h }(hjQ&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@&ubh)}(hhh]j()}(hdeviceh]hdevice}(hjb&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_&ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjd&modnameN classnameNj:8j=8)}j@8]jC8)}j68j*&sbc.transport_destroy_deviceasbuh1hhj@&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@&ubjW8)}(hjZ8h]h*}(hj&hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj@&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}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM hj&hhubah}(h]h ]h"]h$]h&]uh1jUhj%hhhj&hM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhj\hNhNubj)}(hX**Parameters** ``struct device *dev`` device to eliminate from the transport class. **Description** This call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.h](j[)}(h**Parameters**h]j)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM$hj&ubj)}(hhh]j)}(hE``struct device *dev`` device to eliminate from the transport class. h](j)}(h``struct device *dev``h]j)}(hj'h]hstruct device *dev}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM"hj'ubj)}(hhh]j[)}(h-device to eliminate from the transport class.h]h-device to eliminate from the transport class.}(hj!'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'hM"hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hM"hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj[)}(h**Description**h]j)}(hjC'h]h Description}(hjE'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA'ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM$hj&ubj[)}(hXoThis call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.h]hXoThis call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.}(hjY'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM#hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.driver_deferred_probe_check_state (C function)#c.driver_deferred_probe_check_statehNtauh1hhj\hhhNhNubh)}(hhh](h)}(h:int driver_deferred_probe_check_state (struct device *dev)h]h)}(h9int driver_deferred_probe_check_state(struct device *dev)h](j7)}(hinth]hint}(hj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj'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}(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&] refdomainjtreftypej68 reftargetj'modnameN classnameNj:8j=8)}j@8]jC8)}j68j'sb#c.driver_deferred_probe_check_stateasbuh1hhj'ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjW8)}(hjZ8h]h*}(hj(hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj'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[)}(hCheck deferred probe stateh]hCheck deferred probe state}(hjH(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjE(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)}(hjj(h]h Parameters}(hjl(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh(ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjd(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&]uh1jhjd(ubj[)}(h **Return**h]j)}(hj(h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjd(ubjy)}(hhh](j~)}(h=-ENODEV if initcalls have completed and modules are disabled.h]j[)}(hj(h]h=-ENODEV if initcalls have completed and modules are disabled.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj(ubah}(h]h ]h"]h$]h&]uh1j}hj(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}hj(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}hj(ubeh}(h]h ]h"]h$]h&]jjZ8uh1jxhj(hMhjd(ubj[)}(h**Description**h]j)}(hj/)h]h Description}(hj1)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.chMhjd(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.}(hjE)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjd(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](j7)}(hj:h]hbool}(hjt)hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjp)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&]uh1jhjp)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!hjp)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&] refdomainjtreftypej68 reftargetj)modnameN classnameNj:8j=8)}j@8]jC8)}j68j)sbc.device_is_boundasbuh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjW8)}(hjZ8h]h*}(hj)hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj)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@uh1j7hjp)hhhj)hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjl)hhhj)hMubah}(h]jg)ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj)hMhji)hhubjV)}(hhh]j[)}(h$Check if device is bound to a driverh]h$Check if device is bound to a driver}(hj3*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj0*hhubah}(h]h ]h"]h$]h&]uh1jUhji)hhhj)hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjK*j{jK*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)}(hjU*h]h Parameters}(hjW*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS*ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjO*ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjt*h]hstruct device *dev}(hjv*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjn*ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhjn*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjk*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&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjO*ubj[)}(hYReturns true if passed device has already finished probing successfully against a driver.h]hYReturns true if passed device has already finished probing successfully against a driver.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjO*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.chMhjO*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](j7)}(hinth]hint}(hj+hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj*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 }(hjM+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&] refdomainjtreftypej68 reftargetj`+modnameN classnameNj:8j=8)}j@8]jC8)}j68j&+sbc.device_bind_driverasbuh1hhj<+ubj)}(h h]h }(hj~+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<+ubjW8)}(hjZ8h]h*}(hj+hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj<+ubj()}(hdevh]hdev}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<+ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj8+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.}(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. **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)}(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. 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&]uh1jhj+ubj[)}(h**Description**h]j)}(hj?,h]h Description}(hjA,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[)}(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 }(hjU,hhhNhNubj)}(h**dev->driver**h]h dev->driver}(hj],hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU,ubh.}(hjU,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj+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.)}(hjv,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.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj+ubj[)}(hparent** lock must be 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.chMjhj.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.chMghj.ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.hMghj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hMghj.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.chMihj.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.chMhhj.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.chMlhj.ubj[)}(hCWhen called for a USB interface, **dev->parent** lock must be held.h](h!When called for a USB interface, }(hjL/hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjT/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL/ubh lock must be held.}(hjL/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMphj.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](j7)}(hinth]hint}(hj/hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/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/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/hhhj/hMubj7)}(h5(const struct device_driver *drv, struct device *dev)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}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj0modnameN classnameNj:8j=8)}j@8]jC8)}j68j/sbc.device_driver_attachasbuh1hhj/ubj)}(h h]h }(hj#0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjW8)}(hjZ8h]h*}(hj10hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj/ubj()}(hdrvh]hdrv}(hj>0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj/ubj7)}(hstruct device *devh](h)}(hjh]hstruct}(hjW0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjS0ubj)}(h h]h }(hjd0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS0ubh)}(hhh]j()}(hdeviceh]hdevice}(hju0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjr0ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjw0modnameN classnameNj:8j=8)}j@8]j0c.device_driver_attachasbuh1hhjS0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS0ubjW8)}(hjZ8h]h*}(hj0hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjS0ubj()}(hdevh]hdev}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjS0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj/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}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jUhj/hhhj/hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj0j{j0j|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)}(hj1h]hconst struct device_driver *drv}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj1ubj)}(hhh]j[)}(hDriver to attachh]hDriver to attach}(hj21hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.1hMhj/1ubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhj.1hMhj1ubj)}(h.``struct device *dev`` Device to attach it to h](j)}(h``struct device *dev``h]j)}(hjR1h]hstruct device *dev}(hjT1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP1ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjL1ubj)}(hhh]j[)}(hDevice to attach it toh]hDevice to attach it to}(hjk1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjg1hMhjh1ubah}(h]h ]h"]h$]h&]uh1jhjL1ubeh}(h]h ]h"]h$]h&]uh1jhjg1hMhj1ubeh}(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 }(hj1hhhNhNubj)}(h**dev**h]hdev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh lock and }(hj1hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh7 lock if needed. Returns 0 on success, -ERR on failure.}(hj1hhhNhNubeh}(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](j7)}(hinth]hint}(hj1hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj1hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1hhhj2hMubj")}(h driver_attachh]j()}(h driver_attachh]h driver_attach}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj1hhhj2hMubj7)}(h!(const struct device_driver *drv)h]j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hj32hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/2ubj)}(h h]h }(hj@2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/2ubh)}(hjh]hstruct}(hjN2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/2ubj)}(h h]h }(hj[2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/2ubh)}(hhh]j()}(h device_driverh]h device_driver}(hjl2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hji2ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjn2modnameN classnameNj:8j=8)}j@8]jC8)}j68j2sbc.driver_attachasbuh1hhj/2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/2ubjW8)}(hjZ8h]h*}(hj2hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj/2ubj()}(hdrvh]hdrv}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/2ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj+2ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj1hhhj2hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj1hhhj2hMubah}(h]j1ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj2hMhj1hhubjV)}(hhh]j[)}(htry to bind driver to devices.h]htry to bind driver to devices.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jUhj1hhhj2hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj2j{j2j|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.chMhj2ubj)}(hhh]j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hj3h]hconst struct device_driver *drv}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj 3ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj+3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'3hMhj(3ubah}(h]h ]h"]h$]h&]uh1jhj 3ubeh}(h]h ]h"]h$]h&]uh1jhj'3hMhj 3ubah}(h]h ]h"]h$]h&]uh1jhj2ubj[)}(h**Description**h]j)}(hjM3h]h Description}(hjO3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK3ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj2ubj[)}(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 }(hjc3hhhNhNubj)}(h**dev->driver**h]h dev->driver}(hjk3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc3ubh) is set, we’ve found a compatible pair.}(hjc3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj2ubeh}(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](j7)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj3hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMbubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hMbubj")}(hdevice_release_driverh]j()}(hdevice_release_driverh]hdevice_release_driver}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj3hhhj3hMbubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubh)}(hhh]j()}(hdeviceh]hdevice}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj4modnameN classnameNj:8j=8)}j@8]jC8)}j68j3sbc.device_release_driverasbuh1hhj3ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjW8)}(hjZ8h]h*}(hj-4hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj3ubj()}(hdevh]hdev}(hj:4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj3hhhj3hMbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj3hhhj3hMbubah}(h]j3ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj3hMbhj3hhubjV)}(hhh]j[)}(h#manually detach device from driver.h]h#manually detach device from driver.}(hjd4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMbhja4hhubah}(h]h ]h"]h$]h&]uh1jUhj3hhhj3hMbubeh}(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)}(hj4h]hstruct device *dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMchj4ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4hMchj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj4hMchj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubj[)}(h**Description**h]j)}(hj4h]h Description}(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.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 }(hj5hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubhv lock held, ensure that the device’s consumers are unbound in advance or that their locks can be acquired under the }(hj5hhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj15hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh lock.}(hj5hhhNhNubeh}(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}(hjj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf5hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hjx5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf5hhhjw5hKubj")}(hplatform_device_infoh]j()}(hjd5h]hplatform_device_info}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjf5hhhjw5hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjb5hhhjw5hKubah}(h]j]5ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjw5hKhj_5hhubjV)}(hhh]j[)}(h0set of parameters for creating a platform deviceh]h0set of parameters for creating a platform device}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKuhj5hhubah}(h]h ]h"]h$]h&]uh1jUhj_5hhhjw5hKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj5j{j5j|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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh:}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKyhj5ubj)}(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; };}hj5sbah}(h]h ]h"]h$]h&]j?j@uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhK{hj5ubj[)}(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.hhKhj5ubj)}(hhh](j)}(h6``parent`` parent device for the new platform device. h](j)}(h ``parent``h]j)}(hj6h]hparent}(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.hhKwhj6ubj)}(hhh]j[)}(h*parent device for the new platform device.h]h*parent device for the new platform device.}(hj26hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj.6hKwhj/6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj.6hKwhj6ubj)}(h5``fwnode`` firmware node associated with the device. h](j)}(h ``fwnode``h]j)}(hjR6h]hfwnode}(hjT6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKxhjL6ubj)}(hhh]j[)}(h)firmware node associated with the device.h]h)firmware node associated with the device.}(hjk6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjg6hKxhjh6ubah}(h]h ]h"]h$]h&]uh1jhjL6ubeh}(h]h ]h"]h$]h&]uh1jhjg6hKxhj6ubj)}(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 }(hj6hhhNhNubj)}(h``true``h]htrue}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKyhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hK}hj6ubj)}(h``name`` name of the device. h](j)}(h``name``h]j)}(hj6h]hname}(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[)}(hname of the device.h]hname of the device.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hK~hj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hK~hj6ubj)}(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)}(hj7h]hid}(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.hhKhj 7ubj)}(hhh]j[)}(hinstance ID of the device. Use ``PLATFORM_DEVID_NONE`` if there is only one instance of the device, or ``PLATFORM_DEVID_AUTO`` to let the kernel automatically assign a unique instance ID.h](hinstance ID of the device. Use }(hj)7hhhNhNubj)}(h``PLATFORM_DEVID_NONE``h]hPLATFORM_DEVID_NONE}(hj17hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)7ubh1 if there is only one instance of the device, or }(hj)7hhhNhNubj)}(h``PLATFORM_DEVID_AUTO``h]hPLATFORM_DEVID_AUTO}(hjC7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)7ubh= to let the kernel automatically assign a unique instance ID.}(hj)7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj&7ubah}(h]h ]h"]h$]h&]uh1jhj 7ubeh}(h]h ]h"]h$]h&]uh1jhj%7hKhj6ubj)}(h2``res`` set of resources to attach to the device. h](j)}(h``res``h]j)}(hjn7h]hres}(hjp7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjl7ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjh7ubj)}(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&]uh1jhjh7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubj)}(h*``num_res`` number of entries in **res**. h](j)}(h ``num_res``h]j)}(hj7h]hnum_res}(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[)}(hnumber of entries in **res**.h](hnumber of entries in }(hj7hhhNhNubj)}(h**res**h]hres}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubh.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj7hKhj7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hKhj6ubj)}(h8``data`` device-specific data for this platform device. h](j)}(h``data``h]j)}(hj7h]hdata}(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[)}(h.device-specific data for this platform device.h]h.device-specific data for this platform device.}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hKhj8ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj6ubj)}(h,``size_data`` size of device-specific data. h](j)}(h ``size_data``h]j)}(hj+8h]h size_data}(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[)}(hsize of device-specific data.h]hsize of device-specific data.}(hjD8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@8hKhjA8ubah}(h]h ]h"]h$]h&]uh1jhj%8ubeh}(h]h ]h"]h$]h&]uh1jhj@8hKhj6ubj)}(h&``dma_mask`` DMA mask for the device. h](j)}(h ``dma_mask``h]j)}(hjd8h]hdma_mask}(hjf8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb8ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj^8ubj)}(hhh]j[)}(hDMA mask for the device.h]hDMA mask for the device.}(hj}8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjy8hKhjz8ubah}(h]h ]h"]h$]h&]uh1jhj^8ubeh}(h]h ]h"]h$]h&]uh1jhjy8hKhj6ubj)}(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)}(hj8h]hswnode}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj8ubj)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj6ubj)}(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)}(hj8h]h properties}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj8ubj)}(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 }(hj8hhhNhNubj)}(h**properties**h]h properties}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh and }(hj8hhhNhNubj)}(h **swnode**h]hswnode}(hj 9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh is not allowed.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj8ubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj6ubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubj[)}(h**Description**h]j)}(hj>9h]h Description}(hj@9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<9ubah}(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().}(hjT9hhhNhNubah}(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 }(hjc9hhhNhNubj)}(h**name**h]hname}(hjk9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc9ubh, }(hjc9hhhNhNubj)}(h**res**h]hres}(hj}9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc9ubh, }hjc9sbj)}(h**data**h]hdata}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc9ubh and }(hjc9hhhNhNubj)}(h**properties**h]h properties}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc9ubh, so the caller does not need to keep them after registration. If the registration is performed during initialization, these can be marked as __initconst.}(hjc9hhhNhNubeh}(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}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj9modnameN classnameNj:8j=8)}j@8]jC8)}j68!platform_device_register_resndatasb#c.platform_device_register_resndataasbuh1hhj9hhhj9hKubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhj9hKubjW8)}(hjZ8h]h*}(hj!:hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj9hhhj9hKubj")}(h!platform_device_register_resndatah]j()}(hj:h]h!platform_device_register_resndata}(hj2:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj9hhhj9hKubj7)}(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}(hjM:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI:ubj)}(h h]h }(hjZ:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI:ubh)}(hhh]j()}(hdeviceh]hdevice}(hjk:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjh:ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjm:modnameN classnameNj:8j=8)}j@8]j:#c.platform_device_register_resndataasbuh1hhjI:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjI:ubjW8)}(hjZ8h]h*}(hj:hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjI:ubj()}(hparenth]hparent}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjI:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE: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:ubj7)}(hcharh]hchar}(hj:hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjW8)}(hjZ8h]h*}(hj:hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj:ubj()}(hnameh]hname}(hj;hhhNhNubabh}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE:ubj7)}(hint idh](j7)}(hinth]hint}(hj;hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj;ubj)}(h h]h }(hj(;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj()}(hidh]hid}(hj6;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE:ubj7)}(hconst struct resource *resh](h)}(hj8h]hconst}(hjO;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjK;ubj)}(h h]h }(hj\;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubh)}(hjh]hstruct}(hjj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjK;ubj)}(h h]h }(hjw;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubh)}(hhh]j()}(hresourceh]hresource}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj;modnameN classnameNj:8j=8)}j@8]j:#c.platform_device_register_resndataasbuh1hhjK;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK;ubjW8)}(hjZ8h]h*}(hj;hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjK;ubj()}(hresh]hres}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjK;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE:ubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hj;hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj;ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj7)}(hinth]hint}(hj;hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj;ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj()}(hnumh]hnum}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE:ubj7)}(hconst void *datah](h)}(hj8h]hconst}(hj+<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'<ubj)}(h h]h }(hj8<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'<ubj7)}(hvoidh]hvoid}(hjF<hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj'<ubj)}(h h]h }(hjT<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'<ubjW8)}(hjZ8h]h*}(hjb<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj'<ubj()}(hdatah]hdata}(hjo<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE:ubj7)}(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&] refdomainjtreftypej68 reftargetj<modnameN classnameNj:8j=8)}j@8]j:#c.platform_device_register_resndataasbuh1hhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj()}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjE:ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj9hhhj9hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj9hhhj9hKubah}(h]j9ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj9hKhj9hhubjV)}(hhh]j[)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hj<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&]uh1jUhj9hhhj9hKubeh}(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&]uh1jZhj7=hKhj8=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj7=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&]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$base name of the device we're addingh]h&base name of the device we’re adding}(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``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&]uh1jZhj=hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=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&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj=ubj)}(hhh]j[)}(h:set of resources 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=hKhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhj=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}(hjA>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.hhKhj9>ubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjX>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjT>hKhjU>ubah}(h]h ]h"]h$]h&]uh1jhj9>ubeh}(h]h ]h"]h$]h&]uh1jhjT>hKhj=ubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjx>h]h size_t size}(hjz>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv>ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjr>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&]uh1jhjr>ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj=ubeh}(h]h ]h"]h$]h&]uh1jhj<ubj[)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]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 }(hj>hhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hj>h]hstruct platform_device}(hj>hhhNhNubah}(h]h ](jIjtc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^platform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj>ubh+ pointer on success, or ERR_PTR() on error.}(hj>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'hj7?ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hj6Ah]h Parameters}(hj8AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4Aubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj0Aubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjUAh]hconst char *name}(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$base name of the device we're addingh]h&base name of the device we’re adding}(hjnAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjAhKhjkAubah}(h]h ]h"]h$]h&]uh1jhjOAubeh}(h]h ]h"]h$]h&]uh1jhjjAhKhjLAubj)}(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}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjLAubj)}(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)}(hjAh]hconst struct resource *res}(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:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhjLAubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjBh]hunsigned int num}(hjBhhhNhNubah}(h]h ]h"]h$]h&]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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjBhKhjBubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjBhKhjLAubeh}(h]h ]h"]h$]h&]uh1jhj0Aubj[)}(h**Description**h]j)}(hj;Bh]h Description}(hj=BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Bubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj0Aubj[)}(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.}(hjQBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj0Aubj[)}(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”.}(hj`BhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj0Aubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjoBhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjyBh]hstruct platform_device}(hj{BhhhNhNubah}(h]h ](jIjtc-typeeh"]h$]h&]uh1jhjwBubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^platform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjoBubh+ pointer on success, or ERR_PTR() on error.}(hjoBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjBhKhj0Aubeh}(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}(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjBmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_device_register_datasbc.platform_device_register_dataasbuh1hhjBhhhjBhKubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjBhKubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjBhhhjBhKubj")}(hplatform_device_register_datah]j()}(hjBh]hplatform_device_register_data}(hj ChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjBhhhjBhKubj7)}(hP(struct device *parent, const char *name, int id, const void *data, size_t size)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hj;ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7Cubj)}(h h]h }(hjHChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7Cubh)}(hhh]j()}(hdeviceh]hdevice}(hjYChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVCubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj[CmodnameN classnameNj:8j=8)}j@8]jBc.platform_device_register_dataasbuh1hhj7Cubj)}(h h]h }(hjwChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7CubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj7Cubj()}(hparenth]hparent}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7Cubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3Cubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj7)}(hcharh]hchar}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjCubj()}(hnameh]hname}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3Cubj7)}(hint idh](j7)}(hinth]hint}(hjDhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj()}(hidh]hid}(hj$DhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3Cubj7)}(hconst void *datah](h)}(hj8h]hconst}(hj=DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9Dubj)}(h h]h }(hjJDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9Dubj7)}(hvoidh]hvoid}(hjXDhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj9Dubj)}(h h]h }(hjfDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9DubjW8)}(hjZ8h]h*}(hjtDhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj9Dubj()}(hdatah]hdata}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9Dubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3Cubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjDmodnameN classnameNj:8j=8)}j@8]jBc.platform_device_register_dataasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj()}(hsizeh]hsize}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3Cubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjBhhhjBhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjBhhhjBhKubah}(h]jBah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjBhKhjBhhubjV)}(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.hhKhjDhhubah}(h]h ]h"]h$]h&]uh1jUhjBhhhjBhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj Ej{j Ej|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)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hj4Eh]hstruct device *parent}(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)parent device for the device we're addingh]h+parent device for the device we’re adding}(hjMEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIEhKhjJEubah}(h]h ]h"]h$]h&]uh1jhj.Eubeh}(h]h ]h"]h$]h&]uh1jhjIEhKhj+Eubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjmEh]hconst char *name}(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$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&]uh1jhjgEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj+Eubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hjEh]hint id}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj)}(hhh]j[)}(h instance idh]h instance id}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj+Eubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjEh]hconst void *data}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj)}(hhh]j[)}(h/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&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj+Eubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjFh]h size_t size}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjFubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hj1FhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-FhKhj.Fubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhj-FhKhj+Eubeh}(h]h ]h"]h$]h&]uh1jhjEubj[)}(h**Description**h]j)}(hjSFh]h Description}(hjUFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQFubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj[)}(hXThis function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.h]hXThis function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped.}(hjiFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjEubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjxFhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjFh]hstruct platform_device}(hjFhhhNhNubah}(h]h ](jIjtc-typeeh"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^platform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjxFubh+ pointer on success, or ERR_PTR() on error.}(hjxFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjFhKhjEubeh}(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}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhK0ubh)}(hhh]j()}(hresourceh]hresource}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjFmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_get_resourcesbc.platform_get_resourceasbuh1hhjFhhhjFhK0ubj)}(h h]h }(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjFhK0ubjW8)}(hjZ8h]h*}(hjGhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjFhhhjFhK0ubj")}(hplatform_get_resourceh]j()}(hjGh]hplatform_get_resource}(hj)GhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%Gubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjFhhhjFhK0ubj7)}(hB(struct platform_device *dev, unsigned int type, unsigned int num)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjDGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@Gubj)}(h h]h }(hjQGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Gubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjbGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_Gubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjdGmodnameN classnameNj:8j=8)}j@8]jGc.platform_get_resourceasbuh1hhj@Gubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@GubjW8)}(hjZ8h]h*}(hjGhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj@Gubj()}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@Gubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVhMubj")}(hplatform_get_irqh]j()}(hplatform_get_irqh]hplatform_get_irq}(hjQVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjMVubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj,Vhhhj>VhMubj7)}(h/(struct platform_device *dev, unsigned int num)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjmVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiVubj)}(h h]h }(hjzVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiVubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjVmodnameN classnameNj:8j=8)}j@8]jC8)}j68jSVsbc.platform_get_irqasbuh1hhjiVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiVubjW8)}(hjZ8h]h*}(hjVhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjiVubj()}(hdevh]hdev}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeVubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj7)}(hinth]hint}(hjVhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjVubj)}(h h]h }(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj()}(hnumh]hnum}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeVubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj,Vhhhj>VhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj(Vhhhj>VhMubah}(h]j#Vah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj>VhMhj%VhhubjV)}(hhh]j[)}(hget an IRQ for a deviceh]hget an IRQ for a device}(hjAWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj>Whhubah}(h]h ]h"]h$]h&]uh1jUhj%Vhhhj>VhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjYWj{jYWj|j}j~uh1hhhhj\hNhNubj)}(hX**Parameters** ``struct platform_device *dev`` platform device ``unsigned int num`` IRQ number index **Description** Gets an IRQ for a platform device and prints an error message if finding the IRQ fails. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. For example:: int irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; **Return** non-zero IRQ number on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hjcWh]h Parameters}(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.chM!hj]Wubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjWh]hstruct platform_device *dev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj|Wubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhj|Wubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjyWubj)}(h&``unsigned int num`` IRQ number index h](j)}(h``unsigned int num``h]j)}(hjWh]hunsigned int num}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjWubj)}(hhh]j[)}(hIRQ number indexh]hIRQ number index}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjWhMhjWubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjWhMhjyWubeh}(h]h ]h"]h$]h&]uh1jhj]Wubj[)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM!hj]Wubj[)}(hGets an IRQ for a platform device and prints an error message if finding the IRQ fails. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs.h]hGets an IRQ for a platform device and prints an error message if finding the IRQ fails. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs.}(hj XhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj]Wubj[)}(h For example::h]h For example:}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM$hj]Wubj)}(hEint irq = platform_get_irq(pdev, 0); if (irq < 0) return irq;h]hEint irq = platform_get_irq(pdev, 0); if (irq < 0) return irq;}hj*Xsbah}(h]h ]h"]h$]h&]j?j@uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM&hj]Wubj[)}(h **Return**h]j)}(hj;Xh]hReturn}(hj=XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Xubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM*hj]Wubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjQXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM+hj]Wubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_irq_count (C function)c.platform_irq_counthNtauh1hhj\hhhNhNubh)}(hhh](h)}(h4int platform_irq_count (struct platform_device *dev)h]h)}(h3int platform_irq_count(struct platform_device *dev)h](j7)}(hinth]hint}(hjXhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj|Xhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM;ubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|XhhhjXhM;ubj")}(hplatform_irq_counth]j()}(hplatform_irq_counth]hplatform_irq_count}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj|XhhhjXhM;ubj7)}(h(struct platform_device *dev)h]j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjXmodnameN classnameNj:8j=8)}j@8]jC8)}j68jXsbc.platform_irq_countasbuh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjW8)}(hjZ8h]h*}(hj YhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjXubj()}(hdevh]hdev}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjXubah}(h]h ]h"]h$]h&]j?j@uh1j7hj|XhhhjXhM;ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjxXhhhjXhM;ubah}(h]jsXah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjXhM;hjuXhhubjV)}(hhh]j[)}(h/Count the number of IRQs a platform device usesh]h/Count the number of IRQs a platform device uses}(hj@YhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM;hj=Yhhubah}(h]h ]h"]h$]h&]uh1jUhjuXhhhjXhM;ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjXYj{jXYj|j}j~uh1hhhhj\hNhNubj)}(h**Parameters** ``struct platform_device *dev`` platform device **Return** Number of IRQs a platform device uses or EPROBE_DEFERh](j[)}(h**Parameters**h]j)}(hjbYh]h Parameters}(hjdYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Yubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM?hj\Yubj)}(hhh]j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjYh]hstruct platform_device *dev}(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.chM<hj{Yubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhM<hjYubah}(h]h ]h"]h$]h&]uh1jhj{Yubeh}(h]h ]h"]h$]h&]uh1jhjYhM<hjxYubah}(h]h ]h"]h$]h&]uh1jhj\Yubj[)}(h **Return**h]j)}(hjYh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj\Yubj[)}(h5Number of IRQs a platform device uses or EPROBE_DEFERh]h5Number of IRQs a platform device uses or EPROBE_DEFER}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj\Yubeh}(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](j7)}(hinth]hint}(hjZhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjYhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMkubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjZhMkubj")}(hdevm_platform_get_irqs_affinityh]j()}(hdevm_platform_get_irqs_affinityh]hdevm_platform_get_irqs_affinity}(hj"ZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjYhhhjZhMkubj7)}(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}(hj>ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:Zubj)}(h h]h }(hjKZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Zubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj\ZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYZubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj^ZmodnameN classnameNj:8j=8)}j@8]jC8)}j68j$Zsb!c.devm_platform_get_irqs_affinityasbuh1hhj:Zubj)}(h h]h }(hj|ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ZubjW8)}(hjZ8h]h*}(hjZhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj:Zubj()}(hdevh]hdev}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:Zubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6Zubj7)}(hstruct irq_affinity *affdh](h)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(h irq_affinityh]h irq_affinity}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjZmodnameN classnameNj:8j=8)}j@8]jxZ!c.devm_platform_get_irqs_affinityasbuh1hhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjW8)}(hjZ8h]h*}(hjZhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjZubj()}(haffdh]haffd}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6Zubj7)}(hunsigned int minvech](j7)}(hunsignedh]hunsigned}(hj [hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[ubj)}(h h]h }(hj.[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj7)}(hinth]hint}(hj<[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[ubj)}(h h]h }(hjJ[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj()}(hminvech]hminvec}(hjX[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6Zubj7)}(hunsigned int maxvech](j7)}(hunsignedh]hunsigned}(hjq[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjm[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm[ubj7)}(hinth]hint}(hj[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjm[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm[ubj()}(hmaxvech]hmaxvec}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjm[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6Zubj7)}(h int **irqsh](j7)}(hinth]hint}(hj[hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjW8)}(hjZ8h]h*}(hj[hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj[ubjW8)}(hjZ8h]h*}(hj[hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj[ubj()}(hirqsh]hirqs}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj6Zubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjYhhhjZhMkubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjYhhhjZhMkubah}(h]jYah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjZhMkhjYhhubjV)}(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&]uh1jUhjYhhhjZhMkubeh}(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)}(hjD\h]h Parameters}(hjF\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB\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)}(hjc\h]hstruct platform_device *dev}(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.chMmhj]\ubj)}(hhh]j[)}(hplatform device pointerh]hplatform device pointer}(hj|\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjx\hMmhjy\ubah}(h]h ]h"]h$]h&]uh1jhj]\ubeh}(h]h ]h"]h$]h&]uh1jhjx\hMmhjZ\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}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMnhj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMnhjZ\ubj)}(h;``unsigned int minvec`` minimum count of interrupt vectors h](j)}(h``unsigned int minvec``h]j)}(hj\h]hunsigned int minvec}(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.chMohj\ubj)}(hhh]j[)}(h"minimum count of interrupt vectorsh]h"minimum count of interrupt vectors}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMohj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hMohjZ\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#]hMphjZ\ubj)}(h.``int **irqs`` pointer holder for IRQ numbers h](j)}(h``int **irqs``h]j)}(hjG]h]h int **irqs}(hjI]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjE]ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMqhjA]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&]uh1jhjA]ubeh}(h]h ]h"]h$]h&]uh1jhj\]hMqhjZ\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)}(hj]h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.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.}(hj]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&]uh1hhj]hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hMubh)}(hhh]j()}(hresourceh]hresource}(hj ^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj^modnameN classnameNj:8j=8)}j@8]jC8)}j68platform_get_resource_bynamesbc.platform_get_resource_bynameasbuh1hhj]hhhj]hMubj)}(h h]h }(hj.^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hMubjW8)}(hjZ8h]h*}(hj<^hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj]hhhj]hMubj")}(hplatform_get_resource_bynameh]j()}(hj+^h]hplatform_get_resource_byname}(hjM^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjI^ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj]hhhj]hMubj7)}(hB(struct platform_device *dev, unsigned int type, const char *name)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjh^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjd^ubj)}(h h]h }(hju^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd^ubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj^modnameN classnameNj:8j=8)}j@8]j)^c.platform_get_resource_bynameasbuh1hhjd^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjd^ubjW8)}(hjZ8h]h*}(hj^hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjd^ubj()}(hdevh]hdev}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjd^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`^ubj7)}(hunsigned int typeh](j7)}(hunsignedh]hunsigned}(hj^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj7)}(hinth]hint}(hj^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj()}(htypeh]htype}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^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 }(hj6_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%_ubj7)}(hcharh]hchar}(hjD_hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj%_ubj)}(h h]h }(hjR_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%_ubjW8)}(hjZ8h]h*}(hj`_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj%_ubj()}(hnameh]hname}(hjm_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]hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj]hhhj]hMubah}(h]j]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj]hMhj]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&]uh1jUhj]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)}(hj_h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj_ubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hj_h]hstruct platform_device *dev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj_ubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(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)}(hjJ`h]hconst char *name}(hjL`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH`ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjD`ubj)}(hhh]j[)}(h resource nameh]h resource name}(hjc`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&]uh1jhjD`ubeh}(h]h ]h"]h$]h&]uh1jhj_`hMhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$platform_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](j7)}(hinth]hint}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hMubj")}(hplatform_get_irq_bynameh]j()}(hplatform_get_irq_bynameh]hplatform_get_irq_byname}(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 platform_device *dev, 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&] refdomainjtreftypej68 reftargetjamodnameN classnameNj:8j=8)}j@8]jC8)}j68j`sbc.platform_get_irq_bynameasbuh1hhj`ubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjW8)}(hjZ8h]h*}(hj-ahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj`ubj()}(hdevh]hdev}(hj:ahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjSahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOaubj)}(h h]h }(hj`ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOaubj7)}(hcharh]hchar}(hjnahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjOaubj)}(h h]h }(hj|ahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOaubjW8)}(hjZ8h]h*}(hjahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjOaubj()}(hnameh]hname}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjahhubah}(h]h ]h"]h$]h&]uh1jUhj`hhhj`hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjaj{jaj|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)}(hjah]h Parameters}(hjahhhNhNubah}(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.chMhjaubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjbh]hstruct platform_device *dev}(hjbhhhNhNubah}(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.chMhjaubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjaubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hj;bh]hconst char *name}(hj=bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9bubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj5bubj)}(hhh]j[)}(hIRQ nameh]hIRQ name}(hjTbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjPbhMhjQbubah}(h]h ]h"]h$]h&]uh1jhj5bubeh}(h]h ]h"]h$]h&]uh1jhjPbhMhjaubeh}(h]h ]h"]h$]h&]uh1jhjaubj[)}(h**Description**h]j)}(hjvbh]h Description}(hjxbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtbubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjaubj[)}(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.chMhjaubj[)}(h **Return**h]j)}(hjbh]hReturn}(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.chMhjaubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjaubeh}(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](j7)}(hinth]hint}(hjbhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjbhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM ubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhM ubj")}(h platform_get_irq_byname_optionalh]j()}(h platform_get_irq_byname_optionalh]h platform_get_irq_byname_optional}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjbhhhjbhM ubj7)}(h/(struct platform_device *dev, const char *name)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hj,chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj=chhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:cubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj?cmodnameN classnameNj:8j=8)}j@8]jC8)}j68jcsb"c.platform_get_irq_byname_optionalasbuh1hhjcubj)}(h h]h }(hj]chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjW8)}(hjZ8h]h*}(hjkchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjcubj()}(hdevh]hdev}(hjxchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj7)}(hcharh]hchar}(hjchhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjW8)}(hjZ8h]h*}(hjchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjcubj()}(hnameh]hname}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjbhhhjbhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhjbhM ubah}(h]jbah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjbhM hjbhhubjV)}(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&]uh1jUhjbhhhjbhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjdj{jdj|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)}(hj!dh]h Parameters}(hj#dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hj@dh]hstruct platform_device *dev}(hjBdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>dubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj:dubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjYdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUdhM hjVdubah}(h]h ]h"]h$]h&]uh1jhj:dubeh}(h]h ]h"]h$]h&]uh1jhjUdhM hj7dubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hjydh]hconst char *name}(hj{dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjsdubj)}(hhh]j[)}(hIRQ nameh]hIRQ name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhM hjdubah}(h]h ]h"]h$]h&]uh1jhjsdubeh}(h]h ]h"]h$]h&]uh1jhjdhM hj7dubeh}(h]h ]h"]h$]h&]uh1jhjdubj[)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj[)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjdubj[)}(h **Return**h]j)}(hjdh]hReturn}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj[)}(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.chMhjdubeh}(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](j7)}(hinth]hint}(hj ehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjehhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj/ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhj.ehMubj")}(hplatform_add_devicesh]j()}(hplatform_add_devicesh]hplatform_add_devices}(hjAehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=eubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjehhhj.ehMubj7)}(h((struct platform_device **devs, int num)h](j7)}(hstruct platform_device **devsh](h)}(hjh]hstruct}(hj]ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYeubj)}(h h]h }(hjjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYeubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj{ehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxeubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj}emodnameN classnameNj:8j=8)}j@8]jC8)}j68jCesbc.platform_add_devicesasbuh1hhjYeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYeubjW8)}(hjZ8h]h*}(hjehhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjYeubjW8)}(hjZ8h]h*}(hjehhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjYeubj()}(hdevsh]hdevs}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjUeubj7)}(hint numh](j7)}(hinth]hint}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj()}(hnumh]hnum}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjUeubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjehhhj.ehMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjehhhj.ehMubah}(h]jeah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj.ehMhjehhubjV)}(hhh]j[)}(h!add a numbers of platform devicesh]h!add a numbers of platform devices}(hj"fhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jUhjehhhj.ehMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj:fj{j:fj|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)}(hjDfh]h Parameters}(hjFfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBfubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj>fubj)}(hhh](j)}(hC``struct platform_device **devs`` array of platform devices to add h](j)}(h!``struct platform_device **devs``h]j)}(hjcfh]hstruct platform_device **devs}(hjefhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjafubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj]fubj)}(hhh]j[)}(h array of platform devices to addh]h array of platform devices to add}(hj|fhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjxfhMhjyfubah}(h]h ]h"]h$]h&]uh1jhj]fubeh}(h]h ]h"]h$]h&]uh1jhjxfhMhjZfubj)}(h0``int num`` number of platform devices in array h](j)}(h ``int num``h]j)}(hjfh]hint num}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjfubj)}(hhh]j[)}(h#number of platform devices in arrayh]h#number of platform devices in array}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjZfubeh}(h]h ]h"]h$]h&]uh1jhj>fubj[)}(h **Return**h]j)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj>fubj[)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj>fubeh}(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](j7)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjghhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHubj)}(h h]h }(hj+ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhj*ghMHubj")}(hplatform_device_puth]j()}(hplatform_device_puth]hplatform_device_put}(hj=ghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9gubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhj*ghMHubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjYghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUgubj)}(h h]h }(hjfghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUgubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjwghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtgubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjygmodnameN classnameNj:8j=8)}j@8]jC8)}j68j?gsbc.platform_device_putasbuh1hhjUgubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUgubjW8)}(hjZ8h]h*}(hjghhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjUgubj()}(hpdevh]hpdev}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjUgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjQgubah}(h]h ]h"]h$]h&]j?j@uh1j7hjghhhj*ghMHubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjghhhj*ghMHubah}(h]jgah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj*ghMHhjghhubjV)}(hhh]j[)}(hdestroy a platform deviceh]hdestroy a platform device}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHhjghhubah}(h]h ]h"]h$]h&]uh1jUhjghhhj*ghMHubeh}(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}(hjhhhhNhNubah}(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)}(hjhh]hstruct platform_device *pdev}(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.chMIhjhubj)}(hhh]j[)}(hplatform device to freeh]hplatform device to free}(hj6hhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj2hhMIhj3hubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhj2hhMIhjhubah}(h]h ]h"]h$]h&]uh1jhjgubj[)}(h**Description**h]j)}(hjXhh]h Description}(hjZhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhubah}(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.}(hjnhhhhNhNubah}(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}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMhubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjhmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_device_allocsbc.platform_device_allocasbuh1hhjhhhhjhhMhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjhhMhubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhhjhhMhubj")}(hplatform_device_alloch]j()}(hjhh]hplatform_device_alloc}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhhjhhMhubj7)}(h(const char *name, int id)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(h h]h }(hj$ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj7)}(hcharh]hchar}(hj2ihhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjiubj)}(h h]h }(hj@ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjW8)}(hjZ8h]h*}(hjNihhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjiubj()}(hnameh]hname}(hj[ihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjiubj7)}(hint idh](j7)}(hinth]hint}(hjtihhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjpiubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpiubj()}(hidh]hid}(hjihhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpiubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjiubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhhjhhMhubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhhjhhMhubah}(h]jhah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhhMhhjhhhubjV)}(hhh]j[)}(hcreate a platform deviceh]hcreate a platform device}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhhjihhubah}(h]h ]h"]h$]h&]uh1jUhjhhhhjhhMhubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjij{jij|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)}(hjih]h Parameters}(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.chMlhjiubj)}(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}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMihjjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjjhMihjiubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj4jh]hint id}(hj6jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2jubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMjhj.jubj)}(hhh]j[)}(h instance idh]h instance id}(hjMjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIjhMjhjJjubah}(h]h ]h"]h$]h&]uh1jhj.jubeh}(h]h ]h"]h$]h&]uh1jhjIjhMjhjiubeh}(h]h ]h"]h$]h&]uh1jhjiubj[)}(h**Description**h]j)}(hjojh]h Description}(hjqjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMlhjiubj[)}(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.chMkhjiubeh}(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](j7)}(hinth]hint}(hjjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhhjjhMubj")}(hplatform_device_add_resourcesh]j()}(hplatform_device_add_resourcesh]hplatform_device_add_resources}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjjhhhjjhMubj7)}(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&]uh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj kubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjkmodnameN classnameNj:8j=8)}j@8]jC8)}j68jjsbc.platform_device_add_resourcesasbuh1hhjjubj)}(h h]h }(hj/khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjW8)}(hjZ8h]h*}(hj=khhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjjubj()}(hpdevh]hpdev}(hjJkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjjubj7)}(hconst struct resource *resh](h)}(hj8h]hconst}(hjckhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_kubj)}(h h]h }(hjpkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_kubh)}(hjh]hstruct}(hj~khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_kubh)}(hhh]j()}(hresourceh]hresource}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjkmodnameN classnameNj:8j=8)}j@8]j+kc.platform_device_add_resourcesasbuh1hhj_kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_kubjW8)}(hjZ8h]h*}(hjkhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj_kubj()}(hresh]hres}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_kubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjjubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj7)}(hinth]hint}(hj lhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjkubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj()}(hnumh]hnum}(hj&lhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjjhhhjjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjjhhhjjhMubah}(h]jjah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjjhMhjjhhubjV)}(hhh]j[)}(h"add resources to a platform deviceh]h"add resources to a platform device}(hjPlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjMlhhubah}(h]h ]h"]h$]h&]uh1jUhjjhhhjjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhlj{jhlj|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)}(hjrlh]h Parameters}(hjtlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjplubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjllubj)}(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}(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[)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(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)}(hjlh]hconst struct resource *res}(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[)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjlubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjmh]hunsigned int num}(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.chMhjlubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjllubj[)}(h**Description**h]j)}(hj>mh]h Description}(hj@mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhj?oubah}(h]h ]h"]h$]h&]uh1jhj#oubeh}(h]h ]h"]h$]h&]uh1jhj>ohMhj oubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjboh]hconst void *data}(hjdohhhNhNubah}(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[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hj{ohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwohMhjxoubah}(h]h ]h"]h$]h&]uh1jhj\oubeh}(h]h ]h"]h$]h&]uh1jhjwohMhj oubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjoh]h size_t size}(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.chMhjoubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohMhj oubeh}(h]h ]h"]h$]h&]uh1jhjoubj[)}(h**Description**h]j)}(hjoh]h Description}(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.chMhjoubj[)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubeh}(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](j7)}(hinth]hint}(hjphhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjphhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hj*phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhj)phMubj")}(hplatform_device_addh]j()}(hplatform_device_addh]hplatform_device_add}(hjpsbc.platform_device_addasbuh1hhjTpubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTpubjW8)}(hjZ8h]h*}(hjphhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjTpubj()}(hpdevh]hpdev}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTpubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPpubah}(h]h ]h"]h$]h&]j?j@uh1j7hjphhhj)phMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjphhhj)phMubah}(h]jpah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj)phMhjphhubjV)}(hhh]j[)}(h)add a platform device to device hierarchyh]h)add a platform device to device hierarchy}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjphhubah}(h]h ]h"]h$]h&]uh1jUhjphhhj)phMubeh}(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)}(hjqh]hstruct platform_device *pdev}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjqubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hj5qhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj1qhMhj2qubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhj1qhMhjqubah}(h]h ]h"]h$]h&]uh1jhjpubj[)}(h**Description**h]j)}(hjWqh]h Description}(hjYqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUqubah}(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().}(hjmqhhhNhNubah}(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](j7)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjqhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjqhMubj")}(hplatform_device_delh]j()}(hplatform_device_delh]hplatform_device_del}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjqhhhjqhMubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjqmodnameN classnameNj:8j=8)}j@8]jC8)}j68jqsbc.platform_device_delasbuh1hhjqubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjW8)}(hjZ8h]h*}(hj%rhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjqubj()}(hpdevh]hpdev}(hj2rhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjqubah}(h]h ]h"]h$]h&]j?j@uh1j7hjqhhhjqhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjqhMubah}(h]jqah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhMhjqhhubjV)}(hhh]j[)}(hremove a platform-level deviceh]hremove a platform-level device}(hj\rhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjYrhhubah}(h]h ]h"]h$]h&]uh1jUhjqhhhjqhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjtrj{jtrj|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.chMhjxrubj)}(hhh]j)}(h@``struct platform_device *pdev`` platform device we're removing h](j)}(h ``struct platform_device *pdev``h]j)}(hjrh]hstruct platform_device *pdev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjrubj)}(hhh]j[)}(hplatform device we're removingh]h platform device we’re removing}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jhjxrubj[)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxrubj[)}(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 (}(hjrhhhNhNubj)}(h**dev->resource**h]h dev->resource}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh]). This function must _only_ be externally called in error cases. All other usage is a bug.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxrubeh}(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](j7)}(hinth]hint}(hj/shhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+shhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM.ubj)}(h h]h }(hj>shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+shhhj=shM.ubj")}(hplatform_device_registerh]j()}(hplatform_device_registerh]hplatform_device_register}(hjPshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjLsubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj+shhhj=shM.ubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjlshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhsubj)}(h h]h }(hjyshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhsubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjsubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjsmodnameN classnameNj:8j=8)}j@8]jC8)}j68jRssbc.platform_device_registerasbuh1hhjhsubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhsubjW8)}(hjZ8h]h*}(hjshhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhsubj()}(hpdevh]hpdev}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhsubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjdsubah}(h]h ]h"]h$]h&]j?j@uh1j7hj+shhhj=shM.ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj'shhhj=shM.ubah}(h]j"sah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj=shM.hj$shhubjV)}(hhh]j[)}(hadd a platform-level deviceh]hadd a platform-level device}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM.hjshhubah}(h]h ]h"]h$]h&]uh1jUhj$shhhj=shM.ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjtj{jtj|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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM2hj tubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hj0th]hstruct platform_device *pdev}(hj2thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.tubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM/hj*tubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hjIthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEthM/hjFtubah}(h]h ]h"]h$]h&]uh1jhj*tubeh}(h]h ]h"]h$]h&]uh1jhjEthM/hj'tubah}(h]h ]h"]h$]h&]uh1jhj tubj[)}(h**NOTE**h]j)}(hjkth]hNOTE}(hjmthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjitubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM1hj tubj[)}(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.chM1hj tubeh}(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](j7)}(hvoidh]hvoid}(hjthhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjthhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>ubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthM>ubj")}(hplatform_device_unregisterh]j()}(hplatform_device_unregisterh]hplatform_device_unregister}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjthhhjthM>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 }(hj uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjumodnameN classnameNj:8j=8)}j@8]jC8)}j68jtsbc.platform_device_unregisterasbuh1hhjtubj)}(h h]h }(hj=uhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjW8)}(hjZ8h]h*}(hjKuhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjtubj()}(hpdevh]hpdev}(hjXuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjtubah}(h]h ]h"]h$]h&]j?j@uh1j7hjthhhjthM>ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjthhhjthM>ubah}(h]jtah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjthM>hjthhubjV)}(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>hjuhhubah}(h]h ]h"]h$]h&]uh1jUhjthhhjthM>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjuj{juj|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)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMBhjuubj)}(hhh]j)}(hE``struct platform_device *pdev`` platform device we're unregistering h](j)}(h ``struct platform_device *pdev``h]j)}(hjuh]hstruct platform_device *pdev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM?hjuubj)}(hhh]j[)}(h#platform device we're unregisteringh]h%platform device we’re unregistering}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjuhM?hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhM?hjuubah}(h]h ]h"]h$]h&]uh1jhjuubj[)}(h**Description**h]j)}(hjuh]h Description}(hjvhhhNhNubah}(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.chMAhjuubj[)}(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().}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM@hjuubeh}(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}(hjCvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?vhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMMubj)}(h h]h }(hjQvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?vhhhjPvhMMubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjbvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_vubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjdvmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_device_register_fullsbc.platform_device_register_fullasbuh1hhj?vhhhjPvhMMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?vhhhjPvhMMubjW8)}(hjZ8h]h*}(hjvhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj?vhhhjPvhMMubj")}(hplatform_device_register_fullh]j()}(hjvh]hplatform_device_register_full}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj?vhhhjPvhMMubj7)}(h-(const struct platform_device_info *pdevinfo)h]j7)}(h+const struct platform_device_info *pdevinfoh](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()}(hplatform_device_infoh]hplatform_device_info}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjvmodnameN classnameNj:8j=8)}j@8]j~vc.platform_device_register_fullasbuh1hhjvubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjW8)}(hjZ8h]h*}(hj"whhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjvubj()}(hpdevinfoh]hpdevinfo}(hj/whhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjvubah}(h]h ]h"]h$]h&]j?j@uh1j7hj?vhhhjPvhMMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj;vhhhjPvhMMubah}(h]j6vah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjPvhMMhj8vhhubjV)}(hhh]j[)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hjYwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMMhjVwhhubah}(h]h ]h"]h$]h&]uh1jUhj8vhhhjPvhMMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjqwj{jqwj|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&]uh1jhjywubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMQhjuwubj)}(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)}(hjwh]h+const struct platform_device_info *pdevinfo}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMPhjwubj)}(hhh]j[)}(hdata used to create deviceh]hdata used to create device}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwhMPhjwubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjwhMPhjwubah}(h]h ]h"]h$]h&]uh1jhjuwubj[)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMRhjuwubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjwhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjwh]hstruct platform_device}(hjwhhhNhNubah}(h]h ](jIjtc-typeeh"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^platform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMQhjwubh+ pointer on success, or ERR_PTR() on error.}(hjwhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjxhMQhjuwubeh}(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](j7)}(hinth]hint}(hj=xhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj9xhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjLxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9xhhhjKxhMubj")}(h__platform_driver_registerh]j()}(h__platform_driver_registerh]h__platform_driver_register}(hj^xhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj9xhhhjKxhMubj7)}(hI(struct platform_driver *drv, struct module *owner, const char *mod_name)h](j7)}(hstruct platform_driver *drvh](h)}(hjh]hstruct}(hjzxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvxubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjxmodnameN classnameNj:8j=8)}j@8]jC8)}j68j`xsbc.__platform_driver_registerasbuh1hhjvxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvxubjW8)}(hjZ8h]h*}(hjxhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjvxubj()}(hdrvh]hdrv}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjrxubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubh)}(hhh]j()}(hmoduleh]hmodule}(hj yhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj ymodnameN classnameNj:8j=8)}j@8]jxc.__platform_driver_registerasbuh1hhjxubj)}(h h]h }(hj(yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubjW8)}(hjZ8h]h*}(hj6yhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjxubj()}(hownerh]howner}(hjCyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjrxubj7)}(hconst char *mod_nameh](h)}(hj8h]hconst}(hj\yhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXyubj)}(h h]h }(hjiyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXyubj7)}(hcharh]hchar}(hjwyhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjXyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXyubjW8)}(hjZ8h]h*}(hjyhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjXyubj()}(hmod_nameh]hmod_name}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjrxubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj9xhhhjKxhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj5xhhhjKxhMubah}(h]j0xah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjKxhMhj2xhhubjV)}(hhh]j[)}(h,register a driver for platform-level devicesh]h,register a driver for platform-level devices}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jUhj2xhhhjKxhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjyj{jyj|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)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjyubj)}(hhh](j)}(h:``struct platform_driver *drv`` platform driver structure h](j)}(h``struct platform_driver *drv``h]j)}(hj zh]hstruct platform_driver *drv}(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[)}(hplatform driver structureh]hplatform driver structure}(hj$zhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj zhMhj!zubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhj zhMhjzubj)}(h.``struct module *owner`` owning module/driver h](j)}(h``struct module *owner``h]j)}(hjDzh]hstruct module *owner}(hjFzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBzubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj>zubj)}(hhh]j[)}(howning module/driverh]howning module/driver}(hj]zhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYzhMhjZzubah}(h]h ]h"]h$]h&]uh1jhj>zubeh}(h]h ]h"]h$]h&]uh1jhjYzhMhjzubj)}(h+``const char *mod_name`` module name stringh](j)}(h``const char *mod_name``h]j)}(hj}zh]hconst char *mod_name}(hjzhhhNhNubah}(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.chMhjwzubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjzubah}(h]h ]h"]h$]h&]uh1jhjwzubeh}(h]h ]h"]h$]h&]uh1jhjzhMhjzubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(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)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj"ubj)}(hhh](j)}(h=``struct platform_driver *driver`` platform driver structure h](j)}(h"``struct platform_driver *driver``h]j)}(hjGh]hstruct platform_driver *driver}(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[)}(hplatform driver structureh]hplatform driver structure}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>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.chMhjzubj)}(hhh]j[)}(h9the driver probe routine, probably from an __init sectionh]h9the driver probe routine, probably from an __init section}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(hT``struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``struct resource *res``h]j)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(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&]uh1jhjubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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)}(hj+h]hconst void *data}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj%ubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(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)}(hjdh]h size_t size}(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.chMhj^ubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj>ubj)}(hG``struct module *module`` module which will be the owner of the driver h](j)}(h``struct module *module``h]j)}(hjh]hstruct module *module}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h,module which will be the owner of the driverh]h,module which will be the owner of the driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj>ubj)}(h,``const char *mod_name`` module name string h](j)}(h``const char *mod_name``h]j)}(hjօh]hconst char *mod_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.chM hjЅubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj"ubj[)}(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.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj"ubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj6hhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hj@h]hstruct platform_device}(hjBhhhNhNubah}(h]h ](jIjtc-typeeh"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]refdocjU refdomainjtreftypetype refexplicitrefwarnj:8j[j^platform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hj6ubh+ pointer on success, or ERR_PTR() on error.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj]hM hj"ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM;ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM;ubj")}(h__platform_register_driversh]j()}(h__platform_register_driversh]h__platform_register_drivers}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM;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}(hjņhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj҆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.__platform_register_driversasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubh)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj9hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdriversh]hdrivers}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned int counth](j7)}(hunsignedh]hunsigned}(hj_hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj7)}(hinth]hint}(hj{hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj()}(hcounth]hcount}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hj·hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjˇubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjЇmodnameN classnameNj:8j=8)}j@8]jc.__platform_register_driversasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *mod_nameh](h)}(hj8h]hconst}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hj;hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hmod_nameh]hmod_name}(hjdhhhNhNubah}(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]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM;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}hhhjhM;ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chM?hjubj)}(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<hjɈubj)}(hhh]j[)}(han array of drivers to registerh]han array of drivers to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM<hjubah}(h]h ]h"]h$]h&]uh1jhjɈubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjƈubj)}(h9``unsigned int count`` the number of drivers to register h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(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[)}(h!the number of drivers to registerh]h!the number of drivers to register}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM=hjƈubj)}(h3``struct module *owner`` module owning the drivers h](j)}(h``struct module *owner``h]j)}(hjAh]hstruct module *owner}(hjChhhNhNubah}(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}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhM>hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM>hjƈubj)}(h,``const char *mod_name`` module name string h](j)}(h``const char *mod_name``h]j)}(hjzh]hconst char *mod_name}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM?hjtubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMAhjubj[)}(hRegisters platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order.h]hRegisters platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order.}(hjˉhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM@hjubj[)}(h **Return**h]j)}(hj܉h]hReturn}(hjމhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjډubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMEhjubj[)}(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.chMFhjubeh}(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](j7)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMfubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hMfubj")}(hplatform_unregister_driversh]j()}(hplatform_unregister_driversh]hplatform_unregister_drivers}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj/hMfubj7)}(h<(struct platform_driver *const *drivers, unsigned int count)h](j7)}(h&struct platform_driver *const *driversh](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj~modnameN classnameNj:8j=8)}j@8]jC8)}j68jDsbc.platform_unregister_driversasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjZubh)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjĊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjW8)}(hjZ8h]h*}(hjҊhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjZubj()}(hdriversh]hdrivers}(hjߊhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(hunsigned int counth](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hcounth]hcount}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj/hMfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj/hMfubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj/hMfhjhhubjV)}(hhh]j[)}(h'unregister an array of platform driversh]h'unregister an array of platform drivers}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMfhjWhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj/hMfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjrj{jrj|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&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMjhjvubj)}(hhh](j)}(hN``struct platform_driver * const *drivers`` an array of drivers to unregister h](j)}(h+``struct platform_driver * const *drivers``h]j)}(hjh]h'struct platform_driver * const *drivers}(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.chMghjubj)}(hhh]j[)}(h!an array of drivers to unregisterh]h!an array of drivers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMghjubj)}(h;``unsigned int count`` the number of drivers to unregister h](j)}(h``unsigned int count``h]j)}(hjԋh]hunsigned int count}(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.chMhhj΋ubj)}(hhh]j[)}(h#the number of drivers to unregisterh]h#the number of drivers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhhjubah}(h]h ]h"]h$]h&]uh1jhj΋ubeh}(h]h ]h"]h$]h&]uh1jhjhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjvubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(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.chMjhjvubj[)}(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.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMihjvubeh}(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}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjahMubh)}(hhh]j()}(hdeviceh]hdevice}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjumodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_find_device_by_driversb c.platform_find_device_by_driverasbuh1hhjPhhhjahMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhhjahMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjPhhhjahMubj")}(hplatform_find_device_by_driverh]j()}(hjh]hplatform_find_device_by_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjPhhhjahMubj7)}(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&]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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j c.platform_find_device_by_driverasbuh1hhjʌubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjʌubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjʌubj()}(hstarth]hstart}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjʌubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjƌubj7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hjh]hstruct}(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubh)}(hhh]j()}(h device_driverh]h device_driver}(hjwhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjymodnameN classnameNj:8j=8)}j@8]j c.platform_find_device_by_driverasbuh1hhj:ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj:ubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjƌubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjPhhhjahMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjLhhhjahMubah}(h]jGah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjahMhjIhhubjV)}(hhh]j[)}(h+Find a platform device with a given driver.h]h+Find a platform device with a given driver.}(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&]uh1jUhjIhhhjahMubeh}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(hB``const struct device_driver *drv`` The device driver to look for.h](j)}(h#``const struct device_driver *drv``h]j)}(hjTh]hconst struct device_driver *drv}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjNubj)}(hhh]j[)}(hThe device driver to look for.h]hThe device driver to look for.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubeh}(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}(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}(hj͎hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjʎubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjώmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_namesbc.bus_find_device_by_nameasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(hbus_find_device_by_nameh]j()}(hjh]hbus_find_device_by_name}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(hD(const struct bus_type *bus, struct device *start, const char *name)h](j7)}(hconst struct bus_type *bush](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()}(hbus_typeh]hbus_type}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjcmodnameN classnameNj:8j=8)}j@8]jc.bus_find_device_by_nameasbuh1hhj$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$ubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(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'hjΏubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjӏmodnameN classnameNj:8j=8)}j@8]jc.bus_find_device_by_nameasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hj>hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjZhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnameh]hname}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubeh}(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[)}(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&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj\hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``struct device *start`` Device to begin with ``const char *name`` name of the device to matchh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjҐh]hconst struct bus_type *bus}(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[)}(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)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hj h]hstruct device *start}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]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}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjɐubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjDh]hconst char *name}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(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}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhKhjɐubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'bus_find_device_by_of_node (C function)c.bus_find_device_by_of_nodehNtauh1hhj\hhhNhNubh)}(hhh](h)}(hestruct device * bus_find_device_by_of_node (const struct bus_type *bus, const struct device_node *np)h]h)}(hcstruct device *bus_find_device_by_of_node(const struct bus_type *bus, const struct device_node *np)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_of_nodesbc.bus_find_device_by_of_nodeasbuh1hhjhhhjhKubj)}(h h]h }(hjޑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(hbus_find_device_by_of_nodeh]j()}(hjۑh]hbus_find_device_by_of_node}(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 device_node *np)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}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjSmodnameN classnameNj:8j=8)}j@8]jّc.bus_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj˒hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hjܒhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjْubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjޒmodnameN classnameNj:8j=8)}j@8]jّc.bus_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnph]hnp}(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[)}(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&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjWj{jWj|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)}(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)}(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.hhKhjzubj)}(hhh]j[)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjwubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(hjh]hconst struct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hof_node of the device to match.h]hof_node of the device to match.}(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ΓhKhjwubeh}(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_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 }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubh)}(hhh]j()}(hdeviceh]hdevice}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj4modnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_fwnodesbc.bus_find_device_by_fwnodeasbuh1hhjhhhj hKubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hKubjW8)}(hjZ8h]h*}(hjahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhj hKubj")}(hbus_find_device_by_fwnodeh]j()}(hjPh]hbus_find_device_by_fwnode}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hKubj7)}(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 }(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&] refdomainjtreftypej68 reftargetjȔmodnameN classnameNj:8j=8)}j@8]jNc.bus_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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 }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjSmodnameN classnameNj:8j=8)}j@8]jNc.bus_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjhhhj hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hKhjhhubjV)}(hhh]j[)}(hEdevice iterator for locating a particular device matching the fwnode.h]hEdevice iterator for locating a particular device matching the fwnode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj̕j{j̕j|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)}(hj֕h]h Parameters}(hjؕhhhNhNubah}(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)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hE``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hj.h]h"const struct fwnode_handle *fwnode}(hj0hhhNhNubah}(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[)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChKhjubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_devtsbc.bus_find_device_by_devtasbuh1hhjhhhjhKubj)}(h h]h }(hjȖhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hj֖hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(hbus_find_device_by_devth]j()}(hjŖh]hbus_find_device_by_devt}(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, 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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj=modnameN classnameNj:8j=8)}j@8]jÖc.bus_find_device_by_devtasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjghhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hbush]hbus}(hjthhhNhNubah}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jÖc.bus_find_device_by_devtasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhj}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.}(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&]uh1jUhj}hhhjhKubeh}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hj'h]hconst struct bus_type *bus}(hj)hhhNhNubah}(h]h ]h"]h$]h&]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)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hj`h]h dev_t devt}(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[)}(h#device type of the device to match.h]h#device type of the device to match.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhKhjubeh}(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}(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}(hj٘hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj֘ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjۘmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_next_devicesbc.bus_find_next_deviceasbuh1hhjhhhjǘhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjǘhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjǘhKubj")}(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!hjhhhjǘhKubj7)}(h0(const struct bus_type *bus, struct device *cur)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjomodnameN classnameNj:8j=8)}j@8]jc.bus_find_next_deviceasbuh1hhj0ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj0ubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj,ubj7)}(hstruct device *curh](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&] refdomainjtreftypej68 reftargetjߙmodnameN classnameNj:8j=8)}j@8]jc.bus_find_next_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hcurh]hcur}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj,ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjǘhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjǘhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjǘhKhjhhubjV)}(hhh]j[)}(h9Find the next device after a given device in a given bus.h]h9Find the next device after a given device in a given bus.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj=hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjǘhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjXj{jXj|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)}(hjbh]h Parameters}(hjdhhhNhNubah}(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)}(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&]uh1jhjhKhjxubj)}(h7``struct device *cur`` device to begin the search with.h](j)}(h``struct device *cur``h]j)}(hjh]hstruct device *cur}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(h device to begin the search with.h]h device to begin the search with.}(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ϚhKhjxubeh}(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_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 }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hKubh)}(hhh]j()}(hdeviceh]hdevice}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj5modnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_acpi_devsbc.bus_find_device_by_acpi_devasbuh1hhjhhhj!hKubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj!hKubjW8)}(hjZ8h]h*}(hjbhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhj!hKubj")}(hbus_find_device_by_acpi_devh]j()}(hjQh]hbus_find_device_by_acpi_dev}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj!hKubj7)}(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 }(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&] refdomainjtreftypej68 reftargetjɛmodnameN classnameNj:8j=8)}j@8]jOc.bus_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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 }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h acpi_deviceh]h acpi_device}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjTmodnameN classnameNj:8j=8)}j@8]jOc.bus_find_device_by_acpi_devasbuh1hhjubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj~hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjhhhj!hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj!hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj!hKhj hhubjV)}(hhh]j[)}(hTdevice iterator for locating a particular device matching the ACPI COMPANION device.h]hTdevice iterator for locating a particular device matching the ACPI COMPANION device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj!hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj͜j{j͜j|j}j~uh1hhhhj\hNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j[)}(h**Parameters**h]j)}(hjלh]h Parameters}(hjٜhhhNhNubah}(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)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hB``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hj/h]hconst struct acpi_device *adev}(hj1hhhNhNubah}(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[)}(hACPI COMPANION device to match.h]hACPI COMPANION device to match.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM_ubj")}(hbus_for_each_devh]j()}(hbus_for_each_devh]hbus_for_each_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM_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}(hjƝhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjӝhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.bus_for_each_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj-hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hbush]hbus}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubh)}(hhh]j()}(hdeviceh]hdevice}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjsmodnameN classnameNj:8j=8)}j@8]jc.bus_for_each_devasbuh1hhjOubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjOubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjÞhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjўhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjߞhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]jc.bus_for_each_devasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hj4hhhNhNubah}(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]j|ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM_hj~hhubjV)}(hhh]j[)}(hdevice iterator.h]hdevice iterator.}(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&]uh1jUhj~hhhjhM_ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjvj{jvj|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.chMchjzubj)}(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&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM`hjubj)}(hhh]j[)}(h bus type.h]h bus type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjubj)}(h9``struct device *start`` device to start iterating from. h](j)}(h``struct device *start``h]j)}(hj؟h]hstruct device *start}(hjڟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֟ubah}(h]h ]h"]h$]h&]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&]uh1jZhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjҟubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubj)}(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.chMbhj ubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hMbhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMbhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjJh]hdevice_iter_t fn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMchjDubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_hMchj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMchjubeh}(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:68: ./drivers/base/bus.chMehjzubj[)}(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 }(hjhhhNhNubj)}(h**bus**h]hbus}(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}(hjǠhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. If }(hjhhhNhNubj)}(h **start**h]hstart}(hj٠hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh9 is not NULL, we use that device to begin iterating from.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMdhjzubj[)}(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.chMhhjzubj[)}(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.chMkhjzubj[)}(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.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMlhjzubeh}(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}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjghMubh)}(hhh]j()}(hdeviceh]hdevice}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj{modnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_devicesbc.bus_find_deviceasbuh1hhjVhhhjghMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjghMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVhhhjghMubj")}(hbus_find_deviceh]j()}(hjh]hbus_find_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjVhhhjghMubj7)}(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}(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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.bus_find_deviceasbuh1hhjСubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjСubjW8)}(hjZ8h]h*}(hj9hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjСubj()}(hbush]hbus}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjСubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj̡ubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hhh]j()}(hdeviceh]hdevice}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.bus_find_deviceasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj[ubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj̡ubj7)}(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ˢubj7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjˢubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjˢubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjˢubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjˢubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj̡ubj7)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hj/hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj1modnameN classnameNj:8j=8)}j@8]jc.bus_find_deviceasbuh1hhj(ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubj()}(hmatchh]hmatch}(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@uh1j7hjVhhhjghMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjRhhhjghMubah}(h]jMah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjghMhjOhhubjV)}(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&]uh1jUhjOhhhjghMubeh}(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 begin with ``const void *data`` Data to pass to match function ``device_match_t match`` Callback function to check device **Description** This is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(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.chMhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hjߣhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjۣhMhjܣubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۣhMhjubj)}(h.``struct device *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&]uh1jhjhMhjubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hj8h]hconst void *data}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj2ubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjqh]hdevice_match_t match}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjkubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(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:68: ./drivers/base/bus.chMhjubj[)}(hThis is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hj¤hhhNhNubj)}(h **match**h]hmatch}(hjʤhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj¤ubh callback.}(hj¤hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(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_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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/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_for_each_drvh]j()}(hbus_for_each_drvh]hbus_for_each_drv}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hMubj7)}(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}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hjh]hstruct}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68j5sbc.bus_for_each_drvasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjKubj()}(hbush]hbus}(hjåhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(hstruct device_driver *starth](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 device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.bus_for_each_drvasbuh1hhjإubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjإubjW8)}(hjZ8h]h*}(hj&hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjإubj()}(hstarth]hstart}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjإubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjHubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjHubj()}(hdatah]hdata}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(h'int (*fn)(struct device_driver*, void*)h](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hj|h]h(}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfnh]hfn}(hjĦhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubjW8)}(hj(}h]h)}(hjҦhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hj|h]h(}(hjߦhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubh)}(hjh]hstruct}(hjhhhNhNubah}(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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]jc.bus_for_each_drvasbuh1hhjubjW8)}(hjZ8h]h*}(hj(hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(h,h]h,}(hj5hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubjW8)}(hjZ8h]h*}(hj_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hj(}h]h)}(hjlhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMhjhhubjV)}(hhh]j[)}(hdriver iteratorh]hdriver iterator}(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)}(hXS**Parameters** ``const struct bus_type *bus`` bus we're dealing with. ``struct device_driver *start`` driver to start iterating on. ``void *data`` data to pass to the callback. ``int (*fn)(struct device_driver *, void *)`` function to call for each driver. **Description** This is nearly identical to the device iterator above. We iterate over each driver that belongs to **bus**, and call **fn** for each. If **fn** returns anything but 0, we break out and return it. If **start** is not NULL, we use it as the head of the list. **NOTE** we don't return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn't disappear before returning to the caller.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh](j)}(h7``const struct bus_type *bus`` bus we're dealing with. h](j)}(h``const struct bus_type *bus``h]j)}(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 we're dealing with.h]hbus we’re dealing with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjЧubeh}(h]h ]h"]h$]h&]uh1jhjhMhjͧ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&]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[)}(hdriver to start iterating on.h]hdriver to start iterating on.}(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-``void *data`` data to pass to the callback. h](j)}(h``void *data``h]j)}(hjHh]h void *data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjBubj)}(hhh]j[)}(hdata to pass to the callback.h]hdata to pass to the callback.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjͧ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&]uh1jhjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjͧubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hXThis is nearly identical to the device iterator above. We iterate over each driver that belongs to **bus**, and call **fn** for each. If **fn** returns anything but 0, we break out and return it. If **start** is not NULL, we use it as the head of the list.h](hcThis is nearly identical to the device iterator above. We iterate over each driver that belongs to }(hjҨhhhNhNubj)}(h**bus**h]hbus}(hjڨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҨubh , and call }(hjҨhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(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.chMhjubj[)}(h**NOTE**h]j)}(hj+h]hNOTE}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"<]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(hX(we don't return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn't disappear before returning to the caller.h]hX,we don’t return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn’t disappear before returning to the caller.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj\hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_rescan_devices (C function)c.bus_rescan_deviceshNtauh1hhj\hhhNhNubh)}(hhh](h)}(h3int bus_rescan_devices (const struct bus_type *bus)h]h)}(h2int bus_rescan_devices(const struct bus_type *bus)h](j7)}(hinth]hint}(hjphhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj~hM^ubj")}(hbus_rescan_devicesh]j()}(hbus_rescan_devicesh]hbus_rescan_devices}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjlhhhj~hM^ubj7)}(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}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.bus_rescan_devicesasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hbush]hbus}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjlhhhj~hM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhhj~hM^ubah}(h]jcah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj~hM^hjehhubjV)}(hhh]j[)}(h.rescan devices on the bus for possible driversh]h.rescan devices on the bus for possible drivers}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM^hjHhhubah}(h]h ]h"]h$]h&]uh1jUhjehhhj~hM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjcj{jcj|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)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMbhjgubj)}(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.}(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&]uh1jhjgubj[)}(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.chMahjgubj[)}(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.}(hjݪhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM`hjgubeh}(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](j7)}(hinth]hint}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/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}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMlubj7)}(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}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjimodnameN classnameNj:8j=8)}j@8]jC8)}j68j/sbc.device_reprobeasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjEubj()}(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@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}(hj̫hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMlhjɫhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMlubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chMphjubj)}(hhh]j)}(h-``struct device *dev`` the device to reprobe 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:68: ./drivers/base/bus.chMmhjubj)}(hhh]j[)}(hthe device to reprobeh]hthe device to reprobe}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hMmhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMmhjubah}(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:68: ./drivers/base/bus.chMohjubj[)}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMnhjubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h bus_registerh]j()}(h bus_registerh]h bus_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](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}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.bus_registerasbuh1hhjƬubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƬubjW8)}(hjZ8h]h*}(hj1hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjƬubj()}(hbush]hbus}(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@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h register a driver-core subsystemh]h register a driver-core subsystem}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjehhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(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)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus to registerh]hbus to register}(hj­hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj[)}(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](j7)}(hvoidh]hvoid}(hj)hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj%hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj7hMubj")}(hbus_unregisterh]j()}(hbus_unregisterh]hbus_unregister}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj%hhhj7hMubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](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()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jLsbc.bus_unregisterasbuh1hhjbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjW8)}(hjZ8h]h*}(hjͮhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjbubj()}(hbush]hbus}(hjڮhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj^ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj%hhhj7hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj!hhhj7hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj7hMhjhhubjV)}(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&]uh1jUhjhhhj7hMubeh}(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)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj ubj)}(hhh]j)}(h$``const struct bus_type *bus`` bus. h](j)}(h``const struct bus_type *bus``h]j)}(hjEh]hconst struct bus_type *bus}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(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.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubj[)}(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.chMhj ubj[)}(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}(hjhhhNhNubah}(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](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](j7)}(hinth]hint}(hjůhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMEubj)}(h h]h }(hjԯhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjӯhMEubj")}(hsubsys_system_registerh]j()}(hsubsys_system_registerh]hsubsys_system_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjӯhMEubj7)}(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 }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj;hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj=modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.subsys_system_registerasbuh1hhjubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjihhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsubsysh]hsubsys}(hjvhhhNhNubah}(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&] refdomainjtreftypej68 reftargetjʰmodnameN classnameNj:8j=8)}j@8]jWc.subsys_system_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjhhhjӯhMEubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjӯhMEubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjӯhMEhjhhubjV)}(hhh]j[)}(h,register a subsystem at /sys/devices/system/h]h,register a subsystem at /sys/devices/system/}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMEhj5hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjӯhMEubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjPj{jPj|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)}(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:68: ./drivers/base/bus.chMIhjTubj)}(hhh](j)}(h3``const struct bus_type *subsys`` system subsystem h](j)}(h!``const struct bus_type *subsys``h]j)}(hjyh]hconst struct bus_type *subsys}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMFhjsubj)}(hhh]j[)}(hsystem subsystemh]hsystem subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjpubj)}(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.chMGhjubj)}(hhh]j[)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hj˱hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDZhMGhjȱubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjDZhMGhjpubeh}(h]h ]h"]h$]h&]uh1jhjTubj[)}(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.chMIhjTubj[)}(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.chMHhjTubj[)}(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.chMOhjTubeh}(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](j7)}(hinth]hint}(hjAhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj=hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM^ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhjOhM^ubj")}(hsubsys_virtual_registerh]j()}(hsubsys_virtual_registerh]hsubsys_virtual_register}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj=hhhjOhM^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&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jdsbc.subsys_virtual_registerasbuh1hhjzubj)}(h h]h }(hjײhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjzubj()}(hsubsysh]hsubsys}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjvubj7)}(h%const struct attribute_group **groupsh](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 }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjAubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjFmodnameN classnameNj:8j=8)}j@8]jӲc.subsys_virtual_registerasbuh1hhjubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjphhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjvubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj=hhhjOhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj9hhhjOhM^ubah}(h]j4ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjOhM^hj6hhubjV)}(hhh]j[)}(h-register a subsystem at /sys/devices/virtual/h]h-register a subsystem at /sys/devices/virtual/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jUhj6hhhjOhM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj̳j{j̳j|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)}(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.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_hjubj)}(hhh]j[)}(hvirtual subsystemh]hvirtual subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hM_hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM_hjubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hj.h]h%const struct attribute_group **groups}(hj0hhhNhNubah}(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&default attributes for the root deviceh]h&default attributes for the root device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjChM`hjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM`hjubeh}(h]h ]h"]h$]h&]uh1jhjгubj[)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure: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.}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMvubh)}(hhh]j()}(h device_driverh]h device_driver}(hjʹhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjʴubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjϴmodnameN classnameNj:8j=8)}j@8]jC8)}j68 driver_findsb c.driver_findasbuh1hhjhhhjhMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMvubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhMvubj")}(h driver_findh]j()}(hjh]h driver_find}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMvubj7)}(h.(const char *name, const struct bus_type *bus)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj7)}(hcharh]hchar}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW8)}(hjZ8h]h*}(hj_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$ubj()}(hnameh]hname}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j c.driver_findasbuh1hhjubj)}(h h]h }(hjܵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMvubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMvhjhhubjV)}(hhh]j[)}(h#locate driver on a bus by its name.h]h#locate driver on a bus by its name.}(hj!hhhNhNubah}(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&]uh1jUhjhhhjhMvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj9j{j9j|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)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMzhj=ubj)}(hhh](j)}(h)``const char *name`` name of the driver. h](j)}(h``const char *name``h]j)}(hjbh]hconst char *name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMwhj\ubj)}(hhh]j[)}(hname of the driver.h]hname of the driver.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjwhMwhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMwhjYubj)}(h;``const struct bus_type *bus`` bus to scan for the driver. 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.chMxhjubj)}(hhh]j[)}(hbus to scan for the driver.h]hbus to scan for the driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubj[)}(h**Description**h]j)}(hjֶh]h Description}(hjضhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԶubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.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.}(hjhhhNhNubah}(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}(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj7hMubh)}(hhh]j()}(hdeviceh]hdevice}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjKmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_get_dev_rootsbc.bus_get_dev_rootasbuh1hhj&hhhj7hMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj7hMubjW8)}(hjZ8h]h*}(hjxhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj&hhhj7hMubj")}(hbus_get_dev_rooth]j()}(hjgh]hbus_get_dev_root}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj&hhhj7hMubj7)}(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 }(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&] refdomainjtreftypej68 reftargetj߷modnameN classnameNj:8j=8)}j@8]jec.bus_get_dev_rootasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj&hhhj7hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj"hhhj7hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj7hMhjhhubjV)}(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&]uh1jUhjhhhj7hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjXj{jXj|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)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj\ubj)}(hhh]j)}(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&]uh1jhjubah}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubah}(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.chMhj\ubj[)}(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.chMhj\ubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj\ubj[)}(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.}(hjhhhNhNubah}(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\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](j7)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj4hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4hhhjFhK=ubj")}(hdmam_free_coherenth]j()}(hdmam_free_coherenth]hdmam_free_coherent}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjUubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj4hhhjFhK=ubj7)}(hE(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68j[sbc.dmam_free_coherentasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjqubj()}(hdevh]hdev}(hjιhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjmubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dmam_free_coherentasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjmubj7)}(h void *vaddrh](j7)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjW8)}(hjZ8h]h*}(hjKhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj+ubj()}(hvaddrh]hvaddr}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj+ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjmubj7)}(hdma_addr_t dma_handleh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjvmodnameN classnameNj:8j=8)}j@8]jc.dmam_free_coherentasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj()}(h dma_handleh]h dma_handle}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjmubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj4hhhjFhK=ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj0hhhjFhK=ubah}(h]j+ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjFhK=hj-hhubjV)}(hhh]j[)}(hManaged dma_free_coherent()h]hManaged dma_free_coherent()}(hjʺhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=hjǺhhubah}(h]h ]h"]h$]h&]uh1jUhj-hhhjFhK=ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chKAhjubj)}(hhh](j)}(h:``struct device *dev`` Device to free coherent memory for 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.chK>hjubj)}(hhh]j[)}(h"Device to free coherent memory forh]h"Device to free coherent memory for}(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#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjDh]h size_t size}(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.chK?hj>ubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhK?hjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhK?hjubj)}(h6``void *vaddr`` Virtual address of the memory to free h](j)}(h``void *vaddr``h]j)}(hj}h]h void *vaddr}(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.chK@hjwubj)}(hhh]j[)}(h%Virtual address of the memory to freeh]h%Virtual address of the memory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(h;``dma_addr_t dma_handle`` DMA handle of the memory to free h](j)}(h``dma_addr_t dma_handle``h]j)}(hjh]hdma_addr_t dma_handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhjubj)}(hhh]j[)}(h DMA handle of the memory to freeh]h DMA handle of the memory to free}(hjϻhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj˻hKAhj̻ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˻hKAhjubeh}(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.chKChjubj[)}(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.chKBhjubeh}(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](j7)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj2hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhjDhKPubjW8)}(hjZ8h]h*}(hjShhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj2hhhjDhKPubj")}(hdmam_alloc_attrsh]j()}(hdmam_alloc_attrsh]hdmam_alloc_attrs}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj2hhhjDhKPubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jfsbc.dmam_alloc_attrsasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjW8)}(hjZ8h]h*}(hj̼hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj|ubj()}(hdevh]hdev}(hjټhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dmam_alloc_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hsizeh]hsize}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(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&] refdomainjtreftypej68 reftargetj?modnameN classnameNj:8j=8)}j@8]jc.dmam_alloc_attrsasbuh1hhj6ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjW8)}(hjZ8h]h*}(hjihhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj6ubj()}(h dma_handleh]h dma_handle}(hjvhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(h gfp_t gfph](h)}(hhh]j()}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dmam_alloc_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hunsigned long attrsh](j7)}(hunsignedh]hunsigned}(hj׽hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjӽubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӽubj7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjӽubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӽubj()}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjӽubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj2hhhjDhKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj.hhhjDhKPubah}(h]j)ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjDhKPhj+hhubjV)}(hhh]j[)}(hManaged dma_alloc_attrs()h]hManaged dma_alloc_attrs()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPhj6hhubah}(h]h ]h"]h$]h&]uh1jUhj+hhhjDhKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjQj{jQj|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)}(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:74: ./kernel/dma/mapping.chKThjUubj)}(hhh](j)}(hB``struct device *dev`` Device to allocate non_coherent memory for 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:74: ./kernel/dma/mapping.chKQhjtubj)}(hhh]j[)}(h*Device to allocate non_coherent memory forh]h*Device to allocate non_coherent memory for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKQhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjqubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKRhjubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hj̾hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjȾhKRhjɾubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjȾhKRhjqubj)}(hA``dma_addr_t *dma_handle`` Out argument for allocated DMA handle h](j)}(h``dma_addr_t *dma_handle``h]j)}(hjh]hdma_addr_t *dma_handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKShjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjqubj)}(h``gfp_t gfp`` Allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hj%h]h gfp_t gfp}(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.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:hKThjqubj)}(h;``unsigned long attrs`` Flags in the DMA_ATTR_* namespace. h](j)}(h``unsigned long attrs``h]j)}(hj^h]hunsigned long attrs}(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.chKUhjXubj)}(hhh]j[)}(h"Flags in the DMA_ATTR_* namespace.h]h"Flags in the DMA_ATTR_* namespace.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjshKUhjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshKUhjqubeh}(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:74: ./kernel/dma/mapping.chKWhjUubj[)}(hqManaged dma_alloc_attrs(). Memory allocated using this function will be automatically released on driver detach.h]hqManaged dma_alloc_attrs(). Memory allocated using this function will be automatically released on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKVhjUubj[)}(h **Return**h]j)}(hjh]hReturn}(hj¿hhhNhNubah}(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.chKYhjUubj[)}(h8Pointer to allocated memory on success, NULL on failure.h]h8Pointer to allocated memory on success, NULL on failure.}(hjֿhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKZhjUubeh}(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](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj7)}(hinth]hint}(hj"hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdma_map_sg_attrsh]j()}(hdma_map_sg_attrsh]hdma_map_sg_attrs}(hjBhhhNhNubah}(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}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj~modnameN classnameNj:8j=8)}j@8]jC8)}j68jDsbc.dma_map_sg_attrsasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjZubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(hstruct scatterlist *sgh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h scatterlisth]h scatterlist}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsgh]hsg}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(h int nentsh](j7)}(hinth]hint}(hj@hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj<ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj()}(hnentsh]hnents}(hj\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(henum dma_data_direction dirh](h)}(hjh]henum}(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubh)}(hhh]j()}(hdma_data_directionh]hdma_data_direction}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_map_sg_attrsasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj()}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjqubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(hunsigned long attrsh](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(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@uh1j7hjVubeh}(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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjRj{jRj|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)}(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)}(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&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjuubj)}(hhh]j[)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(hE``struct scatterlist *sg`` The sg_table object describing the buffer h](j)}(h``struct scatterlist *sg``h]j)}(hjh]hstruct scatterlist *sg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(h'``int nents`` Number of entries to map h](j)}(h ``int nents``h]j)}(hjh]h int nents}(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[)}(hNumber of entries to maph]hNumber of entries to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjrubj)}(h.``enum dma_data_direction dir`` DMA direction h](j)}(h``enum dma_data_direction dir``h]j)}(hj&h]henum dma_data_direction dir}(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.chMhj ubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMhjrubj)}(hF``unsigned long attrs`` Optional DMA attributes for the map operation h](j)}(h``unsigned long attrs``h]j)}(hj_h]hunsigned long attrs}(hjahhhNhNubah}(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.chMhjYubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthMhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMhjrubeh}(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[)}(hMaps a buffer described by a scatterlist passed in the sg argument with nents segments for the **dir** DMA operation by the **dev** device.h](h_Maps a buffer described by a scatterlist passed in the sg argument with nents segments for the }(hjhhhNhNubj)}(h**dir**h]hdir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh DMA operation by the }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjVubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjVubj[)}(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 hjVubeh}(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](j7)}(hinth]hint}(hj!hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM1ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hM1ubj")}(hdma_map_sgtableh]j()}(hdma_map_sgtableh]hdma_map_sgtable}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj/hM1ubj7)}(h\(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, unsigned long attrs)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubh)}(hhh]j()}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj~modnameN classnameNj:8j=8)}j@8]jC8)}j68jDsbc.dma_map_sgtableasbuh1hhjZubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjZubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(hstruct sg_table *sgth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hsg_tableh]hsg_table}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsgth]hsgt}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(henum dma_data_direction dirh](h)}(hjh]henum}(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j()}(hdma_data_directionh]hdma_data_direction}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj`modnameN classnameNj:8j=8)}j@8]jc.dma_map_sgtableasbuh1hhj<ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj()}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjVubj7)}(hunsigned long attrsh](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(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@uh1j7hjVubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj/hM1ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj/hM1ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj/hM1hjhhubjV)}(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&]uh1jUhjhhhj/hM1ubeh}(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)}(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:74: ./kernel/dma/mapping.chM5hj!ubj)}(hhh](j)}(hI``struct device *dev`` The device for which to perform the DMA operation h](j)}(h``struct device *dev``h]j)}(hjFh]hstruct device *dev}(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.chM2hj@ubj)}(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&]uh1jZhj[hM2hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM2hj=ubj)}(hC``struct sg_table *sgt`` The sg_table object describing the buffer h](j)}(h``struct sg_table *sgt``h]j)}(hjh]hstruct sg_table *sgt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM3hjyubj)}(hhh]j[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM3hjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhM3hj=ubj)}(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.chM4hjubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hj=ubj)}(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.chM5hjubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hj=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:74: ./kernel/dma/mapping.chM7hj!ubj[)}(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 }(hjBhhhNhNubj)}(h**dir**h]hdir}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh DMA operation by the }(hjBhhhNhNubj)}(h**dev**h]hdev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubh 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.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM6hj!ubj[)}(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:}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM=hj!ubj3)}(hXM-EINVAL An invalid argument, unaligned access or other error in usage. Will not succeed if retried. -ENOMEM Insufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later. -EIO Legacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR. -EREMOTEIO The DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]h option_list)}(hhh](hoption_list_item)}(hhh](h option_group)}(hhh]hoption)}(h-EINVALh](h option_string)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubhoption_argument)}(hINVALh]hINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubh description)}(h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.h]j[)}(h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.h]h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h-ENOMEMh](j)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubj)}(hNOMEMh]hNOMEM}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(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.}(hj"hhhNhNubah}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h-EIOh](j)}(h-Eh]h-E}hjGsbah}(h]h ]h"]h$]h&]uh1jhjCubj)}(hIOh]hIO}(hjUhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhj=ubj)}(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.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMDhjpubah}(h]h ]h"]h$]h&]uh1jhj=ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j)}(h -EREMOTEIOh](j)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubj)}(hREMOTEIOh]hREMOTEIO}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]j[)}(hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM@hjubah}(h]h ]h"]h$]h&]uh1j2hjhM@hj!ubeh}(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](j7)}(hj:h]hbool}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubj")}(hdma_need_unmaph]j()}(hdma_need_unmaph]hdma_need_unmap}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhMubj7)}(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}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjimodnameN classnameNj:8j=8)}j@8]jC8)}j68j/sbc.dma_need_unmapasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjEubj()}(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 hhhjhMubeh}(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}(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** 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)}(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)}(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:74: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj[)}(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 }(hj^hhhNhNubj)}(h ``false``h]hfalse}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubh, 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.}(hj^hhhNhNubeh}(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&]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](j7)}(hj:h]hbool}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM'ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM'ubj")}(h dma_can_mmaph]j()}(h dma_can_mmaph]h dma_can_mmap}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM'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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.dma_can_mmapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj'hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hj4hhhNhNubah}(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[)}(h+check if a given device supports dma_mmap_*h]h+check if a given device supports dma_mmap_*}(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&]jyjtjzjvj{jvj|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+hjzubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM(hjubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjubah}(h]h ]h"]h$]h&]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:74: ./kernel/dma/mapping.chM*hjzubj[)}(hrReturns ``true`` if **dev** supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.h](hReturns }(hjhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh if }(hjhhhNhNubj)}(h**dev**h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhW supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM)hjzubeh}(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](j7)}(hinth]hint}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj?hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM:ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhjQhM:ubj")}(hdma_mmap_attrsh]j()}(hdma_mmap_attrsh]hdma_mmap_attrs}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj?hhhjQhM: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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jfsbc.dma_mmap_attrsasbuh1hhj|ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj|ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hstruct vm_area_struct *vmah](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_mmap_attrsasbuh1hhjubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hvmah]hvma}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hvoid *cpu_addrh](j7)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjW8)}(hjZ8h]h*}(hj~hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj^ubj()}(hcpu_addrh]hcpu_addr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hdma_addr_t dma_addrh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_mmap_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdma_addrh]hdma_addr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_mmap_attrsasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubj7)}(hunsigned long attrsh](j7)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj0ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj7)}(hlongh]hlong}(hjPhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj0ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj()}(hattrsh]hattrs}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjxubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj?hhhjQhM:ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj;hhhjQhM:ubah}(h]j6ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjQhM:hj8hhubjV)}(hhh]j[)}(h-map a coherent DMA allocation into user spaceh]h-map a coherent DMA allocation into user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM:hjhhubah}(h]h ]h"]h$]h&]uh1jUhj8hhhjQhM:ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(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.chM>hjubj)}(hhh](j)}(hZ``struct device *dev`` valid struct device pointer, or NULL for ISA and EISA-like devices h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM;hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(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<hj ubj)}(hhh]j[)}(h0vm_area_struct describing requested user mappingh]h0vm_area_struct describing requested user mapping}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj%hM<hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM<hjubj)}(hI``void *cpu_addr`` kernel CPU-view address returned from dma_alloc_attrs h](j)}(h``void *cpu_addr``h]j)}(hjIh]hvoid *cpu_addr}(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[)}(h5kernel CPU-view address returned from dma_alloc_attrsh]h5kernel CPU-view address returned from 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=hjubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhM>hjubj)}(hG``size_t size`` size of memory originally requested in dma_alloc_attrs h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM?hjubj)}(hhh]j[)}(h6size of memory originally requested in dma_alloc_attrsh]h6size of memory originally requested in dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM?hjubj)}(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@hjubj)}(hhh]j[)}(h=attributes of mapping properties requested in dma_alloc_attrsh]h=attributes of mapping properties requested in dma_alloc_attrs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hM@hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM@hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMBhjubj[)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMAhjubeh}(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](j7)}(hj:h]hbool}(hjthhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjphhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhMubj")}(hdma_addressing_limitedh]j()}(hdma_addressing_limitedh]hdma_addressing_limited}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjphhhjhMubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.dma_addressing_limitedasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjphhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjlhhhjhMubah}(h]jgah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjihhubjV)}(hhh]j[)}(h*return if the device is addressing limitedh]h*return if the device is addressing limited}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jUhjihhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjKj{jKj|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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjOubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjth]hstruct device *dev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjnubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjOubj[)}(hReturn ``true`` if the devices DMA mask is too small to address all memory in the system, else ``false``. Lack of addressing bits is the prime reason for bounce buffering, but might not be the only one.h](hReturn }(hjhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhP if the devices DMA mask is too small to address all memory in the system, else }(hjhhhNhNubj)}(h ``false``h]hfalse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhc. Lack of addressing bits is the prime reason for bounce buffering, but might not be the only one.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjOubeh}(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}(hj hhhNhNubah}(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](j7)}(hinth]hint}(hj1hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*ubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-hhhj?hK*ubj")}(hpnp_register_protocolh]j()}(hpnp_register_protocolh]hpnp_register_protocol}(hjRhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj-hhhj?hK*ubj7)}(h(struct pnp_protocol *protocol)h]j7)}(hstruct pnp_protocol *protocolh](h)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubh)}(hhh]j()}(h pnp_protocolh]h pnp_protocol}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jTsbc.pnp_register_protocolasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjjubj()}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjfubah}(h]h ]h"]h$]h&]j?j@uh1j7hj-hhhj?hK*ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj)hhhj?hK*ubah}(h]j$ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj?hK*hj&hhubjV)}(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*hjhhubah}(h]h ]h"]h$]h&]uh1jUhj&hhhj?hK*ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|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.hj ubj)}(hhh]j)}(hV``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure h](j)}(h!``struct pnp_protocol *protocol``h]j)}(hj2h]hstruct pnp_protocol *protocol}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK+hj,ubj)}(hhh]j[)}(h3pointer to the corresponding pnp_protocol structureh]h3pointer to the corresponding pnp_protocol structure}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGhK+hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhK+hj)ubah}(h]h ]h"]h$]h&]uh1jhj ubj[)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK-hj ubj3)}(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&]uh1j2hjhK,hj ubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68pnp_request_card_devicesbc.pnp_request_card_deviceasbuh1hhjhhhjhM#ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM#ubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhM#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!hjhhhjhM#ubj7)}(hC(struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h](j7)}(hstruct pnp_card_link *clinkh](h)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j()}(h pnp_card_linkh]h pnp_card_link}(hjShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjUmodnameN classnameNj:8j=8)}j@8]jc.pnp_request_card_deviceasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj1ubj()}(hclinkh]hclink}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj-ubj7)}(hconst char *idh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hidh]hid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj-ubj7)}(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}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj"modnameN classnameNj:8j=8)}j@8]jc.pnp_request_card_deviceasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjLhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfromh]hfrom}(hjYhhhNhNubah}(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[)}(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&]uh1jUhjhhhjhM#ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM'hjubj)}(hhh](j)}(hI``struct pnp_card_link *clink`` pointer to the card link, cannot be NULL h](j)}(h``struct pnp_card_link *clink``h]j)}(hjh]hstruct pnp_card_link *clink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM$hjubj)}(hhh]j[)}(h(pointer to the card link, cannot be NULLh]h(pointer to the card link, cannot be NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h```const char *id`` pointer to a PnP ID structure that explains the rules for finding the device h](j)}(h``const char *id``h]j)}(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%hjubj)}(ha``struct pnp_dev *from`` Starting place to search from. If NULL it will start from the beginning.h](j)}(h``struct pnp_dev *from``h]j)}(hj6h]hstruct pnp_dev *from}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM'hj0ubj)}(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.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM&hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhM'hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMWubj")}(hpnp_release_card_deviceh]j()}(hpnp_release_card_deviceh]hpnp_release_card_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMWubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.pnp_release_card_deviceasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjhhhjhMWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMWubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMWhjhhubjV)}(hhh]j[)}(h4call this when the driver no longer needs the deviceh]h4call this when the driver no longer needs the device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWhjMhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjhj{jhj|j}j~uh1hhhhjhNhNubj)}(hM**Parameters** ``struct pnp_dev *dev`` pointer to the PnP device structureh](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:83: ./drivers/pnp/card.chM[hjlubj)}(hhh]j)}(h;``struct pnp_dev *dev`` pointer to the PnP device structureh](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM]hjubj)}(hhh]j[)}(h#pointer to the PnP device structureh]h#pointer to the PnP device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM]hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM}ubj")}(hpnp_register_card_driverh]j()}(hpnp_register_card_driverh]hpnp_register_card_driver}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM}ubj7)}(h(struct pnp_card_driver *drv)h]j7)}(hstruct pnp_card_driver *drvh](h)}(hjh]hstruct}(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubh)}(hhh]j()}(hpnp_card_driverh]hpnp_card_driver}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjHmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.pnp_register_card_driverasbuh1hhj$ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$ubj()}(hdrvh]hdrv}(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@uh1j7hjhhhjhM}ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM}ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM}hjhhubjV)}(hhh]j[)}(h.registers a PnP card driver with the PnP Layerh]h.registers a PnP card driver with the PnP Layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM}ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hS**Parameters** ``struct pnp_card_driver *drv`` pointer to the driver to registerh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjubj)}(hhh]j)}(hA``struct pnp_card_driver *drv`` pointer to the driver to registerh](j)}(h``struct pnp_card_driver *drv``h]j)}(hjh]hstruct pnp_card_driver *drv}(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.chMhjubj)}(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&]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'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)}(hhhhjThMubah}(h]j9ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjThMhj;hhubjV)}(hhh]j[)}(h0unregisters a PnP card driver from the PnP Layerh]h0unregisters a PnP card driver from the PnP Layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj;hhhjThMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hU**Parameters** ``struct pnp_card_driver *drv`` pointer to the driver to unregisterh](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:83: ./drivers/pnp/card.chMhj"ubj)}(hhh]j)}(hC``struct pnp_card_driver *drv`` pointer to the driver to unregisterh](j)}(h``struct pnp_card_driver *drv``h]j)}(hjGh]hstruct pnp_card_driver *drv}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjAubj)}(hhh]j[)}(h#pointer to the driver to unregisterh]h#pointer to the driver to unregister}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_add_id (C function) c.pnp_add_idhNtauh1hhjhhhNhNubh)}(hhh](h)}(h@struct pnp_id * pnp_add_id (struct pnp_dev *dev, const char *id)h]h)}(h>struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6ubh)}(hhh]j()}(hpnp_idh]hpnp_id}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68 pnp_add_idsb c.pnp_add_idasbuh1hhjhhhjhM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM6ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhM6ubj")}(h pnp_add_idh]j()}(hjh]h pnp_add_id}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM6ubj7)}(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 }(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&] refdomainjtreftypej68 reftargetj;modnameN classnameNj:8j=8)}j@8]j c.pnp_add_idasbuh1hhjubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjehhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjrhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hidh]hid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM6ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM6ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM6hjhhubjV)}(hhh]j[)}(h'adds an EISA id to the specified deviceh]h'adds an EISA id to the specified device}(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&]uh1jUhjhhhjhM6ubeh}(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)}(hj:h]hstruct pnp_dev *dev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM7hj4ubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjOhM7hjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhM7hj1ubj)}(h/``const char *id`` pointer to an EISA id stringh](j)}(h``const char *id``h]j)}(hjsh]hconst char *id}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM9hjmubj)}(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&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhM9hj1ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMLubj")}(h pnp_start_devh]j()}(h pnp_start_devh]h pnp_start_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMLubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hj(hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj*modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.pnp_start_devasbuh1hhjubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjVhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(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[)}(h!low-level start of the PnP deviceh]h!low-level start of the PnP device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMLubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMPhjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMMhjubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMOhjubj[)}(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.chMNhjubeh}(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](j7)}(hinth]hint}(hjNhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMdubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj\hMdubj")}(h pnp_stop_devh]j()}(h pnp_stop_devh]h pnp_stop_dev}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjJhhhj\hMdubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jqsbc.pnp_stop_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjJhhhj\hMdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjFhhhj\hMdubah}(h]jAah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj\hMdhjChhubjV)}(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.chMdhj hhubah}(h]h ]h"]h$]h&]uh1jUhjChhhj\hMdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj&j{j&j|j}j~uh1hhhhjhNhNubj)}(hq**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not free resourcesh](j[)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhhj*ubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjOh]hstruct pnp_dev *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMehjIubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhMehjeubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMehjFubah}(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:89: ./drivers/pnp/manager.chMghj*ubj[)}(hdoes not free resourcesh]hdoes not free resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMfhj*ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMzubj")}(hpnp_activate_devh]j()}(hpnp_activate_devh]hpnp_activate_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMzubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj,modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.pnp_activate_devasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMzubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMzubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMzhjhhubjV)}(hhh]j[)}(hactivates a PnP device for useh]hactivates a PnP device for use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMzubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~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)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM~hjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM{hjubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(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:89: ./drivers/pnp/manager.chM}hjubj[)}(h1does not validate or set resources so be careful.h]h1does not validate or set resources so be careful.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM|hjubeh}(h]h ] kernelindentah"]h$]h&]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](j7)}(hinth]hint}(hjPhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjLhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLhhhj^hMubj")}(hpnp_disable_devh]j()}(hpnp_disable_devh]hpnp_disable_dev}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjLhhhj^hMubj7)}(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&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jssbc.pnp_disable_devasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(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@uh1j7hjLhhhj^hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjHhhhj^hMubah}(h]jCah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj^hMhjEhhubjV)}(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.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjEhhhj^hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj(j{j(j|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)}(hj2h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhj,ubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjQh]hstruct pnp_dev *dev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjKubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjHubah}(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:89: ./drivers/pnp/manager.chMhj,ubj[)}(hNinform the correct pnp protocol so that resources can be used by other devicesh]hNinform the correct pnp protocol so that resources can be used by other devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhj,ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(h pnp_is_activeh]j()}(h pnp_is_activeh]h pnp_is_active}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj.modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.pnp_is_activeasbuh1hhj ubj)}(h h]h }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjZhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hdevh]hdev}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(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?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&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hK**Parameters** ``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubj)}(hhh]j)}(h9``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubj)}(hhh]j[)}(h!pointer to the desired PnP deviceh]h!pointer to the desired PnP device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(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](j7)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjAhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjShMubj")}(huio_event_notifyh]j()}(huio_event_notifyh]huio_event_notify}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjbubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjAhhhjShMubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jhsbc.uio_event_notifyasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj~ubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjzubah}(h]h ]h"]h$]h&]j?j@uh1j7hjAhhhjShMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=hhhjShMubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjShMhj:hhubjV)}(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&]uh1jUhj:hhhjShMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](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:98: ./drivers/uio/uio.chMhj!ubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hjFh]hstruct uio_info *info}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(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](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h__uio_register_deviceh]j()}(h__uio_register_deviceh]h__uio_register_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.__uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj)hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hownerh]howner}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j()}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjomodnameN classnameNj:8j=8)}j@8]jc.__uio_register_deviceasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjKubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.__uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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[)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjXj{jXj|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)}(hjbh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj\ubj)}(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.chMhj{ubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(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.chMhjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubj[)}(h**Description**h]j)}(hj.h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj\ubj[)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj\ubeh}(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](j7)}(hinth]hint}(hjshhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjohhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM2ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjohhhjhM2ubj")}(h__devm_uio_register_deviceh]j()}(h__devm_uio_register_deviceh]h__devm_uio_register_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjohhhjhM2ubj7)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hownerh]howner}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *parenth](h)}(hjh]hstruct}(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjBmodnameN classnameNj:8j=8)}j@8]jc.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjlhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.__devm_uio_register_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjohhhjhM2ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjkhhhjhM2ubah}(h]jfah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM2hjhhhubjV)}(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&]uh1jUhjhhhhjhM2ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj+j{j+j|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)}(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:98: ./drivers/uio/uio.chM6hj/ubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hjTh]hstruct module *owner}(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.chM3hjNubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihM3hjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihM3hjKubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM4hjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM4hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM4hjKubj)}(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.chM5hjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjKubeh}(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:98: ./drivers/uio/uio.chM7hj/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&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM6hj/ubeh}(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](j7)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjBhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMSubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhjThMSubj")}(huio_unregister_deviceh]j()}(huio_unregister_deviceh]huio_unregister_device}(hjghhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjBhhhjThMSubj7)}(h(struct uio_info *info)h]j7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jisbc.uio_unregister_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj{ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjBhhhjThMSubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj>hhhjThMSubah}(h]j9ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjThMShj;hhubjV)}(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&]uh1jUhj;hhhjThMSubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](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:98: ./drivers/uio/uio.chMWhj"ubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hjGh]hstruct uio_info *info}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMYhjAubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMThj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMYhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj")}(huio_memh]j()}(hjh]huio_mem}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(h"description of a UIO memory regionh]h"description of a UIO memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(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; };}hj sbah}(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)}(hj1h]hMembers}(hj3hhhNhNubah}(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.hhK*hjubj)}(hhh](j)}(h6``name`` name of the memory region for identification h](j)}(h``name``h]j)}(hjPh]hname}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjJubj)}(hhh]j[)}(h,name of the memory region for identificationh]h,name of the memory region for identification}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjehKhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjGubj)}(h``addr`` address of the device's memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types) h](j)}(h``addr``h]j)}(hjh]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(haddress of the device's memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types)h]haddress of the device’s memory rounded to page size (phys_addr is used since addr can be logical, virtual, or physical & phys_addr_t should always be large enough to handle any of the address types)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjGubj)}(h``dma_addr`` DMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (**addr** should be the void * returned from the same dma_alloc_coherent call) h](j)}(h ``dma_addr``h]j)}(hjh]hdma_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK"hjubj)}(hhh]j[)}(hDMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (**addr** should be the void * returned from the same dma_alloc_coherent call)h](hKDMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (}(hjhhhNhNubj)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhE should be the void * returned from the same dma_alloc_coherent call)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjGubj)}(h1``offs`` offset of device memory within the page h](j)}(h``offs``h]j)}(hjh]hoffs}(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[)}(h'offset of device memory within the pageh]h'offset of device memory within the page}(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#hjGubj)}(h,``size`` size of IO (multiple of page size) h](j)}(h``size``h]j)}(hjHh]hsize}(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[)}(h"size of IO (multiple of page size)h]h"size of IO (multiple of page size)}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj]hK$hj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hK$hjGubj)}(h*``memtype`` type of memory addr points to h](j)}(h ``memtype``h]j)}(hjh]hmemtype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK%hj{ubj)}(hhh]j[)}(htype of memory addr points toh]htype of memory addr points to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK%hjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhK%hjGubj)}(hG``internal_addr`` ioremap-ped version of addr, for driver internal use h](j)}(h``internal_addr``h]j)}(hjh]h internal_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK&hjubj)}(hhh]j[)}(h4ioremap-ped version of addr, for driver internal useh]h4ioremap-ped version of addr, for driver internal use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjGubj)}(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(hjubj)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK'hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjGubj)}(h%``map`` for use by the UIO core only.h](j)}(h``map``h]j)}(hj-h]hmap}(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(hj'ubj)}(hhh]j[)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK)hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhK(hjGubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK/ubj")}(huio_porth]j()}(hjh]huio_port}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhK/ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhK/ubah}(h]jzah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK/hj|hhubjV)}(hhh]j[)}(h description of a UIO port regionh]h description of a UIO port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK;hjhhubah}(h]h ]h"]h$]h&]uh1jUhj|hhhjhK/ubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hjubj)}(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.hhKAhjubj[)}(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.hhKIhjubj)}(hhh](j)}(h4``name`` name of the port region for identification h](j)}(h``name``h]j)}(hj6h]hname}(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[)}(h*name of the port region for identificationh]h*name of the port region for identification}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhK=hjLubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhK=hj-ubj)}(h``start`` start of port region h](j)}(h ``start``h]j)}(hjoh]hstart}(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[)}(hstart of port regionh]hstart of port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK>hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjhK>hj-ubj)}(h``size`` size of port region h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hjubj)}(hhh]j[)}(hsize of port regionh]hsize of port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK?hj-ubj)}(h1``porttype`` type of port (see UIO_PORT_* below) h](j)}(h ``porttype``h]j)}(hjh]hporttype}(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#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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hj-ubj)}(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.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKAhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hK@hj-ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKGubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjphhhjhKGubj")}(huio_infoh]j()}(hjnh]huio_info}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjphhhjhKGubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjlhhhjhKGubah}(h]jgah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKGhjihhubjV)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKZhjhhubah}(h]h ]h"]h$]h&]uh1jUhjihhhjhKGubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjj{jj|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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hjubj)}(hXqstruct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };h]hXqstruct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK`hjubj[)}(h **Members**h]j)}(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.hhKphjubj)}(hhh](j)}(h0``uio_dev`` the UIO device this info belongs to h](j)}(h ``uio_dev``h]j)}(hj#h]huio_dev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK\hjubj)}(hhh]j[)}(h#the UIO device this info belongs toh]h#the UIO device this info belongs to}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hK\hj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hK\hjubj)}(h``name`` device name h](j)}(h``name``h]j)}(hj\h]hname}(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[)}(h device nameh]h device name}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhK]hjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhK]hjubj)}(h"``version`` device driver version h](j)}(h ``version``h]j)}(hjh]hversion}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hjubj)}(hhh]j[)}(hdevice driver versionh]hdevice driver version}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK^hjubj)}(hA``mem`` list of mappable memory regions, size==0 for end of list h](j)}(h``mem``h]j)}(hjh]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK_hjubj)}(hhh]j[)}(h8list of mappable memory regions, size==0 for end of listh]h8list of mappable memory 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)}(h7``port`` list of port regions, size==0 for end of list h](j)}(h``port``h]j)}(hjh]hport}(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.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}(hj hhhNhNubah}(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)}(hj@h]hirq}(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.hhKahj:ubj)}(hhh]j[)}(h"interrupt number or UIO_IRQ_CUSTOMh]h"interrupt number or UIO_IRQ_CUSTOM}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUhKahjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhKahjubj)}(h&``irq_flags`` flags for request_irq() h](j)}(h ``irq_flags``h]j)}(hjyh]h irq_flags}(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.hhKbhjsubj)}(hhh]j[)}(hflags for request_irq()h]hflags for request_irq()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKbhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjubj)}(h``priv`` optional private data h](j)}(h``priv``h]j)}(hjh]hpriv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKchjubj)}(hhh]j[)}(hoptional private datah]hoptional private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKchjubj)}(h%``handler`` the device's irq handler h](j)}(h ``handler``h]j)}(hjh]hhandler}(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.hhKdhjubj)}(hhh]j[)}(hthe device's irq handlerh]hthe device’s irq handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjubj)}(h<``mmap_prepare`` mmap_prepare operation for this uio device h](j)}(h``mmap_prepare``h]j)}(hj$h]h mmap_prepare}(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.hhKehjubj)}(hhh]j[)}(h*mmap_prepare operation for this uio deviceh]h*mmap_prepare operation for this uio device}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9hKehj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hKehjubj)}(h,``open`` open operation for this uio device h](j)}(h``open``h]j)}(hj]h]hopen}(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.hhKfhjWubj)}(hhh]j[)}(h"open operation for this uio deviceh]h"open operation for this uio device}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhKfhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhKfhjubj)}(h2``release`` release operation for this uio device h](j)}(h ``release``h]j)}(hjh]hrelease}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKghjubj)}(hhh]j[)}(h%release operation for this uio deviceh]h%release operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubj)}(hC``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j)}(h``irqcontrol``h]j)}(hjh]h irqcontrol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKghjubj)}(hhh]j[)}(h4disable/enable irqs when 0/1 is written to /dev/uioXh]h4disable/enable irqs when 0/1 is written to /dev/uioX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(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()}(hj#h]huio_register_device}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj%hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj!hhhj@hKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj@hKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhj@hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjYj{jYj|j}j~uh1hhhhjhNhNubj[)}(h&``uio_register_device (parent, info)``h]j)}(hj_h]h"uio_register_device (parent, info)}(hjahhhNhNubah}(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.hhKhjhhubj3)}(h#register a new userspace IO device h]j[)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjuubah}(h]h ]h"]h$]h&]uh1j2hjhKhjhhubj)}(h**Parameters** ``parent`` parent device ``info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh](j)}(h``parent`` parent device h](j)}(h ``parent``h]j)}(hjh]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]uh1jhjhKhjubeh}(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&]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.}(hj=hhhNhNubah}(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()}(hjfh]hdevm_uio_register_device}(hjphhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjdhhhjhKubah}(h]j_ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjahhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjahhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj[)}(h+``devm_uio_register_device (parent, info)``h]j)}(hjh]h'devm_uio_register_device (parent, info)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhhubj3)}(h'Resource managed uio_register_device() h]j[)}(h&Resource managed uio_register_device()h]h&Resource managed uio_register_device()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j2hjhKhjhhubj)}(h**Parameters** ``parent`` parent device ``info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh](j)}(h``parent`` parent device h](j)}(h ``parent``h]j)}(hjh]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hj/h]hinfo}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj)ubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDhKhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhKhjubeh}(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&]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&]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_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjj\j\j jjjjjjju nametypes}(jj\j jjjuh}(jhj\hhhj8j=jjjjjjj j j j% jc jh j j jjjjjj#jajfjjjjj/j4jjjFjKjjjjjjj j jG"jL"j#j#j%j%j(j(jn4js4j7j7j:j :j;j;j=j=j$?j)?j@j@jBjBj7EjjjjjjAjFjjjCjHjjjjj8j=jjjfjkj9j>jjjzjjgjljj!j_jdu 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.