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\hhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!device_is_big_endian (C function)c.device_is_big_endianhNtauh1hhhhhhNhNubh)}(hhh](h)}(h4bool device_is_big_endian (const struct device *dev)h]h)}(h3bool device_is_big_endian(const struct device *dev)h](j7)}(hj:h]hbool}(hj]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj\hhhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKdubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhj ]hKdubj")}(hdevice_is_big_endianh]j()}(hdevice_is_big_endianh]hdevice_is_big_endian}(hj ]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj]ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj\hhhj ]hKdubj7)}(h(const struct device *dev)h]j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hj<]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8]ubj)}(h h]h }(hjI]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]ubh)}(hjh]hstruct}(hjW]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8]ubj)}(h h]h }(hjd]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]ubh)}(hhh]j()}(hdeviceh]hdevice}(hju]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjr]ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjw]modnameN classnameNj:8j=8)}j@8]jC8)}j68j"]sbc.device_is_big_endianasbuh1hhj8]ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8]ubjW8)}(hjZ8h]h*}(hj]hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj8]ubj()}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8]ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj4]ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj\hhhj ]hKdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj\hhhj ]hKdubah}(h]j\ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj ]hKdhj\hhubjV)}(hhh]j[)}(h"check if a device has BE registersh]h"check if a device has BE registers}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKdhj]hhubah}(h]h ]h"]h$]h&]uh1jUhj\hhhj ]hKdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj]j{j]j|j}j~uh1hhhhhhNhNubj)}(hXz**Parameters** ``const struct device *dev`` Pointer to the struct device **Return** true if the device has a "big-endian" property, or if the kernel was compiled for BE *and* the device has a "native-endian" property. Returns false otherwise. **Description** Callers would nominally use ioread32be/iowrite32be if device_is_big_endian() == true, or readl/writel otherwise.h](j[)}(h**Parameters**h]j)}(hj]h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKhhj]ubj)}(hhh]j)}(h:``const struct device *dev`` Pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hj^h]hconst struct device *dev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKehj^ubj)}(hhh]j[)}(hPointer to the struct deviceh]hPointer to the struct device}(hj4^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0^hKehj1^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj0^hKehj^ubah}(h]h ]h"]h$]h&]uh1jhj]ubj[)}(h **Return**h]j)}(hjV^h]hReturn}(hjX^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT^ubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKghj]ubj[)}(htrue if the device has a "big-endian" property, or if the kernel was compiled for BE *and* the device has a "native-endian" property. Returns false otherwise.h](hYtrue if the device has a “big-endian” property, or if the kernel was compiled for BE }(hjl^hhhNhNubhemphasis)}(h*and*h]hand}(hjv^hhhNhNubah}(h]h ]h"]h$]h&]uh1jt^hjl^ubhH the device has a “native-endian” property. Returns false otherwise.}(hjl^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKghj]ubj[)}(h**Description**h]j)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKkhj]ubj[)}(hpCallers would nominally use ioread32be/iowrite32be if device_is_big_endian() == true, or readl/writel otherwise.h]hpCallers would nominally use ioread32be/iowrite32be if device_is_big_endian() == true, or readl/writel otherwise.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKjhj]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!device_is_compatible (C function)c.device_is_compatiblehNtauh1hhhhhhNhNubh)}(hhh](h)}(hHbool device_is_compatible (const struct device *dev, const char *compat)h]h)}(hGbool device_is_compatible(const struct device *dev, const char *compat)h](j7)}(hj:h]hbool}(hj^hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^hhhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKtubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhj^hKtubj")}(hdevice_is_compatibleh]j()}(hdevice_is_compatibleh]hdevice_is_compatible}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj^hhhj^hKtubj7)}(h.(const struct device *dev, const char *compat)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}(hjK_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjH_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjM_modnameN classnameNj:8j=8)}j@8]jC8)}j68j^sbc.device_is_compatibleasbuh1hhj_ubj)}(h h]h }(hjk_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjW8)}(hjZ8h]h*}(hjy_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)}(hconst char *compath](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()}(hcompath]hcompat}(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^hKtubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj^hhhj^hKtubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj^hKthj^hhubjV)}(hhh]j[)}(h=match 'compatible' property of the device with a given stringh]hAmatch ‘compatible’ property of the device with a given string}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKthj `hhubah}(h]h ]h"]h$]h&]uh1jUhj^hhhj^hKtubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj%`j{j%`j|j}j~uh1hhhhhhNhNubj)}(h**Parameters** ``const struct device *dev`` Pointer to the struct device ``const char *compat`` The string to match 'compatible' property with **Return** true if matches, otherwise false.h](j[)}(h**Parameters**h]j)}(hj/`h]h Parameters}(hj1`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-`ubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKxhj)`ubj)}(hhh](j)}(h:``const struct device *dev`` Pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hjN`h]hconst struct device *dev}(hjP`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL`ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKuhjH`ubj)}(hhh]j[)}(hPointer to the struct deviceh]hPointer to the struct device}(hjg`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjc`hKuhjd`ubah}(h]h ]h"]h$]h&]uh1jhjH`ubeh}(h]h ]h"]h$]h&]uh1jhjc`hKuhjE`ubj)}(hF``const char *compat`` The string to match 'compatible' property with h](j)}(h``const char *compat``h]j)}(hj`h]hconst char *compat}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKvhj`ubj)}(hhh]j[)}(h.The string to match 'compatible' property withh]h2The string to match ‘compatible’ property with}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`hKvhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hKvhjE`ubeh}(h]h ]h"]h$]h&]uh1jhj)`ubj[)}(h **Return**h]j)}(hj`h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKxhj)`ubj[)}(h!true if matches, otherwise false.h]h!true if matches, otherwise false.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKxhj)`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hfwnode_handle_put (C function)c.fwnode_handle_puthNtauh1hhhhhhNhNubh)}(hhh](h)}(h5void fwnode_handle_put (struct fwnode_handle *fwnode)h]h)}(h4void fwnode_handle_put(struct fwnode_handle *fwnode)h](j7)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjahhhb/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:20: ./include/linux/property.hhKubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhhjahKubj")}(hfwnode_handle_puth]j()}(hfwnode_handle_puth]hfwnode_handle_put}(hj(ahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$aubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjahhhjahKubj7)}(h(struct fwnode_handle *fwnode)h]j7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hjDahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@aubj)}(h h]h }(hjQahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@aubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjbahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_aubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjdamodnameN classnameNj:8j=8)}j@8]jC8)}j68j*asbc.fwnode_handle_putasbuh1hhj@aubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@aubjW8)}(hjZ8h]h*}(hjahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj@aubj()}(hfwnodeh]hfwnode}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@aubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjkhhubjV)}(hhh]j[)}(hOperations for fwnode interfaceh]hOperations for fwnode interface}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKshjkhhubah}(h]h ]h"]h$]h&]uh1jUhj>khhhjVkhKqubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjkj{jkj|j}j~uh1hhhhhhNhNubj)}(hX **Definition**:: struct fwnode_operations { struct fwnode_handle *(*get)(struct fwnode_handle *fwnode); void (*put)(struct fwnode_handle *fwnode); bool (*device_is_available)(const struct fwnode_handle *fwnode); const void *(*device_get_match_data)(const struct fwnode_handle *fwnode, const struct device *dev); bool (*device_dma_supported)(const struct fwnode_handle *fwnode); enum dev_dma_attr (*device_get_dma_attr)(const struct fwnode_handle *fwnode); bool (*property_present)(const struct fwnode_handle *fwnode, const char *propname); bool (*property_read_bool)(const struct fwnode_handle *fwnode, const char *propname); int (*property_read_int_array)(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval); int (*property_read_string_array)(const struct fwnode_handle *fwnode_handle, const char *propname, const char **val, size_t nval); const char *(*get_name)(const struct fwnode_handle *fwnode); const char *(*get_name_prefix)(const struct fwnode_handle *fwnode); struct fwnode_handle *(*get_parent)(const struct fwnode_handle *fwnode); struct fwnode_handle * (*get_next_child_node)(const struct fwnode_handle *fwnode, struct fwnode_handle *child); struct fwnode_handle * (*get_named_child_node)(const struct fwnode_handle *fwnode, const char *name); int (*get_reference_args)(const struct fwnode_handle *fwnode, const char *prop, const char *nargs_prop, unsigned int nargs, unsigned int index, struct fwnode_reference_args *args); struct fwnode_handle * (*graph_get_next_endpoint)(const struct fwnode_handle *fwnode, struct fwnode_handle *prev); struct fwnode_handle * (*graph_get_remote_endpoint)(const struct fwnode_handle *fwnode); struct fwnode_handle * (*graph_get_port_parent)(struct fwnode_handle *fwnode); int (*graph_parse_endpoint)(const struct fwnode_handle *fwnode, struct fwnode_endpoint *endpoint); void __iomem *(*iomap)(struct fwnode_handle *fwnode, int index); int (*irq_get)(const struct fwnode_handle *fwnode, unsigned int index); int (*add_links)(struct fwnode_handle *fwnode); }; **Members** ``get`` Get a reference to an fwnode. ``put`` Put a reference to an fwnode. ``device_is_available`` Return true if the device is available. ``device_get_match_data`` Return the device driver match data. ``device_dma_supported`` Return true if DMA is supported. ``device_get_dma_attr`` Return the device DMA attribute. ``property_present`` Return true if a property is present. ``property_read_bool`` Return a boolean property value. ``property_read_int_array`` Read an array of integer properties. Return zero on success, a negative error code otherwise. ``property_read_string_array`` Read an array of string properties. Return zero on success, a negative error code otherwise. ``get_name`` Return the name of an fwnode. ``get_name_prefix`` Get a prefix for a node (for printing purposes). ``get_parent`` Return the parent of an fwnode. ``get_next_child_node`` Return the next child node in an iteration. ``get_named_child_node`` Return a child node with a given name. ``get_reference_args`` Return a reference pointed to by a property, with args ``graph_get_next_endpoint`` Return an endpoint node in an iteration. ``graph_get_remote_endpoint`` Return the remote endpoint node of a local endpoint node. ``graph_get_port_parent`` Return the parent node of a port node. ``graph_parse_endpoint`` Parse endpoint for port and endpoint id. ``iomap`` Map the I/O memory of a given index for a fwnode. ``irq_get`` Get the IRQ of a given index for a fwnode. ``add_links`` Create fwnode links to all the suppliers of the fwnode. Return zero on success, a negative error code otherwise.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubh:}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKwhjkubj)}(hXXstruct fwnode_operations { struct fwnode_handle *(*get)(struct fwnode_handle *fwnode); void (*put)(struct fwnode_handle *fwnode); bool (*device_is_available)(const struct fwnode_handle *fwnode); const void *(*device_get_match_data)(const struct fwnode_handle *fwnode, const struct device *dev); bool (*device_dma_supported)(const struct fwnode_handle *fwnode); enum dev_dma_attr (*device_get_dma_attr)(const struct fwnode_handle *fwnode); bool (*property_present)(const struct fwnode_handle *fwnode, const char *propname); bool (*property_read_bool)(const struct fwnode_handle *fwnode, const char *propname); int (*property_read_int_array)(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval); int (*property_read_string_array)(const struct fwnode_handle *fwnode_handle, const char *propname, const char **val, size_t nval); const char *(*get_name)(const struct fwnode_handle *fwnode); const char *(*get_name_prefix)(const struct fwnode_handle *fwnode); struct fwnode_handle *(*get_parent)(const struct fwnode_handle *fwnode); struct fwnode_handle * (*get_next_child_node)(const struct fwnode_handle *fwnode, struct fwnode_handle *child); struct fwnode_handle * (*get_named_child_node)(const struct fwnode_handle *fwnode, const char *name); int (*get_reference_args)(const struct fwnode_handle *fwnode, const char *prop, const char *nargs_prop, unsigned int nargs, unsigned int index, struct fwnode_reference_args *args); struct fwnode_handle * (*graph_get_next_endpoint)(const struct fwnode_handle *fwnode, struct fwnode_handle *prev); struct fwnode_handle * (*graph_get_remote_endpoint)(const struct fwnode_handle *fwnode); struct fwnode_handle * (*graph_get_port_parent)(struct fwnode_handle *fwnode); int (*graph_parse_endpoint)(const struct fwnode_handle *fwnode, struct fwnode_endpoint *endpoint); void __iomem *(*iomap)(struct fwnode_handle *fwnode, int index); int (*irq_get)(const struct fwnode_handle *fwnode, unsigned int index); int (*add_links)(struct fwnode_handle *fwnode); };h]hXXstruct fwnode_operations { struct fwnode_handle *(*get)(struct fwnode_handle *fwnode); void (*put)(struct fwnode_handle *fwnode); bool (*device_is_available)(const struct fwnode_handle *fwnode); const void *(*device_get_match_data)(const struct fwnode_handle *fwnode, const struct device *dev); bool (*device_dma_supported)(const struct fwnode_handle *fwnode); enum dev_dma_attr (*device_get_dma_attr)(const struct fwnode_handle *fwnode); bool (*property_present)(const struct fwnode_handle *fwnode, const char *propname); bool (*property_read_bool)(const struct fwnode_handle *fwnode, const char *propname); int (*property_read_int_array)(const struct fwnode_handle *fwnode, const char *propname, unsigned int elem_size, void *val, size_t nval); int (*property_read_string_array)(const struct fwnode_handle *fwnode_handle, const char *propname, const char **val, size_t nval); const char *(*get_name)(const struct fwnode_handle *fwnode); const char *(*get_name_prefix)(const struct fwnode_handle *fwnode); struct fwnode_handle *(*get_parent)(const struct fwnode_handle *fwnode); struct fwnode_handle * (*get_next_child_node)(const struct fwnode_handle *fwnode, struct fwnode_handle *child); struct fwnode_handle * (*get_named_child_node)(const struct fwnode_handle *fwnode, const char *name); int (*get_reference_args)(const struct fwnode_handle *fwnode, const char *prop, const char *nargs_prop, unsigned int nargs, unsigned int index, struct fwnode_reference_args *args); struct fwnode_handle * (*graph_get_next_endpoint)(const struct fwnode_handle *fwnode, struct fwnode_handle *prev); struct fwnode_handle * (*graph_get_remote_endpoint)(const struct fwnode_handle *fwnode); struct fwnode_handle * (*graph_get_port_parent)(struct fwnode_handle *fwnode); int (*graph_parse_endpoint)(const struct fwnode_handle *fwnode, struct fwnode_endpoint *endpoint); void __iomem *(*iomap)(struct fwnode_handle *fwnode, int index); int (*irq_get)(const struct fwnode_handle *fwnode, unsigned int index); int (*add_links)(struct fwnode_handle *fwnode); };}hjksbah}(h]h ]h"]h$]h&]j?j@uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKyhjkubj[)}(h **Members**h]j)}(hjkh]hMembers}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjkubj)}(hhh](j)}(h&``get`` Get a reference to an fwnode. h](j)}(h``get``h]j)}(hjkh]hget}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKuhjkubj)}(hhh]j[)}(hGet a reference to an fwnode.h]hGet a reference to an fwnode.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj lhKuhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhj lhKuhjkubj)}(h&``put`` Put a reference to an fwnode. h](j)}(h``put``h]j)}(hj1lh]hput}(hj3lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/lubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKvhj+lubj)}(hhh]j[)}(hPut a reference to an fwnode.h]hPut a reference to an fwnode.}(hjJlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFlhKvhjGlubah}(h]h ]h"]h$]h&]uh1jhj+lubeh}(h]h ]h"]h$]h&]uh1jhjFlhKvhjkubj)}(h@``device_is_available`` Return true if the device is available. h](j)}(h``device_is_available``h]j)}(hjjlh]hdevice_is_available}(hjllhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhlubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKwhjdlubj)}(hhh]j[)}(h'Return true if the device is available.h]h'Return true if the device is available.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhKwhjlubah}(h]h ]h"]h$]h&]uh1jhjdlubeh}(h]h ]h"]h$]h&]uh1jhjlhKwhjkubj)}(h?``device_get_match_data`` Return the device driver match data. h](j)}(h``device_get_match_data``h]j)}(hjlh]hdevice_get_match_data}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKxhjlubj)}(hhh]j[)}(h$Return the device driver match data.h]h$Return the device driver match data.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhKxhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKxhjkubj)}(h:``device_dma_supported`` Return true if DMA is supported. h](j)}(h``device_dma_supported``h]j)}(hjlh]hdevice_dma_supported}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKyhjlubj)}(hhh]j[)}(h Return true if DMA is supported.h]h Return true if DMA is supported.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhKyhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKyhjkubj)}(h9``device_get_dma_attr`` Return the device DMA attribute. h](j)}(h``device_get_dma_attr``h]j)}(hjmh]hdevice_get_dma_attr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKzhjmubj)}(hhh]j[)}(h Return the device DMA attribute.h]h Return the device DMA attribute.}(hj.mhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj*mhKzhj+mubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhj*mhKzhjkubj)}(h;``property_present`` Return true if a property is present. h](j)}(h``property_present``h]j)}(hjNmh]hproperty_present}(hjPmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLmubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhK{hjHmubj)}(hhh]j[)}(h%Return true if a property is present.h]h%Return true if a property is present.}(hjgmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjcmhK{hjdmubah}(h]h ]h"]h$]h&]uh1jhjHmubeh}(h]h ]h"]h$]h&]uh1jhjcmhK{hjkubj)}(h8``property_read_bool`` Return a boolean property value. h](j)}(h``property_read_bool``h]j)}(hjmh]hproperty_read_bool}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhK|hjmubj)}(hhh]j[)}(h Return a boolean property value.h]h Return a boolean property value.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmhK|hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhK|hjkubj)}(hz``property_read_int_array`` Read an array of integer properties. Return zero on success, a negative error code otherwise. h](j)}(h``property_read_int_array``h]j)}(hjmh]hproperty_read_int_array}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhK~hjmubj)}(hhh]j[)}(h]Read an array of integer properties. Return zero on success, a negative error code otherwise.h]h]Read an array of integer properties. Return zero on success, a negative error code otherwise.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhK}hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhK~hjkubj)}(h|``property_read_string_array`` Read an array of string properties. Return zero on success, a negative error code otherwise. h](j)}(h``property_read_string_array``h]j)}(hjmh]hproperty_read_string_array}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjmubj)}(hhh]j[)}(h\Read an array of string properties. Return zero on success, a negative error code otherwise.h]h\Read an array of string properties. Return zero on success, a negative error code otherwise.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjnubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjkubj)}(h+``get_name`` Return the name of an fwnode. h](j)}(h ``get_name``h]j)}(hj4nh]hget_name}(hj6nhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2nubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhj.nubj)}(hhh]j[)}(hReturn the name of an fwnode.h]hReturn the name of an fwnode.}(hjMnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjInhKhjJnubah}(h]h ]h"]h$]h&]uh1jhj.nubeh}(h]h ]h"]h$]h&]uh1jhjInhKhjkubj)}(hE``get_name_prefix`` Get a prefix for a node (for printing purposes). h](j)}(h``get_name_prefix``h]j)}(hjmnh]hget_name_prefix}(hjonhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjknubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjgnubj)}(hhh]j[)}(h0Get a prefix for a node (for printing purposes).h]h0Get a prefix for a node (for printing purposes).}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jhjgnubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjkubj)}(h/``get_parent`` Return the parent of an fwnode. h](j)}(h``get_parent``h]j)}(hjnh]h get_parent}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjnubj)}(hhh]j[)}(hReturn the parent of an fwnode.h]hReturn the parent of an fwnode.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjkubj)}(hD``get_next_child_node`` Return the next child node in an iteration. h](j)}(h``get_next_child_node``h]j)}(hjnh]hget_next_child_node}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjnubj)}(hhh]j[)}(h+Return the next child node in an iteration.h]h+Return the next child node in an iteration.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhKhjnubah}(h]h ]h"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]uh1jhjnhKhjkubj)}(h@``get_named_child_node`` Return a child node with a given name. h](j)}(h``get_named_child_node``h]j)}(hjoh]hget_named_child_node}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjoubj)}(hhh]j[)}(h&Return a child node with a given name.h]h&Return a child node with a given name.}(hj1ohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-ohKhj.oubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhj-ohKhjkubj)}(hN``get_reference_args`` Return a reference pointed to by a property, with args h](j)}(h``get_reference_args``h]j)}(hjQoh]hget_reference_args}(hjSohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOoubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjKoubj)}(hhh]j[)}(h6Return a reference pointed to by a property, with argsh]h6Return a reference pointed to by a property, with args}(hjjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfohKhjgoubah}(h]h ]h"]h$]h&]uh1jhjKoubeh}(h]h ]h"]h$]h&]uh1jhjfohKhjkubj)}(hE``graph_get_next_endpoint`` Return an endpoint node in an iteration. h](j)}(h``graph_get_next_endpoint``h]j)}(hjoh]hgraph_get_next_endpoint}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjoubj)}(hhh]j[)}(h(Return an endpoint node in an iteration.h]h(Return an endpoint node in an iteration.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhjkubj)}(hX``graph_get_remote_endpoint`` Return the remote endpoint node of a local endpoint node. h](j)}(h``graph_get_remote_endpoint``h]j)}(hjoh]hgraph_get_remote_endpoint}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjoubj)}(hhh]j[)}(h9Return the remote endpoint node of a local endpoint node.h]h9Return the remote endpoint node of a local endpoint node.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhjkubj)}(hA``graph_get_port_parent`` Return the parent node of a port node. h](j)}(h``graph_get_port_parent``h]j)}(hjoh]hgraph_get_port_parent}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjoubj)}(hhh]j[)}(h&Return the parent node of a port node.h]h&Return the parent node of a port node.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphKhjpubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjphKhjkubj)}(hB``graph_parse_endpoint`` Parse endpoint for port and endpoint id. h](j)}(h``graph_parse_endpoint``h]j)}(hj6ph]hgraph_parse_endpoint}(hj8phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4pubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhj0pubj)}(hhh]j[)}(h(Parse endpoint for port and endpoint id.h]h(Parse endpoint for port and endpoint id.}(hjOphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKphKhjLpubah}(h]h ]h"]h$]h&]uh1jhj0pubeh}(h]h ]h"]h$]h&]uh1jhjKphKhjkubj)}(h<``iomap`` Map the I/O memory of a given index for a fwnode. h](j)}(h ``iomap``h]j)}(hjoph]hiomap}(hjqphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmpubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjipubj)}(hhh]j[)}(h1Map the I/O memory of a given index for a fwnode.h]h1Map the I/O memory of a given index for a fwnode.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphKhjpubah}(h]h ]h"]h$]h&]uh1jhjipubeh}(h]h ]h"]h$]h&]uh1jhjphKhjkubj)}(h7``irq_get`` Get the IRQ of a given index for a fwnode. h](j)}(h ``irq_get``h]j)}(hjph]hirq_get}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjpubj)}(hhh]j[)}(h*Get the IRQ of a given index for a fwnode.h]h*Get the IRQ of a given index for a fwnode.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphKhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphKhjkubj)}(h~``add_links`` Create fwnode links to all the suppliers of the fwnode. Return zero on success, a negative error code otherwise.h](j)}(h ``add_links``h]j)}(hjph]h add_links}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:22: ./include/linux/fwnode.hhKhjpubj)}(hhh]j[)}(hpCreate fwnode links to all the suppliers of the fwnode. Return zero on success, a negative error code otherwise.h]hpCreate fwnode links to all the suppliers of the fwnode. Return zero on success, a negative error code otherwise.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphKhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphKhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(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,qhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)qhhhhhKubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_init (C function) c.driver_inithNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hvoid driver_init (void)h]h)}(hvoid driver_init(void)h](j7)}(hvoidh]hvoid}(hjSqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjOqhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:27: ./drivers/base/init.chKubj)}(h h]h }(hjbqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOqhhhjaqhKubj")}(h driver_inith]j()}(h driver_inith]h driver_init}(hjtqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjpqubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjOqhhhjaqhKubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjqubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjqubah}(h]h ]h"]h$]h&]j?j@uh1j7hjOqhhhjaqhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjKqhhhjaqhKubah}(h]jFqah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjaqhKhjHqhhubjV)}(hhh]j[)}(hinitialize driver model.h]hinitialize driver model.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:27: ./drivers/base/init.chKhjqhhubah}(h]h ]h"]h$]h&]uh1jUhjHqhhhjaqhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjqj{jqj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:27: ./drivers/base/init.chKhjqubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjqh]hvoid}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:27: ./drivers/base/init.chKhjqubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjrhKhjrubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjqubah}(h]h ]h"]h$]h&]uh1jhjqubj[)}(h**Description**h]j)}(hj6rh]h Description}(hj8rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4rubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:27: ./drivers/base/init.chKhjqubj[)}(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.}(hjLrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:27: ./drivers/base/init.chKhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'driver_find_device_by_name (C function)c.driver_find_device_by_namehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h^struct device * driver_find_device_by_name (const struct device_driver *drv, const char *name)h]h)}(h\struct device *driver_find_device_by_name(const struct device_driver *drv, const char *name)h](h)}(hjh]hstruct}(hj{rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwrhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwrhhhjrhKubh)}(hhh]j()}(hdeviceh]hdevice}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjrmodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_namesbc.driver_find_device_by_nameasbuh1hhjwrhhhjrhKubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwrhhhjrhKubjW8)}(hjZ8h]h*}(hjrhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjwrhhhjrhKubj")}(hdriver_find_device_by_nameh]j()}(hjrh]hdriver_find_device_by_name}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjwrhhhjrhKubj7)}(h3(const struct device_driver *drv, const char *name)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubh)}(hhh]j()}(h device_driverh]h device_driver}(hj.shhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj+subah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj0smodnameN classnameNj:8j=8)}j@8]jrc.driver_find_device_by_nameasbuh1hhjrubj)}(h h]h }(hjLshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjW8)}(hjZ8h]h*}(hjZshhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjrubj()}(hdrvh]hdrv}(hjgshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjrubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjrubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|subj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|subj7)}(hcharh]hchar}(hjshhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj|subj)}(h h]h }(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|subjW8)}(hjZ8h]h*}(hjshhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj|subj()}(hnameh]hname}(hjshhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj|subeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjrubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjwrhhhjrhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjsrhhhjrhKubah}(h]jnrah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjrhKhjprhhubjV)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKhjshhubah}(h]h ]h"]h$]h&]uh1jUhjprhhhjrhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjtj{jtj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKhj tubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hj/th]hconst struct device_driver *drv}(hj1thhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-tubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKhj)tubj)}(hhh]j[)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjHthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjDthKhjEtubah}(h]h ]h"]h$]h&]uh1jhj)tubeh}(h]h ]h"]h$]h&]uh1jhjDthKhj&tubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjhth]hconst char *name}(hjjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjftubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKhjbtubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKhj~tubah}(h]h ]h"]h$]h&]uh1jhjbtubeh}(h]h ]h"]h$]h&]uh1jhj}thKhj&tubeh}(h]h ]h"]h$]h&]uh1jhj tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*driver_find_device_by_of_node (C function)c.driver_find_device_by_of_nodehNtauh1hhj)qhhhNhNubh)}(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}(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:30: ./include/linux/device/driver.hhKubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthKubh)}(hhh]j()}(hdeviceh]hdevice}(hjthhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjtmodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_device_by_of_nodesbc.driver_find_device_by_of_nodeasbuh1hhjthhhjthKubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjthKubjW8)}(hjZ8h]h*}(hjuhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjthhhjthKubj")}(hdriver_find_device_by_of_nodeh]j()}(hjth]hdriver_find_device_by_of_node}(hj!uhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjthhhjthKubj7)}(h?(const struct device_driver *drv, const struct device_node *np)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjubj)}(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 reftargetjԄmodnameN classnameNj:8j=8)}j@8]jC8)}j68driver_find_devicesbc.driver_find_deviceasbuh1hhjhhhjhK>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK>ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhK>ubj")}(hdriver_find_deviceh]j()}(hjh]hdriver_find_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhK>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}(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]j()}(h device_driverh]h device_driver}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjhmodnameN classnameNj:8j=8)}j@8]jc.driver_find_deviceasbuh1hhj)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%ubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjŅhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(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.driver_find_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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 }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj7)}(hvoidh]hvoid}(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()}(hdatah]hdata}(hjlhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.driver_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@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[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjކhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chK>hjۆhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhK>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:33: ./drivers/base/driver.chKBhjubj)}(hhh](j)}(h8``const struct device_driver *drv`` The device's driver h](j)}(h#``const struct device_driver *drv``h]j)}(hjh]hconst struct device_driver *drv}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chK?hjubj)}(hhh]j[)}(hThe device's driverh]hThe device’s driver}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4hK?hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hK?hjubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjXh]hstruct device *start}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chK@hjRubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmhK@hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhK@hjubj)}(h4``const void *data`` Data to pass to 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:33: ./drivers/base/driver.chKAhjubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubj)}(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&]uh1jhjȇubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKBhjćubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj߇hKBhjubah}(h]h ]h"]h$]h&]uh1jhjćubeh}(h]h ]h"]h$]h&]uh1jhj߇hKBhjubeh}(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:33: ./drivers/base/driver.chKDhjubj[)}(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 }(hjhhhNhNubj)}(h **match**h]hmatch}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKChjubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_create_file (C function)c.driver_create_filehNtauh1hhj)qhhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjghhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKdubj)}(h h]h }(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjyhKdubj")}(hdriver_create_fileh]j()}(hdriver_create_fileh]hdriver_create_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhjyhKdubj7)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjÈhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjЈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjވubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.driver_create_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h#const struct driver_attribute *attrh](h)}(hj8h]hconst}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hjh]hstruct}(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjpmodnameN classnameNj:8j=8)}j@8]jc.driver_create_fileasbuh1hhj1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj1ubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjghhhjyhKdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjchhhjyhKdubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjyhKdhj`hhubjV)}(hhh]j[)}(hcreate sysfs file for driver.h]hcreate sysfs file for driver.}(hjщhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKdhjΉhhubah}(h]h ]h"]h$]h&]uh1jUhj`hhhjyhKdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``const struct device_driver *drv`` driver. ``const struct driver_attribute *attr`` driver 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:33: ./drivers/base/driver.chKhhjubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjh]hconst struct device_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKehj ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'hKehj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKehj ubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjKh]h#const struct driver_attribute *attr}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKghjEubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKfhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKghj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_remove_file (C function)c.driver_remove_filehNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKvubj")}(hdriver_remove_fileh]j()}(hdriver_remove_fileh]hdriver_remove_file}(hjƊhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjŠubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKvubj7)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjފubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjފubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjފubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjފubh)}(hhh]j()}(h 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]jC8)}j68jȊsbc.driver_remove_fileasbuh1hhjފubj)}(h h]h }(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjފubjW8)}(hjZ8h]h*}(hjIhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjފubj()}(hdrvh]hdrv}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjފubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjڊubj7)}(h#const struct driver_attribute *attrh](h)}(hj8h]hconst}(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubh)}(hhh]j()}(hdriver_attributeh]hdriver_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j7c.driver_remove_fileasbuh1hhjkubj)}(h h]h }(hjƋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjW8)}(hjZ8h]h*}(hjԋhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjkubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjڊubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKvubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKvhjhhubjV)}(hhh]j[)}(hremove sysfs file for driver.h]hremove sysfs file for driver.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKvhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj#j{j#j|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``const struct device_driver *drv`` driver. ``const struct driver_attribute *attr`` driver attribute descriptor.h](j[)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKzhj'ubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjLh]hconst struct device_driver *drv}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKwhjFubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahKwhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahKwhjCubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjh]h#const struct driver_attribute *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKyhjubj)}(hhh]j[)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKxhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKyhjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_register (C function)c.driver_registerhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h/int driver_register (struct device_driver *drv)h]h)}(h.int driver_register(struct device_driver *drv)h](j7)}(hinth]hint}(hjߌhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjیhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjیhhhjhKubj")}(hdriver_registerh]j()}(hdriver_registerh]hdriver_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjیhhhjhKubj7)}(h(struct device_driver *drv)h]j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_driverh]h device_driver}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj<modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.driver_registerasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvh]hdrv}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjیhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj׌hhhjhKubah}(h]jҌah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjԌhhubjV)}(hhh]j[)}(hregister driver with bush]hregister driver with bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjԌhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjh]h Parameters}(hjÍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhjubj)}(hhh]j)}(h1``struct device_driver *drv`` driver to register h](j)}(h``struct device_driver *drv``h]j)}(hjh]hstruct device_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjލubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhjڍubj)}(hhh]j[)}(hdriver to registerh]hdriver to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjڍubeh}(h]h ]h"]h$]h&]uh1jhjhKhj׍ubah}(h]h ]h"]h$]h&]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:33: ./drivers/base/driver.chKhjubj[)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_unregister (C function)c.driver_unregisterhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h2void driver_unregister (struct device_driver *drv)h]h)}(h1void driver_unregister(struct device_driver *drv)h](j7)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj\hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\hhhjnhKubj")}(hdriver_unregisterh]j()}(hdriver_unregisterh]hdriver_unregister}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj\hhhjnhKubj7)}(h(struct device_driver *drv)h]j7)}(hstruct device_driver *drvh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(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]jC8)}j68jsbc.driver_unregisterasbuh1hhjubj)}(h h]h }(hjێhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj\hhhjnhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjXhhhjnhKubah}(h]jSah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjnhKhjUhhubjV)}(hhh]j[)}(hremove driver from system.h]hremove driver from system.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjUhhhjnhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj8j{j8j|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:33: ./drivers/base/driver.chKhj<ubj)}(hhh]j)}(h&``struct device_driver *drv`` driver. h](j)}(h``struct device_driver *drv``h]j)}(hjah]hstruct device_driver *drv}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhj[ubj)}(hhh]j[)}(hdriver.h]hdriver.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjXubah}(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:33: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:33: ./drivers/base/driver.chKhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%device_link_wait_removal (C function)c.device_link_wait_removalhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h$void device_link_wait_removal (void)h]h)}(h#void device_link_wait_removal(void)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjݏhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݏhhhjhMlubj")}(hdevice_link_wait_removalh]j()}(hdevice_link_wait_removalh]hdevice_link_wait_removal}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjݏhhhjhMlubj7)}(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@uh1j7hjݏhhhjhMlubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjُhhhjhMlubah}(h]jԏah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMlhj֏hhubjV)}(hhh]j[)}(h2Wait for ongoing devlink removal jobs to terminateh]h2Wait for ongoing devlink removal jobs to terminate}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMlhjEhhubah}(h]h ]h"]h$]h&]uh1jUhj֏hhhjhMlubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj`j{j`j|j}j~uh1hhhhj)qhNhNubj)}(h'**Parameters** ``void`` no argumentsh](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:36: ./drivers/base/core.chMphjdubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMrhjubj)}(hhh]j[)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link_add (C function)c.device_link_addhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjߐhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߐhhhjhMubh)}(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)}j68device_link_addsbc.device_link_addasbuh1hhjߐhhhjhMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߐhhhjhMubjW8)}(hjZ8h]h*}(hj1hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjߐhhhjhMubj")}(hdevice_link_addh]j()}(hj h]hdevice_link_add}(hjBhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjߐhhhjhMubj7)}(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&]uh1hhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j()}(hdeviceh]hdevice}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj}modnameN classnameNj:8j=8)}j@8]jc.device_link_addasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjYubj()}(hconsumerh]hconsumer}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjUubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_link_addasbuh1hhjɑubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɑubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(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@uh1j7hjUubj7)}(h u32 flagsh](h)}(hhh]j()}(hu32h]hu32}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjBmodnameN classnameNj:8j=8)}j@8]jc.device_link_addasbuh1hhj9ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj()}(hflagsh]hflags}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjUubeh}(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"Create a link between two devices.h]h"Create a link between two devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjؐhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX **Parameters** ``struct device *consumer`` Consumer end of the link. ``struct device *supplier`` Supplier end of the link. ``u32 flags`` Link flags. **Return** On success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned. **Description** The caller is responsible for the proper synchronization of the link creation with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the runtime PM framework to take the link into account. Second, if the DL_FLAG_RPM_ACTIVE flag is set in addition to it, the supplier devices will be forced into the active meta state and reference-counted upon the creation of the link. If DL_FLAG_PM_RUNTIME is not set, DL_FLAG_RPM_ACTIVE will be ignored. If DL_FLAG_STATELESS is set in **flags**, the caller of this function is expected to release the link returned by it directly with the help of either device_link_del() or device_link_remove(). If that flag is not set, however, the caller of this function is handing the management of the link over to the driver core entirely and its return value can only be used to check whether or not the link is present. In that case, the DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER device link flags can be used to indicate to the driver core when the link can be safely deleted. Namely, setting one of them in **flags** indicates to the driver core that the link is not going to be used (by the given caller of this function) after unbinding the consumer or supplier driver, respectively, from its device, so the link can be deleted at that point. If none of them is set, the link will be maintained until one of the devices pointed to by it (either the consumer or the supplier) is unregistered. Also, if DL_FLAG_STATELESS, DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER are not set in **flags** (that is, a persistent managed device link is being added), the DL_FLAG_AUTOPROBE_CONSUMER flag can be used to request the driver core to automatically probe for a consumer driver after successfully binding a driver to the supplier device. The combination of DL_FLAG_STATELESS and one of DL_FLAG_AUTOREMOVE_CONSUMER, DL_FLAG_AUTOREMOVE_SUPPLIER, or DL_FLAG_AUTOPROBE_CONSUMER set in **flags** at the same time is invalid and will cause NULL to be returned upfront. However, if a device link between the given **consumer** and **supplier** pair exists already when this function is called for them, the existing link will be returned regardless of its current type and status (the link's flags may be modified then). The caller of this function is then expected to treat the link as though it has just been created, so (in particular) if DL_FLAG_STATELESS was passed in **flags**, the link needs to be released explicitly when not needed any more (as stated above). A side effect of the link creation is re-ordering of dpm_list and the devices_kset list by moving the consumer device and all devices depending on it to the ends of these lists (that does not happen to devices that have not been registered when this function is called). The supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh](j)}(h6``struct device *consumer`` Consumer end of the link. h](j)}(h``struct device *consumer``h]j)}(hjגh]hstruct device *consumer}(hjْhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjՒubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjђubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjђubeh}(h]h ]h"]h$]h&]uh1jhjhMhjΒubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjh]hstruct device *supplier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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)}(hjIh]h u32 flags}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjCubj)}(hhh]j[)}(h Link flags.h]h Link flags.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjΒubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hlOn success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned.h]hlOn success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hXThe caller is responsible for the proper synchronization of the link creation with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the runtime PM framework to take the link into account. Second, if the DL_FLAG_RPM_ACTIVE flag is set in addition to it, the supplier devices will be forced into the active meta state and reference-counted upon the creation of the link. If DL_FLAG_PM_RUNTIME is not set, DL_FLAG_RPM_ACTIVE will be ignored.h]hXThe caller is responsible for the proper synchronization of the link creation with runtime PM. First, setting the DL_FLAG_PM_RUNTIME flag will cause the runtime PM framework to take the link into account. Second, if the DL_FLAG_RPM_ACTIVE flag is set in addition to it, the supplier devices will be forced into the active meta state and reference-counted upon the creation of the link. If DL_FLAG_PM_RUNTIME is not set, DL_FLAG_RPM_ACTIVE will be ignored.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hIf DL_FLAG_STATELESS is set in **flags**, the caller of this function is expected to release the link returned by it directly with the help of either device_link_del() or device_link_remove().h](hIf DL_FLAG_STATELESS is set in }(hjГhhhNhNubj)}(h **flags**h]hflags}(hjؓhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjГubh, the caller of this function is expected to release the link returned by it directly with the help of either device_link_del() or device_link_remove().}(hjГhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hX,If that flag is not set, however, the caller of this function is handing the management of the link over to the driver core entirely and its return value can only be used to check whether or not the link is present. In that case, the DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER device link flags can be used to indicate to the driver core when the link can be safely deleted. Namely, setting one of them in **flags** indicates to the driver core that the link is not going to be used (by the given caller of this function) after unbinding the consumer or supplier driver, respectively, from its device, so the link can be deleted at that point. If none of them is set, the link will be maintained until one of the devices pointed to by it (either the consumer or the supplier) is unregistered.h](hXIf that flag is not set, however, the caller of this function is handing the management of the link over to the driver core entirely and its return value can only be used to check whether or not the link is present. In that case, the DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER device link flags can be used to indicate to the driver core when the link can be safely deleted. Namely, setting one of them in }(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:36: ./drivers/base/core.chMhjubj[)}(hX`Also, if DL_FLAG_STATELESS, DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER are not set in **flags** (that is, a persistent managed device link is being added), the DL_FLAG_AUTOPROBE_CONSUMER flag can be used to request the driver core to automatically probe for a consumer driver after successfully binding a driver to the supplier device.h](hgAlso, if DL_FLAG_STATELESS, DL_FLAG_AUTOREMOVE_CONSUMER and DL_FLAG_AUTOREMOVE_SUPPLIER are not set in }(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:36: ./drivers/base/core.chM hjubj[)}(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 }(hj3hhhNhNubj)}(h **flags**h]hflags}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubhu at the same time is invalid and will cause NULL to be returned upfront. However, if a device link between the given }(hj3hhhNhNubj)}(h **consumer**h]hconsumer}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubh and }(hj3hhhNhNubj)}(h **supplier**h]hsupplier}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubhXN 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 }(hj3hhhNhNubj)}(h **flags**h]hflags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubhV, the link needs to be released explicitly when not needed any more (as stated above).}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hXA side effect of the link creation is re-ordering of dpm_list and the devices_kset list by moving the consumer device and all devices depending on it to the ends of these lists (that does not happen to devices that have not been registered when this function is called).h]hXA side effect of the link creation is re-ordering of dpm_list and the devices_kset list by moving the consumer device and all devices depending on it to the ends of these lists (that does not happen to devices that have not been registered when this function is called).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hThe supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.h]hThe supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM!hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link_del (C function)c.device_link_delhNtauh1hhj)qhhhNhNubh)}(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}(hjȔhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjĔhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjהhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĔhhhj֔hMubj")}(hdevice_link_delh]j()}(hdevice_link_delh]hdevice_link_del}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjĔhhhj֔hMubj7)}(h(struct device_link *link)h]j7)}(hstruct device_link *linkh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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)}j68jsbc.device_link_delasbuh1hhjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjQhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hlinkh]hlink}(hj^hhhNhNubah}(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@jGuh1hjHjIhjhhhj֔hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj֔hMhjhhubjV)}(hhh]j[)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj֔hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hXt**Parameters** ``struct device_link *link`` Device link to delete. **Description** The caller must ensure proper synchronization of this function with runtime PM. If the link was added multiple times, it needs to be deleted as often. Care is required for hotplugged devices: Their links are purged on removal and calling device_link_del() is then no longer allowed.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjubj)}(hhh]j)}(h4``struct device_link *link`` Device link to delete. h](j)}(h``struct device_link *link``h]j)}(hjɕh]hstruct device_link *link}(hj˕hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǕubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjÕubj)}(hhh]j[)}(hDevice link to delete.h]hDevice link to delete.}(hjhhhNhNubah}(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)}(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:36: ./drivers/base/core.chM hjubj[)}(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:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_link_remove (C function)c.device_link_removehNtauh1hhj)qhhhNhNubh)}(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}(hjIhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjEhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjWhMubj")}(hdevice_link_removeh]j()}(hdevice_link_removeh]hdevice_link_remove}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjEhhhjWhMubj7)}(h)(void *consumer, struct device *supplier)h](j7)}(hvoid *consumerh](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()}(hconsumerh]hconsumer}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jlsbc.device_link_removeasbuh1hhjĖubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĖubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(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~ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjEhhhjWhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjAhhhjWhMubah}(h]j<ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjWhMhj>hhubjV)}(hhh]j[)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jUhj>hhhjWhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjcj{jcj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chMhjgubj)}(hhh](j)}(h-``void *consumer`` Consumer end of the link. h](j)}(h``void *consumer``h]j)}(hjh]hvoid *consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hConsumer end of the link.h]hConsumer end of the link.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjŗh]hstruct device *supplier}(hjǗhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj×ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjڗhMhjubeh}(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:36: ./drivers/base/core.chMhjgubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_driver_string (C function)c.dev_driver_stringhNtauh1hhj)qhhhNhNubh)}(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}(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjRhM ubj7)}(hcharh]hchar}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjAhhhjRhM ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAhhhjRhM ubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjAhhhjRhM ubj")}(hdev_driver_stringh]j()}(hdev_driver_stringh]hdev_driver_string}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjAhhhjRhM ubj7)}(h(const struct device *dev)h]j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(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()}(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_driver_stringasbuh1hhjubj)}(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@uh1j7hjAhhhjRhM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=hhhjRhM ubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjRhM hj:hhubjV)}(hhh]j[)}(h1Return a device's driver name, if at all possibleh]h3Return a device’s driver name, if at all possible}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjEhhubah}(h]h ]h"]h$]h&]uh1jUhj:hhhjRhM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj`j{j`j|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chM hjdubj)}(hhh]j)}(h>``const struct device *dev`` struct device to get the name of h](j)}(h``const struct device *dev``h]j)}(hjh]hconst struct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjubj)}(hhh]j[)}(h struct device to get the name ofh]h struct device to get the name of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjdubj[)}(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:36: ./drivers/base/core.chM hjdubj[)}(hWill return the device's driver's name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.h]hWill return the device’s driver’s name if it is bound to a device. If the device is not bound to a driver, it will return the name of the bus it is attached to. If it is not attached to a bus either, an empty string will be returned.}(hjڙhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"devm_device_add_group (C function)c.devm_device_add_grouphNtauh1hhj)qhhhNhNubh)}(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&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMy ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMy ubj")}(hdevm_device_add_grouph]j()}(hdevm_device_add_grouph]hdevm_device_add_group}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj&ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMy ubj7)}(h7(struct device *dev, const struct attribute_group *grp)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j()}(hdeviceh]hdevice}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjfmodnameN classnameNj:8j=8)}j@8]jC8)}j68j,sbc.devm_device_add_groupasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjBubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj>ubj7)}(h!const struct attribute_group *grph](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjŚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjӚhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.devm_device_add_groupasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hgrph]hgrp}(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@uh1j7hjhhhjhMy ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMy ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMy hjhhubjV)}(hhh]j[)}(h0given a device, create a managed attribute grouph]h0given a device, create a managed attribute group}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMy hjQhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMy ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjlj{jlj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjvh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM} hjpubj)}(hhh](j)}(h:``struct device *dev`` The device to create the group for h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMz hjubj)}(hhh]j[)}(h"The device to create the group forh]h"The device to create the group for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMz hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMz hjubj)}(hD``const struct attribute_group *grp`` The attribute group to create h](j)}(h%``const struct attribute_group *grp``h]j)}(hjΛh]h!const struct attribute_group *grp}(hjЛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj̛ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM{ hjțubj)}(hhh]j[)}(hThe attribute group to createh]hThe attribute group to create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM{ hjubah}(h]h ]h"]h$]h&]uh1jhjțubeh}(h]h ]h"]h$]h&]uh1jhjhM{ hjubeh}(h]h ]h"]h$]h&]uh1jhjpubj[)}(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:36: ./drivers/base/core.chM} hjpubj[)}(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:36: ./drivers/base/core.chM| hjpubj[)}(h.Returns 0 on success or error code on failure.h]h.Returns 0 on success or error code on failure.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_create_file (C function)c.device_create_filehNtauh1hhj)qhhhNhNubh)}(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&]uh1j7hjYhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM* ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYhhhjkhM* ubj")}(hdevice_create_fileh]j()}(hdevice_create_fileh]hdevice_create_file}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjYhhhjkhM* 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_create_fileasbuh1hhjubj)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjGmodnameN classnameNj:8j=8)}j@8]jԜc.device_create_fileasbuh1hhjubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjqhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hattrh]hattr}(hj~hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjYhhhjkhM* ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjUhhhjkhM* ubah}(h]jPah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjkhM* hjRhhubjV)}(hhh]j[)}(h'create sysfs attribute file for device.h]h'create sysfs attribute file for device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM* hjhhubah}(h]h ]h"]h$]h&]uh1jUhjRhhhjkhM* ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor.h](j[)}(h**Parameters**h]j)}(hjʝh]h Parameters}(hj̝hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȝubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM. hjĝubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM+ hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM+ hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM+ hjubj)}(hD``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:36: ./drivers/base/core.chM- 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:36: ./drivers/base/core.chM, hj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hM- hjubeh}(h]h ]h"]h$]h&]uh1jhjĝubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_remove_file (C function)c.device_remove_filehNtauh1hhj)qhhhNhNubh)}(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}(hj|hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjxhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMB ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxhhhjhMB ubj")}(hdevice_remove_fileh]j()}(hdevice_remove_fileh]hdevice_remove_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjxhhhjhMB 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 }(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_remove_fileasbuh1hhjubj)}(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@uh1j7hjubj7)}(h#const struct device_attribute *attrh](h)}(hj8h]hconst}(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjfmodnameN classnameNj:8j=8)}j@8]jc.device_remove_fileasbuh1hhj'ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(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@uh1j7hjxhhhjhMB ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjthhhjhMB ubah}(h]joah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMB hjqhhubjV)}(hhh]j[)}(hremove sysfs attribute file.h]hremove sysfs attribute file.}(hjǟhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMB hjğhhubah}(h]h ]h"]h$]h&]uh1jUhjqhhhjhMB ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjߟj{jߟj|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./drivers/base/core.chMF hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMC hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMC hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMC hjubj)}(hD``const struct device_attribute *attr`` device attribute descriptor.h](j)}(h'``const struct device_attribute *attr``h]j)}(hjAh]h#const struct device_attribute *attr}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chME hj;ubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMD hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhME hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$device_remove_file_self (C function)c.device_remove_file_selfhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMO ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMO ubj")}(hdevice_remove_file_selfh]j()}(hdevice_remove_file_selfh]hdevice_remove_file_self}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMO ubj7)}(h9(struct device *dev, const struct device_attribute *attr)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjנhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӠubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӠubh)}(hhh]j()}(hdeviceh]hdevice}(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_selfasbuh1hhjӠ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}(hj0hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjӠubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjϠubj7)}(h#const struct device_attribute *attrh](h)}(hj8h]hconst}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hjh]hstruct}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubh)}(hhh]j()}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_remove_file_selfasbuh1hhjEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjEubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjϠubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMO ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMO ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMO hjhhubjV)}(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:36: ./drivers/base/core.chMO hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMO ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMS 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:36: ./drivers/base/core.chMP hj ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj;hMP hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMP 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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMQ hjYubj)}(hhh]j[)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjthMQ hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthMQ 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:36: ./drivers/base/core.chMS hjubj[)}(h%See kernfs_remove_self() for details.h]h%See kernfs_remove_self() for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMR hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#device_create_bin_file (C function)c.device_create_bin_filehNtauh1hhj)qhhhNhNubh)}(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}(hjߢhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjۢhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM` ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjۢhhhjhM` ubj")}(hdevice_create_bin_fileh]j()}(hdevice_create_bin_fileh]hdevice_create_bin_file}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjۢhhhjhM` 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 }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj<modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.device_create_bin_fileasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjuhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h const struct bin_attribute *attrh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h bin_attributeh]h bin_attribute}(hjǣhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjģubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjɣmodnameN classnameNj:8j=8)}j@8]jVc.device_create_bin_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjۢhhhjhM` ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjעhhhjhM` ubah}(h]jҢah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM` hjԢhhubjV)}(hhh]j[)}(h.create sysfs binary attribute file for device.h]h.create sysfs binary attribute file for device.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM` hj'hhubah}(h]h ]h"]h$]h&]uh1jUhjԢhhhjhM` ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjBj{jBj|j}j~uh1hhhhj)qhNhNubj)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.h](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:36: ./drivers/base/core.chMd 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:36: ./drivers/base/core.chMa hjeubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMa hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMa hjbubj)}(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:36: ./drivers/base/core.chMc 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:36: ./drivers/base/core.chMb hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMc hjbubeh}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#device_remove_bin_file (C function)c.device_remove_bin_filehNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMo ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMo 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 hMo ubj7)}(h6(struct device *dev, const struct bin_attribute *attr)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubh)}(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)}j68j!sbc.device_remove_bin_fileasbuh1hhj7ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj7ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubj7)}(h const struct bin_attribute *attrh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjȥhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjեhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h bin_attributeh]h bin_attribute}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]juc.device_remove_bin_fileasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hattrh]hattr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj3ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hMo ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hMo ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMo hjhhubjV)}(hhh]j[)}(h"remove sysfs binary attribute fileh]h"remove sysfs binary attribute file}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMo hjFhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hMo ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjaj{jaj|j}j~uh1hhhhj)qhNhNubj)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.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:36: ./drivers/base/core.chMs hjeubj)}(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:36: ./drivers/base/core.chMp hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMp hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMp hjubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hjæh]h const struct bin_attribute *attr}(hjŦhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMr hjubj)}(hhh]j[)}(h#device binary attribute descriptor.h]h#device binary attribute descriptor.}(hjܦhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMq hj٦ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjئhMr hjubeh}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_initialize (C function)c.device_initializehNtauh1hhj)qhhhNhNubh)}(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&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hM ubj")}(hdevice_initializeh]j()}(hdevice_initializeh]hdevice_initialize}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj+hM ubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(hdeviceh]hdevice}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjzmodnameN classnameNj:8j=8)}j@8]jC8)}j68j@sbc.device_initializeasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj+hM ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj+hM ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+hM hjhhubjV)}(hhh]j[)}(hinit device structure.h]hinit device structure.}(hjݧhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjڧhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj+hM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chM hjubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3hM hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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 }(hjohhhNhNubj)}(h**dev**h]hdev}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh\’s fields. In particular, get_device()/put_device() may be used for reference counting of }(hjohhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh after calling this function.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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 }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh must be initialized by the caller to 0, except for those explicitly set to some other value. The simplest approach is to use kzalloc() to allocate the structure containing }(hjhhhNhNubj)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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:36: ./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:36: ./drivers/base/core.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_set_name (C function)c.dev_set_namehNtauh1hhj)qhhhNhNubh)}(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}(hj.hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj*hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj<hM ubj")}(h dev_set_nameh]j()}(h dev_set_nameh]h dev_set_name}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj*hhhj<hM ubj7)}(h*(struct device *dev, const char *fmt, ...)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jQsbc.dev_set_nameasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjgubj()}(hdevh]hdev}(hjĩhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjݩhhhNhNubah}(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}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj٩ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubj7)}(h...h]jW8)}(h...h]h...}(hj:hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj6ubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjcubeh}(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[)}(hset a device nameh]hset a device name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjahhubah}(h]h ]h"]h$]h&]uh1jUhj#hhhj<hM ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj|j{j|j|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct device *dev`` device ``const char *fmt`` format string for the device's name ``...`` variable argumentsh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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:36: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h8``const char *fmt`` format string for the device's name h](j)}(h``const char *fmt``h]j)}(hjުh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܪubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hjتubj)}(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&]uh1jhjتubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h``...`` variable argumentsh](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:36: ./drivers/base/core.chM hjubj)}(hhh]j[)}(hvariable argumentsh]hvariable arguments}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_add (C function) c.device_addhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h#int device_add (struct device *dev)h]h)}(h"int device_add(struct device *dev)h](j7)}(hinth]hint}(hjqhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM!ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmhhhjhM!ubj")}(h device_addh]j()}(h device_addh]h device_add}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjmhhhjhM!ubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj̫hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjɫubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjΫmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsb c.device_addasbuh1hhjubj)}(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@uh1j7hjmhhhjhM!ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjihhhjhM!ubah}(h]jdah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM!hjfhhubjV)}(hhh]j[)}(hadd device to device hierarchy.h]hadd device to device hierarchy.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM!hj.hhubah}(h]h ]h"]h$]h&]uh1jUhjfhhhjhM!ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjIj{jIj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chM%hjMubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjrh]hstruct device *dev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM"hjlubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM"hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjiubah}(h]h ]h"]h$]h&]uh1jhjMubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM$hjMubj[)}(hzThis is part 2 of device_register(), though may be called separately _iff_ device_initialize() has been called separately.h]hzThis is part 2 of device_register(), though may be called separately _iff_ device_initialize() has been called separately.}(hjìhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM#hjMubj[)}(hThis adds **dev** to the kobject hierarchy via kobject_add(), adds it to the global and sibling lists for the device, then adds it to the other relevant subsystems of the driver model.h](h This adds }(hjҬhhhNhNubj)}(h**dev**h]hdev}(hjڬhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjҬubh to the kobject hierarchy via kobject_add(), adds it to the global and sibling lists for the device, then adds it to the other relevant subsystems of the driver model.}(hjҬhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM&hjMubj[)}(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:36: ./drivers/base/core.chM*hjMubj[)}(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:36: ./drivers/base/core.chM1hjMubj[)}(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 }(hj,hhhNhNubj)}(h**dev**h]hdev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubhv after calling this function, even if it returned an error! Always use put_device() to give up your reference instead.}(hj,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM2hjMubj[)}(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 }(hjMhhhNhNubju^)}(h*not*h]hnot}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jt^hjMubh succeeded, use }(hjMhhhNhNubju^)}(h*only*h]honly}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jt^hjMubh* put_device() to drop the reference count.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM6hjMubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_register (C function)c.device_registerhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h(int device_register (struct device *dev)h]h)}(h'int device_register(struct device *dev)h](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_registerh]j()}(hdevice_registerh]hdevice_register}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(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]jC8)}j68jísbc.device_registerasbuh1hhj٭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}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj٭ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjխubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h"register a device with the system.h]h"register a device with the system.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjxj{jxj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct device *dev`` pointer to the device structure **Description** This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy. For more information, see the kerneldoc for device_initialize() and device_add(). **NOTE** _Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj|ubj)}(hhh]j)}(h7``struct device *dev`` pointer to the device structure h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hpointer to the device structureh]hpointer to the device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubj[)}(h**Description**h]j)}(hjܮh]h Description}(hjޮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڮubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj|ubj[)}(hX:This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy.h]hX:This happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj|ubj[)}(hQFor more information, see the kerneldoc for device_initialize() and device_add().h]hQFor more information, see the kerneldoc for device_initialize() and device_add().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj|ubj[)}(h**NOTE**h]j)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hj|ubj[)}(h_Never_ directly free **dev** after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.h](h_Never_ directly free }(hj(hhhNhNubj)}(h**dev**h]hdev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubh after calling this function, even if it returned an error! Always use put_device() to give up the reference initialized in this function instead.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hget_device (C function) c.get_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h/struct device * get_device (struct device *dev)h]h)}(h-struct device *get_device(struct device *dev)h](h)}(hjh]hstruct}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjvhMubh)}(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 get_devicesb c.get_deviceasbuh1hhjehhhjvhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhhjvhMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjehhhjvhMubj")}(h get_deviceh]j()}(hjh]h get_device}(hjȯhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjįubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjehhhjvhMubj7)}(h(struct device *dev)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]j c.get_deviceasbuh1hhj߯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@uh1j7hjۯubah}(h]h ]h"]h$]h&]j?j@uh1j7hjehhhjvhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjahhhjvhMubah}(h]j\ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjvhMhj^hhubjV)}(hhh]j[)}(h%increment reference count for device.h]h%increment reference count for device.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjahhubah}(h]h ]h"]h$]h&]uh1jUhj^hhhjvhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj|j{j|j|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct device *dev`` device. **Description** This simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(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:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjްubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(hThis simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.h]hThis simply forwards the call to kobject_get(), though we do take care to provide for the case that we get a NULL pointer passed in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hput_device (C function) c.put_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h$void put_device (struct device *dev)h]h)}(h#void put_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj%hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj!hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM%ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj3hM%ubj")}(h put_deviceh]j()}(h put_deviceh]h put_device}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj!hhhj3hM%ubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj}ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jHsb c.put_deviceasbuh1hhj^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@uh1j7hjZubah}(h]h ]h"]h$]h&]j?j@uh1j7hj!hhhj3hM%ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj3hM%ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj3hM%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:36: ./drivers/base/core.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj3hM%ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(h<**Parameters** ``struct device *dev`` device in question.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM)hjubj)}(hhh]j)}(h*``struct device *dev`` device in question.h](j)}(h``struct device *dev``h]j)}(hj&h]hstruct device *dev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM+hj ubj)}(hhh]j[)}(hdevice in question.h]hdevice in question.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM&hj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hM+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_del (C function) c.device_delhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h$void device_del (struct device *dev)h]h)}(h#void device_del(struct device *dev)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj|hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMCubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|hhhjhMCubj")}(h device_delh]j()}(h device_delh]h device_del}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj|hhhjhMCubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjʲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj۲hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjزubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjݲmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsb c.device_delasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj hhhNhNubah}(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|hhhjhMCubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjxhhhjhMCubah}(h]jsah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMChjuhhubjV)}(hhh]j[)}(hdelete device from system.h]hdelete device from system.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMChj=hhubah}(h]h ]h"]h$]h&]uh1jUhjuhhhjhMCubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjXj{jXj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chMGhj\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:36: ./drivers/base/core.chMDhj{ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjxubah}(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:36: ./drivers/base/core.chMFhj\ubj[)}(hThis is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy.h]hThis is the first part of the device unregistration sequence. This removes the device from the lists we control from here, has it removed from the other driver model subsystems it was added to in device_add(), and removes it from the kobject hierarchy.}(hjҳhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMEhj\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:36: ./drivers/base/core.chMKhj\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:36: ./drivers/base/core.chMLhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_unregister (C function)c.device_unregisterhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h+void device_unregister (struct device *dev)h]h)}(h*void device_unregister(struct device *dev)h](j7)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj6hMubj")}(hdevice_unregisterh]j()}(hdevice_unregisterh]hdevice_unregister}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$hhhj6hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jKsbc.device_unregisterasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjaubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj$hhhj6hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj6hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj6hMhjhhubjV)}(hhh]j[)}(hunregister device from system.h]hunregister device from system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj6hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j)}(h*``struct device *dev`` device going away. 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:36: ./drivers/base/core.chMhj#ubj)}(hhh]j[)}(hdevice going away.h]hdevice going away.}(hjBhhhNhNubah}(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&]uh1jhjubj[)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj[)}(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.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_for_each_child (C function)c.device_for_each_childhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_for_each_childh]j()}(hdevice_for_each_childh]hdevice_for_each_child}(hjʵhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjƵubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68j̵sbc.device_for_each_childasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj2hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj޵ubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjTubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjTubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(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]j c.device_for_each_childasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjɶhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@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 child iterator.h]hdevice child iterator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./drivers/base/core.chMhjubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hj4h]hstruct device *parent}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj.ubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjmh]h void *data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjgubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(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)}(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:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h&function to be called for each device.h]h&function to be called for each device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj߷ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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}(hjDhhhNhNubah}(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:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*device_for_each_child_reverse (C function)c.device_for_each_child_reversehNtauh1hhj)qhhhNhNubh)}(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}(hj}hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjyhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhhjhMubj")}(hdevice_for_each_child_reverseh]j()}(hdevice_for_each_child_reverseh]hdevice_for_each_child_reverse}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjyhhhjhMubj7)}(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 }(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_for_each_child_reverseasbuh1hhjubj)}(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&]uh1j7hj(ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjW8)}(hjZ8h]h*}(hjHhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj(ubj()}(hdatah]hdata}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hdevice_iter_t fnh](h)}(hhh]j()}(h device_iter_th]h device_iter_t}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjsmodnameN classnameNj:8j=8)}j@8]jc.device_for_each_child_reverseasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjyhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjuhhhjhMubah}(h]jpah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjrhhubjV)}(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:36: ./drivers/base/core.chMhjĹhhubah}(h]h ]h"]h$]h&]uh1jUhjrhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj߹j{j߹j|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./drivers/base/core.chMhjubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hj!hhhNhNubah}(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)}(hjAh]h void *data}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj;ubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjzh]hdevice_iter_t fn}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjtubj)}(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&]uh1jhjtubeh}(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:36: ./drivers/base/core.chMhjubj[)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hj˺hhhNhNubj)}(h **parent**h]hparent}(hjӺhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˺ubh’s child devices, and call }(hj˺hhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˺ubh for each, passing it }(hj˺hhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˺ubh.}(hj˺hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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 }(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:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h/device_for_each_child_reverse_from (C function)$c.device_for_each_child_reverse_fromhNtauh1hhj)qhhhNhNubh)}(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}(hjQhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjMhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM.ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hM.ubj")}(h"device_for_each_child_reverse_fromh]j()}(h"device_for_each_child_reverse_fromh]h"device_for_each_child_reverse_from}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjMhhhj_hM.ubj7)}(hJ(struct device *parent, struct device *from, void *data, device_iter_t fn)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jtsb$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hj̻hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjڻhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *fromh](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 reftargetj modnameN classnameNj:8j=8)}j@8]jȻ$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjJhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfromh]hfrom}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlubj)}(h h]h }(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjlubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(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 reftargetjmodnameN classnameNj:8j=8)}j@8]jȻ$c.device_for_each_child_reverse_fromasbuh1hhjubj)}(h h]h }(hjӼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjMhhhj_hM.ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjIhhhj_hM.ubah}(h]jDah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj_hM.hjFhhubjV)}(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:36: ./drivers/base/core.chM.hjhhubah}(h]h ]h"]h$]h&]uh1jUhjFhhhj_hM.ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj#j{j#j|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chM2hj'ubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjLh]hstruct device *parent}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM/hjFubj)}(hhh]j[)}(hparent struct device.h]hparent struct device.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjahM/hjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjahM/hjCubj)}(h>``struct device *from`` optional starting point in child list h](j)}(h``struct device *from``h]j)}(hjh]hstruct device *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM0hjubj)}(hhh]j[)}(h%optional starting point in child listh]h%optional starting point in child list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjCubj)}(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:36: ./drivers/base/core.chM1hjubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hj׽hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjӽhM1hjԽubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjӽhM1hjCubj)}(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:36: ./drivers/base/core.chM2hjubj)}(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&]uh1jZhj hM2hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM2hjCubeh}(h]h ]h"]h$]h&]uh1jhj'ubj[)}(h**Description**h]j)}(hj2h]h Description}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM4hj'ubj[)}(hIterate over **parent**'s child devices, starting at **from**, and call **fn** for each, passing it **data**. This helper is identical to device_for_each_child_reverse() when **from** is NULL.h](h Iterate over }(hjHhhhNhNubj)}(h **parent**h]hparent}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh ’s child devices, starting at }(hjHhhhNhNubj)}(h**from**h]hfrom}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh , and call }(hjHhhhNhNubj)}(h**fn**h]hfn}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh for each, passing it }(hjHhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubhC. This helper is identical to device_for_each_child_reverse() when }(hjHhhhNhNubj)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubh is NULL.}(hjHhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM3hj'ubj[)}(h**fn** is checked each iteration. If it returns anything other than 0, iteration stop and that value is returned to the caller of device_for_each_child_reverse_from();h](j)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is checked each iteration. If it returns anything other than 0, iteration stop and that value is returned to the caller of device_for_each_child_reverse_from();}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM7hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_find_child (C function)c.device_find_childhNtauh1hhj)qhhhNhNubh)}(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:36: ./drivers/base/core.chMQubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMQubh)}(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)}j68device_find_childsbc.device_find_childasbuh1hhjhhhjhMQubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMQubjW8)}(hjZ8h]h*}(hj<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhMQubj")}(hdevice_find_childh]j()}(hj+h]hdevice_find_child}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMQubj7)}(h?(struct device *parent, const void *data, device_match_t match)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j)c.device_find_childasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(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 }(hjhhhNhNubah}(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}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj:modnameN classnameNj:8j=8)}j@8]j)c.device_find_childasbuh1hhj1ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj()}(hmatchh]hmatch}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMQubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMQubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMQhjhhubjV)}(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:36: ./drivers/base/core.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMQubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct device *parent`` parent struct device ``const void *data`` Data to pass to match function ``device_match_t match`` Callback function to check device **Description** This is similar to the device_for_each_child() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero and a reference to the current device can be obtained, this function will return to the caller and not iterate over any more devices. **NOTE** you will need to drop the reference with put_device() after use.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMUhjubj)}(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:36: ./drivers/base/core.chMRhjubj)}(hhh]j[)}(hparent struct deviceh]hparent struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hjh]hconst 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:36: ./drivers/base/core.chMShjubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjAh]hdevice_match_t match}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMThj;ubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhMThjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhMThjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMVhjubj[)}(hThis is similar to the device_for_each_child() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the device_for_each_child() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjhhhNhNubj)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMUhjubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero and a reference to the current device can be obtained, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero and a reference to the current device can be obtained, this function will return to the caller and not iterate over any more devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMYhjubj[)}(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:36: ./drivers/base/core.chM^hjubj[)}(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:36: ./drivers/base/core.chM_hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#__root_device_register (C function)c.__root_device_registerhNtauh1hhj)qhhhNhNubh)}(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&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(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)}j68__root_device_registersbc.__root_device_registerasbuh1hhjhhhjhMubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhMubj")}(h__root_device_registerh]j()}(hjFh]h__root_device_register}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h((const char *name, struct module *owner)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{ubj7)}(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]jDc.__root_device_registerasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj*hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hownerh]howner}(hj7hhhNhNubah}(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#allocate and register a root deviceh]h#allocate and register a root device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj^hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjyj{jyj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``const char *name`` root device name ``struct module *owner`` owner module of the root device, usually THIS_MODULE **Description** This function allocates a root device and registers it using device_register(). In order to free the returned device, use root_device_unregister(). Root devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name} The /sys/devices/{name} directory will also contain a 'module' symlink which points to the **owner** directory in sysfs. Returns :c:type:`struct device ` pointer on success, or ERR_PTR() on error. **Note** You probably want to use root_device_register().h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj}ubj)}(hhh](j)}(h&``const char *name`` root device name h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hroot device nameh]hroot device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hN``struct module *owner`` owner module of the root device, usually THIS_MODULE h](j)}(h``struct module *owner``h]j)}(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:36: ./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&]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:36: ./drivers/base/core.chMhj}ubj[)}(hThis function allocates a root device and registers it using device_register(). In order to free the returned device, use root_device_unregister().h]hThis function allocates a root device and registers it using device_register(). In order to free the returned device, use root_device_unregister().}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj}ubj[)}(hRoot devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name}h]hRoot devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name}}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj}ubj[)}(hxThe /sys/devices/{name} directory will also contain a 'module' symlink which points to the **owner** directory in sysfs.h](h_The /sys/devices/{name} directory will also contain a ‘module’ symlink which points to the }(hjJhhhNhNubj)}(h **owner**h]howner}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh directory in sysfs.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj}ubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjkhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjuh]h struct device}(hjwhhhNhNubah}(h]h ](xrefjtc-typeeh"]h$]h&]uh1jhjsubah}(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:36: ./drivers/base/core.chMhjkubh+ pointer on success, or ERR_PTR() on error.}(hjkhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhj}ubj[)}(h**Note**h]j)}(hjh]hNote}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj}ubj[)}(h0You probably want to use root_device_register().h]h0You probably want to use root_device_register().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#root_device_unregister (C function)c.root_device_unregisterhNtauh1hhj)qhhhNhNubh)}(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:36: ./drivers/base/core.chM4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM4ubj")}(hroot_device_unregisterh]j()}(hroot_device_unregisterh]hroot_device_unregister}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhM4ubj7)}(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 }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubh)}(hhh]j()}(hdeviceh]hdevice}(hjEhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjGmodnameN classnameNj:8j=8)}j@8]jC8)}j68j sbc.root_device_unregisterasbuh1hhj#ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjW8)}(hjZ8h]h*}(hjshhhNhNubah}(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@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM4ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM4ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM4hjhhubjV)}(hhh]j[)}(h!unregister and free a root deviceh]h!unregister and free a root device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM4hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM4ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./drivers/base/core.chM8hjubj)}(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:36: ./drivers/base/core.chM5hjubj)}(hhh]j[)}(hdevice going awayh]hdevice going away}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(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:36: ./drivers/base/core.chM7hjubj[)}(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().}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM6hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_create (C function)c.device_createhNtauh1hhj)qhhhNhNubh)}(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}(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjghhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMvubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjxhMvubh)}(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 device_createsbc.device_createasbuh1hhjghhhjxhMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhhjxhMvubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjghhhjxhMvubj")}(h device_createh]j()}(hjh]h device_create}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjghhhjxhMvubj7)}(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}(hjhhhNhNubah}(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 reftargetj modnameN classnameNj:8j=8)}j@8]jc.device_createasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjJhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.device_createasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjlubj()}(hparenth]hparent}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(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]jc.device_createasbuh1hhjubj)}(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@uh1j7hjubj7)}(h void *drvdatah](j7)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjW8)}(hjZ8h]h*}(hjDhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$ubj()}(hdrvdatah]hdrvdata}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjfubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjfubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]jW8)}(hj<h]h...}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjghhhjxhMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjchhhjxhMvubah}(h]j^ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjxhMvhj`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:36: ./drivers/base/core.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jUhj`hhhjxhMvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chMzhj 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)}(hj1h]hconst struct class *class}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMwhj+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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjFhMwhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMwhj(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)}(hjjh]hstruct device *parent}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMxhjdubj)}(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&]uh1jZhjhMxhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMxhj(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:36: ./drivers/base/core.chMyhjubj)}(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&]uh1jZhjhMyhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhj(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMzhjubj)}(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&]uh1jZhjhMzhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMzhj(ubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM{hjubj)}(hhh]j[)}(hstring for the device's nameh]hstring for the device’s name}(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``...`` variable arguments h](j)}(h``...``h]j)}(hjNh]h...}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chKhjHubj)}(hhh]j[)}(hvariable argumentsh]hvariable arguments}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchKhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchKhj(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:36: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM|hj 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj ubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjh]h struct device}(hjhhhNhNubah}(h]h ](jjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&device_create_with_groups (C function)c.device_create_with_groupshNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubh)}(hhh]j()}(hdeviceh]hdevice}(hj.hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj+ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj0modnameN classnameNj:8j=8)}j@8]jC8)}j68device_create_with_groupssbc.device_create_with_groupsasbuh1hhj hhhjhMubj)}(h h]h }(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhMubjW8)}(hjZ8h]h*}(hj]hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj hhhjhMubj")}(hdevice_create_with_groupsh]j()}(hjLh]hdevice_create_with_groups}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(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}(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]jJc.device_create_with_groupsasbuh1hhjubj)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj4modnameN classnameNj:8j=8)}j@8]jJc.device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj^hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hjkhhhNhNubah}(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]jJc.device_create_with_groupsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@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*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvdatah]hdrvdata}(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&]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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjImodnameN classnameNj:8j=8)}j@8]jJc.device_create_with_groupsasbuh1hhj ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjshhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]jW8)}(hj<h]h...}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(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,creates a device and registers it with sysfsh]h,creates a device and registers it with sysfs}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj)hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjDj{jDj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./drivers/base/core.chMhjHubj)}(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)}(hjmh]hconst struct class *class}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjgubj)}(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&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(hY``struct device *parent`` pointer to the parent struct device of this new device, if any h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h>pointer to the parent struct device of this new device, if anyh]h>pointer to the parent struct device of this new device, if any}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(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:36: ./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&]uh1jhjhMhjdubj)}(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:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h0the data to be added to the device for callbacksh]h0the data to be added to the device for callbacks}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjdubj)}(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)}(hjQh]h%const struct attribute_group **groups}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjKubj)}(hhh]j[)}(h6NULL-terminated list of attribute groups to be createdh]h6NULL-terminated list of attribute groups to be created}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjfhMhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjdubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hstring for the device's nameh]hstring for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjdubj)}(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:36: ./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&]uh1jhjhKhjdubeh}(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:36: ./drivers/base/core.chKhjHubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjHubj[)}(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.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjHubj[)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj2hhhNhNubh)}(h :c:type:`struct device `h]j)}(hj<h]h struct device}(hj>hhhNhNubah}(h]h ](jjtc-typeeh"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjdeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj2ubh+ pointer on success, or ERR_PTR() on error.}(hj2hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjYhMhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_destroy (C function)c.device_destroyhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_destroyh]j()}(hdevice_destroyh]hdevice_destroy}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(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]jC8)}j68jsbc.device_destroyasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj(hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hj5hhhNhNubah}(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}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjSmodnameN classnameNj:8j=8)}j@8]jc.device_destroyasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj()}(hdevth]hdevt}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubeh}(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]jwah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjyhhubjV)}(hhh]j[)}(h6removes a device that was created with device_create()h]h6removes a device that was created with device_create()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjyhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./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:36: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hF``dev_t devt`` the dev_t of the device that was previously registered h](j)}(h``dev_t devt``h]j)}(hj!h]h dev_t devt}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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().}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_rename (C function)c.device_renamehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hsb c.device_moveasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjTubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubj7)}(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]j 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}(hj!hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubj7)}(henum dpm_order dpm_orderh](h)}(hjh]henum}(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubh)}(hhh]j()}(h dpm_orderh]h dpm_order}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjUubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjZmodnameN classnameNj:8j=8)}j@8]j c.device_moveasbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj()}(h dpm_orderh]h dpm_order}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj)hM:ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj)hM:ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj)hM:hjhhubjV)}(hhh]j[)}(hmoves a device to a new parenth]hmoves a device to a new parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM:hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj)hM:ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./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:36: ./drivers/base/core.chM;hjubj)}(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&]uh1jZhjhM;hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM;hjubj)}(hI``struct device *new_parent`` the new parent of the device (can be NULL) h](j)}(h``struct device *new_parent``h]j)}(hj(h]hstruct device *new_parent}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM<hj"ubj)}(hhh]j[)}(h*the new parent of the device (can be NULL)h]h*the new parent of the device (can be NULL)}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj=hM<hj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hM<hjubj)}(h8``enum dpm_order dpm_order`` how to reorder the dpm_listh](j)}(h``enum dpm_order dpm_order``h]j)}(hjah]henum dpm_order dpm_order}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM>hj[ubj)}(hhh]j[)}(hhow to reorder the dpm_listh]hhow to reorder the dpm_list}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM=hjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhM>hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_err_probe (C function)c.dev_err_probehNtauh1hhj)qhhhNhNubh)}(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:36: ./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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj3modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.dev_err_probeasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjlhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h...h]jW8)}(hj<h]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@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h probe error check and log helperh]h probe error check and log helper}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj=hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjXj{jXj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:36: ./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)}(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:36: ./drivers/base/core.chMhj{ubj)}(hhh]j[)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(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:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(herror value to testh]herror value to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(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:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjxubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hj,h]h...}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj&ubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhjxubeh}(h]h ]h"]h$]h&]uh1jhj\ubj[)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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:}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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;}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM hj\ubj[)}(hwith::h]hwith:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj\ubj)}(h$return dev_err_probe(dev, err, ...);h]h$return dev_err_probe(dev, err, ...);}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj\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:36: ./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:36: ./drivers/base/core.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdev_warn_probe (C function)c.dev_warn_probehNtauh1hhj)qhhhNhNubh)}(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:36: ./drivers/base/core.chM-ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hM-ubj")}(hdev_warn_probeh]j()}(hdev_warn_probeh]hdev_warn_probe}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj)hM-ubj7)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j7)}(hconst struct device *devh](h)}(hj8h]hconst}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68j>sbc.dev_warn_probeasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjTubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubj7)}(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@uh1j7hjPubj7)}(hconst char *fmth](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hcharh]hchar}(hj5hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjQhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfmth]hfmt}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubj7)}(h...h]jW8)}(hj<h]h...}(hjwhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjsubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj)hM-ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj)hM-ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj)hM-hjhhubjV)}(hhh]j[)}(h 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:36: ./drivers/base/core.chM-hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj)hM-ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./drivers/base/core.chM1hjubj)}(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:36: ./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:36: ./drivers/base/core.chM/hjubj)}(hhh]j[)}(herror value to testh]herror value to test}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hM/hj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hM/hjubj)}(h/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjSh]hconst char *fmt}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM0hjMubj)}(hhh]j[)}(hprintf-style format stringh]hprintf-style format string}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhhM0hjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhM0hjubj)}(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:36: ./drivers/base/core.chM1hjubj)}(hhh]j[)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubeh}(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:36: ./drivers/base/core.chM3hjubj[)}(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:36: ./drivers/base/core.chM2hjubj)}(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:36: ./drivers/base/core.chM9hjubj[)}(hwith::h]hwith:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chM?hjubj)}(h%return dev_warn_probe(dev, err, ...);h]h%return dev_warn_probe(dev, err, ...);}hj sbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMAhjubj[)}(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}(hj!hhhNhNubah}(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:36: ./drivers/base/core.chMChjubj[)}(hReturns **err**.h](hReturns }(hj:hhhNhNubj)}(h**err**h]herr}(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:36: ./drivers/base/core.chMJhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hset_primary_fwnode (C function)c.set_primary_fwnodehNtauh1hhj)qhhhNhNubh)}(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}(hj{hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjwhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMbubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhMbubj")}(hset_primary_fwnodeh]j()}(hset_primary_fwnodeh]hset_primary_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjwhhhjhMbubj7)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.set_primary_fwnodeasbuh1hhjubj)}(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@uh1j7hjubj7)}(hstruct fwnode_handle *fwnodeh](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()}(h fwnode_handleh]h fwnode_handle}(hjHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjJmodnameN classnameNj:8j=8)}j@8]jc.set_primary_fwnodeasbuh1hhj&ubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjW8)}(hjZ8h]h*}(hjthhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj&ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj&ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjwhhhjhMbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjshhhjhMbubah}(h]jnah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMbhjphhubjV)}(hhh]j[)}(h3Change the primary firmware node of a given device.h]h3Change the primary firmware node of a given device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jUhjphhhjhMbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:36: ./drivers/base/core.chMfhjubj)}(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:36: ./drivers/base/core.chMchjubj)}(hhh]j[)}(hDevice to handle.h]hDevice to handle.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMchjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubj)}(hJ``struct fwnode_handle *fwnode`` New primary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hj%h]hstruct fwnode_handle *fwnode}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMdhjubj)}(hhh]j[)}(h(New primary firmware node of the device.h]h(New primary firmware node of the device.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj:hMdhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMdhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMfhjubj[)}(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 }(hjvhhhNhNubj)}(h **fwnode**h]hfwnode}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubhI, but if a secondary firmware node of the device is present, preserve it.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMehjubj)}(hhh]j)}(hmValid fwnode cases are: - primary --> secondary --> -ENODEV - primary --> NULL - secondary --> -ENODEV - NULLh](j)}(hValid fwnode cases are:h]hValid fwnode cases are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMkhjubj)}(hhh]jlj)}(hhh](jqj)}(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:36: ./drivers/base/core.chMihjubah}(h]h ]h"]h$]h&]uh1jpjhjubjqj)}(hprimary --> NULLh]j[)}(hjh]hprimary --> NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMjhjubah}(h]h ]h"]h$]h&]uh1jpjhjubjqj)}(hsecondary --> -ENODEVh]j[)}(hjh]hsecondary --> -ENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMkhjubah}(h]h ]h"]h$]h&]uh1jpjhjubjqj)}(hNULLh]j[)}(hjh]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMlhjubah}(h]h ]h"]h$]h&]uh1jpjhjubeh}(h]h ]h"]h$]h&]jjjjuh1jkjhjhMihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!set_secondary_fwnode (C function)c.set_secondary_fwnodehNtauh1hhj)qhhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjFhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhMubj")}(hset_secondary_fwnodeh]j()}(hset_secondary_fwnodeh]hset_secondary_fwnode}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjFhhhjXhMubj7)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jmsbc.set_secondary_fwnodeasbuh1hhjubj)}(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@uh1j7hjubj7)}(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 }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjFhhhjXhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjBhhhjXhMubah}(h]j=ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjXhMhj?hhubjV)}(hhh]j[)}(h5Change the secondary firmware node of a given device.h]h5Change the secondary firmware node of a given device.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jUhj?hhhjXhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX;**Parameters** ``struct device *dev`` Device to handle. ``struct fwnode_handle *fwnode`` New secondary firmware node of the device. **Description** If a primary firmware node of the device is present, set its secondary pointer to **fwnode**. Otherwise, set the device's firmware node pointer to **fwnode**.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h*New secondary firmware node of the device.h]h*New secondary firmware node of the device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(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:36: ./drivers/base/core.chMhjubj[)}(hIf a primary firmware node of the device is present, set its secondary pointer to **fwnode**. Otherwise, set the device's firmware node pointer to **fwnode**.h](hRIf a primary firmware node of the device is present, set its secondary pointer to }(hjEhhhNhNubj)}(h **fwnode**h]hfwnode}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh:. Otherwise, set the device’s firmware node pointer to }(hjEhhhNhNubj)}(h **fwnode**h]hfwnode}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_remove_of_node (C function)c.device_remove_of_nodehNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdevice_remove_of_nodeh]j()}(hdevice_remove_of_nodeh]hdevice_remove_of_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(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*}(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@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[)}(hRemove an of_node from a deviceh]hRemove an of_node from a device}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjpj{jpj|j}j~uh1hhhhj)qhNhNubj)}(hW**Parameters** ``struct device *dev`` device whose device tree node is being removedh](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:36: ./drivers/base/core.chMhjtubj)}(hhh]j)}(hE``struct device *dev`` device whose device tree node is being removedh](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h.device whose device tree node is being removedh]h.device whose device tree node is being removed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_add_of_node (C function)c.device_add_of_nodehNtauh1hhj)qhhhNhNubh)}(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:36: ./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}(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]jC8)}j68jsbc.device_add_of_nodeasbuh1hhj,ubj)}(h h]h }(hjnhhhNhNubah}(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)}(hstruct device_node *of_nodeh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jjc.device_add_of_nodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hof_nodeh]hof_node}(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[)}(h$Add an of_node to an existing deviceh]h$Add an of_node to an existing device}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj;j{j;j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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)}(hjdh]hstruct device *dev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./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}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(h/``struct device_node *of_node`` of_node to add h](j)}(h``struct device_node *of_node``h]j)}(hjh]hstruct device_node *of_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hof_node to addh]hof_node to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]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:36: ./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:36: ./drivers/base/core.chMhj?ubeh}(h ]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(device_set_of_node_from_dev (C function)c.device_set_of_node_from_devhNtauh1hhj)qhhhNhNubh)}(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:36: ./drivers/base/core.chMubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hMubj")}(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'hj:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj+hMubj7)}(h/(struct device *dev, const struct device *dev2)h](j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(hdeviceh]hdevice}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjzmodnameN classnameNj:8j=8)}j@8]jC8)}j68j@sbc.device_set_of_node_from_devasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(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]jc.device_set_of_node_from_devasbuh1hhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj1hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdev2h]hdev2}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj+hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj+hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+hMhjhhubjV)}(hhh]j[)}(h(reuse device-tree node of another deviceh]h(reuse device-tree node of another device}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjehhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj+hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX!**Parameters** ``struct device *dev`` device whose device-tree node is being set ``const struct device *dev2`` device whose device-tree node is being reused **Description** Takes another reference to the new device-tree node after first dropping any reference held to the old node.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh](j)}(hB``struct device *dev`` device whose device-tree node is being set h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(h*device whose device-tree node is being seth]h*device whose device-tree node is being set}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hL``const struct device *dev2`` device whose device-tree node is being reused h](j)}(h``const struct device *dev2``h]j)}(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:36: ./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&]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:36: ./drivers/base/core.chMhjubj[)}(hlTakes another reference to the new device-tree node after first dropping any reference held to the old node.h]hlTakes another reference to the new device-tree node after first dropping any reference held to the old node.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h get_dev_from_fwnode (C function)c.get_dev_from_fwnodehNtauh1hhj)qhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjohMubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68get_dev_from_fwnodesbc.get_dev_from_fwnodeasbuh1hhj^hhhjohMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjohMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj^hhhjohMubj")}(hget_dev_from_fwnodeh]j()}(hjh]hget_dev_from_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj^hhhjohMubj7)}(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]jc.get_dev_from_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj&hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj^hhhjohMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjZhhhjohMubah}(h]jUah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjohMhjWhhubjV)}(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:36: ./drivers/base/core.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jUhjWhhhjohMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjuj{juj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct fwnode_handle *fwnode`` The pointer to the struct fwnode_handle to obtain the struct device reference count of. **Description** This function obtains a reference count of the device the device pointer embedded in the struct fwnode_handle points to. Note that the struct device pointer embedded in struct fwnode_handle does *not* have a reference count of the struct device itself. Hence, it is a UAF (and thus a bug) to call this function if the caller can't guarantee that the last reference count of the corresponding struct device is not dropped concurrently. This is possible since struct fwnode_handle has its own reference count and hence can out-live the struct device it is associated with.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjyubj)}(hhh]j)}(hy``struct fwnode_handle *fwnode`` The pointer to the struct fwnode_handle to obtain the struct device reference count of. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubj)}(hhh]j[)}(hWThe pointer to the struct fwnode_handle to obtain the struct device reference count of.h]hWThe pointer to the struct fwnode_handle to obtain the struct device reference count of.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjyubj[)}(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:36: ./drivers/base/core.chMhjyubj[)}(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 }(hjhhhNhNubju^)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jt^hjubh4 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:36: ./drivers/base/core.chMhjyubj[)}(hHence, it is a UAF (and thus a bug) to call this function if the caller can't guarantee that the last reference count of the corresponding struct device is not dropped concurrently.h]hHence, it is a UAF (and thus a bug) to call this function if the caller can’t guarantee that the last reference count of the corresponding struct device is not dropped concurrently.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjyubj[)}(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.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:36: ./drivers/base/core.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hregister_syscore (C function)c.register_syscorehNtauh1hhj)qhhhNhNubh)}(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&]uh1j7hjZhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKubj)}(h h]h }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhjlhKubj")}(hregister_syscoreh]j()}(hregister_syscoreh]hregister_syscore}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjZhhhjlhKubj7)}(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.register_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@uh1j7hjZhhhjlhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjVhhhjlhKubah}(h]jQah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjlhKhjShhubjV)}(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:39: ./drivers/base/syscore.chKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjShhhjlhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj6j{j6j|j}j~uh1hhhhj)qhNhNubj)}(hQ**Parameters** ``struct syscore *syscore`` System core operations to register.h](j[)}(h**Parameters**h]j)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKhj:ubj)}(hhh]j)}(h?``struct syscore *syscore`` System core operations to register.h](j)}(h``struct syscore *syscore``h]j)}(hj_h]hstruct syscore *syscore}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKhjYubj)}(hhh]j[)}(h#System core operations to register.h]h#System core operations to register.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKhjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKhjVubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunregister_syscore (C function)c.unregister_syscorehNtauh1hhj)qhhhNhNubh)}(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:39: ./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 }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjBhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsyscoreh]hsyscore}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(h+Unregister a set of system core operations.h]h+Unregister a set of system core operations.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKhjvhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hS**Parameters** ``struct syscore *syscore`` System core operations to unregister.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chK"hjubj)}(hhh]j)}(hA``struct syscore *syscore`` System core operations to unregister.h](j)}(h``struct syscore *syscore``h]j)}(hjh]hstruct syscore *syscore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./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:39: ./drivers/base/syscore.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsyscore_suspend (C function)c.syscore_suspendhNtauh1hhj)qhhhNhNubh)}(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:39: ./drivers/base/syscore.chK+ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hK+ubj")}(hsyscore_suspendh]j()}(hsyscore_suspendh]hsyscore_suspend}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj"hK+ubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjMubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjIubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj"hK+ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj"hK+ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj"hK+hj hhubjV)}(hhh]j[)}(h9Execute all the registered system core suspend callbacks.h]h9Execute all the registered system core suspend callbacks.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chK+hjxhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj"hK+ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:39: ./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:39: ./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:39: ./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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chK,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hsyscore_resume (C function)c.syscore_resumehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hvoid syscore_resume (void)h]h)}(hvoid syscore_resume(void)h](j7)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj8hhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKYubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjJhKYubj")}(hsyscore_resumeh]j()}(hsyscore_resumeh]hsyscore_resume}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhhjJhKYubj7)}(h(void)h]j7)}(hvoidh]j7)}(hvoidh]hvoid}(hjyhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjuubah}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjqubah}(h]h ]h"]h$]h&]j?j@uh1j7hj8hhhjJhKYubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhjJhKYubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjJhKYhj1hhubjV)}(hhh]j[)}(h8Execute all the registered system core resume callbacks.h]h8Execute all the registered system core resume callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKYhjhhubah}(h]h ]h"]h$]h&]uh1jUhj1hhhjJhKYubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:39: ./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:39: ./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}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./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.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:39: ./drivers/base/syscore.chKZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&class_find_device_by_name (C function)c.class_find_device_by_namehNtauh1hhj)qhhhNhNubh)}(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}(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKcubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjqhKcubh)}(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_namesbc.class_find_device_by_nameasbuh1hhj`hhhjqhKcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhjqhKcubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj`hhhjqhKcubj")}(hclass_find_device_by_nameh]j()}(hjh]hclass_find_device_by_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhjqhKcubj7)}(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]jc.class_find_device_by_nameasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjeubj()}(hnameh]hname}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj`hhhjqhKcubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj\hhhjqhKcubah}(h]jWah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhKchjYhhubjV)}(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:42: ./include/linux/device/class.hhKchjhhubah}(h]h ]h"]h$]h&]uh1jUhjYhhhjqhKcubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:42: ./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:42: ./include/linux/device/class.hhKehjubj)}(hhh]j[)}(h class typeh]h class type}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj-hKehj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKehjubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjQh]hconst char *name}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKghjKubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKfhjgubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKghjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)class_find_device_by_of_node (C function)c.class_find_device_by_of_nodehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hfstruct device * class_find_device_by_of_node (const struct class *class, const struct device_node *np)h]h)}(hdstruct device *class_find_device_by_of_node(const struct class *class, const struct device_node *np)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKoubh)}(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_nodeasbuh1hhjhhhjhKoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKoubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKoubj")}(hclass_find_device_by_of_nodeh]j()}(hjh]hclass_find_device_by_of_node}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKoubj7)}(h9(const struct class *class, const struct device_node *np)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(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()}(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_nodeasbuh1hhj!ubj)}(h h]h }(hj|hhhNhNubah}(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_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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.class_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}(hj"hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKoubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKoubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKohjhhubjV)}(hhh]j[)}(hFdevice iterator for locating a particular device matching the of_node.h]hFdevice iterator for locating a particular device matching the of_node.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKohjIhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKoubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjdj{jdj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKshjhubj)}(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:42: ./include/linux/device/class.hhKqhjubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKqhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKqhjubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(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:42: ./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:42: ./include/linux/device/class.hhKrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKshjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(class_find_device_by_fwnode (C function)c.class_find_device_by_fwnodehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hkstruct device * class_find_device_by_fwnode (const struct class *class, const struct fwnode_handle *fwnode)h]h)}(histruct device *class_find_device_by_fwnode(const struct class *class, const struct fwnode_handle *fwnode)h](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhK{ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hK{ubh)}(hhh]j()}(hdeviceh]hdevice}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjAmodnameN classnameNj:8j=8)}j@8]jC8)}j68class_find_device_by_fwnodesbc.class_find_device_by_fwnodeasbuh1hhjhhhj-hK{ubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hK{ubjW8)}(hjZ8h]h*}(hjnhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhj-hK{ubj")}(hclass_find_device_by_fwnodeh]j()}(hj]h]hclass_find_device_by_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj-hK{ubj7)}(h?(const struct class *class, const struct fwnode_handle *fwnode)h](j7)}(hconst struct class *classh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hclassh]hclass}(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_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hclassh]hclass}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h"const struct fwnode_handle *fwnodeh](h)}(hj8h]hconst}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubh)}(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()}(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_fwnodeasbuh1hhj!ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj!ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj!ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj-hK{ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj-hK{ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj-hK{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:42: ./include/linux/device/class.hhK{hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj-hK{ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:42: ./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:42: ./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&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKhj5ubj)}(hhh]j[)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhK~hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&class_find_device_by_devt (C function)c.class_find_device_by_devthNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hQstruct device * class_find_device_by_devt (const struct class *class, dev_t devt)h]h)}(hOstruct device *class_find_device_by_devt(const struct class *class, dev_t devt)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./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_devtsbc.class_find_device_by_devtasbuh1hhjhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(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!hjhhhjhKubj7)}(h'(const struct class *class, dev_t devt)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_devtasbuh1hhj 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)}(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]jc.class_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]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(hJdevice iterator for locating a particular device matching the device type.h]hJdevice iterator for locating a particular device matching the device type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhj)qhNhNubj)}(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:42: ./include/linux/device/class.hhKhjubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hj4h]hconst struct class *class}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKhj.ubj)}(hhh]j[)}(h class typeh]h class type}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjIhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhj+ubj)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hjmh]h dev_t devt}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKhjgubj)}(hhh]j[)}(h#device type of the device to match.h]h#device type of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhKhj+ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*class_find_device_by_acpi_dev (C function)c.class_find_device_by_acpi_devhNtauh1hhj)qhhhNhNubh)}(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:42: ./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}(hj&hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"ubah}(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}(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubh)}(hhh]j()}(hclassh]hclass}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj|modnameN classnameNj:8j=8)}j@8]jc.class_find_device_by_acpi_devasbuh1hhj=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@uh1j7hj9ubj7)}(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 }(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj1hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hadevh]hadev}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj9ubeh}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./include/linux/device/class.hhKhjehhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``const struct class *class`` class type ``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:42: ./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:42: ./include/linux/device/class.hhKhjubj)}(hhh]j[)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hB``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(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:42: ./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:42: ./include/linux/device/class.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclass_create (C function)c.class_createhNtauh1hhj)qhhhNhNubh)}(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&]uh1hhj8hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chKubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhKubh)}(hhh]j()}(hclassh]hclass}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj]modnameN classnameNj:8j=8)}j@8]jC8)}j68 class_createsbc.class_createasbuh1hhj8hhhjIhKubj)}(h h]h }(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhjIhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj8hhhjIhKubj")}(h class_createh]j()}(hjyh]h class_create}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhhjIhKubj7)}(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@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hj8hhhjIhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj4hhhjIhKubah}(h]j/ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhKhj1hhubjV)}(hhh]j[)}(hcreate a struct class structureh]hcreate a struct class structure}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chKhj!hhubah}(h]h ]h"]h$]h&]uh1jUhj1hhhjIhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj<j{j<j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj@ubj)}(hhh]j)}(hE``const char *name`` pointer to a string for the name of this class. h](j)}(h``const char *name``h]j)}(hjeh]hconst char *name}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./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.}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj@ubj[)}(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:45: ./drivers/base/class.chMhj@ubj[)}(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 ](jjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjclassuh1hh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhj@ubj[)}(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:45: ./drivers/base/class.chMhj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclass_destroy (C function)c.class_destroyhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h,void class_destroy (const struct class *cls)h]h)}(h+void class_destroy(const struct class *cls)h](j7)}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj"hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM%ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj4hM%ubj")}(h class_destroyh]j()}(h class_destroyh]h class_destroy}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj"hhhj4hM%ubj7)}(h(const struct class *cls)h]j7)}(hconst struct class *clsh](h)}(hj8h]hconst}(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hjh]hstruct}(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jIsbc.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@uh1j7hj"hhhj4hM%ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj4hM%ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj4hM%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:45: ./drivers/base/class.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj4hM%ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:45: ./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)}(hjBh]hconst struct class *cls}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./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&]uh1jZhjWhM&hjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM&hj9ubah}(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:45: ./drivers/base/class.chM(hjubj[)}(hWNote, the pointer to be destroyed must have been created with a call to class_create().h]hWNote, the pointer to be destroyed must have been created with a call to class_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM'hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_init (C function)c.class_dev_iter_inithNtauh1hhj)qhhhNhNubh)}(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:45: ./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 }(hj hhhNhNubah}(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*}(hjKhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hiterh]hiter}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(h h]h }(hjhhhNhNubah}(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]j9c.class_dev_iter_initasbuh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjmubj()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjmubeh}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj7modnameN classnameNj:8j=8)}j@8]j9c.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device_type *typeh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_typeh]h device_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j9c.class_dev_iter_initasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(htypeh]htype}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(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}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM5hj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM5ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj;j{j;j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./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)}(hjdh]hstruct class_dev_iter *iter}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM6hj^ubj)}(hhh]j[)}(hclass iterator to initializeh]hclass iterator to initialize}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyhM6hjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhM6hj[ubj)}(h>``const struct class *class`` the class we wanna iterate over h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM7hjubj)}(hhh]j[)}(hthe class we wanna iterate overh]hthe class we wanna iterate over}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]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:45: ./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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM9hj ubj)}(hhh]j[)}(h8device_type of the devices to iterate over, NULL for allh]h8device_type of the devices to iterate over, NULL for all}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$hM9hj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hM9hj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubj[)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh' such that it iterates over devices of }(hj`hhhNhNubj)}(h **class**h]hclass}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubh. If }(hj`hhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(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:45: ./drivers/base/class.chM:hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_next (C function)c.class_dev_iter_nexthNtauh1hhj)qhhhNhNubh)}(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:45: ./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}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(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 }(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubh)}(hhh]j()}(hclass_dev_iterh]hclass_dev_iter}(hj]hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjZubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj_modnameN classnameNj:8j=8)}j@8]jc.class_dev_iter_nextasbuh1hhj;ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj;ubj()}(hiterh]hiter}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj;ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj7ubah}(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:45: ./drivers/base/class.chMVhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMVubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:45: ./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:45: ./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&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMYhjubj[)}(hZProceed **iter** to the next device and return it. Returns NULL if iteration is complete.h](hProceed }(hjRhhhNhNubj)}(h**iter**h]hiter}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubhJ to the next device and return it. Returns NULL if iteration is complete.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chM[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h class_dev_iter_exit (C function)c.class_dev_iter_exithNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMuubj")}(hclass_dev_iter_exith]j()}(hclass_dev_iter_exith]hclass_dev_iter_exit}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMuubj7)}(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*}(hj+hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hiterh]hiter}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMuubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMuubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMuhjhhubjV)}(hhh]j[)}(hfinish iterationh]hfinish iteration}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMuhj_hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMuubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjzj{jzj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct class_dev_iter *iter`` class iterator to finish **Description** Finish an iteration. Always call this function after iteration is complete whether the iteration ran till the end or not.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMyhj~ubj)}(hhh]j)}(h9``struct class_dev_iter *iter`` class iterator to finish h](j)}(h``struct class_dev_iter *iter``h]j)}(hjh]hstruct class_dev_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMvhjubj)}(hhh]j[)}(hclass iterator to finishh]hclass iterator to finish}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]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:45: ./drivers/base/class.chMxhj~ubj[)}(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:45: ./drivers/base/class.chMwhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"class_for_each_device (C function)c.class_for_each_devicehNtauh1hhj)qhhhNhNubh)}(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}(hj#hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj1hMubj")}(hclass_for_each_deviceh]j()}(hclass_for_each_deviceh]hclass_for_each_device}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj1hMubj7)}(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 }(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubh)}(hhh]j()}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jFsbc.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@uh1j7hjXubj7)}(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}(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_for_each_deviceasbuh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjRhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hj_hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjXubj7)}(h void *datah](j7)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjtubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjtubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjXubj7)}(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@uh1j7hjXubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj1hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj1hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj1hMhjhhubjV)}(hhh]j[)}(hdevice iteratorh]hdevice iterator}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj1hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj+ j{j+ j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj5 h]h Parameters}(hj7 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3 ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj/ ubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(hjT h]hconst struct class *class}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjR ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjN ubj)}(hhh]j[)}(hthe class we're iteratingh]hthe class we’re iterating}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhji hMhjj ubah}(h]h ]h"]h$]h&]uh1jhjN ubeh}(h]h ]h"]h$]h&]uh1jhji hMhjK ubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjK 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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj ubj)}(hhh]j[)}(hdata for the callbackh]hdata for the callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjK ubj)}(h;``device_iter_t fn`` function to be called for each device h](j)}(h``device_iter_t fn``h]j)}(hj h]hdevice_iter_t fn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj ubj)}(hhh]j[)}(h%function to be called for each deviceh]h%function to be called for each device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhjK ubeh}(h]h ]h"]h$]h&]uh1jhj/ ubj[)}(h**Description**h]j)}(hj: h]h Description}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8 ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj/ ubj[)}(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 }(hjP hhhNhNubj)}(h **class**h]hclass}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubh’s list of devices, and call }(hjP hhhNhNubj)}(h**fn**h]hfn}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubh for each, passing it }(hjP hhhNhNubj)}(h**data**h]hdata}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubh. If }(hjP hhhNhNubj)}(h **start**h]hstart}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP ubhy is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.}(hjP hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.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 }(hj hhhNhNubj)}(h**fn**h]hfn}(hj hhhNhNubah}(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:45: ./drivers/base/class.chMhj/ ubj[)}(hi**fn** is allowed to do anything including calling back into class code. There's no locking restriction.h](j)}(h**fn**h]hfn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj/ ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hclass_find_device (C function)c.class_find_devicehNtauh1hhj)qhhhNhNubh)}(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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubh)}(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)}j68class_find_devicesbc.class_find_deviceasbuh1hhj hhhj hMubj)}(h h]h }(hjE hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhj hMubjW8)}(hjZ8h]h*}(hjS hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj hhhj hMubj")}(hclass_find_deviceh]j()}(hjB h]hclass_find_device}(hjd hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj` ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhj hMubj7)}(h_(const struct class *class, const struct device *start, const void *data, device_match_t match)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}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ ubh)}(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]j@ c.class_find_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()}(hclassh]hclass}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjw ubj7)}(hconst struct device *starth](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 }(hj2 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hdeviceh]hdevice}(hjC hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj@ ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjE modnameN classnameNj:8j=8)}j@8]j@ c.class_find_deviceasbuh1hhj ubj)}(h h]h }(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjo hhhNhNubah}(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@uh1j7hjw 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}(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()}(hdatah]hdata}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjw 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 reftargetj modnameN classnameNj:8j=8)}j@8]j@ c.class_find_deviceasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(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@uh1j7hjw 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[)}(h0device iterator for locating a particular deviceh]h0device iterator for locating a particular device}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjH hhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjc j{jc j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjm h]h Parameters}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjg ubj)}(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:45: ./drivers/base/class.chMhj ubj)}(hhh]j[)}(hthe class we're iteratingh]hthe class we’re iterating}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubj)}(h4``const struct device *start`` Device to begin with h](j)}(h``const struct device *start``h]j)}(hj h]hconst struct device *start}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj ubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(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)}(h1``const void *data`` data for the match function h](j)}(h``const void *data``h]j)}(hj h]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj ubj)}(hhh]j[)}(hdata for the match functionh]hdata for the match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h2``device_match_t match`` function to check device h](j)}(h``device_match_t match``h]j)}(hj7h]hdevice_match_t match}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhj1ubj)}(hhh]j[)}(hfunction to check deviceh]hfunction to check device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhMhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhj ubeh}(h]h ]h"]h$]h&]uh1jhjg ubj[)}(h**Description**h]j)}(hjrh]h Description}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjg ubj[)}(hThis is similar to the class_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the class_for_each_dev() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjhhhNhNubj)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjg ubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:45: ./drivers/base/class.chMhjg ubj[)}(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:45: ./drivers/base/class.chMhjg ubj[)}(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:45: ./drivers/base/class.chMhjg ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"class_compat_register (C function)c.class_compat_registerhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h>struct class_compat * class_compat_register (const char *name)h]h)}(h%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:%ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chKOhj6%ubj)}(hhh]j[)}(h,Heterogeneous memory performance coordinatesh]h,Heterogeneous memory performance coordinates}(hjU%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chKPhjR%ubah}(h]h ]h"]h$]h&]uh1jhj6%ubeh}(h]h ]h"]h$]h&]uh1jhjQ%hKOhj$ubeh}(h]h ]h"]h$]h&]uh1jhj@$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnode_cache_info (C struct)c.node_cache_infohNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hnode_cache_infoh]h)}(hstruct node_cache_infoh](h)}(hjh]hstruct}(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chKVubj)}(h h]h }(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj%hKVubj")}(hnode_cache_infoh]j()}(hj%h]hnode_cache_info}(hj%hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj%ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj%hhhj%hKVubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj%hhhj%hKVubah}(h]j%ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj%hKVhj%hhubjV)}(hhh]j[)}(h(Internal tracking for memory node cachesh]h(Internal tracking for memory node caches}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chM"hj%hhubah}(h]h ]h"]h$]h&]uh1jUhj%hhhj%hKVubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj%j{j%j|j}j~uh1hhhhj)qhNhNubj)}(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}(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:54: ./drivers/base/node.chM&hj%ubj)}(hvstruct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; };h]hvstruct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; };}hj&sbah}(h]h ]h"]h$]h&]j?j@uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chM(hj%ubj[)}(h **Members**h]j)}(hj&&h]hMembers}(hj(&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$&ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chM.hj%ubj)}(hhh](j)}(h+``dev`` Device represeting the cache level h](j)}(h``dev``h]j)}(hjE&h]hdev}(hjG&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./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&]uh1jZhjZ&hM$hj[&ubah}(h]h ]h"]h$]h&]uh1jhj?&ubeh}(h]h ]h"]h$]h&]uh1jhjZ&hM$hj<&ubj)}(h/``node`` List element for tracking in the node h](j)}(h``node``h]j)}(hj~&h]hnode}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chM%hjx&ubj)}(hhh]j[)}(h%List element for tracking in the nodeh]h%List element for tracking in the node}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&hM%hj&ubah}(h]h ]h"]h$]h&]uh1jhjx&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM%hj<&ubj)}(h/``cache_attrs`` Attributes for this cache levelh](j)}(h``cache_attrs``h]j)}(hj&h]h cache_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:54: ./drivers/base/node.chM%hj&ubj)}(hhh]j[)}(hAttributes for this cache levelh]hAttributes for this cache level}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chM&hj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hM%hj<&ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hnode_add_cache (C function)c.node_add_cachehNtauh1hhj)qhhhNhNubh)}(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}(hj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj 'hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMlubj)}(h h]h }(hj 'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 'hhhj'hMlubj")}(hnode_add_cacheh]j()}(hnode_add_cacheh]hnode_add_cache}(hj2'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.'ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj 'hhhj'hMlubj7)}(h8(unsigned int nid, struct node_cache_attrs *cache_attrs)h](j7)}(hunsigned int nidh](j7)}(hunsignedh]hunsigned}(hjN'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJ'ubj)}(h h]h }(hj\'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ'ubj7)}(hinth]hint}(hjj'hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJ'ubj)}(h h]h }(hjx'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ'ubj()}(hnidh]hnid}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJ'ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjF'ubj7)}(h$struct node_cache_attrs *cache_attrsh](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()}(hnode_cache_attrsh]hnode_cache_attrs}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj'modnameN classnameNj:8j=8)}j@8]jC8)}j68j4'sbc.node_add_cacheasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjW8)}(hjZ8h]h*}(hj'hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj'ubj()}(h cache_attrsh]h cache_attrs}(hj'hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj'ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjF'ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj 'hhhj'hMlubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj 'hhhj'hMlubah}(h]j'ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj'hMlhj'hhubjV)}(hhh]j[)}(h$add cache attribute to a memory nodeh]h$add cache attribute to a memory node}(hj"(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMlhj(hhubah}(h]h ]h"]h$]h&]uh1jUhj'hhhj'hMlubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj:(j{j:(j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjD(h]h Parameters}(hjF(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB(ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./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)}(hjc(h]hunsigned int nid}(hje(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja(ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMmhj](ubj)}(hhh]j[)}(h-Node identifier that has new cache attributesh]h-Node identifier that has new cache attributes}(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)}(hM``struct node_cache_attrs *cache_attrs`` Attributes for the cache being addedh](j)}(h(``struct node_cache_attrs *cache_attrs``h]j)}(hj(h]h$struct node_cache_attrs *cache_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:54: ./drivers/base/node.chMohj(ubj)}(hhh]j[)}(h$Attributes for the cache being addedh]h$Attributes for the cache being added}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMnhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hMohjZ(ubeh}(h]h ]h"]h$]h&]uh1jhj>(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h4register_memory_node_under_compute_node (C function))c.register_memory_node_under_compute_nodehNtauh1hhj)qhhhNhNubh)}(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}(hj(hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj(hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj)hMubj")}(h'register_memory_node_under_compute_nodeh]j()}(h'register_memory_node_under_compute_nodeh]h'register_memory_node_under_compute_node}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj(hhhj)hMubj7)}(hQ(unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h](j7)}(hunsigned int mem_nidh](j7)}(hunsignedh]hunsigned}(hj3)hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/)ubj)}(h h]h }(hjA)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/)ubj7)}(hinth]hint}(hjO)hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/)ubj)}(h h]h }(hj])hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/)ubj()}(hmem_nidh]hmem_nid}(hjk)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/)ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj+)ubj7)}(hunsigned int cpu_nidh](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()}(hcpu_nidh]hcpu_nid}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj+)ubj7)}(h#enum access_coordinate_class accessh](h)}(hjh]henum}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj)}(h h]h }(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubh)}(hhh]j()}(haccess_coordinate_classh]haccess_coordinate_class}(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.register_memory_node_under_compute_nodeasbuh1hhj)ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj()}(haccessh]haccess}(hj!*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj)ubeh}(h]h ]h"]h$]h&]noemphj?j@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>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.}(hjK*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjH*hhubah}(h]h ]h"]h$]h&]uh1jUhj(hhhj)hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjc*j{jc*j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjm*h]h Parameters}(hjo*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk*ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjg*ubj)}(hhh](j)}(h,``unsigned int mem_nid`` Memory node number h](j)}(h``unsigned int mem_nid``h]j)}(hj*h]hunsigned int mem_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:54: ./drivers/base/node.chMhj*ubj)}(hhh]j[)}(hMemory node numberh]hMemory node number}(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 cpu_nid`` Cpu node number h](j)}(h``unsigned int cpu_nid``h]j)}(hj*h]hunsigned int cpu_nid}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhj*ubj)}(hhh]j[)}(hCpu node numberh]hCpu node number}(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)}(hA``enum access_coordinate_class access`` Access class to register h](j)}(h'``enum access_coordinate_class access``h]j)}(hj*h]h#enum access_coordinate_class access}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhj*ubj)}(hhh]j[)}(hAccess class to registerh]hAccess class to register}(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&]uh1jhjg*ubj[)}(h**Description**h]j)}(hj9+h]h Description}(hj;+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7+ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjg*ubj3)}(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.}(hjS+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjO+ubah}(h]h ]h"]h$]h&]uh1j2hja+hMhjg*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hregister_node (C function)c.register_nodehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hint register_node (int nid)h]h)}(hint register_node(int nid)h](j7)}(hinth]hint}(hj+hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+hhhj+hMjubj")}(h register_nodeh]j()}(h register_nodeh]h register_node}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj+ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj+hhhj+hMjubj7)}(h (int nid)h]j7)}(hint nidh](j7)}(hinth]hint}(hj+hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj+ubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubj()}(hnidh]hnid}(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+hMjubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj+hhhj+hMjubah}(h]j{+ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+hMjhj}+hhubjV)}(hhh]j[)}(h(Initialize and register the node device.h]h(Initialize and register the node device.}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMjhj,hhubah}(h]h ]h"]h$]h&]uh1jUhj}+hhhj+hMjubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj#,j{j#,j|j}j~uh1hhhhj)qhNhNubj)}(hv**Parameters** ``int nid`` Node number to use when creating the device. **Return** 0 on success, -errno otherwiseh](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:54: ./drivers/base/node.chMnhj',ubj)}(hhh]j)}(h9``int nid`` Node number to use when creating the device. h](j)}(h ``int nid``h]j)}(hjL,h]hint nid}(hjN,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ,ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMkhjF,ubj)}(hhh]j[)}(h,Node number to use when creating the device.h]h,Node number to use when creating the device.}(hje,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhja,hMkhjb,ubah}(h]h ]h"]h$]h&]uh1jhjF,ubeh}(h]h ]h"]h$]h&]uh1jhja,hMkhjC,ubah}(h]h ]h"]h$]h&]uh1jhj',ubj[)}(h **Return**h]j)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMmhj',ubj[)}(h0 on success, -errno otherwiseh]h0 on success, -errno otherwise}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMmhj',ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hunregister_node (C function)c.unregister_nodehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hvoid unregister_node (int nid)h]h)}(hvoid unregister_node(int nid)h](j7)}(hvoidh]hvoid}(hj,hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj,hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,hhhj,hMubj")}(hunregister_nodeh]j()}(hunregister_nodeh]hunregister_node}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj,hhhj,hMubj7)}(h (int nid)h]j7)}(hint nidh](j7)}(hinth]hint}(hj -hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj-ubj)}(h h]h }(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj()}(hnidh]hnid}(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[)}(hunregister a node deviceh]hunregister a node device}(hjO-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjL-hhubah}(h]h ]h"]h$]h&]uh1jUhj,hhhj,hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjg-j{jg-j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjq-h]h Parameters}(hjs-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo-ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjk-ubj)}(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:54: ./drivers/base/node.chMhj-ubj)}(hhh]j[)}(hnid of the node going awayh]hnid of the node going away}(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&]uh1jhjk-ubj[)}(h**Description**h]j)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjk-ubj[)}(h~Unregisters the node device at node id **nid**. All the devices on the node must be unregistered before calling this function.h](h'Unregisters the node device at node id }(hj-hhhNhNubj)}(h**nid**h]hnid}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubhP. All the devices on the node must be unregistered before calling this function.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:54: ./drivers/base/node.chMhjk-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%transport_class_register (C function)c.transport_class_registerhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h=int transport_class_register (struct transport_class *tclass)h]h)}(hhj0ubj)}(hhh]j)}(hE``struct transport_class *tclass`` The transport class to unregister h](j)}(h"``struct transport_class *tclass``h]j)}(hj0h]hstruct transport_class *tclass}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj0ubj[)}(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.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chK=hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*anon_transport_class_register (C function)c.anon_transport_class_registerhNtauh1hhj)qhhhNhNubh)}(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}(hj31hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/1hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKPubj)}(h h]h }(hjB1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/1hhhjA1hKPubj")}(hanon_transport_class_registerh]j()}(hanon_transport_class_registerh]hanon_transport_class_register}(hjT1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjP1ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/1hhhjA1hKPubj7)}(h"(struct anon_transport_class *atc)h]j7)}(h struct anon_transport_class *atch](h)}(hjh]hstruct}(hjp1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjl1ubj)}(h h]h }(hj}1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl1ubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj1modnameN classnameNj:8j=8)}j@8]jC8)}j68jV1sbc.anon_transport_class_registerasbuh1hhjl1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl1ubjW8)}(hjZ8h]h*}(hj1hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjl1ubj()}(hatch]hatc}(hj1hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjl1ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjh1ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj/1hhhjA1hKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj+1hhhjA1hKPubah}(h]j&1ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjA1hKPhj(1hhubjV)}(hhh]j[)}(hregister an anonymous classh]hregister an anonymous class}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKPhj1hhubah}(h]h ]h"]h$]h&]uh1jUhj(1hhhjA1hKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj 2j{j 2j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKThj2ubj)}(hhh]j)}(hJ``struct anon_transport_class *atc`` The anon transport class to register h](j)}(h$``struct anon_transport_class *atc``h]j)}(hj42h]h struct anon_transport_class *atc}(hj62hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj22ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKRhj.2ubj)}(hhh]j[)}(h$The anon transport class to registerh]h$The anon transport class to register}(hjM2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjI2hKRhjJ2ubah}(h]h ]h"]h$]h&]uh1jhj.2ubeh}(h]h ]h"]h$]h&]uh1jhjI2hKRhj+2ubah}(h]h ]h"]h$]h&]uh1jhj2ubj[)}(h**Description**h]j)}(hjo2h]h Description}(hjq2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm2ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKThj2ubj[)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKShj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,anon_transport_class_unregister (C function)!c.anon_transport_class_unregisterhNtauh1hhj)qhhhNhNubh)}(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}(hj2hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj2hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKfubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2hhhj2hKfubj")}(hanon_transport_class_unregisterh]j()}(hanon_transport_class_unregisterh]hanon_transport_class_unregister}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj2hhhj2hKfubj7)}(h"(struct anon_transport_class *atc)h]j7)}(h struct anon_transport_class *atch](h)}(hjh]hstruct}(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubh)}(hhh]j()}(hanon_transport_classh]hanon_transport_class}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj 3ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj3modnameN classnameNj:8j=8)}j@8]jC8)}j68j2sb!c.anon_transport_class_unregisterasbuh1hhj2ubj)}(h h]h }(hj/3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjW8)}(hjZ8h]h*}(hj=3hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj2ubj()}(hatch]hatc}(hjJ3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj2ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj2hhhj2hKfubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj2hhhj2hKfubah}(h]j2ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj2hKfhj2hhubjV)}(hhh]j[)}(hunregister an anon classh]hunregister an anon class}(hjt3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKfhjq3hhubah}(h]h ]h"]h$]h&]uh1jUhj2hhhj2hKfubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj3j{j3j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKjhj3ubj)}(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)}(hj3h]h struct anon_transport_class *atc}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhhj3ubj)}(hhh]j[)}(h1Pointer to the anon transport class to unregisterh]h1Pointer to the anon transport class to unregister}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3hKhhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubj[)}(h**Description**h]j)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKjhj3ubj[)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKihj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#transport_setup_device (C function)c.transport_setup_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h0void transport_setup_device (struct device *dev)h]h)}(h/void transport_setup_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj54hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj14hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKubj)}(h h]h }(hjD4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj14hhhjC4hKubj")}(htransport_setup_deviceh]j()}(htransport_setup_deviceh]htransport_setup_device}(hjV4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjR4ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj14hhhjC4hKubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjr4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn4ubh)}(hhh]j()}(hdeviceh]hdevice}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj4modnameN classnameNj:8j=8)}j@8]jC8)}j68jX4sbc.transport_setup_deviceasbuh1hhjn4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn4ubjW8)}(hjZ8h]h*}(hj4hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjn4ubj()}(hdevh]hdev}(hj4hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjn4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjj4ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj14hhhjC4hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj-4hhhjC4hKubah}(h]j(4ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjC4hKhj*4hhubjV)}(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.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj4hhubah}(h]h ]h"]h$]h&]uh1jUhj*4hhhjC4hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj 5j{j 5j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj5ubj)}(hhh]j)}(hN``struct device *dev`` the generic device representing the entity being added h](j)}(h``struct device *dev``h]j)}(hj65h]hstruct device *dev}(hj85hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj45ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj05ubj)}(hhh]j[)}(h6the generic device representing the entity being addedh]h6the generic device representing the entity being added}(hjO5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjK5hKhjL5ubah}(h]h ]h"]h$]h&]uh1jhj05ubeh}(h]h ]h"]h$]h&]uh1jhjK5hKhj-5ubah}(h]h ]h"]h$]h&]uh1jhj5ubj[)}(h**Description**h]j)}(hjq5h]h Description}(hjs5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo5ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj5ubj[)}(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).}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!transport_add_device (C function)c.transport_add_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h-int transport_add_device (struct device *dev)h]h)}(h,int transport_add_device(struct device *dev)h](j7)}(hinth]hint}(hj5hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj5hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5hhhj5hKubj")}(htransport_add_deviceh]j()}(htransport_add_deviceh]htransport_add_device}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj5hhhj5hKubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j()}(hdeviceh]hdevice}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj6modnameN classnameNj:8j=8)}j@8]jC8)}j68j5sbc.transport_add_deviceasbuh1hhj5ubj)}(h h]h }(hj16hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjW8)}(hjZ8h]h*}(hj?6hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj5ubj()}(hdevh]hdev}(hjL6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj5ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj5hhhj5hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj5hhhj5hKubah}(h]j5ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj5hKhj5hhubjV)}(hhh]j[)}(h1declare a new dev for transport class associationh]h1declare a new dev for transport class association}(hjv6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhjs6hhubah}(h]h ]h"]h$]h&]uh1jUhj5hhhj5hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj6j{j6j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj6ubj)}(hhh]j)}(hN``struct device *dev`` the generic device representing the entity being added h](j)}(h``struct device *dev``h]j)}(hj6h]hstruct device *dev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj6ubj)}(hhh]j[)}(h6the generic device representing the entity being addedh]h6the generic device representing the entity being added}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubj[)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj6ubj[)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'transport_configure_device (C function)c.transport_configure_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h4void transport_configure_device (struct device *dev)h]h)}(h3void transport_configure_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj77hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj37hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKubj)}(h h]h }(hjF7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj37hhhjE7hKubj")}(htransport_configure_deviceh]j()}(htransport_configure_deviceh]htransport_configure_device}(hjX7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjT7ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj37hhhjE7hKubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjt7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjp7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp7ubh)}(hhh]j()}(hdeviceh]hdevice}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj7ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj7modnameN classnameNj:8j=8)}j@8]jC8)}j68jZ7sbc.transport_configure_deviceasbuh1hhjp7ubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp7ubjW8)}(hjZ8h]h*}(hj7hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjp7ubj()}(hdevh]hdev}(hj7hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjp7ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjl7ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj37hhhjE7hKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj/7hhhjE7hKubah}(h]j*7ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjE7hKhj,7hhubjV)}(hhh]j[)}(h"configure an already set up deviceh]h"configure an already set up device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj7hhubah}(h]h ]h"]h$]h&]uh1jUhj,7hhhjE7hKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj8j{j8j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj8ubj)}(hhh]j)}(hK``struct device *dev`` generic device representing device to be configured h](j)}(h``struct device *dev``h]j)}(hj88h]hstruct device *dev}(hj:8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj68ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj28ubj)}(hhh]j[)}(h3generic device representing device to be configuredh]h3generic device representing device to be configured}(hjQ8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjM8hKhjN8ubah}(h]h ]h"]h$]h&]uh1jhj28ubeh}(h]h ]h"]h$]h&]uh1jhjM8hKhj/8ubah}(h]h ]h"]h$]h&]uh1jhj8ubj[)}(h**Description**h]j)}(hjs8h]h Description}(hju8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjq8ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj8ubj[)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chKhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$transport_remove_device (C function)c.transport_remove_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h1void transport_remove_device (struct device *dev)h]h)}(h0void transport_remove_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj8hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj8hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chMubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMubj")}(htransport_remove_deviceh]j()}(htransport_remove_deviceh]htransport_remove_device}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj8hhhj8hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubh)}(hhh]j()}(hdeviceh]hdevice}(hj9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj9modnameN classnameNj:8j=8)}j@8]jC8)}j68j8sbc.transport_remove_deviceasbuh1hhj8ubj)}(h h]h }(hj39hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjW8)}(hjZ8h]h*}(hjA9hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj8ubj()}(hdevh]hdev}(hjN9hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj8ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj8hhhj8hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj8hhhj8hMubah}(h]j8ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj8hMhj8hhubjV)}(hhh]j[)}(h!remove the visibility of a deviceh]h!remove the visibility of a device}(hjx9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chMhju9hhubah}(h]h ]h"]h$]h&]uh1jUhj8hhhj8hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj9j{j9j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chM hj9ubj)}(hhh]j)}(h0``struct device *dev`` generic device to remove h](j)}(h``struct device *dev``h]j)}(hj9h]hstruct device *dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chMhj9ubj)}(hhh]j[)}(hgeneric device to removeh]hgeneric device to remove}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj9hMhj9ubah}(h]h ]h"]h$]h&]uh1jhj9ubj[)}(h**Description**h]j)}(hj9h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chM hj9ubj[)}(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:57: ./drivers/base/transport_class.chM hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%transport_destroy_device (C function)c.transport_destroy_devicehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h2void transport_destroy_device (struct device *dev)h]h)}(h1void transport_destroy_device(struct device *dev)h](j7)}(hvoidh]hvoid}(hj9:hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj5:hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chM#ubj)}(h h]h }(hjH:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5:hhhjG:hM#ubj")}(htransport_destroy_deviceh]j()}(htransport_destroy_deviceh]htransport_destroy_device}(hjZ:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjV:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj5:hhhjG:hM#ubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjv:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr: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_destroy_deviceasbuh1hhjr:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr:ubjW8)}(hjZ8h]h*}(hj:hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjr:ubj()}(hdevh]hdev}(hj:hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjr:ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjn:ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj5:hhhjG:hM#ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj1:hhhjG:hM#ubah}(h]j,:ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjG: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:57: ./drivers/base/transport_class.chM#hj:hhubah}(h]h ]h"]h$]h&]uh1jUhj.:hhhjG:hM#ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj;j{j;j|j}j~uh1hhhhj)qhNhNubj)}(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:57: ./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&]uh1jhj8;ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chM%hj4;ubj)}(hhh]j[)}(h-device to eliminate from the transport class.h]h-device to eliminate from the transport class.}(hjS;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjO;hM%hjP;ubah}(h]h ]h"]h$]h&]uh1jhj4;ubeh}(h]h ]h"]h$]h&]uh1jhjO;hM%hj1;ubah}(h]h ]h"]h$]h&]uh1jhj;ubj[)}(h**Description**h]j)}(hju;h]h Description}(hjw;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs;ubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chM'hj;ubj[)}(hXoThis call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.h]hXoThis call triggers the elimination of storage associated with the transport classdev. Note: all it really does is relinquish a reference to the classdev. The memory will not be freed until the last reference goes to zero. Note also that the classdev retains a reference count on dev, so dev too will remain for as long as the transport class device remains around.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:57: ./drivers/base/transport_class.chM&hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h.driver_deferred_probe_check_state (C function)#c.driver_deferred_probe_check_statehNtauh1hhj)qhhhNhNubh)}(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:60: ./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 }(hj5<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjW8)}(hjZ8h]h*}(hjC<hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj;ubj()}(hdevh]hdev}(hjP<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}(hjz<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjw<hhubah}(h]h ]h"]h$]h&]uh1jUhj;hhhj;hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj<j{j<j|j}j~uh1hhhhj)qhNhNubj)}(hX|**Parameters** ``struct device *dev`` device to check **Return** * -ENODEV if initcalls have completed and modules are disabled. * -ETIMEDOUT if the deferred probe timeout was set and has expired and modules are enabled. * -EPROBE_DEFER in other cases. **Description** Drivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.h](j[)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj<ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj<h]hstruct device *dev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj<ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhj<ubah}(h]h ]h"]h$]h&]uh1jhj<ubj[)}(h **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:60: ./drivers/base/dd.chMhj<ubjlj)}(hhh](jqj)}(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:60: ./drivers/base/dd.chMhj=ubah}(h]h ]h"]h$]h&]uh1jpjhj =ubjqj)}(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:60: ./drivers/base/dd.chMhj'=ubah}(h]h ]h"]h$]h&]uh1jpjhj =ubjqj)}(h-EPROBE_DEFER in other cases. h]j[)}(h-EPROBE_DEFER in other cases.h]h-EPROBE_DEFER in other cases.}(hjD=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj@=ubah}(h]h ]h"]h$]h&]uh1jpjhj =ubeh}(h]h ]h"]h$]h&]jjjZ8uh1jkjhj =hMhj<ubj[)}(h**Description**h]j)}(hja=h]h Description}(hjc=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_=ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj<ubj[)}(hfDrivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.h]hfDrivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.}(hjw=hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_is_bound (C function)c.device_is_boundhNtauh1hhj)qhhhNhNubh)}(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}(hj=hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj=hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMubj)}(h h]h }(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubj")}(hdevice_is_boundh]j()}(hdevice_is_boundh]hdevice_is_bound}(hj=hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj=hhhj=hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(h h]h }(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@uh1j7hj=hhhj=hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj=hhhj=hMubah}(h]j=ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj=hMhj=hhubjV)}(hhh]j[)}(h$Check if device is bound to a driverh]h$Check if device is bound to a driver}(hje>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjb>hhubah}(h]h ]h"]h$]h&]uh1jUhj=hhhj=hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj}>j{j}>j|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct device *dev`` device to check **Description** Returns true if passed device has already finished probing successfully against a driver. This function must be called with the device lock held.h](j[)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj>ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj>h]hstruct device *dev}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj>ubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubj[)}(h**Description**h]j)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj>ubj[)}(hYReturns true if passed device has already finished probing successfully against a driver.h]hYReturns true if passed device has already finished probing successfully against a driver.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./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:60: ./drivers/base/dd.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_bind_driver (C function)c.device_bind_driverhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h+int device_bind_driver (struct device *dev)h]h)}(h*int device_bind_driver(struct device *dev)h](j7)}(hinth]hint}(hj5?hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj1?hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMubj)}(h h]h }(hjD?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1?hhhjC?hMubj")}(hdevice_bind_driverh]j()}(hdevice_bind_driverh]hdevice_bind_driver}(hjV?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjR?ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj1?hhhjC?hMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjr?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn?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)}j68jX?sbc.device_bind_driverasbuh1hhjn?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn?ubjW8)}(hjZ8h]h*}(hj?hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjn?ubj()}(hdevh]hdev}(hj?hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjn?ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjj?ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj1?hhhjC?hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj-?hhhjC?hMubah}(h]j(?ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjC?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:60: ./drivers/base/dd.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jUhj*?hhhjC?hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj @j{j @j|j}j~uh1hhhhj)qhNhNubj)}(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:60: ./drivers/base/dd.chMhj@ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj6@h]hstruct device *dev}(hj8@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4@ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj0@ubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjO@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjK@hMhjL@ubah}(h]h ]h"]h$]h&]uh1jhj0@ubeh}(h]h ]h"]h$]h&]uh1jhjK@hMhj-@ubah}(h]h ]h"]h$]h&]uh1jhj@ubj[)}(h**Description**h]j)}(hjq@h]h Description}(hjs@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo@ubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./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 }(hj@hhhNhNubj)}(h**dev->driver**h]h dev->driver}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./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.)}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./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:60: ./drivers/base/dd.chMhj@ubj[)}(hparent** lock must be held.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:60: ./drivers/base/dd.chMjhjBubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjCh]hstruct device *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Cubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMghj Cubj)}(hhh]j[)}(hdevice.h]hdevice.}(hj(ChhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj$ChMghj%Cubah}(h]h ]h"]h$]h&]uh1jhj Cubeh}(h]h ]h"]h$]h&]uh1jhj$ChMghjCubah}(h]h ]h"]h$]h&]uh1jhjBubj[)}(h**Description**h]j)}(hjJCh]h Description}(hjLChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHCubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMihjBubj[)}(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`ChhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhhjBubj[)}(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.}(hjoChhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMlhjBubj[)}(hCWhen called for a USB interface, **dev->parent** lock must be held.h](h!When called for a USB interface, }(hj~ChhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Cubh lock must be held.}(hj~ChhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMphjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!device_driver_attach (C function)c.device_driver_attachhNtauh1hhj)qhhhNhNubh)}(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}(hjChhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjChhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjChMubj")}(hdevice_driver_attachh]j()}(hdevice_driver_attachh]hdevice_driver_attach}(hjChhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjChhhjChMubj7)}(h5(const struct device_driver *drv, struct device *dev)h](j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hj DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(h h]h }(hj$DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubh)}(hhh]j()}(h device_driverh]h device_driver}(hj5DhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2Dubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj7DmodnameN classnameNj:8j=8)}j@8]jC8)}j68jCsbc.device_driver_attachasbuh1hhjCubj)}(h h]h }(hjUDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjW8)}(hjZ8h]h*}(hjcDhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjCubj()}(hdrvh]hdrv}(hjpDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjCubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjCubj7)}(hstruct device *devh](h)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j()}(hdeviceh]hdevice}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjDmodnameN classnameNj:8j=8)}j@8]jQDc.device_driver_attachasbuh1hhjDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjW8)}(hjZ8h]h*}(hjDhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjDubj()}(hdevh]hdev}(hjDhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjCubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjChhhjChMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjChhhjChMubah}(h]jCah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjChMhjChhubjV)}(hhh]j[)}(h-attach a specific driver to a specific deviceh]h-attach a specific driver to a specific device}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jUhjChhhjChMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj"Ej{j"Ej|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj,Eh]h Parameters}(hj.EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Eubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj&Eubj)}(hhh](j)}(h5``const struct device_driver *drv`` Driver to attach h](j)}(h#``const struct device_driver *drv``h]j)}(hjKEh]hconst struct device_driver *drv}(hjMEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIEubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjEEubj)}(hhh]j[)}(hDriver to attachh]hDriver to attach}(hjdEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`EhMhjaEubah}(h]h ]h"]h$]h&]uh1jhjEEubeh}(h]h ]h"]h$]h&]uh1jhj`EhMhjBEubj)}(h.``struct device *dev`` Device to attach it to h](j)}(h``struct device *dev``h]j)}(hjEh]hstruct device *dev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj~Eubj)}(hhh]j[)}(hDevice to attach it toh]hDevice to attach it to}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhMhjEubah}(h]h ]h"]h$]h&]uh1jhj~Eubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjBEubeh}(h]h ]h"]h$]h&]uh1jhj&Eubj[)}(h**Description**h]j)}(hjEh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj&Eubj[)}(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 }(hjEhhhNhNubj)}(h**dev**h]hdev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh lock and }(hjEhhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubh7 lock if needed. Returns 0 on success, -ERR on failure.}(hjEhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj&Eubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_attach (C function)c.driver_attachhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h3int driver_attach (const struct device_driver *drv)h]h)}(h2int driver_attach(const struct device_driver *drv)h](j7)}(hinth]hint}(hj(FhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$Fhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMubj)}(h h]h }(hj7FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Fhhhj6FhMubj")}(h driver_attachh]j()}(h driver_attachh]h driver_attach}(hjIFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEFubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$Fhhhj6FhMubj7)}(h!(const struct device_driver *drv)h]j7)}(hconst struct device_driver *drvh](h)}(hj8h]hconst}(hjeFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaFubj)}(h h]h }(hjrFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaFubh)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaFubh)}(hhh]j()}(h device_driverh]h device_driver}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjFmodnameN classnameNj:8j=8)}j@8]jC8)}j68jKFsbc.driver_attachasbuh1hhjaFubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaFubjW8)}(hjZ8h]h*}(hjFhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjaFubj()}(hdrvh]hdrv}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaFubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]Fubah}(h]h ]h"]h$]h&]j?j@uh1j7hj$Fhhhj6FhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj Fhhhj6FhMubah}(h]jFah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj6FhMhjFhhubjV)}(hhh]j[)}(htry to bind driver to devices.h]htry to bind driver to devices.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jUhjFhhhj6FhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjGj{jGj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj%Gh]h Parameters}(hj'GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#Gubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjGubj)}(hhh]j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjDGh]hconst struct device_driver *drv}(hjFGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBGubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhj>Gubj)}(hhh]j[)}(hdriver.h]hdriver.}(hj]GhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYGhMhjZGubah}(h]h ]h"]h$]h&]uh1jhj>Gubeh}(h]h ]h"]h$]h&]uh1jhjYGhMhj;Gubah}(h]h ]h"]h$]h&]uh1jhjGubj[)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Gubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjGubj[)}(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 }(hjGhhhNhNubj)}(h**dev->driver**h]h dev->driver}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh) is set, we’ve found a compatible pair.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"device_release_driver (C function)c.device_release_driverhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h/void device_release_driver (struct device *dev)h]h)}(h.void device_release_driver(struct device *dev)h](j7)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjGhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMbubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjGhMbubj")}(hdevice_release_driverh]j()}(hdevice_release_driverh]hdevice_release_driver}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjGhhhjGhMbubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(h h]h }(hj HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubh)}(hhh]j()}(hdeviceh]hdevice}(hj1HhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.Hubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj3HmodnameN classnameNj:8j=8)}j@8]jC8)}j68jGsbc.device_release_driverasbuh1hhjHubj)}(h h]h }(hjQHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjW8)}(hjZ8h]h*}(hj_HhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjHubj()}(hdevh]hdev}(hjlHhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj Hubah}(h]h ]h"]h$]h&]j?j@uh1j7hjGhhhjGhMbubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjGhhhjGhMbubah}(h]jGah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjGhMbhjGhhubjV)}(hhh]j[)}(h#manually detach device from driver.h]h#manually detach device from driver.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMbhjHhhubah}(h]h ]h"]h$]h&]uh1jUhjGhhhjGhMbubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjHj{jHj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:60: ./drivers/base/dd.chMfhjHubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjHh]hstruct device *dev}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMchjHubj)}(hhh]j[)}(hdevice.h]hdevice.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjHhMchjHubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjHhMchjHubah}(h]h ]h"]h$]h&]uh1jhjHubj[)}(h**Description**h]j)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMehjHubj[)}(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, }(hj(IhhhNhNubj)}(h**dev->parent**h]h dev->parent}(hj0IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Iubh lock must be held.}(hj(IhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMdhjHubj[)}(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 }(hjIIhhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjQIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIIubhv lock held, ensure that the device’s consumers are unbound in advance or that their locks can be acquired under the }(hjIIhhhNhNubj)}(h**dev->parent**h]h dev->parent}(hjcIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIIubh lock.}(hjIIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:60: ./drivers/base/dd.chMghjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_device_info (C struct)c.platform_device_infohNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hplatform_device_infoh]h)}(hstruct platform_device_infoh](h)}(hjh]hstruct}(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhjIhKubj")}(hplatform_device_infoh]j()}(hjIh]hplatform_device_info}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjIhhhjIhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjIhhhjIhKubah}(h]jIah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjIhKhjIhhubjV)}(hhh]j[)}(h0set of parameters for creating a platform deviceh]h0set of parameters for creating a platform device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKwhjIhhubah}(h]h ]h"]h$]h&]uh1jUhjIhhhjIhKubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzjIj{jIj|j}j~uh1hhhhj)qhNhNubj)}(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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubh:}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhK{hjIubj)}(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; };}hjJsbah}(h]h ]h"]h$]h&]j?j@uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhK}hjIubj[)}(h **Members**h]j)}(hj,Jh]hMembers}(hj.JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*Jubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjIubj)}(hhh](j)}(h6``parent`` parent device for the new platform device. h](j)}(h ``parent``h]j)}(hjKJh]hparent}(hjMJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIJubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKyhjEJubj)}(hhh]j[)}(h*parent device for the new platform device.h]h*parent device for the new platform device.}(hjdJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`JhKyhjaJubah}(h]h ]h"]h$]h&]uh1jhjEJubeh}(h]h ]h"]h$]h&]uh1jhj`JhKyhjBJubj)}(h5``fwnode`` firmware node associated with the device. h](j)}(h ``fwnode``h]j)}(hjJh]hfwnode}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKzhj~Jubj)}(hhh]j[)}(h)firmware node associated with the device.h]h)firmware node associated with the device.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjJhKzhjJubah}(h]h ]h"]h$]h&]uh1jhj~Jubeh}(h]h ]h"]h$]h&]uh1jhjJhKzhjBJubj)}(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)}(hjJh]hof_node_reused}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjJubj)}(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 }(hjJhhhNhNubj)}(h``true``h]htrue}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubh 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.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhK{hjJubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjBJubj)}(h``name`` name of the device. h](j)}(h``name``h]j)}(hj Kh]hname}(hj KhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjKubj)}(hhh]j[)}(hname of the device.h]hname of the device.}(hj"KhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjKhKhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhKhjBJubj)}(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)}(hjBKh]hid}(hjDKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Kubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hj5Qh]h Parameters}(hj7QhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Qubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj/Qubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjTQh]hstruct device *parent}(hjVQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRQubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjNQubj)}(hhh]j[)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hjmQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjiQhKhjjQubah}(h]h ]h"]h$]h&]uh1jhjNQubeh}(h]h ]h"]h$]h&]uh1jhjiQhKhjKQubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjQh]hconst char *name}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjQubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQhKhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjKQubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hjQh]hint id}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjQubj)}(hhh]j[)}(h instance idh]h instance id}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQhKhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhKhjKQubj)}(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)}(hjQh]hconst struct resource *res}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjQubj)}(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}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRhKhjRubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjKQubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hj8Rh]hunsigned int num}(hj:RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6Rubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj2Rubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjQRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMRhKhjNRubah}(h]h ]h"]h$]h&]uh1jhj2Rubeh}(h]h ]h"]h$]h&]uh1jhjMRhKhjKQubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjqRh]hconst void *data}(hjsRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoRubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjkRubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRhKhjRubah}(h]h ]h"]h$]h&]uh1jhjkRubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjKQubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjRh]h size_t size}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjRubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjRhKhjRubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjRhKhjKQubeh}(h]h ]h"]h$]h&]uh1jhj/Qubj[)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj/Qubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjRhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjSh]hstruct platform_device}(hjShhhNhNubah}(h]h ](jjtc-typeeh"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjRubh+ pointer on success, or ERR_PTR() on error.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj"ShKhj/Qubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,platform_device_register_simple (C function)!c.platform_device_register_simplehNtauh1hhj)qhhhNhNubh)}(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}(hjMShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIShhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKubj)}(h h]h }(hj[ShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIShhhjZShKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjlShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiSubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjnSmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_device_register_simplesb!c.platform_device_register_simpleasbuh1hhjIShhhjZShKubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIShhhjZShKubjW8)}(hjZ8h]h*}(hjShhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjIShhhjZShKubj")}(hplatform_device_register_simpleh]j()}(hjSh]hplatform_device_register_simple}(hjShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjIShhhjZShKubj7)}(hH(const char *name, int id, const struct resource *res, unsigned int num)h](j7)}(hconst char *nameh](h)}(hj8h]hconst}(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj7)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjW8)}(hjZ8h]h*}(hjShhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjSubj()}(hnameh]hname}(hj ThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubj7)}(hint idh](j7)}(hinth]hint}(hj$ThhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj Tubj)}(h h]h }(hj2ThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Tubj()}(hidh]hid}(hj@ThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj Tubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubj7)}(hconst struct resource *resh](h)}(hj8h]hconst}(hjYThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUTubj)}(h h]h }(hjfThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUTubh)}(hjh]hstruct}(hjtThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUTubh)}(hhh]j()}(hresourceh]hresource}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjTmodnameN classnameNj:8j=8)}j@8]jS!c.platform_device_register_simpleasbuh1hhjUTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUTubjW8)}(hjZ8h]h*}(hjThhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjUTubj()}(hresh]hres}(hjThhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjUTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjTubj)}(h h]h }(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj7)}(hinth]hint}(hjUhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjTubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj()}(hnumh]hnum}(hjUhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjSubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjIShhhjZShKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjEShhhjZShKubah}(h]j@Sah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjZShKhjBShhubjV)}(hhh]j[)}(h-add a platform-level device and its resourcesh]h-add a platform-level device and its resources}(hjFUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjCUhhubah}(h]h ]h"]h$]h&]uh1jUhjBShhhjZShKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj^Uj{j^Uj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``const char *name`` base name of the device we're adding ``int id`` instance id ``const struct resource *res`` set of resources that needs to be allocated for the device ``unsigned int num`` number of resources **Description** This function creates a simple platform device that requires minimal resource and memory management. Canned release function freeing memory allocated for the device allows drivers using such devices to be unloaded without waiting for the last reference to the device to be dropped. This interface is primarily intended for use with legacy drivers which probe hardware directly. Because such drivers create sysfs device nodes themselves, rather than letting system infrastructure handle such device enumeration tasks, they don't fully conform to the Linux driver model. In particular, when such drivers are built as modules, they can't be "hotplugged". Returns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](j[)}(h**Parameters**h]j)}(hjhUh]h Parameters}(hjjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfUubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjbUubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjUh]hconst char *name}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjUubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUhKhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhKhj~Uubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hjUh]hint id}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjUubj)}(hhh]j[)}(h instance idh]h instance id}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUhKhjUubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjUhKhj~Uubj)}(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)}(hjUh]hconst struct resource *res}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjUubj)}(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}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjVhKhjVubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjVhKhj~Uubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hj2Vh]hunsigned int num}(hj4VhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0Vubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj,Vubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjKVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGVhKhjHVubah}(h]h ]h"]h$]h&]uh1jhj,Vubeh}(h]h ]h"]h$]h&]uh1jhjGVhKhj~Uubeh}(h]h ]h"]h$]h&]uh1jhjbUubj[)}(h**Description**h]j)}(hjmVh]h Description}(hjoVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkVubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjbUubj[)}(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.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjbUubj[)}(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”.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjbUubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjVhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjVh]hstruct platform_device}(hjVhhhNhNubah}(h]h ](jjtc-typeeh"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjVubh+ pointer on success, or ERR_PTR() on error.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjVhKhjbUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*platform_device_register_data (C function)c.platform_device_register_datahNtauh1hhj)qhhhNhNubh)}(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}(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjWhKubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjWmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_device_register_datasbc.platform_device_register_dataasbuh1hhjVhhhjWhKubj)}(h h]h }(hj3WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVhhhjWhKubjW8)}(hjZ8h]h*}(hjAWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVhhhjWhKubj")}(hplatform_device_register_datah]j()}(hj0Wh]hplatform_device_register_data}(hjRWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNWubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjVhhhjWhKubj7)}(hP(struct device *parent, const char *name, int id, const void *data, size_t size)h](j7)}(hstruct device *parenth](h)}(hjh]hstruct}(hjmWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiWubj)}(h h]h }(hjzWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiWubh)}(hhh]j()}(hdeviceh]hdevice}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjWmodnameN classnameNj:8j=8)}j@8]j.Wc.platform_device_register_dataasbuh1hhjiWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiWubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjiWubj()}(hparenth]hparent}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiWubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeWubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj)}(h h]h }(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj7)}(hcharh]hchar}(hjWhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjWubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjWubj()}(hnameh]hname}(hj!XhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjWubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeWubj7)}(hint idh](j7)}(hinth]hint}(hj:XhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj6Xubj)}(h h]h }(hjHXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Xubj()}(hidh]hid}(hjVXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj6Xubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeWubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjoXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkXubj)}(h h]h }(hj|XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkXubj7)}(hvoidh]hvoid}(hjXhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjkXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkXubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjkXubj()}(hdatah]hdata}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjkXubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeWubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjXmodnameN classnameNj:8j=8)}j@8]j.Wc.platform_device_register_dataasbuh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj()}(hsizeh]hsize}(hjXhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeWubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjVhhhjWhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjVhhhjWhKubah}(h]jVah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjWhKhjVhhubjV)}(hhh]j[)}(h7add a platform-level device with platform-specific datah]h7add a platform-level device with platform-specific data}(hj%YhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj"Yhhubah}(h]h ]h"]h$]h&]uh1jUhjVhhhjWhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj=Yj{j=Yj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjGYh]h Parameters}(hjIYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEYubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjAYubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjfYh]hstruct device *parent}(hjhYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdYubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj`Yubj)}(hhh]j[)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{YhKhj|Yubah}(h]h ]h"]h$]h&]uh1jhj`Yubeh}(h]h ]h"]h$]h&]uh1jhj{YhKhj]Yubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hjYh]hconst char *name}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjYubj)}(hhh]j[)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj]Yubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hjYh]hint id}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjYubj)}(hhh]j[)}(h instance idh]h instance id}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhKhjYubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjYhKhj]Yubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjZh]hconst void *data}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhj Zubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hj*ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj&ZhKhj'Zubah}(h]h ]h"]h$]h&]uh1jhj Zubeh}(h]h ]h"]h$]h&]uh1jhj&ZhKhj]Yubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjJZh]h size_t size}(hjLZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHZubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjDZubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjcZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj_ZhKhj`Zubah}(h]h ]h"]h$]h&]uh1jhjDZubeh}(h]h ]h"]h$]h&]uh1jhj_ZhKhj]Yubeh}(h]h ]h"]h$]h&]uh1jhjAYubj[)}(h**Description**h]j)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjAYubj[)}(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.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjAYubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjZhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjZh]hstruct platform_device}(hjZhhhNhNubah}(h]h ](jjtc-typeeh"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:63: ./include/linux/platform_device.hhKhjZubh+ pointer on success, or ERR_PTR() on error.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjZhKhjAYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"platform_get_resource (C function)c.platform_get_resourcehNtauh1hhj)qhhhNhNubh)}(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}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK0ubj)}(h h]h }(hj [hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhj [hK0ubh)}(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_resourcesbc.platform_get_resourceasbuh1hhjZhhhj [hK0ubj)}(h h]h }(hj<[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhhj [hK0ubjW8)}(hjZ8h]h*}(hjJ[hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjZhhhj [hK0ubj")}(hplatform_get_resourceh]j()}(hj9[h]hplatform_get_resource}(hj[[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjW[ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjZhhhj [hK0ubj7)}(hB(struct platform_device *dev, unsigned int type, unsigned int num)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjv[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjr[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr[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]j7[c.platform_get_resourceasbuh1hhjr[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr[ubjW8)}(hjZ8h]h*}(hj[hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjr[ubj()}(hdevh]hdev}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjr[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjn[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@uh1j7hjn[ubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hj7\hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj3\ubj)}(h h]h }(hjE\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3\ubj7)}(hinth]hint}(hjS\hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj3\ubj)}(h h]h }(hja\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3\ubj()}(hnumh]hnum}(hjo\hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj3\ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjn[ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjZhhhj [hK0ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjZhhhj [hK0ubah}(h]jZah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj [hK0hjZhhubjV)}(hhh]j[)}(hget a resource for a deviceh]hget a resource for a device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK0hj\hhubah}(h]h ]h"]h$]h&]uh1jUhjZhhhj [hK0ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj\j{j\j|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct platform_device *dev`` platform device ``unsigned int type`` resource type ``unsigned int num`` resource index **Return** a pointer to the resource or NULL on failure.h](j[)}(h**Parameters**h]j)}(hj\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:66: ./drivers/base/platform.chK4hj\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:66: ./drivers/base/platform.chK1hj\ubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj\hK1hj\ubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhj\hK1hj\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:66: ./drivers/base/platform.chK2hj ]ubj)}(hhh]j[)}(h resource typeh]h resource type}(hj,]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj(]hK2hj)]ubah}(h]h ]h"]h$]h&]uh1jhj ]ubeh}(h]h ]h"]h$]h&]uh1jhj(]hK2hj\ubj)}(h$``unsigned int num`` resource index h](j)}(h``unsigned int num``h]j)}(hjL]h]hunsigned int num}(hjN]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ]ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK3hjF]ubj)}(hhh]j[)}(hresource indexh]hresource index}(hje]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhja]hK3hjb]ubah}(h]h ]h"]h$]h&]uh1jhjF]ubeh}(h]h ]h"]h$]h&]uh1jhja]hK3hj\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubj[)}(h **Return**h]j)}(hj]h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK5hj\ubj[)}(h-a pointer to the resource or NULL on failure.h]h-a pointer to the resource or NULL on failure.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK5hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h3devm_platform_get_and_ioremap_resource (C function)(c.devm_platform_get_and_ioremap_resourcehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hvoid __iomem * devm_platform_get_and_ioremap_resource (struct platform_device *pdev, unsigned int index, struct resource **res)h]h)}(h}void __iomem *devm_platform_get_and_ioremap_resource(struct platform_device *pdev, unsigned int index, struct resource **res)h](j7)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj]hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKWubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hKWubh__iomem}(hj]hhhNhNubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]hhhj]hKWubjW8)}(hjZ8h]h*}(hj]hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj]hhhj]hKWubj")}(h&devm_platform_get_and_ioremap_resourceh]j()}(h&devm_platform_get_and_ioremap_resourceh]h&devm_platform_get_and_ioremap_resource}(hj ^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj]hhhj]hKWubj7)}(hI(struct platform_device *pdev, unsigned int index, struct resource **res)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hj(^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$^ubj)}(h h]h }(hj5^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$^ubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjF^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjC^ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjH^modnameN classnameNj:8j=8)}j@8]jC8)}j68j^sb(c.devm_platform_get_and_ioremap_resourceasbuh1hhj$^ubj)}(h h]h }(hjf^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$^ubjW8)}(hjZ8h]h*}(hjt^hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj$^ubj()}(hpdevh]hpdev}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ^ubj7)}(hunsigned int indexh](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()}(hindexh]hindex}(hj^hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj^ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj ^ubj7)}(hstruct resource **resh](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()}(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]jb^(c.devm_platform_get_and_ioremap_resourceasbuh1hhj^ubj)}(h h]h }(hj'_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjW8)}(hjZ8h]h*}(hj5_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj^ubjW8)}(hjZ8h]h*}(hjB_hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj^ubj()}(hresh]hres}(hjO_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]hKWubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj]hhhj]hKWubah}(h]j]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj]hKWhj]hhubjV)}(hhh]j[)}(hCcall devm_ioremap_resource() for a platform device and get resourceh]hCcall devm_ioremap_resource() for a platform device and get resource}(hjy_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKWhjv_hhubah}(h]h ]h"]h$]h&]uh1jUhj]hhhj]hKWubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj_j{j_j|j}j~uh1hhhhj)qhNhNubj)}(hXt**Parameters** ``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management ``unsigned int index`` resource index ``struct resource **res`` optional output parameter to store a pointer to the obtained resource. **Return** a pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h](j[)}(h**Parameters**h]j)}(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:66: ./drivers/base/platform.chK[hj_ubj)}(hhh](j)}(hw``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management h](j)}(h ``struct platform_device *pdev``h]j)}(hj_h]hstruct platform_device *pdev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK[hj_ubj)}(hhh]j[)}(hUplatform device to use both for memory resource lookup as well as resource managementh]hUplatform device to use both for memory resource lookup as well as resource management}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKZhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hK[hj_ubj)}(h&``unsigned int index`` resource index h](j)}(h``unsigned int index``h]j)}(hj_h]hunsigned int index}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK\hj_ubj)}(hhh]j[)}(hresource indexh]hresource index}(hj `hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj `hK\hj `ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj `hK\hj_ubj)}(ha``struct resource **res`` optional output parameter to store a pointer to the obtained resource. h](j)}(h``struct resource **res``h]j)}(hj-`h]hstruct resource **res}(hj/`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+`ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK]hj'`ubj)}(hhh]j[)}(hFoptional output parameter to store a pointer to the obtained resource.h]hFoptional output parameter to store a pointer to the obtained resource.}(hjF`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjB`hK]hjC`ubah}(h]h ]h"]h$]h&]uh1jhj'`ubeh}(h]h ]h"]h$]h&]uh1jhjB`hK]hj_ubeh}(h]h ]h"]h$]h&]uh1jhj_ubj[)}(h **Return**h]j)}(hjh`h]hReturn}(hjj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjf`ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK_hj_ubj[)}(hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h]hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.}(hj~`hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chK_hj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+devm_platform_ioremap_resource (C function) c.devm_platform_ioremap_resourcehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h`void __iomem * devm_platform_ioremap_resource (struct platform_device *pdev, unsigned int index)h]h)}(h^void __iomem *devm_platform_ioremap_resource(struct platform_device *pdev, unsigned int index)h](j7)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj`hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKpubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hKpubh__iomem}(hj`hhhNhNubj)}(h h]h }(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`hhhj`hKpubjW8)}(hjZ8h]h*}(hj`hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj`hhhj`hKpubj")}(hdevm_platform_ioremap_resourceh]j()}(hdevm_platform_ioremap_resourceh]hdevm_platform_ioremap_resource}(hj`hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj`ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj`hhhj`hKpubj7)}(h2(struct platform_device *pdev, unsigned int index)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hj ahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj'ahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj$aubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj)amodnameN classnameNj:8j=8)}j@8]jC8)}j68j`sb c.devm_platform_ioremap_resourceasbuh1hhjaubj)}(h h]h }(hjGahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjW8)}(hjZ8h]h*}(hjUahhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjaubj()}(hpdevh]hpdev}(hjbahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjaubj7)}(hunsigned int indexh](j7)}(hunsignedh]hunsigned}(hj{ahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjwaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwaubj7)}(hinth]hint}(hjahhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjwaubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwaubj()}(hindexh]hindex}(hjahhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjaubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj`hhhj`hKpubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj`hhhj`hKpubah}(h]j`ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj`hKphj`hhubjV)}(hhh]j[)}(h2call devm_ioremap_resource() for a platform deviceh]h2call devm_ioremap_resource() for a platform device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKphjahhubah}(h]h ]h"]h$]h&]uh1jUhj`hhhj`hKpubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjaj{jaj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management ``unsigned int index`` resource index **Return** a pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h](j[)}(h**Parameters**h]j)}(hjah]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKthjaubj)}(hhh](j)}(hw``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management h](j)}(h ``struct platform_device *pdev``h]j)}(hjbh]hstruct platform_device *pdev}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKthjbubj)}(hhh]j[)}(hUplatform device to use both for memory resource lookup as well as resource managementh]hUplatform device to use both for memory resource lookup as well as resource management}(hj7bhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKshj4bubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj3bhKthjbubj)}(h&``unsigned int index`` resource index h](j)}(h``unsigned int index``h]j)}(hjXbh]hunsigned int index}(hjZbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVbubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKuhjRbubj)}(hhh]j[)}(hresource indexh]hresource index}(hjqbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmbhKuhjnbubah}(h]h ]h"]h$]h&]uh1jhjRbubeh}(h]h ]h"]h$]h&]uh1jhjmbhKuhjbubeh}(h]h ]h"]h$]h&]uh1jhjaubj[)}(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:66: ./drivers/base/platform.chKwhjaubj[)}(hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h]hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKwhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h2devm_platform_ioremap_resource_byname (C function)'c.devm_platform_ioremap_resource_bynamehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hevoid __iomem * devm_platform_ioremap_resource_byname (struct platform_device *pdev, const char *name)[h]h)}(hcvoid __iomem *devm_platform_ioremap_resource_byname(struct platform_device *pdev, const char *name)h](j7)}(hvoidh]hvoid}(hjbhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjbhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubh__iomem}(hjbhhhNhNubj)}(h h]h }(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbhhhjbhKubjW8)}(hjZ8h]h*}(hjchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjbhhhjbhKubj")}(h%devm_platform_ioremap_resource_bynameh]j()}(h%devm_platform_ioremap_resource_bynameh]h%devm_platform_ioremap_resource_byname}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjbhhhjbhKubj7)}(h0(struct platform_device *pdev, const char *name)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hj4chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0cubj)}(h h]h }(hjAchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0cubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjRchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjOcubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjTcmodnameN classnameNj:8j=8)}j@8]jC8)}j68jcsb'c.devm_platform_ioremap_resource_bynameasbuh1hhj0cubj)}(h h]h }(hjrchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0cubjW8)}(hjZ8h]h*}(hjchhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj0cubj()}(hpdevh]hpdev}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj0cubeh}(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@uh1j7hjbhhhjbhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhjbhKubah}(h]jbah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjbhKhjbhhubjV)}(hhh]j[)}(hOcall devm_ioremap_resource for a platform device, retrieve the resource by nameh]hOcall devm_ioremap_resource for a platform device, retrieve the resource by name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjdhhubah}(h]h ]h"]h$]h&]uh1jUhjbhhhjbhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj,dj{j,dj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management ``const char *name`` name of the resource **Return** a pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h](j[)}(h**Parameters**h]j)}(hj6dh]h Parameters}(hj8dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4dubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhj0dubj)}(hhh](j)}(hw``struct platform_device *pdev`` platform device to use both for memory resource lookup as well as resource management h](j)}(h ``struct platform_device *pdev``h]j)}(hjUdh]hstruct platform_device *pdev}(hjWdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjOdubj)}(hhh]j[)}(hUplatform device to use both for memory resource lookup as well as resource managementh]hUplatform device to use both for memory resource lookup as well as resource management}(hjndhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjkdubah}(h]h ]h"]h$]h&]uh1jhjOdubeh}(h]h ]h"]h$]h&]uh1jhjjdhKhjLdubj)}(h*``const char *name`` name of the resource h](j)}(h``const char *name``h]j)}(hjdh]hconst char *name}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjdubj)}(hhh]j[)}(hname of the resourceh]hname of the resource}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjdhKhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhKhjLdubeh}(h]h ]h"]h$]h&]uh1jhj0dubj[)}(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:66: ./drivers/base/platform.chKhj0dubj[)}(hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.h]hOa pointer to the remapped memory or an ERR_PTR() encoded error code on failure.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhj0dubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&platform_get_irq_affinity (C function)c.platform_get_irq_affinityhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hnint platform_get_irq_affinity (struct platform_device *dev, unsigned int num, const struct cpumask **affinity)h]h)}(hmint platform_get_irq_affinity(struct platform_device *dev, unsigned int num, const struct cpumask **affinity)h](j7)}(hinth]hint}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ehhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ehhhjehKubj")}(hplatform_get_irq_affinityh]j()}(hplatform_get_irq_affinityh]hplatform_get_irq_affinity}(hj0ehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj,eubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj ehhhjehKubj7)}(hP(struct platform_device *dev, unsigned int num, const struct cpumask **affinity)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjLehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHeubj)}(h h]h }(hjYehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHeubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgeubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjlemodnameN classnameNj:8j=8)}j@8]jC8)}j68j2esbc.platform_get_irq_affinityasbuh1hhjHeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHeubjW8)}(hjZ8h]h*}(hjehhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjHeubj()}(hdevh]hdev}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjDeubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hjehhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj7)}(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@uh1j7hjDeubj7)}(hconst struct cpumask **affinityh](h)}(hj8h]hconst}(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj fubj)}(h h]h }(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj fubh)}(hjh]hstruct}(hj*fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj fubj)}(h h]h }(hj7fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj fubh)}(hhh]j()}(hcpumaskh]hcpumask}(hjHfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEfubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjJfmodnameN classnameNj:8j=8)}j@8]jec.platform_get_irq_affinityasbuh1hhj fubj)}(h h]h }(hjffhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj fubjW8)}(hjZ8h]h*}(hjtfhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj fubjW8)}(hjZ8h]h*}(hjfhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj fubj()}(haffinityh]haffinity}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj fubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjDeubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj ehhhjehKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjehhhjehKubah}(h]jeah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjehKhjehhubjV)}(hhh]j[)}(h1get an optional IRQ and its affinity for a deviceh]h1get an optional IRQ and its affinity for a device}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfhhubah}(h]h ]h"]h$]h&]uh1jUhjehhhjehKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjfj{jfj|j}j~uh1hhhhj)qhNhNubj)}(hXM**Parameters** ``struct platform_device *dev`` platform device ``unsigned int num`` interrupt number index ``const struct cpumask **affinity`` optional cpumask pointer to get the affinity of a per-cpu interrupt **Description** Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. Optional affinity information is provided in the affinity pointer if available, and NULL otherwise. **Return** non-zero interrupt number on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjfh]hstruct platform_device *dev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghKhjgubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjghKhjfubj)}(h,``unsigned int num`` interrupt number index h](j)}(h``unsigned int num``h]j)}(hj2gh]hunsigned int num}(hj4ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0gubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhj,gubj)}(hhh]j[)}(hinterrupt number indexh]hinterrupt number index}(hjKghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjGghKhjHgubah}(h]h ]h"]h$]h&]uh1jhj,gubeh}(h]h ]h"]h$]h&]uh1jhjGghKhjfubj)}(hh``const struct cpumask **affinity`` optional cpumask pointer to get the affinity of a per-cpu interrupt h](j)}(h#``const struct cpumask **affinity``h]j)}(hjkgh]hconst struct cpumask **affinity}(hjmghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjigubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjegubj)}(hhh]j[)}(hCoptional cpumask pointer to get the affinity of a per-cpu interrupth]hCoptional cpumask pointer to get the affinity of a per-cpu interrupt}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjghKhjgubah}(h]h ]h"]h$]h&]uh1jhjegubeh}(h]h ]h"]h$]h&]uh1jhjghKhjfubeh}(h]h ]h"]h$]h&]uh1jhjfubj[)}(h**Description**h]j)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfubj[)}(hX Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. Optional affinity information is provided in the affinity pointer if available, and NULL otherwise.h]hX Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. Optional affinity information is provided in the affinity pointer if available, and NULL otherwise.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfubj[)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfubj[)}(hGnon-zero interrupt number on success, negative error number on failure.h]hGnon-zero interrupt number on success, negative error number on failure.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chKhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&platform_get_irq_optional (C function)c.platform_get_irq_optionalhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hMint platform_get_irq_optional (struct platform_device *dev, unsigned int num)h]h)}(hLint platform_get_irq_optional(struct platform_device *dev, unsigned int num)h](j7)}(hinth]hint}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hj!hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhj hhMubj")}(hplatform_get_irq_optionalh]j()}(hplatform_get_irq_optionalh]hplatform_get_irq_optional}(hj3hhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/hubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhhj hhMubj7)}(h/(struct platform_device *dev, unsigned int num)h](j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjOhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhubj)}(h h]h }(hj\hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjmhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjhubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjohmodnameN classnameNj:8j=8)}j@8]jC8)}j68j5hsbc.platform_get_irq_optionalasbuh1hhjKhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhubjW8)}(hjZ8h]h*}(hjhhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjKhubj()}(hdevh]hdev}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGhubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj7)}(hinth]hint}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj()}(hnumh]hnum}(hjhhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGhubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhhj hhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhhj hhMubah}(h]jhah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hhMhjhhhubjV)}(hhh]j[)}(h&get an optional interrupt for a deviceh]h&get an optional interrupt for a device}(hj#ihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj ihhubah}(h]h ]h"]h$]h&]uh1jUhjhhhhj hhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj;ij{j;ij|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *dev`` platform device ``unsigned int num`` interrupt number index **Description** Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. This is the same as platform_get_irq(), except that it does not print an error message if an interrupt can not be obtained. For example:: int irq = platform_get_irq_optional(pdev, 0); if (irq < 0) return irq; **Return** non-zero interrupt number on success, negative error number on failure.h](j[)}(h**Parameters**h]j)}(hjEih]h Parameters}(hjGihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCiubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj?iubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjdih]hstruct platform_device *dev}(hjfihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj^iubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hj}ihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjyihMhjziubah}(h]h ]h"]h$]h&]uh1jhj^iubeh}(h]h ]h"]h$]h&]uh1jhjyihMhj[iubj)}(h,``unsigned int num`` interrupt number index h](j)}(h``unsigned int num``h]j)}(hjih]hunsigned int num}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjiubj)}(hhh]j[)}(hinterrupt number indexh]hinterrupt number index}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihMhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihMhj[iubeh}(h]h ]h"]h$]h&]uh1jhj?iubj[)}(h**Description**h]j)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj?iubj[)}(hX"Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. This is the same as platform_get_irq(), except that it does not print an error message if an interrupt can not be obtained.h]hX"Gets an interrupt for a platform device. Device drivers should check the return value for errors so as to not pass a negative integer value to the request_irq() APIs. This is the same as platform_get_irq(), except that it does not print an error message if an interrupt can not be obtained.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj?iubj[)}(h For example::h]h For example:}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM hj?iubj)}(hNint irq = platform_get_irq_optional(pdev, 0); if (irq < 0) return irq;h]hNint irq = platform_get_irq_optional(pdev, 0); if (irq < 0) return irq;}hj jsbah}(h]h ]h"]h$]h&]j?j@uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj?iubj[)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj?iubj[)}(hGnon-zero interrupt number on success, negative error number on failure.h]hGnon-zero interrupt number on success, negative error number on failure.}(hj3jhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj?iubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_get_irq (C function)c.platform_get_irqhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hDint platform_get_irq (struct platform_device *dev, unsigned int num)h]h)}(hCint platform_get_irq(struct platform_device *dev, unsigned int num)h](j7)}(hinth]hint}(hjbjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^jhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjqjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^jhhhjpjhMubj")}(hplatform_get_irqh]j()}(hplatform_get_irqh]hplatform_get_irq}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj^jhhhjpjhMubj7)}(h/(struct platform_device *dev, unsigned int num)h](j7)}(hstruct platform_device *devh](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}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jjsbc.platform_get_irqasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjW8)}(hjZ8h]h*}(hjjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjjubj()}(hdevh]hdev}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjjubj7)}(hunsigned int numh](j7)}(hunsignedh]hunsigned}(hjkhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj kubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj7)}(hinth]hint}(hj-khhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj kubj)}(h h]h }(hj;khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj kubj()}(hnumh]hnum}(hjIkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj kubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj^jhhhjpjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjZjhhhjpjhMubah}(h]jUjah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjpjhMhjWjhhubjV)}(hhh]j[)}(hget an IRQ for a deviceh]hget an IRQ for a device}(hjskhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjpkhhubah}(h]h ]h"]h$]h&]uh1jUhjWjhhhjpjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjkj{jkj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM!hjkubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjkh]hstruct platform_device *dev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjkubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjkhMhjkubj)}(h&``unsigned int num`` IRQ number index h](j)}(h``unsigned int num``h]j)}(hjkh]hunsigned int num}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjkubj)}(hhh]j[)}(hIRQ number indexh]hIRQ number index}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjkubeh}(h]h ]h"]h$]h&]uh1jhjkubj[)}(h**Description**h]j)}(hj(lh]h Description}(hj*lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&lubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM!hjkubj[)}(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>lhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM hjkubj[)}(h For example::h]h For example:}(hjMlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM$hjkubj)}(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\lsbah}(h]h ]h"]h$]h&]j?j@uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM&hjkubj[)}(h **Return**h]j)}(hjmlh]hReturn}(hjolhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjklubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM*hjkubj[)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM+hjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hplatform_irq_count (C function)c.platform_irq_counthNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h4int platform_irq_count (struct platform_device *dev)h]h)}(h3int platform_irq_count(struct platform_device *dev)h](j7)}(hinth]hint}(hjlhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjlhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM;ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhjlhM;ubj")}(hplatform_irq_counth]j()}(hplatform_irq_counth]hplatform_irq_count}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjlhhhjlhM;ubj7)}(h(struct platform_device *dev)h]j7)}(hstruct platform_device *devh](h)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj mhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj mubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmmodnameN classnameNj:8j=8)}j@8]jC8)}j68jlsbc.platform_irq_countasbuh1hhjlubj)}(h h]h }(hj-mhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjW8)}(hjZ8h]h*}(hj;mhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjlubj()}(hdevh]hdev}(hjHmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjlubah}(h]h ]h"]h$]h&]j?j@uh1j7hjlhhhjlhM;ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjlhhhjlhM;ubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjlhM;hjlhhubjV)}(hhh]j[)}(h/Count the number of IRQs a platform device usesh]h/Count the number of IRQs a platform device uses}(hjrmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM;hjomhhubah}(h]h ]h"]h$]h&]uh1jUhjlhhhjlhM;ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjmj{jmj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct platform_device *dev`` platform device **Return** Number of IRQs a platform device uses or EPROBE_DEFERh](j[)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM?hjmubj)}(hhh]j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjmh]hstruct platform_device *dev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM<hjmubj)}(hhh]j[)}(hplatform deviceh]hplatform device}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjmhM<hjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhM<hjmubah}(h]h ]h"]h$]h&]uh1jhjmubj[)}(h **Return**h]j)}(hjmh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM>hjmubj[)}(h5Number of IRQs a platform device uses or EPROBE_DEFERh]h5Number of IRQs a platform device uses or EPROBE_DEFER}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM>hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h,devm_platform_get_irqs_affinity (C function)!c.devm_platform_get_irqs_affinityhNtauh1hhj)qhhhNhNubh)}(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}(hj3nhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj/nhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMkubj)}(h h]h }(hjBnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/nhhhjAnhMkubj")}(hdevm_platform_get_irqs_affinityh]j()}(hdevm_platform_get_irqs_affinityh]hdevm_platform_get_irqs_affinity}(hjTnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPnubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj/nhhhjAnhMkubj7)}(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}(hjpnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlnubj)}(h h]h }(hj}nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlnubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjnmodnameN classnameNj:8j=8)}j@8]jC8)}j68jVnsb!c.devm_platform_get_irqs_affinityasbuh1hhjlnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlnubjW8)}(hjZ8h]h*}(hjnhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjlnubj()}(hdevh]hdev}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjlnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhnubj7)}(hstruct irq_affinity *affdh](h)}(hjh]hstruct}(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubh)}(hhh]j()}(h irq_affinityh]h irq_affinity}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjomodnameN classnameNj:8j=8)}j@8]jn!c.devm_platform_get_irqs_affinityasbuh1hhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjW8)}(hjZ8h]h*}(hj,ohhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjnubj()}(haffdh]haffd}(hj9ohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhnubj7)}(hunsigned int minvech](j7)}(hunsignedh]hunsigned}(hjRohhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNoubj)}(h h]h }(hj`ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNoubj7)}(hinth]hint}(hjnohhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjNoubj)}(h h]h }(hj|ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNoubj()}(hminvech]hminvec}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhnubj7)}(hunsigned int maxvech](j7)}(hunsignedh]hunsigned}(hjohhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj7)}(hinth]hint}(hjohhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjoubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj()}(hmaxvech]hmaxvec}(hjohhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhnubj7)}(h int **irqsh](j7)}(hinth]hint}(hjohhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjoubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjW8)}(hjZ8h]h*}(hjphhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjoubjW8)}(hjZ8h]h*}(hjphhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjoubj()}(hirqsh]hirqs}(hj*phhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjhnubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj/nhhhjAnhMkubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj+nhhhjAnhMkubah}(h]j&nah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjAnhMkhj(nhhubjV)}(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}(hjTphhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMkhjQphhubah}(h]h ]h"]h$]h&]uh1jUhj(nhhhjAnhMkubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjlpj{jlpj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjvph]h Parameters}(hjxphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtpubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMohjppubj)}(hhh](j)}(h8``struct platform_device *dev`` platform device pointer h](j)}(h``struct platform_device *dev``h]j)}(hjph]hstruct platform_device *dev}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMmhjpubj)}(hhh]j[)}(hplatform device pointerh]hplatform device pointer}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMmhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMmhjpubj)}(h2``struct irq_affinity *affd`` affinity descriptor h](j)}(h``struct irq_affinity *affd``h]j)}(hjph]hstruct irq_affinity *affd}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMnhjpubj)}(hhh]j[)}(haffinity descriptorh]haffinity descriptor}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMnhjpubah}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]uh1jhjphMnhjpubj)}(h;``unsigned int minvec`` minimum count of interrupt vectors h](j)}(h``unsigned int minvec``h]j)}(hjqh]hunsigned int minvec}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMohjqubj)}(hhh]j[)}(h"minimum count of interrupt vectorsh]h"minimum count of interrupt vectors}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhMohjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhMohjpubj)}(h;``unsigned int maxvec`` maximum count of interrupt vectors h](j)}(h``unsigned int maxvec``h]j)}(hj@qh]hunsigned int maxvec}(hjBqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>qubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMphj:qubj)}(hhh]j[)}(h"maximum count of interrupt vectorsh]h"maximum count of interrupt vectors}(hjYqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjUqhMphjVqubah}(h]h ]h"]h$]h&]uh1jhj:qubeh}(h]h ]h"]h$]h&]uh1jhjUqhMphjpubj)}(h.``int **irqs`` pointer holder for IRQ numbers h](j)}(h``int **irqs``h]j)}(hjyqh]h int **irqs}(hj{qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwqubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMqhjsqubj)}(hhh]j[)}(hpointer holder for IRQ numbersh]hpointer holder for IRQ numbers}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhMqhjqubah}(h]h ]h"]h$]h&]uh1jhjsqubeh}(h]h ]h"]h$]h&]uh1jhjqhMqhjpubeh}(h]h ]h"]h$]h&]uh1jhjppubj[)}(h**Description**h]j)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMshjppubj[)}(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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMrhjppubj[)}(h **Return**h]j)}(hjqh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMuhjppubj[)}(h?Number of vectors on success, negative error number on failure.h]h?Number of vectors on success, negative error number on failure.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMvhjppubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h)platform_get_resource_byname (C function)c.platform_get_resource_bynamehNtauh1hhj)qhhhNhNubh)}(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 rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hj.rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhj-rhMubh)}(hhh]j()}(hresourceh]hresource}(hj?rhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjYhMhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMhjɀubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj[)}(hAdd a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.h]hAdd a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%platform_device_add_data (C function)c.platform_device_add_datahNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hZint platform_device_add_data (struct platform_device *pdev, const void *data, size_t size)h]h)}(hYint platform_device_add_data(struct platform_device *pdev, const void *data, size_t size)h](j7)}(hinth]hint}(hjāhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjӁhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjҁhMubj")}(hplatform_device_add_datah]j()}(hplatform_device_add_datah]hplatform_device_add_data}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjҁhMubj7)}(h=(struct platform_device *pdev, const void *data, size_t size)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj!modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.platform_device_add_dataasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjMhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hpdevh]hpdev}(hjZhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjoubj()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h size_t sizeh](h)}(hhh]j()}(hsize_th]hsize_t}(hjӂhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjЂubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjՂmodnameN classnameNj:8j=8)}j@8]j;c.platform_device_add_dataasbuh1hhĵubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhĵubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hĵubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjҁhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjҁhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjҁhMhjhhubjV)}(hhh]j[)}(h/add platform-specific data to a platform deviceh]h/add platform-specific data to a platform device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjҁhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjAj{jAj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to ``const void *data`` platform specific data for this platform device ``size_t size`` size of platform specific data **Description** Add a copy of platform specific data to the platform device's platform_data pointer. The memory associated with the platform data will be freed when the platform device is released.h](j[)}(h**Parameters**h]j)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjEubj)}(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)}(hjjh]hstruct platform_device *pdev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjdubj)}(hhh]j[)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj܃h]h size_t size}(hjރhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڃubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjփubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjփubeh}(h]h ]h"]h$]h&]uh1jhjhMhjaubeh}(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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjEubj[)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(platform_device_set_of_node (C function)c.platform_device_set_of_nodehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hWvoid platform_device_set_of_node (struct platform_device *pdev, struct device_node *np)h]h)}(hVvoid platform_device_set_of_node(struct platform_device *pdev, struct device_node *np)h](j7)}(hvoidh]hvoid}(hj\hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjXhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjjhMubj")}(hplatform_device_set_of_nodeh]j()}(hplatform_device_set_of_nodeh]hplatform_device_set_of_node}(hj}hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjXhhhjjhMubj7)}(h6(struct platform_device *pdev, struct device_node *np)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.platform_device_set_of_nodeasbuh1hhjubj)}(h h]h }(hjׄhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct device_node *nph](h)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(h device_nodeh]h device_node}(hj)hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj&ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj+modnameN classnameNj:8j=8)}j@8]jӄc.platform_device_set_of_nodeasbuh1hhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjUhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnph]hnp}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjXhhhjjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjThhhjjhMubah}(h]jOah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjjhMhjQhhubjV)}(hhh]j[)}(hassign an OF node to deviceh]hassign an OF node to device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjQhhhjjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to add the node for ``struct device_node *np`` new device node **Description** Assign an OF node to this platform device. Internally keep track of the reference count. Devices created with platform_device_alloc() must use this function instead of assigning the node manually. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.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:66: ./drivers/base/platform.chMhjubj)}(hhh](j)}(hE``struct platform_device *pdev`` platform device to add the node for h](j)}(h ``struct platform_device *pdev``h]j)}(hjͅh]hstruct platform_device *pdev}(hjυhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj˅ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjDžubj)}(hhh]j[)}(h#platform device to add the node forh]h#platform device to add the node for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjDžubeh}(h]h ]h"]h$]h&]uh1jhjhMhjąubj)}(h+``struct device_node *np`` new device node h](j)}(h``struct device_node *np``h]j)}(hjh]hstruct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hnew device nodeh]hnew device node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjąubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj[)}(hXCAssign an OF node to this platform device. Internally keep track of the reference count. Devices created with platform_device_alloc() must use this function instead of assigning the node manually. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.h]hXCAssign an OF node to this platform device. Internally keep track of the reference count. Devices created with platform_device_alloc() must use this function instead of assigning the node manually. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'platform_device_set_fwnode (C function)c.platform_device_set_fwnodehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h\void platform_device_set_fwnode (struct platform_device *pdev, struct fwnode_handle *fwnode)h]h)}(h[void platform_device_set_fwnode(struct platform_device *pdev, struct fwnode_handle *fwnode)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hplatform_device_set_fwnodeh]j()}(hplatform_device_set_fwnodeh]hplatform_device_set_fwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h<(struct platform_device *pdev, struct fwnode_handle *fwnode)h](j7)}(hstruct platform_device *pdevh](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_deviceh]hplatform_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjކubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.platform_device_set_fwnodeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct fwnode_handle *fwnodeh](h)}(hjh]hstruct}(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubh)}(hhh]j()}(h fwnode_handleh]h fwnode_handle}(hjShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjUmodnameN classnameNj:8j=8)}j@8]jc.platform_device_set_fwnodeasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj1ubj()}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj1ubeh}(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]jyah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhj{hhubjV)}(hhh]j[)}(h assign a firmware node to deviceh]h assign a firmware node to device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj{hhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj·j{j·j|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to set the node for ``struct fwnode_handle *fwnode`` new firmware node **Description** Assign a firmware node to this platform device. Internally keep track of the reference count. Devices created with platform_device_alloc() must use this function instead of assigning the node manually. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.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:66: ./drivers/base/platform.chMhj҇ubj)}(hhh](j)}(hE``struct platform_device *pdev`` platform device to set the node for h](j)}(h ``struct platform_device *pdev``h]j)}(hjh]hstruct platform_device *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h#platform device to set the node forh]h#platform device to set the node for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h3``struct fwnode_handle *fwnode`` new firmware node h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hj0h]hstruct fwnode_handle *fwnode}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj*ubj)}(hhh]j[)}(hnew firmware nodeh]hnew firmware node}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMhjubeh}(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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj҇ubj[)}(hXHAssign a firmware node to this platform device. Internally keep track of the reference count. Devices created with platform_device_alloc() must use this function instead of assigning the node manually. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.h]hXHAssign a firmware node to this platform device. Internally keep track of the reference count. Devices created with platform_device_alloc() must use this function instead of assigning the node manually. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj҇ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h1platform_device_set_of_node_from_dev (C function)&c.platform_device_set_of_node_from_devhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(hcvoid platform_device_set_of_node_from_dev (struct platform_device *pdev, const struct device *dev2)h]h)}(hbvoid platform_device_set_of_node_from_dev(struct platform_device *pdev, const struct device *dev2)h](j7)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(h$platform_device_set_of_node_from_devh]j()}(h$platform_device_set_of_node_from_devh]h$platform_device_set_of_node_from_dev}(hjшhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj͈ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h9(struct platform_device *pdev, const struct device *dev2)h](j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]jC8)}j68jӈsb&c.platform_device_set_of_node_from_devasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj9hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hpdevh]hpdev}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device *dev2h](h)}(hj8h]hconst}(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubh)}(hjh]hstruct}(hjzhhhNhNubah}(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]j'&c.platform_device_set_of_node_from_devasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjW8)}(hjZ8h]h*}(hjĉhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj[ubj()}(hdev2h]hdev2}(hjщhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj[ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hreuse OF node of another deviceh]hreuse OF node of another device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``struct platform_device *pdev`` platform device to set the node for ``const struct device *dev2`` device whose OF node to reuse **Description** Reuses the OF node of another device in this platform device while internally keeping track of reference counting. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.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:66: ./drivers/base/platform.chMhjubj)}(hhh](j)}(hE``struct platform_device *pdev`` platform device to set the node for h](j)}(h ``struct platform_device *pdev``h]j)}(hj<h]hstruct platform_device *pdev}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj6ubj)}(hhh]j[)}(h#platform device to set the node forh]h#platform device to set the node for}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj3ubj)}(h<``const struct device *dev2`` device whose OF node to reuse h](j)}(h``const struct device *dev2``h]j)}(hjuh]hconst struct device *dev2}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjoubj)}(hhh]j[)}(hdevice whose OF node to reuseh]hdevice whose OF node to reuse}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhj3ubeh}(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:66: ./drivers/base/platform.chMhjubj[)}(hReuses the OF node of another device in this platform device while internally keeping track of reference counting. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.h]hReuses the OF node of another device in this platform device while internally keeping track of reference counting. This function must not be called for a platform device that already has a software node as its primary firmware node assigned.}(hjƊhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h platform_device_add (C function)c.platform_device_addhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h6int platform_device_add (struct platform_device *pdev)h]h)}(h5int platform_device_add(struct platform_device *pdev)h](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hplatform_device_addh]j()}(hplatform_device_addh]hplatform_device_add}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hj2hhhNhNubah}(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}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjMubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjRmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.platform_device_addasbuh1hhj.ubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjW8)}(hjZ8h]h*}(hj~hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj.ubj()}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj.ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj*ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h)add a platform device to device hierarchyh]h)add a platform device to device hierarchy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj͋j{j͋j|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:66: ./drivers/base/platform.chMhjыubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hjh]hstruct platform_device *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjыubj[)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjыubj[)}(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().}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjыubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h platform_device_del (C function)c.platform_device_delhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h7void platform_device_del (struct platform_device *pdev)h]h)}(h6void platform_device_del(struct platform_device *pdev)h](j7)}(hvoidh]hvoid}(hjvhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjrhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhMXubj")}(hplatform_device_delh]j()}(hplatform_device_delh]hplatform_device_del}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjrhhhjhMXubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(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]jC8)}j68jsbc.platform_device_delasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hpdevh]hpdev}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjrhhhjhMXubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjnhhhjhMXubah}(h]jiah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMXhjkhhubjV)}(hhh]j[)}(hremove a platform-level deviceh]hremove a platform-level device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMXhj3hhubah}(h]h ]h"]h$]h&]uh1jUhjkhhhjhMXubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjNj{jNj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM\hjRubj)}(hhh]j)}(h@``struct platform_device *pdev`` platform device we're removing h](j)}(h ``struct platform_device *pdev``h]j)}(hjwh]hstruct platform_device *pdev}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMYhjqubj)}(hhh]j[)}(hplatform device we're removingh]h platform device we’re removing}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMYhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMYhjnubah}(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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM[hjRubj[)}(hNote that this function will also release all memory- and port-based resources owned by the device (**dev->resource**). This function must _only_ be externally called in error cases. All other usage is a bug.h](hdNote that this function will also release all memory- and port-based resources owned by the device (}(hjȍhhhNhNubj)}(h**dev->resource**h]h dev->resource}(hjЍhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȍubh]). This function must _only_ be externally called in error cases. All other usage is a bug.}(hjȍhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMZhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h%platform_device_register (C function)c.platform_device_registerhNtauh1hhj)qhhhNhNubh)}(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 hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMuubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMuubj")}(hplatform_device_registerh]j()}(hplatform_device_registerh]hplatform_device_register}(hj*hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj&ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMuubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](h)}(hjh]hstruct}(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjfmodnameN classnameNj:8j=8)}j@8]jC8)}j68j,sbc.platform_device_registerasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjBubj()}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjBubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj>ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMuubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMuubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMuhjhhubjV)}(hhh]j[)}(hadd a platform-level deviceh]hadd a platform-level device}(hjɎhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMuhjƎhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMuubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:66: ./drivers/base/platform.chMyhjubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hj h]hstruct platform_device *pdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMvhjubj)}(hhh]j[)}(hplatform device we're addingh]hplatform device we’re adding}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMvhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**NOTE**h]j)}(hjEh]hNOTE}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMxhjubj[)}(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 }(hj[hhhNhNubj)}(h**pdev**h]hpdev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh 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.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'platform_device_unregister (C function)c.platform_device_unregisterhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hplatform_device_unregisterh]j()}(hplatform_device_unregisterh]hplatform_device_unregister}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct platform_device *pdev)h]j7)}(hstruct platform_device *pdevh](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()}(hplatform_deviceh]hplatform_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.platform_device_unregisterasbuh1hhjՏubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjՏubjW8)}(hjZ8h]h*}(hj%hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjՏubj()}(hpdevh]hpdev}(hj2hhhNhNubah}(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"unregister a platform-level deviceh]h"unregister a platform-level device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjtj{jtj|j}j~uh1hhhhj)qhNhNubj)}(hX **Parameters** ``struct platform_device *pdev`` platform device we're unregistering **Description** Unregistration is done in 2 steps. First we release all resources and remove it from the subsystem, then we drop reference count by calling platform_device_put().h](j[)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjxubj)}(hhh]j)}(hE``struct platform_device *pdev`` platform device we're unregistering h](j)}(h ``struct platform_device *pdev``h]j)}(hjh]hstruct platform_device *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h#platform device we're unregisteringh]h%platform device we’re unregistering}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjxubj[)}(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:66: ./drivers/base/platform.chMhjxubj[)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h*platform_device_register_full (C function)c.platform_device_register_fullhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hMubh)}(hhh]j()}(hplatform_deviceh]hplatform_device}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj9ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj>modnameN classnameNj:8j=8)}j@8]jC8)}j68platform_device_register_fullsbc.platform_device_register_fullasbuh1hhjhhhj*hMubj)}(h h]h }(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj*hMubjW8)}(hjZ8h]h*}(hjkhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhj*hMubj")}(hplatform_device_register_fullh]j()}(hjZh]hplatform_device_register_full}(hj|hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj*hMubj7)}(h-(const struct platform_device_info *pdevinfo)h]j7)}(h+const struct platform_device_info *pdevinfoh](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()}(hplatform_device_infoh]hplatform_device_info}(hjБhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj͑ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjґmodnameN classnameNj:8j=8)}j@8]jXc.platform_device_register_fullasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hpdevinfoh]hpdevinfo}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj*hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj*hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj*hMhjhhubjV)}(hhh]j[)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj*hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjKj{jKj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjOubj)}(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)}(hjth]h+const struct platform_device_info *pdevinfo}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjnubj)}(hhh]j[)}(hdata used to create deviceh]hdata used to create device}(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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjOubj[)}(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 ](jjtc-typeeh"]h$]h&]uh1jhj͒ubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjŒubh+ pointer on success, or ERR_PTR() on error.}(hjŒhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhjhMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'__platform_driver_register (C function)c.__platform_driver_registerhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj%hMubj")}(h__platform_driver_registerh]j()}(h__platform_driver_registerh]h__platform_driver_register}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj%hMubj7)}(hI(struct platform_driver *drv, struct module *owner, const char *mod_name)h](j7)}(hstruct platform_driver *drvh](h)}(hjh]hstruct}(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjrhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjoubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjtmodnameN classnameNj:8j=8)}j@8]jC8)}j68j:sbc.__platform_driver_registerasbuh1hhjPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjPubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjPubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubj7)}(hstruct module *ownerh](h)}(hjh]hstruct}(hjƓhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj“ubj)}(h h]h }(hjӓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj“ubh)}(hhh]j()}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.__platform_driver_registerasbuh1hhj“ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj“ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj“ubj()}(hownerh]howner}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj“ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubj7)}(hconst char *mod_nameh](h)}(hj8h]hconst}(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj7)}(hcharh]hchar}(hjQhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj2ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjW8)}(hjZ8h]h*}(hjmhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj2ubj()}(hmod_nameh]hmod_name}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj2ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjLubeh}(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[)}(h,register a driver for platform-level devicesh]h,register a driver for platform-level devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhj hhhj%hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:66: ./drivers/base/platform.chMhjubj)}(hhh](j)}(h:``struct platform_driver *drv`` platform driver structure h](j)}(h``struct platform_driver *drv``h]j)}(hjh]hstruct platform_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjߔubj)}(hhh]j[)}(hplatform driver structureh]hplatform driver structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjߔubeh}(h]h ]h"]h$]h&]uh1jhjhMhjܔubj)}(h.``struct module *owner`` owning module/driver h](j)}(h``struct module *owner``h]j)}(hjh]hstruct module *owner}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(howning module/driverh]howning module/driver}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjܔubj)}(h+``const char *mod_name`` module name stringh](j)}(h``const char *mod_name``h]j)}(hjWh]hconst char *mod_name}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjQubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhMhjܔubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'platform_driver_unregister (C function)c.platform_driver_unregisterhNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h=void platform_driver_unregister (struct platform_driver *drv)h]h)}(hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjLhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hmoduleh]hmodule}(hjYhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeubj7)}(hconst char *mod_nameh](h)}(hj8h]hconst}(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjnubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjnubj()}(hmod_nameh]hmod_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjnubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjeubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMEubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMEubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMEhjhhubjV)}(hhh]j[)}(h/register driver and create corresponding deviceh]h/register driver and create corresponding device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMEhjݞhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMEubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX.**Parameters** ``struct platform_driver *driver`` platform driver structure ``int (*probe)(struct platform_device *)`` the driver probe routine, probably from an __init section ``struct resource *res`` set of resources that needs to be allocated for the device ``unsigned int n_res`` number of resources ``const void *data`` platform specific data for this platform device ``size_t size`` size of platform specific data ``struct module *module`` module which will be the owner of the driver ``const char *mod_name`` module name string **Description** Use this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver. Returns :c:type:`struct platform_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&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMIhjubj)}(hhh](j)}(h=``struct platform_driver *driver`` platform driver structure h](j)}(h"``struct platform_driver *driver``h]j)}(hj!h]hstruct platform_driver *driver}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMFhjubj)}(hhh]j[)}(hplatform driver structureh]hplatform driver structure}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj6hMFhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hMFhjubj)}(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)}(hjZh]h&int (*probe)(struct platform_device *)}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMGhjTubj)}(hhh]j[)}(h9the driver probe routine, probably from an __init sectionh]h9the driver probe routine, probably from an __init section}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohMGhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohMGhjubj)}(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:66: ./drivers/base/platform.chMHhjubj)}(hhh]j[)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(h+``unsigned int n_res`` number of resources h](j)}(h``unsigned int n_res``h]j)}(hj̟h]hunsigned int n_res}(hjΟhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʟubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMIhjƟubj)}(hhh]j[)}(hnumber of resourcesh]hnumber of resources}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMIhjubah}(h]h ]h"]h$]h&]uh1jhjƟubeh}(h]h ]h"]h$]h&]uh1jhjhMIhjubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMJhjubj)}(hhh]j[)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj>h]h size_t size}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMKhj8ubj)}(hhh]j[)}(hsize of platform specific datah]hsize of platform specific data}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjShMKhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShMKhjubj)}(hG``struct module *module`` module which will be the owner of the driver h](j)}(h``struct module *module``h]j)}(hjwh]hstruct module *module}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMLhjqubj)}(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&]uh1jZhjhMLhjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(h,``const char *mod_name`` module name string h](j)}(h``const char *mod_name``h]j)}(hjh]hconst char *mod_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMMhjubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hjɠhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjŠhMMhjƠubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjŠhMMhjubeh}(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:66: ./drivers/base/platform.chMOhjubj[)}(hUse this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver.h]hUse this in legacy-style modules that probe hardware directly and register a single platform device and corresponding platform driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMNhjubj[)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hjh]hstruct platform_device}(hjhhhNhNubah}(h]h ](jjtc-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocj refdomainjtreftypetype refexplicitrefwarnj:8jjplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMQhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhj7hMQhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(__platform_register_drivers (C function)c.__platform_register_drivershNtauh1hhj)qhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj^hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjphMubj")}(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!hj^hhhjphMubj7)}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.__platform_register_driversasbuh1hhjubj)}(h h]h }(hjݡhhhNhNubah}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdriversh]hdrivers}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hunsigned int counth](j7)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj5ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj7)}(hinth]hint}(hjUhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj5ubj)}(h h]h }(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj()}(hcounth]hcount}(hjqhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubeh}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j١c.__platform_register_driversasbuh1hhjubj)}(h h]h }(hjƢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjԢhhhNhNubah}(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}(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*}(hj1hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hmod_nameh]hmod_name}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj^hhhjphMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjZhhhjphMubah}(h]jUah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjphMhjWhhubjV)}(hhh]j[)}(h%register an array of platform driversh]h%register an array of platform drivers}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjehhubah}(h]h ]h"]h$]h&]uh1jUhjWhhhjphMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:66: ./drivers/base/platform.chMhjubj)}(hhh](j)}(hL``struct platform_driver * const *drivers`` an array of drivers to register 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:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(han array of drivers to registerh]han array of drivers to register}(hj£hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``unsigned int count`` the number of drivers to register h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjܣubj)}(hhh]j[)}(h!the number of drivers to registerh]h!the number of drivers to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjܣubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h3``struct module *owner`` module owning the drivers h](j)}(h``struct module *owner``h]j)}(hjh]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(hmodule owning the driversh]hmodule owning the drivers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubj)}(h,``const char *mod_name`` module name string h](j)}(h``const char *mod_name``h]j)}(hjTh]hconst char *mod_name}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjNubj)}(hhh]j[)}(hmodule name stringh]hmodule name string}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjubeh}(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:66: ./drivers/base/platform.chMhjubj[)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj[)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj[)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hj̤hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(platform_unregister_drivers (C function)c.platform_unregister_drivershNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hMubj")}(hplatform_unregister_driversh]j()}(hplatform_unregister_driversh]hplatform_unregister_drivers}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hMubj7)}(h<(struct platform_driver *const *drivers, unsigned int count)h](j7)}(h&struct platform_driver *const *driversh](h)}(hjh]hstruct}(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubh)}(hhh]j()}(hplatform_driverh]hplatform_driver}(hjVhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjSubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjXmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.platform_unregister_driversasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj4ubh)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj4ubj()}(hdriversh]hdrivers}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(hunsigned int counth](j7)}(hunsignedh]hunsigned}(hjҥhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjΥubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΥubj7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjΥubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjΥubj()}(hcounth]hcount}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjΥubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hMhjhhubjV)}(hhh]j[)}(h'unregister an array of platform driversh]h'unregister an array of platform drivers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhj1hhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjLj{jLj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjPubj)}(hhh](j)}(hN``struct platform_driver * const *drivers`` an array of drivers to unregister h](j)}(h+``struct platform_driver * const *drivers``h]j)}(hjuh]h'struct platform_driver * const *drivers}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjoubj)}(hhh]j[)}(h!an array of drivers to unregisterh]h!an array of drivers to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMhjlubj)}(h;``unsigned int count`` the number of drivers to unregister h](j)}(h``unsigned int count``h]j)}(hjh]hunsigned int count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjubj)}(hhh]j[)}(h#the number of drivers to unregisterh]h#the number of drivers to unregister}(hjǦhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjæhMhjĦubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjæhMhjlubeh}(h]h ]h"]h$]h&]uh1jhjPubj[)}(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:66: ./drivers/base/platform.chMhjPubj[)}(hUnregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.h]hUnregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMhjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h+platform_find_device_by_driver (C function) c.platform_find_device_by_driverhNtauh1hhj)qhhhNhNubh)}(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}(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM>ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj;hM>ubh)}(hhh]j()}(hdeviceh]hdevice}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjJubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjOmodnameN classnameNj:8j=8)}j@8]jC8)}j68platform_find_device_by_driversb c.platform_find_device_by_driverasbuh1hhj*hhhj;hM>ubj)}(h h]h }(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhj;hM>ubjW8)}(hjZ8h]h*}(hj|hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj*hhhj;hM>ubj")}(hplatform_find_device_by_driverh]j()}(hjkh]hplatform_find_device_by_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj*hhhj;hM>ubj7)}(h7(struct device *start, const struct device_driver *drv)h](j7)}(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]ji c.platform_find_device_by_driverasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct device_driver *drvh](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 device_driverh]h device_driver}(hjQhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjNubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjSmodnameN classnameNj:8j=8)}j@8]ji c.platform_find_device_by_driverasbuh1hhjubj)}(h h]h }(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj}hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj*hhhj;hM>ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj&hhhj;hM>ubah}(h]j!ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj;hM>hj#hhubjV)}(hhh]j[)}(h+Find a platform device with a given driver.h]h+Find a platform device with a given driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jUhj#hhhj;hM>ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj̨j{j̨j|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``struct device *start`` The device to start the search from. ``const struct device_driver *drv`` The device driver to look for.h](j[)}(h**Parameters**h]j)}(hj֨h]h Parameters}(hjبhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԨubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMBhjШubj)}(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:66: ./drivers/base/platform.chM@hjubj)}(hhh]j[)}(h$The device to start the search from.h]h$The device to start the search from.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hM@hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hM@hjubj)}(hB``const struct device_driver *drv`` The device driver to look for.h](j)}(h#``const struct device_driver *drv``h]j)}(hj.h]hconst struct device_driver *drv}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMBhj(ubj)}(hhh]j[)}(hThe device driver to look for.h]hThe device driver to look for.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:66: ./drivers/base/platform.chMAhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMBhjubeh}(h]h ]h"]h$]h&]uh1jhjШubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bus_find_device_by_name (C function)c.bus_find_device_by_namehNtauh1hhj)qhhhNhNubh)}(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:69: ./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_namesbc.bus_find_device_by_nameasbuh1hhjhhhjhKubj)}(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_nameh]j()}(hjũh]hbus_find_device_by_name}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(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}(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_nameasbuh1hhjubj)}(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)}(hstruct device *starth](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jéc.bus_find_device_by_nameasbuh1hhjubj)}(h h]h }(hjɪhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjתhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *nameh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(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*}(hj4hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnameh]hname}(hjAhhhNhNubah}(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[)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjhhhubah}(h]h ]h"]h$]h&]uh1jUhj}hhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:69: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hjūhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhj«ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhj߫ubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj߫ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hname of the device to matchh]hname of the device to match}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'bus_find_device_by_of_node (C function)c.bus_find_device_by_of_nodehNtauh1hhj)qhhhNhNubh)}(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}(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhKubh)}(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_nodeasbuh1hhjthhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjthhhjhKubjW8)}(hjZ8h]h*}(hjƬhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjthhhjhKubj")}(hbus_find_device_by_of_nodeh]j()}(hjh]hbus_find_device_by_of_node}(hj׬hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjӬubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjthhhjhKubj7)}(h:(const struct bus_type *bus, const struct device_node *np)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hj+hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj-modnameN classnameNj:8j=8)}j@8]jc.bus_find_device_by_of_nodeasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hbush]hbus}(hjdhhhNhNubah}(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&]uh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubh)}(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.bus_find_device_by_of_nodeasbuh1hhjyubj)}(h h]h }(hjԭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjyubj()}(hnph]hnp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjthhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjphhhjhKubah}(h]jkah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjmhhubjV)}(hhh]j[)}(hFdevice iterator for locating a particular device matching the of_node.h]hFdevice iterator for locating a particular device matching the of_node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjmhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj1j{j1j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhj5ubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjZh]hconst struct bus_type *bus}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjTubj)}(hhh]j[)}(hbus typeh]hbus type}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjohKhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohKhjQubj)}(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:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hof_node of the device to match.h]hof_node of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjQubeh}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h&bus_find_device_by_fwnode (C function)c.bus_find_device_by_fwnodehNtauh1hhj)qhhhNhNubh)}(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:69: ./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 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_fwnodesbc.bus_find_device_by_fwnodeasbuh1hhjhhhjhKubj)}(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_fwnodeh]j()}(hj*h]hbus_find_device_by_fwnode}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h@(const struct bus_type *bus, const struct fwnode_handle *fwnode)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(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.bus_find_device_by_fwnodeasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjW8)}(hjZ8h]h*}(hj̯hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjcubj()}(hbush]hbus}(hjٯhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(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}(hj hhhNhNubah}(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.bus_find_device_by_fwnodeasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfwnodeh]hfwnode}(hjdhhhNhNubah}(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[)}(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:69: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./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:69: ./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)}(hE``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](j)}(h&``const struct fwnode_handle *fwnode``h]j)}(hjh]h"const struct fwnode_handle *fwnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjưubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$bus_find_device_by_devt (C function)c.bus_find_device_by_devthNtauh1hhj)qhhhNhNubh)}(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}(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKubj)}(h h]h }(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjohKubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_devtsbc.bus_find_device_by_devtasbuh1hhj^hhhjohKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^hhhjohKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj^hhhjohKubj")}(hbus_find_device_by_devth]j()}(hjh]hbus_find_device_by_devt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj^hhhjohKubj7)}(h((const struct bus_type *bus, dev_t devt)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjܱhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjرubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjرubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjرubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjرubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.bus_find_device_by_devtasbuh1hhjرubj)}(h h]h }(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjرubjW8)}(hjZ8h]h*}(hjAhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjرubj()}(hbush]hbus}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjرubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjԱubj7)}(h dev_t devth](h)}(hhh]j()}(hdev_th]hdev_t}(hjjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjlmodnameN classnameNj:8j=8)}j@8]jc.bus_find_device_by_devtasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj()}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjԱubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj^hhhjohKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjZhhhjohKubah}(h]jUah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjohKhjWhhubjV)}(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:69: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjWhhhjohKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjزj{jزj|j}j~uh1hhhhj)qhNhNubj)}(ho**Parameters** ``const struct bus_type *bus`` bus type ``dev_t devt`` device type of the device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./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:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hbus typeh]hbus 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&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhj4ubj)}(hhh]j[)}(h#device type of the device to match.h]h#device type of the device to match.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjPubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhjOhKhjubeh}(h]h ]h"]h$]h&]uh1jhjܲubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h!bus_find_next_device (C function)c.bus_find_next_devicehNtauh1hhj)qhhhNhNubh)}(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:69: ./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_next_devicesbc.bus_find_next_deviceasbuh1hhjhhhjhKubj)}(h h]h }(hjԳhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhKubj")}(hbus_find_next_deviceh]j()}(hjѳh]hbus_find_next_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h0(const struct bus_type *bus, struct device *cur)h](j7)}(hconst struct bus_type *bush](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 }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjImodnameN classnameNj:8j=8)}j@8]jϳc.bus_find_next_deviceasbuh1hhj ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjshhhNhNubah}(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@uh1j7hjubj7)}(hstruct device *curh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jϳc.bus_find_next_deviceasbuh1hhjubj)}(h h]h }(hjմhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hcurh]hcur}(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[)}(h9Find the next device after a given device in a given bus.h]h9Find the next device after a given device in a given bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj2j{j2j|j}j~uh1hhhhj)qhNhNubj)}(ht**Parameters** ``const struct bus_type *bus`` bus type ``struct device *cur`` device to begin the search with.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:69: ./include/linux/device/bus.hhKhj6ubj)}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjUubj)}(hhh]j[)}(hbus typeh]hbus type}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphKhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphKhjRubj)}(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:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(h device to begin the search with.h]h device to begin the search with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h(bus_find_device_by_acpi_dev (C function)c.bus_find_device_by_acpi_devhNtauh1hhj)qhhhNhNubh)}(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:69: ./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 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68bus_find_device_by_acpi_devsbc.bus_find_device_by_acpi_devasbuh1hhjhhhjhKubj)}(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_acpi_devh]j()}(hj+h]hbus_find_device_by_acpi_dev}(hjMhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjIubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhKubj7)}(h<(const struct bus_type *bus, const struct acpi_device *adev)h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(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()}(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.bus_find_device_by_acpi_devasbuh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjW8)}(hjZ8h]h*}(hjͶhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubj()}(hbush]hbus}(hjڶhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj`ubj7)}(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}(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_acpi_devasbuh1hhjubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hadevh]hadev}(hjehhhNhNubah}(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[)}(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:69: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./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:69: ./include/linux/device/bus.hhKhjʷubj)}(hhh]j[)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjʷubeh}(h]h ]h"]h$]h&]uh1jhjhKhjǷubj)}(hB``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hj h]hconst struct acpi_device *adev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubj)}(hhh]j[)}(hACPI COMPANION device to match.h]hACPI COMPANION device to match.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:69: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjǷubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_for_each_dev (C function)c.bus_for_each_devhNtauh1hhj)qhhhNhNubh)}(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}(hjchhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj_hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM_ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhhjqhM_ubj")}(hbus_for_each_devh]j()}(hbus_for_each_devh]hbus_for_each_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj_hhhjqhM_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}(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]jC8)}j68jsbc.bus_for_each_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)}(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}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjHubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjMmodnameN classnameNj:8j=8)}j@8]jc.bus_for_each_devasbuh1hhj)ubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjW8)}(hjZ8h]h*}(hjwhhhNhNubah}(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@uh1j7hjubj7)}(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}(hjƹhhhNhNubah}(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'hj߹ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.bus_for_each_devasbuh1hhj۹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@uh1j7hj_hhhjqhM_ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj[hhhjqhM_ubah}(h]jVah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjqhM_hjXhhubjV)}(hhh]j[)}(hdevice iterator.h]hdevice iterator.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM_hj5hhubah}(h]h ]h"]h$]h&]uh1jUhjXhhhjqhM_ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjPj{jPj|j}j~uh1hhhhj)qhNhNubj)}(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.Yh](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:72: ./drivers/base/bus.chMchjTubj)}(hhh](j)}(h)``const struct bus_type *bus`` bus type. h](j)}(h``const struct bus_type *bus``h]j)}(hjyh]hconst struct bus_type *bus}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM`hjsubj)}(hhh]j[)}(h bus type.h]h bus type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM`hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM`hjpubj)}(h9``struct device *start`` device to start iterating from. h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMahjubj)}(hhh]j[)}(hdevice to start iterating from.h]hdevice to start iterating from.}(hj˺hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjǺhMahjȺubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjǺhMahjpubj)}(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:72: ./drivers/base/bus.chMbhjubj)}(hhh]j[)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMbhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMbhjpubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hj$h]hdevice_iter_t fn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMchjubj)}(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&]uh1jZhj9hMchj:ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj9hMchjpubeh}(h]h ]h"]h$]h&]uh1jhjTubj[)}(h**Description**h]j)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMehjTubj[)}(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 }(hjuhhhNhNubj)}(h**bus**h]hbus}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh’s list of devices, and call }(hjuhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh for each, passing it }(hjuhhhNhNubj)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh. If }(hjuhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh9 is not NULL, we use that device to begin iterating from.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMdhjTubj[)}(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}(hjԻhhhNhNubah}(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:72: ./drivers/base/bus.chMhhjTubj[)}(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:72: ./drivers/base/bus.chMkhjTubj[)}(hThe device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.h]hThe device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMlhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_find_device (C function)c.bus_find_devicehNtauh1hhj)qhhhNhNubh)}(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}(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMubh)}(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)}j68bus_find_devicesbc.bus_find_deviceasbuh1hhj0hhhjAhMubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjAhMubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj0hhhjAhMubj")}(hbus_find_deviceh]j()}(hjqh]hbus_find_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj0hhhjAhMubj7)}(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}(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]joc.bus_find_deviceasbuh1hhjubj)}(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@uh1j7hjubj7)}(hstruct device *starth](h)}(hjh]hstruct}(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubh)}(hhh]j()}(hdeviceh]hdevice}(hjWhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjYmodnameN classnameNj:8j=8)}j@8]joc.bus_find_deviceasbuh1hhj5ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj5ubj()}(hstarth]hstart}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst void *datah](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj7)}(hvoidh]hvoid}(hjĽhhhNhNubah}(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()}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hdevice_match_t matchh](h)}(hhh]j()}(hdevice_match_th]hdevice_match_t}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]joc.bus_find_deviceasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hmatchh]hmatch}(hj5hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj0hhhjAhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj,hhhjAhMubah}(h]j'ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjAhMhj)hhubjV)}(hhh]j[)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj\hhubah}(h]h ]h"]h$]h&]uh1jUhj)hhhjAhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjwj{jwj|j}j~uh1hhhhj)qhNhNubj)}(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:72: ./drivers/base/bus.chMhj{ubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(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:72: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(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:72: ./drivers/base/bus.chMhjӾubj)}(hhh]j[)}(hDevice to begin withh]hDevice to begin with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjӾubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``const void *data`` Data to pass to 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:72: ./drivers/base/bus.chMhj ubj)}(hhh]j[)}(hData to pass to match functionh]hData to pass to match function}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj'hMhj(ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjKh]hdevice_match_t match}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjEubj)}(hhh]j[)}(h!Callback function to check deviceh]h!Callback function to check device}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj`hMhjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hMhjubeh}(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:72: ./drivers/base/bus.chMhj{ubj[)}(hThis is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is 'found' for later use, as determined by the **match** callback.h](hThis is similar to the bus_for_each_dev() function above, but it returns a reference to a device that is ‘found’ for later use, as determined by the }(hjhhhNhNubj)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj{ubj[)}(hThe callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.h]hThe callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_for_each_drv (C function)c.bus_for_each_drvhNtauh1hhj)qhhhNhNubh)}(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:72: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hbus_for_each_drvh]j()}(hbus_for_each_drvh]hbus_for_each_drv}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(hn(const struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver*, void*))h](j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hjh]hstruct}(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjbhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjdmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.bus_for_each_drvasbuh1hhj%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_driver *starth](h)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j~c.bus_for_each_drvasbuh1hhjubj)}(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)}(h void *datah](j7)}(hvoidh]hvoid}(hj&hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj"ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjW8)}(hjZ8h]h*}(hjBhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj"ubj()}(hdatah]hdata}(hjOhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj"ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj!ubj7)}(h'int (*fn)(struct device_driver*, void*)h](j7)}(hinth]hint}(hjhhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjdubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubjW8)}(hjٗh]h(}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubj()}(hfnh]hfn}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjdubjW8)}(hjh]h)}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubjW8)}(hjٗh]h(}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubh)}(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]j~c.bus_for_each_drvasbuh1hhjdubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubjW8)}(h,h]h,}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj7)}(hvoidh]hvoid}(hj+hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjdubjW8)}(hjZ8h]h*}(hj9hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubjW8)}(hjh]h)}(hjFhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjdubeh}(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]j߿ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hdriver iteratorh]hdriver iterator}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:72: ./drivers/base/bus.chMhjubj)}(hhh](j)}(h7``const struct bus_type *bus`` bus we're dealing with. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj)}(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&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``struct device_driver *start`` driver to start iterating on. h](j)}(h``struct device_driver *start``h]j)}(hjh]hstruct device_driver *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hdriver to start iterating on.h]hdriver to start iterating on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h-``void *data`` data to pass to the callback. h](j)}(h``void *data``h]j)}(hj"h]h void *data}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hdata to pass to the callback.h]hdata to pass to the callback.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(hP``int (*fn)(struct device_driver *, void *)`` function to call for each driver. h](j)}(h-``int (*fn)(struct device_driver *, void *)``h]j)}(hj[h]h)int (*fn)(struct device_driver *, void *)}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjUubj)}(hhh]j[)}(h!function to call for each driver.h]h!function to call for each driver.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj[)}(hXThis is nearly identical to the device iterator above. We iterate over each driver that belongs to **bus**, and call **fn** for each. If **fn** returns anything but 0, we break out and return it. If **start** is not NULL, we use it as the head of the list.h](hcThis is nearly identical to the device iterator above. We iterate over each driver that belongs to }(hjhhhNhNubj)}(h**bus**h]hbus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh , and call }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh for each. If }(hjhhhNhNubj)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh8 returns anything but 0, we break out and return it. If }(hjhhhNhNubj)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh0 is not NULL, we use it as the head of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj[)}(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:72: ./drivers/base/bus.chMhjubj[)}(hX(we don't return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn't disappear before returning to the caller.h]hX,we don’t return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn’t disappear before returning to the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_rescan_devices (C function)c.bus_rescan_deviceshNtauh1hhj)qhhhNhNubh)}(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}(hjJhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjFhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM^ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhjXhM^ubj")}(hbus_rescan_devicesh]j()}(hbus_rescan_devicesh]hbus_rescan_devices}(hjkhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjgubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjFhhhjXhM^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}(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]jC8)}j68jmsbc.bus_rescan_devicesasbuh1hhjubj)}(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@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjFhhhjXhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjBhhhjXhM^ubah}(h]j=ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjXhM^hj?hhubjV)}(hhh]j[)}(h.rescan devices on the bus for possible driversh]h.rescan devices on the bus for possible drivers}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM^hj"hhubah}(h]h ]h"]h$]h&]uh1jUhj?hhhjXhM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj=j{j=j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMbhjAubj)}(hhh]j)}(h0``const struct bus_type *bus`` the bus to scan. h](j)}(h``const struct bus_type *bus``h]j)}(hjfh]hconst struct bus_type *bus}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM_hj`ubj)}(hhh]j[)}(hthe bus to scan.h]hthe bus to scan.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj{hM_hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hM_hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubj[)}(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:72: ./drivers/base/bus.chMahjAubj[)}(hThis function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.h]hThis function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM`hjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdevice_reprobe (C function)c.device_reprobehNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h'int device_reprobe (struct device *dev)h]h)}(h&int device_reprobe(struct device *dev)h](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMlubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMlubj")}(hdevice_reprobeh]j()}(hdevice_reprobeh]hdevice_reprobe}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMlubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjCmodnameN classnameNj:8j=8)}j@8]jC8)}j68j sbc.device_reprobeasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjohhhNhNubah}(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@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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMlhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMlubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(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:72: ./drivers/base/bus.chMphjubj)}(hhh]j)}(h-``struct device *dev`` the device to reprobe h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMmhjubj)}(hhh]j[)}(hthe device to reprobeh]hthe device to reprobe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMmhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]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:72: ./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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMnhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_register (C function)c.bus_registerhNtauh1hhj)qhhhNhNubh)}(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}(hjghhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjchhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhhjuhMubj")}(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!hjchhhjuhMubj7)}(h(const struct bus_type *bus)h]j7)}(hconst struct bus_type *bush](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.bus_registerasbuh1hhjubj)}(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@uh1j7hjchhhjuhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj_hhhjuhMubah}(h]jZah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjuhMhj\hhubjV)}(hhh]j[)}(h register a driver-core subsystemh]h register a driver-core subsystem}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jUhj\hhhjuhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjZj{jZj|j}j~uh1hhhhj)qhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj^ubj)}(hhh]j)}(h/``const struct bus_type *bus`` bus to register h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj}ubj)}(hhh]j[)}(hbus to registerh]hbus to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubah}(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:72: ./drivers/base/bus.chMhj^ubj[)}(hOnce we have that, we register the bus with the kobject infrastructure, then register the children subsystems it has: the devices and drivers that belong to the subsystem.h]hOnce we have that, we register the bus with the kobject infrastructure, then register the children subsystems it has: the devices and drivers that belong to the subsystem.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_unregister (C function)c.bus_unregisterhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hbus_unregisterh]j()}(hbus_unregisterh]hbus_unregister}(hj$hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!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 }(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hjh]hstruct}(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(h h]h }(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjyhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjvubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj{modnameN classnameNj:8j=8)}j@8]jC8)}j68j&sbc.bus_unregisterasbuh1hhj<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@uh1j7hj8ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hremove 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:72: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(h**Parameters** ``const struct bus_type *bus`` bus. **Description** Unregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcounth](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj)}(hhh]j)}(h$``const struct bus_type *bus`` bus. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj)}(hhh]j[)}(hbus.h]hbus.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubj[)}(hfUnregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcounth]hfUnregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcount}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h#subsys_system_register (C function)c.subsys_system_registerhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMEubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMEubj")}(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!hjhhhjhMEubj7)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j7)}(hconst struct bus_type *subsysh](h)}(hj8h]hconst}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.subsys_system_registerasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsubsysh]hsubsys}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(h%const struct attribute_group **groupsh](h)}(hj8h]hconst}(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubh)}(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]j1c.subsys_system_registerasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjeubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjeubj()}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMEubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMEubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMEhjhhubjV)}(hhh]j[)}(h,register a subsystem at /sys/devices/system/h]h,register a subsystem at /sys/devices/system/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMEubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj*j{j*j|j}j~uh1hhhhj)qhNhNubj)}(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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMIhj.ubj)}(hhh](j)}(h3``const struct bus_type *subsys`` system subsystem h](j)}(h!``const struct bus_type *subsys``h]j)}(hjSh]hconst struct bus_type *subsys}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMFhjMubj)}(hhh]j[)}(hsystem subsystemh]hsystem subsystem}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhhMFhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMFhjJubj)}(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:72: ./drivers/base/bus.chMGhjubj)}(hhh]j[)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjJubeh}(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:72: ./drivers/base/bus.chMIhj.ubj[)}(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:72: ./drivers/base/bus.chMHhj.ubj[)}(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:72: ./drivers/base/bus.chMOhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$subsys_virtual_register (C function)c.subsys_virtual_registerhNtauh1hhj)qhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM^ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj)hM^ubj")}(hsubsys_virtual_registerh]j()}(hsubsys_virtual_registerh]hsubsys_virtual_register}(hj<hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj)hM^ubj7)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j7)}(hconst struct bus_type *subsysh](h)}(hj8h]hconst}(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hjh]hstruct}(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubh)}(hhh]j()}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68j>sbc.subsys_virtual_registerasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjTubj()}(hsubsysh]hsubsys}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjTubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubj7)}(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 }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj modnameN classnameNj:8j=8)}j@8]jc.subsys_virtual_registerasbuh1hhjubj)}(h h]h }(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjJhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubjW8)}(hjZ8h]h*}(hjWhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hgroupsh]hgroups}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjPubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj)hM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj)hM^ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj)hM^hjhhubjV)}(hhh]j[)}(h-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:72: ./drivers/base/bus.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj)hM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``const struct bus_type *subsys`` virtual subsystem ``const struct attribute_group **groups`` default attributes for the root device **Description** All 'virtual' subsystems have a /sys/devices/system/ root device with the name of the subsystem. The root device can carry subsystem-wide attributes. All registered devices are below this single root device. There's no restriction on device naming. This is for kernel software constructs which need sysfs interface.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMbhjubj)}(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:72: ./drivers/base/bus.chM_hjubj)}(hhh]j[)}(hvirtual subsystemh]hvirtual subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chM`hjubj)}(hhh]j[)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hj!hhhNhNubah}(h]h ]h"]h$]h&]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)}(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:72: ./drivers/base/bus.chMbhjubj[)}(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.Q}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMahjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdriver_find (C function) c.driver_findhNtauh1hhj)qhhhNhNubh)}(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:72: ./drivers/base/bus.chMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMvubh)}(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]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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(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}(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*}(hj9hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hnameh]hname}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst struct bus_type *bush](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 }(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]j c.driver_findasbuh1hhj[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@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMvubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMvubah}(h]j{ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMvhj}hhubjV)}(hhh]j[)}(h#locate driver on a bus by its name.h]h#locate driver on a bus by its name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jUhj}hhhjhMvubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhj)qhNhNubj)}(hX**Parameters** ``const char *name`` name of the driver. ``const struct bus_type *bus`` bus to scan for the driver. **Description** Call kset_find_obj() to iterate over list of drivers on a bus to find driver by name. Return driver if found. This routine provides no locking to prevent the driver it returns from being unregistered or unloaded while the caller is using it. The caller is responsible for preventing this.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMzhjubj)}(hhh](j)}(h)``const char *name`` name of the driver. 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:72: ./drivers/base/bus.chMwhj6ubj)}(hhh]j[)}(hname of the driver.h]hname of the driver.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjQhMwhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMwhj3ubj)}(h;``const struct bus_type *bus`` bus to scan for the driver. h](j)}(h``const struct bus_type *bus``h]j)}(hjuh]hconst struct bus_type *bus}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMxhjoubj)}(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&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhMxhj3ubeh}(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:72: ./drivers/base/bus.chMzhjubj[)}(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:72: ./drivers/base/bus.chMyhjubj[)}(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:72: ./drivers/base/bus.chM|hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hbus_get_dev_root (C function)c.bus_get_dev_roothNtauh1hhj)qhhhNhNubh)}(hhh](h)}(h=struct device * bus_get_dev_root (const struct bus_type *bus)h]h)}(h;struct device *bus_get_dev_root(const struct bus_type *bus)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubh)}(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_get_dev_rootsbc.bus_get_dev_rootasbuh1hhjhhhjhMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjW8)}(hjZ8h]h*}(hjRhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhhhjhMubj")}(hbus_get_dev_rooth]j()}(hjAh]hbus_get_dev_root}(hjchhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj_ubah}(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&]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]j?c.bus_get_dev_rootasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjzubj()}(hbush]hbus}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjvubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h.return a pointer to the "device root" of a bush]h2return a pointer to the “device root” of a bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj2j{j2j|j}j~uh1hhhhj)qhNhNubj)}(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)}(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:72: ./drivers/base/bus.chMhj6ubj)}(hhh]j)}(hA``const struct bus_type *bus`` bus to return the device root of. h](j)}(h``const struct bus_type *bus``h]j)}(hj[h]hconst struct bus_type *bus}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhjUubj)}(hhh]j[)}(h!bus to return the device root of.h]h!bus to return the device root of.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubj[)}(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:72: ./drivers/base/bus.chMhj6ubj[)}(hXIf a bus has a "device root" structure, return it, WITH THE REFERENCE COUNT INCREMENTED.h]h\If a bus has a “device root” structure, return it, WITH THE REFERENCE COUNT INCREMENTED.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:72: ./drivers/base/bus.chMhj6ubj[)}(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:72: ./drivers/base/bus.chMhj6ubj[)}(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:72: ./drivers/base/bus.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)qhhhNhNubeh}(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&]uh1hhjhhhhhKLubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chK=ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hK=ubj")}(hdmam_free_coherenth]j()}(hdmam_free_coherenth]hdmam_free_coherent}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj/ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj hK=ubj7)}(hE(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h](j7)}(hstruct device *devh](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]jC8)}j68j5sbc.dmam_free_coherentasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjKubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(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@uh1j7hjGubj7)}(h void *vaddrh](j7)}(hvoidh]hvoid}(hj hhhNhNubah}(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()}(hvaddrh]hvaddr}(hj2hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubj7)}(hdma_addr_t dma_handleh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjNhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjPmodnameN classnameNj:8j=8)}j@8]jc.dmam_free_coherentasbuh1hhjGubj)}(h h]h }(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj()}(h dma_handleh]h dma_handle}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjGubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj hK=ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj hK=ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj hK=hjhhubjV)}(hhh]j[)}(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:78: ./kernel/dma/mapping.chK=hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj hK=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:78: ./kernel/dma/mapping.chKAhjubj)}(hhh](j)}(h:``struct device *dev`` Device to free coherent memory for h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chK>hjubj)}(hhh]j[)}(h"Device to free coherent memory forh]h"Device to free coherent memory for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhK>hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chK?hjubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj3hK?hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hK?hjubj)}(h6``void *vaddr`` Virtual address of the memory to free h](j)}(h``void *vaddr``h]j)}(hjWh]h void *vaddr}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chK@hjQubj)}(hhh]j[)}(h%Virtual address of the memory to freeh]h%Virtual address of the memory to free}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjlhK@hjmubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjlhK@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:78: ./kernel/dma/mapping.chKAhjubj)}(hhh]j[)}(h DMA handle of the memory to freeh]h DMA handle of the memory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubeh}(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:78: ./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:78: ./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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chKPubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKPubjW8)}(hjZ8h]h*}(hj-hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj hhhjhKPubj")}(hdmam_alloc_attrsh]j()}(hdmam_alloc_attrsh]hdmam_alloc_attrs}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj hhhjhKPubj7)}(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}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(hdeviceh]hdevice}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjzmodnameN classnameNj:8j=8)}j@8]jC8)}j68j@sbc.dmam_alloc_attrsasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(hdma_addr_t *dma_handleh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dmam_alloc_attrsasbuh1hhjubj)}(h h]h }(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjChhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(h dma_handleh]h dma_handle}(hjPhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(h gfp_t gfph](h)}(hhh]j()}(hgfp_th]hgfp_t}(hjlhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjiubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjnmodnameN classnameNj:8j=8)}j@8]jc.dmam_alloc_attrsasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj()}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjeubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(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@uh1j7hjRubeh}(h]h ]h"]h$]h&]j?j@uh1j7hj hhhjhKPubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKPubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKPhjhhubjV)}(hhh]j[)}(hManaged dma_alloc_attrs()h]hManaged dma_alloc_attrs()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chKPhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhKPubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj+j{j+j|j}j~uh1hhhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` Device to allocate non_coherent memory for ``size_t size`` Size of allocation ``dma_addr_t *dma_handle`` Out argument for allocated DMA handle ``gfp_t gfp`` Allocation flags ``unsigned long attrs`` Flags in the DMA_ATTR_* namespace. **Description** Managed dma_alloc_attrs(). Memory allocated using this function will be automatically released on driver detach. **Return** Pointer to allocated memory on success, NULL on failure.h](j[)}(h**Parameters**h]j)}(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:78: ./kernel/dma/mapping.chKThj/ubj)}(hhh](j)}(hB``struct device *dev`` Device to allocate non_coherent memory for 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:78: ./kernel/dma/mapping.chKQhjNubj)}(hhh]j[)}(h*Device to allocate non_coherent memory forh]h*Device to allocate non_coherent memory for}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjihKQhjjubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjihKQhjKubj)}(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:78: ./kernel/dma/mapping.chKRhjubj)}(hhh]j[)}(hSize of allocationh]hSize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjKubj)}(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:78: ./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&]uh1jhjhKShjKubj)}(h``gfp_t gfp`` Allocation flags h](j)}(h ``gfp_t gfp``h]j)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chKThjubj)}(hhh]j[)}(hAllocation flagsh]hAllocation flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKThjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKThjKubj)}(h;``unsigned long attrs`` Flags in the DMA_ATTR_* namespace. h](j)}(h``unsigned long attrs``h]j)}(hj8h]hunsigned long attrs}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chKUhj2ubj)}(hhh]j[)}(h"Flags in the DMA_ATTR_* namespace.h]h"Flags in the DMA_ATTR_* namespace.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjMhKUhjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhKUhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubj[)}(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:78: ./kernel/dma/mapping.chKWhj/ubj[)}(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:78: ./kernel/dma/mapping.chKVhj/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:78: ./kernel/dma/mapping.chKYhj/ubj[)}(h8Pointer to allocated memory on success, NULL on failure.h]h8Pointer to allocated memory on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chKZhj/ubeh}(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:78: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhhjhMubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdma_map_sg_attrsh]j()}(hdma_map_sg_attrsh]hdma_map_sg_attrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!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}(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]jC8)}j68jsbc.dma_map_sg_attrsasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj4ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(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]jrc.dma_map_sg_attrsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsgh]hsg}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(h int nentsh](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hnentsh]hnents}(hj6hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(henum dma_data_direction dirh](h)}(hjh]henum}(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubh)}(hhh]j()}(hdma_data_directionh]hdma_data_direction}(hjmhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjomodnameN classnameNj:8j=8)}j@8]jrc.dma_map_sg_attrsasbuh1hhjKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubj()}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjKubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(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@uh1j7hj0ubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj,j{j,j|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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhj0ubj)}(hhh](j)}(hI``struct device *dev`` The device for which to perform the DMA operation h](j)}(h``struct device *dev``h]j)}(hjUh]hstruct device *dev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhjOubj)}(hhh]j[)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjjhMhjkubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjjhMhjLubj)}(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:78: ./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&]uh1jhjhMhjLubj)}(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:78: ./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&]uh1jhjhMhjLubj)}(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:78: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(h DMA directionh]h DMA direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjLubj)}(hF``unsigned long attrs`` Optional DMA attributes for the map operation h](j)}(h``unsigned long attrs``h]j)}(hj9h]hunsigned long attrs}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhj3ubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhMhjLubeh}(h]h ]h"]h$]h&]uh1jhj0ubj[)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhj0ubj[)}(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:78: ./kernel/dma/mapping.chMhj0ubj[)}(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:78: ./kernel/dma/mapping.chMhj0ubj[)}(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:78: ./kernel/dma/mapping.chM hj0ubeh}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM1ubj)}(h h]h }(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj hM1ubj")}(hdma_map_sgtableh]j()}(hdma_map_sgtableh]hdma_map_sgtable}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!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}(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]jC8)}j68jsbc.dma_map_sgtableasbuh1hhj4ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj4ubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj4ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(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]jrc.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(henum dma_data_direction dirh](h)}(hjh]henum}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdma_data_directionh]hdma_data_direction}(hj8hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj5ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj:modnameN classnameNj:8j=8)}j@8]jrc.dma_map_sgtableasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hdirh]hdir}(hjdhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubj7)}(hunsigned long attrsh](j7)}(hunsignedh]hunsigned}(hj}hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj7)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj()}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjyubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj0ubeh}(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:78: ./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)}(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:78: ./kernel/dma/mapping.chM5hjubj)}(hhh](j)}(hI``struct device *dev`` The device for which to perform the DMA operation h](j)}(h``struct device *dev``h]j)}(hj h]hstruct device *dev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM2hjubj)}(hhh]j[)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj5hM2hj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hM2hjubj)}(hC``struct sg_table *sgt`` The sg_table object describing the buffer h](j)}(h``struct sg_table *sgt``h]j)}(hjYh]hstruct sg_table *sgt}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM3hjSubj)}(hhh]j[)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjnhM3hjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhM3hjubj)}(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:78: ./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&]uh1jhjhM4hjubj)}(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:78: ./kernel/dma/mapping.chM5hjubj)}(hhh]j[)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubeh}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM7hjubj[)}(hXtMaps a buffer described by a scatterlist stored in the given sg_table object for the **dir** DMA operation by the **dev** device. After success, the ownership for the buffer is transferred to the DMA domain. One has to call dma_sync_sgtable_for_cpu() or dma_unmap_sgtable() to move the ownership of the buffer back to the CPU domain before touching the buffer by the CPU.h](hUMaps a buffer described by a scatterlist stored in the given sg_table object for the }(hjhhhNhNubj)}(h**dir**h]hdir}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh DMA operation by the }(hjhhhNhNubj)}(h**dev**h]hdev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh device. After success, the ownership for the buffer is transferred to the DMA domain. One has to call dma_sync_sgtable_for_cpu() or dma_unmap_sgtable() to move the ownership of the buffer back to the CPU domain before touching the buffer by the CPU.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM6hjubj[)}(hwReturns 0 on success or a negative error code on error. The following error codes are supported with the given meaning:h]hwReturns 0 on success or a negative error code on error. The following error codes are supported with the given meaning:}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM=hjubj3)}(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}hjysbah}(h]h ]h"]h$]h&]uh1jwhjsubhoption_argument)}(hINVALh]hINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjsubeh}(h]h ]h"]h$]h&]uh1jqhjnubah}(h]h ]h"]h$]h&]uh1jlhjiubh 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:78: ./kernel/dma/mapping.chM@hjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jghjdubjh)}(hhh](jm)}(hhh]jr)}(h-ENOMEMh](jx)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jwhjubj)}(hNOMEMh]hNOMEM}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jqhjubah}(h]h ]h"]h$]h&]uh1jlhjubj)}(hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.h]j[)}(hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.h]hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMBhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jghjdubjh)}(hhh](jm)}(hhh]jr)}(h-EIOh](jx)}(h-Eh]h-E}hj!sbah}(h]h ]h"]h$]h&]uh1jwhjubj)}(hIOh]hIO}(hj/hhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jqhjubah}(h]h ]h"]h$]h&]uh1jlhjubj)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMDhjJubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jghjdubjh)}(hhh](jm)}(hhh]jr)}(h -EREMOTEIOh](jx)}(h-Eh]h-E}hjssbah}(h]h ]h"]h$]h&]uh1jwhjoubj)}(hREMOTEIOh]hREMOTEIO}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjoubeh}(h]h ]h"]h$]h&]uh1jqhjlubah}(h]h ]h"]h$]h&]uh1jlhjiubj)}(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:78: ./kernel/dma/mapping.chMGhjubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jghjdubeh}(h]h ]h"]h$]h&]uh1jbhjhM@hj^ubah}(h]h ]h"]h$]h&]uh1j2hjhM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hdma_need_unmap (C function)c.dma_need_unmaphNtauh1hhjhhhNhNubh)}(hhh](h)}(h(bool dma_need_unmap (struct device *dev)h]h)}(h'bool dma_need_unmap(struct device *dev)h](j7)}(hj:h]hbool}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hdma_need_unmaph]j()}(hdma_need_unmaph]hdma_need_unmap}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct device *dev)h]j7)}(hstruct device *devh](h)}(hjh]hstruct}(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hdeviceh]hdevice}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj>ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjCmodnameN classnameNj:8j=8)}j@8]jC8)}j68j sbc.dma_need_unmapasbuh1hhjubj)}(h h]h }(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjohhhNhNubah}(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@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h,does this device need dma_unmap_* operationsh]h,does this device need dma_unmap_* operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./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:78: ./kernel/dma/mapping.chMhjubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhjubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./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 }(hj8hhhNhNubj)}(h ``false``h]hfalse}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh, 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.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./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}(hjyhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjuhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM/ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhM/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!hjuhhhjhM/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*}(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@uh1j7hjuhhhjhM/ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjqhhhjhM/ubah}(h]jlah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM/hjnhhubjV)}(hhh]j[)}(h+check if a given device supports dma_mmap_*h]h+check if a given device supports dma_mmap_*}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM/hj5hhubah}(h]h ]h"]h$]h&]uh1jUhjnhhhjhM/ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjPj{jPj|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)}(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:78: ./kernel/dma/mapping.chM3hjTubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjyh]hstruct device *dev}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chM0hjsubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjpubah}(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:78: ./kernel/dma/mapping.chM2hjTubj[)}(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}(hjhhhNhNubah}(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:78: ./kernel/dma/mapping.chM1hjTubeh}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMBubj)}(h h]h }(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj+hMBubj")}(hdma_mmap_attrsh]j()}(hdma_mmap_attrsh]hdma_mmap_attrs}(hj>hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj:ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj+hMBubj7)}(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}(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h h]h }(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubh)}(hhh]j()}(hdeviceh]hdevice}(hjxhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjuubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjzmodnameN classnameNj:8j=8)}j@8]jC8)}j68j@sbc.dma_mmap_attrsasbuh1hhjVubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjVubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjVubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(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'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&]uh1jhjubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hvmah]hvma}(hj#hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(hvoid *cpu_addrh](j7)}(hvoidh]hvoid}(hj<hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj8ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjW8)}(hjZ8h]h*}(hjXhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj8ubj()}(hcpu_addrh]hcpu_addr}(hjehhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj8ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(hdma_addr_t dma_addrh](h)}(hhh]j()}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj~ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.dma_mmap_attrsasbuh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj()}(hdma_addrh]hdma_addr}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjzubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(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 }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj()}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubj7)}(hunsigned long attrsh](j7)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj7)}(hlongh]hlong}(hj*hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj()}(hattrsh]hattrs}(hjFhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjRubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj+hMBubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj+hMBubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj+hMBhjhhubjV)}(hhh]j[)}(h-map a coherent DMA allocation into user spaceh]h-map a coherent DMA allocation into user space}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMBhjmhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj+hMBubeh}(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:78: ./kernel/dma/mapping.chMFhjubj)}(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:78: ./kernel/dma/mapping.chMChjubj)}(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&]uh1jZhjhMChjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMChjubj)}(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:78: ./kernel/dma/mapping.chMDhjubj)}(hhh]j[)}(h0vm_area_struct describing requested user mappingh]h0vm_area_struct describing requested user mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMDhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjubj)}(hI``void *cpu_addr`` kernel CPU-view address returned from dma_alloc_attrs h](j)}(h``void *cpu_addr``h]j)}(hj#h]hvoid *cpu_addr}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMEhjubj)}(hhh]j[)}(h5kernel CPU-view address returned from dma_alloc_attrsh]h5kernel CPU-view address returned from dma_alloc_attrs}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj8hMEhj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMEhjubj)}(hJ``dma_addr_t dma_addr`` device-view address returned from dma_alloc_attrs h](j)}(h``dma_addr_t dma_addr``h]j)}(hj\h]hdma_addr_t dma_addr}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMFhjVubj)}(hhh]j[)}(h1device-view address returned from dma_alloc_attrsh]h1device-view address returned from dma_alloc_attrs}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjqhMFhjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMFhjubj)}(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:78: ./kernel/dma/mapping.chMGhjubj)}(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&]uh1jZhjhMGhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(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:78: ./kernel/dma/mapping.chMHhjubj)}(hhh]j[)}(h=attributes of mapping properties requested in dma_alloc_attrsh]h=attributes of mapping properties requested in dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubeh}(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:78: ./kernel/dma/mapping.chMJhjubj[)}(hMap a coherent DMA buffer previously allocated by dma_alloc_attrs into user space. The coherent DMA buffer must not be freed by the driver until the user space mapping has been released.h]hMap a coherent DMA buffer previously allocated by dma_alloc_attrs into user space. The coherent DMA buffer must not be freed by the driver until the user space mapping has been released.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMIhjubeh}(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}(hjNhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjJhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJhhhj[hMubj")}(hdma_addressing_limitedh]j()}(hdma_addressing_limitedh]hdma_addressing_limited}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjJhhhj[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}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jC8)}j68jpsbc.dma_addressing_limitedasbuh1hhjubj)}(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[hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjFhhhj[hMubah}(h]jAah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj[hMhjChhubjV)}(hhh]j[)}(h*return if the device is addressing limitedh]h*return if the device is addressing limited}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhj hhubah}(h]h ]h"]h$]h&]uh1jUhjChhhj[hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj%j{j%j|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)}(hj/h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhj)ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjNh]hstruct device *dev}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:78: ./kernel/dma/mapping.chMhjHubj)}(hhh]j[)}(hdevice to checkh]hdevice to check}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjchMhjdubah}(h]h ]h"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjEubah}(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:78: ./kernel/dma/mapping.chMhj)ubj[)}(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:78: ./kernel/dma/mapping.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]device-drivers-dma-managementah ]h"]device drivers dma managementah$]h&]uh1hhhhhhhhKLubh)}(hhh](h)}(hDevice drivers PnP supporth]hDevice drivers PnP support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKRubh)}(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}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:84: ./drivers/pnp/core.chK*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK*ubj")}(hpnp_register_protocolh]j()}(hpnp_register_protocolh]hpnp_register_protocol}(hj,hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj(ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhK*ubj7)}(h(struct pnp_protocol *protocol)h]j7)}(hstruct pnp_protocol *protocolh](h)}(hjh]hstruct}(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(h h]h }(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubh)}(hhh]j()}(h pnp_protocolh]h pnp_protocol}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjhmodnameN classnameNj:8j=8)}j@8]jC8)}j68j.sbc.pnp_register_protocolasbuh1hhjDubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjDubj()}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj@ubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhK*ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhK*ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhK*hjhhubjV)}(hhh]j[)}(h$adds a pnp protocol to the pnp layerh]h$adds a pnp protocol to the pnp layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:84: ./drivers/pnp/core.chK*hjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhK*ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(h**Parameters** ``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure **Description** Ex protocols: ISAPNP, PNPBIOS, etch](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:84: ./drivers/pnp/core.chK.hjubj)}(hhh]j)}(hV``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure h](j)}(h!``struct pnp_protocol *protocol``h]j)}(hj h]hstruct pnp_protocol *protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:84: ./drivers/pnp/core.chK+hjubj)}(hhh]j[)}(h3pointer to the corresponding pnp_protocol structureh]h3pointer to the corresponding pnp_protocol structure}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj!hK+hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj!hK+hjubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjGh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:84: ./drivers/pnp/core.chK-hjubj3)}(h"Ex protocols: ISAPNP, PNPBIOS, etch]j[)}(hj_h]h"Ex protocols: ISAPNP, PNPBIOS, etc}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:84: ./drivers/pnp/core.chK,hj]ubah}(h]h ]h"]h$]h&]uh1j2hjnhK,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h$pnp_request_card_device (C function)c.pnp_request_card_devicehNtauh1hhjhhhNhNubh)}(hhh](h)}(hlstruct pnp_dev * pnp_request_card_device (struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h]h)}(hjstruct pnp_dev *pnp_request_card_device(struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./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*}(hjhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubh)}(hhh]j()}(h pnp_card_linkh]h pnp_card_link}(hj-hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj*ubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj/modnameN classnameNj:8j=8)}j@8]jc.pnp_request_card_deviceasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjW8)}(hjZ8h]h*}(hjYhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hj ubj()}(hclinkh]hclink}(hjfhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *idh](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()}(hidh]hid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj{ubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct pnp_dev *fromh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]jc.pnp_request_card_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj&hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hfromh]hfrom}(hj3hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhM*ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhM*ubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM*hjhhubjV)}(hhh]j[)}(h2Searches for a PnP device under the specified cardh]h2Searches for a PnP device under the specified card}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chM*hjZhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhM*ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjuj{juj|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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chM.hjyubj)}(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:87: ./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:87: ./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)}(hjh]hstruct pnp_dev *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chM.hj ubj)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chM-hj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hM.hjubeh}(h]h ]h"]h$]h&]uh1jhjyubeh}(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}(hjjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjfhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chM^ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhjxhM^ubj")}(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!hjfhhhjxhM^ubj7)}(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 }(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@uh1j7hjfhhhjxhM^ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjbhhhjxhM^ubah}(h]j]ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjxhM^hj_hhubjV)}(hhh]j[)}(h4call this when the driver no longer needs the deviceh]h4call this when the driver no longer needs the device}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chM^hj'hhubah}(h]h ]h"]h$]h&]uh1jUhj_hhhjxhM^ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjBj{jBj|j}j~uh1hhhhjhNhNubj)}(hM**Parameters** ``struct pnp_dev *dev`` pointer to the PnP device structureh](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:87: ./drivers/pnp/card.chMbhjFubj)}(hhh]j)}(h;``struct pnp_dev *dev`` pointer to the PnP device structureh](j)}(h``struct pnp_dev *dev``h]j)}(hjkh]hstruct pnp_dev *dev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:87: ./drivers/pnp/card.chMdhjeubj)}(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:87: ./drivers/pnp/card.chM_hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjbubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(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:87: ./drivers/pnp/card.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj")}(hpnp_register_card_driverh]j()}(hpnp_register_card_driverh]hpnp_register_card_driver}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhjhMubj7)}(h(struct pnp_card_driver *drv)h]j7)}(hstruct pnp_card_driver *drvh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_card_driverh]hpnp_card_driver}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj"modnameN classnameNj:8j=8)}j@8]jC8)}j68jsbc.pnp_register_card_driverasbuh1hhjubj)}(h h]h }(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjNhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdrvh]hdrv}(hj[hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjhhubjV)}(hhh]j[)}(h.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:87: ./drivers/pnp/card.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhjhMubeh}(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:87: ./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:87: ./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:87: ./drivers/pnp/card.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h'pnp_unregister_card_driver (C function)c.pnp_unregister_card_driverhNtauh1hhjhhhNhNubh)}(hhh](h)}(h=void pnp_unregister_card_driver (struct pnp_card_driver *drv)h]h)}(hstruct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id)h](h)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:90: ./drivers/pnp/driver.chM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhM6ubh)}(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_idasbuh1hhjwhhhjhM6ubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhM6ubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjwhhhjhM6ubj")}(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!hjwhhhjhM6ubj7)}(h%(struct pnp_dev *dev, const char *id)h](j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubh)}(hhh]j()}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjmodnameN classnameNj:8j=8)}j@8]j c.pnp_add_idasbuh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj?hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjLhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hconst char *idh](h)}(hj8h]hconst}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj7)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjaubj()}(hidh]hid}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjwhhhjhM6ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjshhhjhM6ubah}(h]jnah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhM6hjphhubjV)}(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:90: ./drivers/pnp/driver.chM6hjhhubah}(h]h ]h"]h$]h&]uh1jUhjphhhjhM6ubeh}(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:90: ./drivers/pnp/driver.chM:hjubj)}(hhh](j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:90: ./drivers/pnp/driver.chM7hjubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj)hM7hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM7hj ubj)}(h/``const char *id`` pointer to an EISA id stringh](j)}(h``const char *id``h]j)}(hjMh]hconst char *id}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:90: ./drivers/pnp/driver.chM9hjGubj)}(hhh]j[)}(hpointer to an EISA id stringh]hpointer to an EISA id string}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:90: ./drivers/pnp/driver.chM8hjcubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjbhM9hj ubeh}(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:93: ./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}(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_start_devasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj0hhhNhNubah}(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@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}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMLhjdhhubah}(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:93: ./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:93: ./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)}(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:93: ./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:93: ./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}(hj(hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj$hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMdubj)}(h h]h }(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhhj6hMdubj")}(h pnp_stop_devh]j()}(h pnp_stop_devh]h pnp_stop_dev}(hjIhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjEubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj$hhhj6hMdubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(h h]h }(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubh)}(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)}j68jKsbc.pnp_stop_devasbuh1hhjaubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjaubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjaubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj]ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj$hhhj6hMdubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj hhhj6hMdubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj6hMdhjhhubjV)}(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:93: ./drivers/pnp/manager.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj6hMdubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hq**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not free resourcesh](j[)}(h**Parameters**h]j)}(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:93: ./drivers/pnp/manager.chMhhjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hj)h]hstruct pnp_dev *dev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMehj#ubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj>hMehj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMehj ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMghjubj[)}(hdoes not free resourcesh]hdoes not free resources}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_activate_dev (C function)c.pnp_activate_devhNtauh1hhjhhhNhNubh)}(hhh](h)}(h*int pnp_activate_dev (struct pnp_dev *dev)h]h)}(h)int pnp_activate_dev(struct pnp_dev *dev)h](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./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}(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_activate_devasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj2hhhNhNubah}(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@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}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMzhjfhhubah}(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:93: ./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:93: ./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)}(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:93: ./drivers/pnp/manager.chM}hjubj[)}(h1does not validate or set resources so be careful.h]h1does not validate or set resources so be careful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./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}(hj*hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hj&hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMubj)}(h h]h }(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj8hMubj")}(hpnp_disable_devh]j()}(hpnp_disable_devh]hpnp_disable_dev}(hjKhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjGubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj&hhhj8hMubj7)}(h(struct pnp_dev *dev)h]j7)}(hstruct pnp_dev *devh](h)}(hjh]hstruct}(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(h h]h }(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubh)}(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)}j68jMsbc.pnp_disable_devasbuh1hhjcubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjcubj()}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjcubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hj_ubah}(h]h ]h"]h$]h&]j?j@uh1j7hj&hhhj8hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj"hhhj8hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj8hMhjhhubjV)}(hhh]j[)}(hdisables deviceh]hdisables device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj8hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** inform the correct pnp protocol so that resources can be used by other devicesh](j[)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMhjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hj+h]hstruct pnp_dev *dev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMhj%ubj)}(hhh]j[)}(hpointer to the desired deviceh]hpointer to the desired device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj@hMhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj"ubah}(h]h ]h"]h$]h&]uh1jhjubj[)}(h**Description**h]j)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMhjubj[)}(hNinform the correct pnp protocol so that resources can be used by other devicesh]hNinform the correct pnp protocol so that resources can be used by other devices}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:93: ./drivers/pnp/manager.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hpnp_is_active (C function)c.pnp_is_activehNtauh1hhjhhhNhNubh)}(hhh](h)}(h'int pnp_is_active (struct pnp_dev *dev)h]h)}(h&int pnp_is_active(struct pnp_dev *dev)h](j7)}(hinth]hint}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:96: ./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&]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_is_activeasbuh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hj4hhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjhhubjV)}(hhh]j[)}(h?Determines if a device is active based on its current resourcesh]h?Determines if a device is active based on its current resources}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:96: ./drivers/pnp/support.chKhjhhhubah}(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:96: ./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:96: ./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:96: ./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&]uh1hhhhhhhhKRubh)}(hhh](h)}(hUserspace IO devicesh]hUserspace IO devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKdubh)}(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}(hjhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMubj)}(h h]h }(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj-hMubj")}(huio_event_notifyh]j()}(huio_event_notifyh]huio_event_notify}(hj@hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj<ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj-hMubj7)}(h(struct uio_info *info)h]j7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubh)}(hhh]j()}(huio_infoh]huio_info}(hjzhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjwubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj|modnameN classnameNj:8j=8)}j@8]jC8)}j68jBsbc.uio_event_notifyasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjXubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjXubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjTubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj-hMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj-hMubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj-hMhjhhubjV)}(hhh]j[)}(htrigger an interrupt eventh]htrigger an interrupt event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj-hMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMhjubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hj h]hstruct uio_info *info}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMhjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMhj6ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj5hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h"__uio_register_device (C function)c.__uio_register_devicehNtauh1hhjhhhNhNubh)}(hhh](h)}(h^int __uio_register_device (struct module *owner, struct device *parent, struct uio_info *info)h]h)}(h]int __uio_register_device(struct module *owner, struct device *parent, struct uio_info *info)h](j7)}(hinth]hint}(hjzhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjvhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvhhhjhMubj")}(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!hjvhhhjhMubj7)}(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*}(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)}(hstruct device *parenth](h)}(hjh]hstruct}(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubh)}(hhh]j()}(hdeviceh]hdevice}(hjGhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjDubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetjImodnameN classnameNj:8j=8)}j@8]jc.__uio_register_deviceasbuh1hhj%ubj)}(h h]h }(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjW8)}(hjZ8h]h*}(hjshhhNhNubah}(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@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*}(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@uh1j7hjvhhhjhMubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjrhhhjhMubah}(h]jmah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhMhjohhubjV)}(hhh]j[)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMhjhhubah}(h]h ]h"]h$]h&]uh1jUhjohhhjhMubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzj2j{j2j|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)}(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:102: ./drivers/uio/uio.chMhj6ubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hj[h]hstruct module *owner}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMhjUubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjphMhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjRubj)}(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:102: ./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&]uh1jhjhMhjRubj)}(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:102: ./drivers/uio/uio.chMhjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjRubeh}(h]h ]h"]h$]h&]uh1jhj6ubj[)}(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:102: ./drivers/uio/uio.chMhj6ubj[)}(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:102: ./drivers/uio/uio.chMhj6ubeh}(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}(hjMhhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjIhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chM7ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIhhhj[hM7ubj")}(h__devm_uio_register_deviceh]j()}(h__devm_uio_register_deviceh]h__devm_uio_register_device}(hjnhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjIhhhj[hM7ubj7)}(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)}j68jpsbc.__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}(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}(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 }(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjW8)}(hjZ8h]h*}(hjFhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjubj()}(hparenth]hparent}(hjShhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubj7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubh)}(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_deviceasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjhubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjhubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjubeh}(h]h ]h"]h$]h&]j?j@uh1j7hjIhhhj[hM7ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjEhhhj[hM7ubah}(h]j@ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj[hM7hjBhhubjV)}(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:102: ./drivers/uio/uio.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jUhjBhhhj[hM7ubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(h**Parameters** ``struct module *owner`` module that creates the new device ``struct device *parent`` parent device ``struct uio_info *info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chM;hj ubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hj.h]hstruct module *owner}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chM8hj(ubj)}(hhh]j[)}(h"module that creates the new deviceh]h"module that creates the new device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjChM8hjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChM8hj%ubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjgh]hstruct device *parent}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chM9hjaubj)}(hhh]j[)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj|hM9hj}ubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM9hj%ubj)}(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:102: ./drivers/uio/uio.chM:hjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhM:hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hj%ubeh}(h]h ]h"]h$]h&]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:102: ./drivers/uio/uio.chM<hj 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:102: ./drivers/uio/uio.chM;hj 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}(hj hhhNhNubah}(h]h ]j7ah"]h$]h&]uh1j7hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chMXubj)}(h h]h }(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj.hMXubj")}(huio_unregister_deviceh]j()}(huio_unregister_deviceh]huio_unregister_device}(hjAhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj=ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhj.hMXubj7)}(h(struct uio_info *info)h]j7)}(hstruct uio_info *infoh](h)}(hjh]hstruct}(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(h h]h }(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubh)}(hhh]j()}(huio_infoh]huio_info}(hj{hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjxubah}(h]h ]h"]h$]h&] refdomainjtreftypej68 reftargetj}modnameN classnameNj:8j=8)}j@8]jC8)}j68jCsbc.uio_unregister_deviceasbuh1hhjYubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubjW8)}(hjZ8h]h*}(hjhhhNhNubah}(h]h ]jc8ah"]h$]h&]uh1jV8hjYubj()}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjYubeh}(h]h ]h"]h$]h&]noemphj?j@uh1j7hjUubah}(h]h ]h"]h$]h&]j?j@uh1j7hjhhhj.hMXubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhj.hMXubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj.hMXhjhhubjV)}(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:102: ./drivers/uio/uio.chMXhjhhubah}(h]h ]h"]h$]h&]uh1jUhjhhhj.hMXubeh}(h]h ](jtfunctioneh"]h$]h&]jyjtjzjj{jj|j}j~uh1hhhhjhNhNubj)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](j[)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jZh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chM\hjubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hj!h]hstruct uio_info *info}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:102: ./drivers/uio/uio.chM^hjubj)}(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:102: ./drivers/uio/uio.chMYhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hM^hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_mem (C struct) c.uio_memhNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_memh]h)}(hstruct uio_memh](h)}(hjh]hstruct}(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhhjhKubj")}(huio_memh]j()}(hjuh]huio_mem}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjwhhhjhKubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjshhhjhKubah}(h]jnah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjhKhjphhubjV)}(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:105: ./include/linux/uio_driver.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jUhjphhhjhKubeh}(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:105: ./include/linux/uio_driver.hhKhjubj)}(hX)struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; };h]hX)struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; };}hjsbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjubj[)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK*hjubj)}(hhh](j)}(h6``name`` name of the memory region for identification h](j)}(h``name``h]j)}(hj*h]hname}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhj$ubj)}(hhh]j[)}(h,name of the memory region for identificationh]h,name of the memory region for identification}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj!ubj)}(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)}(hjch]haddr}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhj]ubj)}(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)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKhj!ubj)}(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:105: ./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:105: ./include/linux/uio_driver.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hj!ubj)}(h1``offs`` offset of device memory within the page h](j)}(h``offs``h]j)}(hjh]hoffs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK#hjubj)}(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&]uh1jZhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hj!ubj)}(h,``size`` size of IO (multiple of page size) h](j)}(h``size``h]j)}(hj" h]hsize}(hj$ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK$hj ubj)}(hhh]j[)}(h"size of IO (multiple of page size)h]h"size of IO (multiple of page size)}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj7 hK$hj8 ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj7 hK$hj!ubj)}(h*``memtype`` type of memory addr points to h](j)}(h ``memtype``h]j)}(hj[ h]hmemtype}(hj] hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjY ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK%hjU ubj)}(hhh]j[)}(htype of memory addr points toh]htype of memory addr points to}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjp hK%hjq ubah}(h]h ]h"]h$]h&]uh1jhjU ubeh}(h]h ]h"]h$]h&]uh1jhjp hK%hj!ubj)}(hG``internal_addr`` ioremap-ped version of addr, for driver internal use h](j)}(h``internal_addr``h]j)}(hj h]h internal_addr}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK&hj ubj)}(hhh]j[)}(h4ioremap-ped version of addr, for driver internal useh]h4ioremap-ped version of addr, for driver internal use}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hK&hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK&hj!ubj)}(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)}(hj h]h dma_device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK(hj ubj)}(hhh]j[)}(hXdevice struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT onlyh]hXdevice struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK'hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK(hj!ubj)}(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:105: ./include/linux/uio_driver.hhK(hj ubj)}(hhh]j[)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK)hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(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_port (C struct) c.uio_porthNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_porth]h)}(hstruct uio_porth](h)}(hjh]hstruct}(hja hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj] hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK/ubj)}(h h]h }(hjo hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj] hhhjn hK/ubj")}(huio_porth]j()}(hj[ h]huio_port}(hj hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hj} ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hj] hhhjn hK/ubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjY hhhjn hK/ubah}(h]jT ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhjn hK/hjV hhubjV)}(hhh]j[)}(h description of a UIO port regionh]h description of a UIO port region}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK;hj hhubah}(h]h ]h"]h$]h&]uh1jUhjV hhhjn hK/ubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhjhNhNubj)}(hX**Definition**:: struct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; }; **Members** ``name`` name of the port region for identification ``start`` start of port region ``size`` size of port region ``porttype`` type of port (see UIO_PORT_* below) ``portio`` for use by the UIO core only.h](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK?hj ubj)}(hstruct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; };h]hstruct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; };}hj sbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKAhj ubj[)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKIhj ubj)}(hhh](j)}(h4``name`` name of the port region for identification h](j)}(h``name``h]j)}(hj h]hname}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK=hj ubj)}(hhh]j[)}(h*name of the port region for identificationh]h*name of the port region for identification}(hj) hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj% hK=hj& ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj% hK=hj ubj)}(h``start`` start of port region h](j)}(h ``start``h]j)}(hjI h]hstart}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjG ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK>hjC ubj)}(hhh]j[)}(hstart of port regionh]hstart of port region}(hjb hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj^ hK>hj_ ubah}(h]h ]h"]h$]h&]uh1jhjC ubeh}(h]h ]h"]h$]h&]uh1jhj^ hK>hj ubj)}(h``size`` size of port region h](j)}(h``size``h]j)}(hj h]hsize}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK?hj| ubj)}(hhh]j[)}(hsize of port regionh]hsize of port region}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hK?hj ubah}(h]h ]h"]h$]h&]uh1jhj| ubeh}(h]h ]h"]h$]h&]uh1jhj hK?hj ubj)}(h1``porttype`` type of port (see UIO_PORT_* below) h](j)}(h ``porttype``h]j)}(hj h]hporttype}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK@hj ubj)}(hhh]j[)}(h#type of port (see UIO_PORT_* below)h]h#type of port (see UIO_PORT_* below)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hK@hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK@hj ubj)}(h(``portio`` for use by the UIO core only.h](j)}(h ``portio``h]j)}(hj h]hportio}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK@hj ubj)}(hhh]j[)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKAhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK@hj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(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}(hjN hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJ hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKGubj)}(h h]h }(hj\ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJ hhhj[ hKGubj")}(huio_infoh]j()}(hjH h]huio_info}(hjn hhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjj ubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjJ hhhj[ hKGubeh}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjF hhhj[ hKGubah}(h]jA ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj[ hKGhjC hhubjV)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKZhj hhubah}(h]h ]h"]h$]h&]uh1jUhjC hhhj[ hKGubeh}(h]h ](jtstructeh"]h$]h&]jyjtjzj j{j j|j}j~uh1hhhhjhNhNubj)}(hX'**Definition**:: struct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); }; **Members** ``uio_dev`` the UIO device this info belongs to ``name`` device name ``version`` device driver version ``mem`` list of mappable memory regions, size==0 for end of list ``port`` list of port regions, size==0 for end of list ``irq`` interrupt number or UIO_IRQ_CUSTOM ``irq_flags`` flags for request_irq() ``priv`` optional private data ``handler`` the device's irq handler ``mmap_prepare`` mmap_prepare operation for this uio device ``open`` open operation for this uio device ``release`` release operation for this uio device ``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j[)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK^hj ubj)}(hXqstruct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };h]hXqstruct uio_info { struct uio_device *uio_dev; const char *name; const char *version; struct uio_mem mem[MAX_UIO_MAPS]; struct uio_port port[MAX_UIO_PORT_REGIONS]; long irq; unsigned long irq_flags; void *priv; irqreturn_t (*handler)(int irq, struct uio_info *dev_info); int (*mmap_prepare)(struct uio_info *info, struct vm_area_desc *desc); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };}hj sbah}(h]h ]h"]h$]h&]j?j@uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK`hj ubj[)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKphj ubj)}(hhh](j)}(h0``uio_dev`` the UIO device this info belongs to h](j)}(h ``uio_dev``h]j)}(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:105: ./include/linux/uio_driver.hhK\hj ubj)}(hhh]j[)}(h#the UIO device this info belongs toh]h#the UIO device this info belongs to}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hK\hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK\hj ubj)}(h``name`` device name h](j)}(h``name``h]j)}(hj6 h]hname}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4 ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK]hj0 ubj)}(hhh]j[)}(h device nameh]h device name}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjK hK]hjL ubah}(h]h ]h"]h$]h&]uh1jhj0 ubeh}(h]h ]h"]h$]h&]uh1jhjK hK]hj ubj)}(h"``version`` device driver version h](j)}(h ``version``h]j)}(hjo h]hversion}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjm ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK^hji ubj)}(hhh]j[)}(hdevice driver versionh]hdevice driver version}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hK^hj ubah}(h]h ]h"]h$]h&]uh1jhji ubeh}(h]h ]h"]h$]h&]uh1jhj hK^hj ubj)}(hA``mem`` list of mappable memory regions, size==0 for end of list h](j)}(h``mem``h]j)}(hj h]hmem}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK_hj ubj)}(hhh]j[)}(h8list of mappable memory regions, size==0 for end of listh]h8list of mappable memory regions, size==0 for end of list}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj hK_hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK_hj ubj)}(h7``port`` list of port regions, size==0 for end of list h](j)}(h``port``h]j)}(hj h]hport}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhK`hj ubj)}(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&]uh1jZhj hK`hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hK`hj ubj)}(h+``irq`` interrupt number or UIO_IRQ_CUSTOM h](j)}(h``irq``h]j)}(hjh]hirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKahjubj)}(hhh]j[)}(h"interrupt number or UIO_IRQ_CUSTOMh]h"interrupt number or UIO_IRQ_CUSTOM}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jZhj/hKahj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hKahj ubj)}(h&``irq_flags`` flags for request_irq() h](j)}(h ``irq_flags``h]j)}(hjSh]h irq_flags}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKbhjMubj)}(hhh]j[)}(hflags for request_irq()h]hflags for request_irq()}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhhKbhjiubah}(h]h ]h"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]uh1jhjhhKbhj ubj)}(h``priv`` optional private data h](j)}(h``priv``h]j)}(hjh]hpriv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./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&]uh1jhjhKchj ubj)}(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:105: ./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&]uh1jhjhKdhj ubj)}(h<``mmap_prepare`` mmap_prepare operation for this uio device h](j)}(h``mmap_prepare``h]j)}(hjh]h mmap_prepare}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKehjubj)}(hhh]j[)}(h*mmap_prepare operation for this uio deviceh]h*mmap_prepare operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehj ubj)}(h,``open`` open operation for this uio device h](j)}(h``open``h]j)}(hj7h]hopen}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKfhj1ubj)}(hhh]j[)}(h"open operation for this uio deviceh]h"open operation for this uio device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhjLhKfhjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhKfhj ubj)}(h2``release`` release operation for this uio device h](j)}(h ``release``h]j)}(hjph]hrelease}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKghjjubj)}(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&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhKghj ubj)}(hC``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j)}(h``irqcontrol``h]j)}(hjh]h irqcontrol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./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:105: ./include/linux/uio_driver.hhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](huio_register_device (C macro)c.uio_register_devicehNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_register_deviceh]h)}(huio_register_deviceh]j")}(huio_register_deviceh]j()}(hjh]huio_register_device}(hjhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhjhhhjhKubah}(h]jah ](jMjNeh"]h$]h&]jRjS)jThuh1hh.jhKhjhhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhjhhhjhKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzj3j{j3j|j}j~uh1hhhhjhNhNubj[)}(h&``uio_register_device (parent, info)``h]j)}(hj9h]h"uio_register_device (parent, info)}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./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}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjOubah}(h]h ]h"]h$]h&]uh1j2hjahKhjhhubj)}(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)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjhubj)}(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:105: ./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:105: ./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&]uh1jhjhubj[)}(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:105: ./include/linux/uio_driver.hhKhjhubj[)}(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:105: ./include/linux/uio_driver.hhKhjhubeh}(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()}(hj@h]hdevm_uio_register_device}(hjJhhhNhNubah}(h]h ]j3ah"]h$]h&]uh1j'hjFubah}(h]h ](j:j;eh"]h$]h&]j?j@uh1j!hjBhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j?j@jGuh1hjHjIhj>hhhj]hKubah}(h]j9ah ](jMjNeh"]h$]h&]jRjS)jThuh1hhj]hKhj;hhubjV)}(hhh]h}(h]h ]h"]h$]h&]uh1jUhj;hhhj]hKubeh}(h]h ](jtmacroeh"]h$]h&]jyjtjzjvj{jvj|j}j~uh1hhhhjhNhNubj[)}(h+``devm_uio_register_device (parent, info)``h]j)}(hj|h]h'devm_uio_register_device (parent, info)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./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:105: ./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:105: ./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:105: ./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)}(hj h]hinfo}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjubj)}(hhh]j[)}(hUIO device capabilitiesh]hUIO device capabilities}(hj"hhhNhNubah}(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)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjubj[)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jZhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:105: ./include/linux/uio_driver.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]userspace-io-devicesah ]h"]userspace io devicesah$]h&]uh1hhhhhhhhKdubeh}(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}(j}jzj&qj#qjjjjjjjujru nametypes}(j}j&qjjjjuuh}(jzhj#qhhhj8j=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@jBjBj7Eju 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.