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]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}(hhhhhNhNubah}(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 }(hhhhhNhNubah}(h]h ]wah"]h$]h&]uh1hhhhhhhhKubh desc_name)}(hsubsys_interfaceh]h desc_sig_name)}(hhh]hsubsys_interface}(hjhhhNhNubah}(h]h ]nah"]h$]h&]uh1jhjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1j hhhhhhhKubeh}(h]h ]h"]h$]h&]j+j, add_permalinkuh1hsphinx_line_type declaratorhhhhhhhKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhhhKhhhhubh desc_content)}(hhh]h paragraph)}(hinterfaces to device functionsh]hinterfaces to device functions}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK3hjChhubah}(h]h ]h"]h$]h&]uh1jAhhhhhhhKubeh}(h]h ](cstructeh"]h$]h&]domainj`objtypejadesctypejanoindex 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](jG)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjqubh:}(hjqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK7hjmubh 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.hhK9hjmubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKAhjmubhdefinition_list)}(hhh](hdefinition_list_item)}(h%``name`` name of the device function h](hterm)}(h``name``h]hliteral)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK5hjubh definition)}(hhh]jG)}(hname of the device functionh]hname of the device function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK5hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjubj)}(h1``subsys`` subsystem of the devices to attach to h](j)}(h ``subsys``h]j)}(hjh]hsubsys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK6hjubj)}(hhh]jG)}(h%subsystem of the devices to attach toh]h%subsystem of the devices to attach to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjubj)}(h;``node`` the list of functions registered at the subsystem 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:7: ./include/linux/device.hhK7hj8ubj)}(hhh]jG)}(h1the list of functions registered at the subsystemh]h1the list of functions registered at the subsystem}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjShK7hjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShK7hjubj)}(h5``add_dev`` device hookup to device function handler h](j)}(h ``add_dev``h]j)}(hjwh]hadd_dev}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK8hjqubj)}(hhh]jG)}(h(device hookup to device function handlerh]h(device hookup to device function handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK8hjubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubj)}(h7``remove_dev`` device hookup to device function handlerh](j)}(h``remove_dev``h]j)}(hjh]h remove_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK8hjubj)}(hhh]jG)}(h(device hookup to device function handlerh]h(device hookup to device function handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK8hjubeh}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhKBubj)}(hdevice_attributeh]j)}(hj+h]hdevice_attribute}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj-hhhj>hKBubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj)hhhj>hKBubah}(h]j$ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj>hKBhj&hhubjB)}(hhh]jG)}(h*Interface for exporting device attributes.h]h*Interface for exporting device attributes.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKdhjphhubah}(h]h ]h"]h$]h&]uh1jAhj&hhhj>hKBubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjl)}(hX**Definition**:: struct device_attribute { struct attribute attr; ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); }; **Members** ``attr`` sysfs attribute definition. ``show`` Show handler. ``store`` Store handler.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhjubj)}(hstruct device_attribute { struct attribute attr; ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); };h]hstruct device_attribute { struct attribute attr; ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf); ssize_t (*store)(struct device *dev, 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.hhKjhjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKphjubj)}(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.hhKfhjubj)}(hhh]jG)}(hsysfs attribute definition.h]hsysfs attribute definition.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKfhjubj)}(h``show`` Show handler. h](j)}(h``show``h]j)}(hjh]hshow}(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]jG)}(h Show handler.h]h Show handler.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.hKghj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKghjubj)}(h``store`` Store handler.h](j)}(h ``store``h]j)}(hjRh]hstore}(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.hhKghjLubj)}(hhh]jG)}(hStore handler.h]hStore handler.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKghjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_ext_attribute (C struct)c.dev_ext_attributehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdev_ext_attributeh]h)}(hstruct dev_ext_attributeh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKnubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKnubj)}(hdev_ext_attributeh]j)}(hjh]hdev_ext_attribute}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKnubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKnubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKnhjhhubjB)}(hhh]jG)}(h-Exported device attribute with extra context.h]h-Exported device attribute with extra context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKrhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKnubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjl)}(h**Definition**:: struct dev_ext_attribute { struct device_attribute attr; void *var; }; **Members** ``attr`` Exported device attribute. ``var`` Pointer to context.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKvhj ubj)}(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.hhKxhj ubjG)}(h **Members**h]jv)}(hj<h]hMembers}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj:ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhK}hj ubj)}(hhh](j)}(h$``attr`` Exported device attribute. h](j)}(h``attr``h]j)}(hj[h]hattr}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKthjUubj)}(hhh]jG)}(hExported device attribute.h]hExported device attribute.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjphKthjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]uh1jhjphKthjRubj)}(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.hhKthjubj)}(hhh]jG)}(hPointer to context.h]hPointer to context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKuhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKthjRubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_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 ]jah"]h$]h&]uh1jhjubah}(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,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjG)}(h-``DEVICE_ATTR (_name, _mode, _show, _store)``h]j)}(hj$h]h)DEVICE_ATTR (_name, _mode, _show, _store)}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubh block_quote)}(hDefine a device attribute. h]jG)}(hDefine a device attribute.h]hDefine a device attribute.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj<ubah}(h]h ]h"]h$]h&]uh1j:hjNhKhhhhubjl)}(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](jG)}(h**Parameters**h]jv)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjYubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjUubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjzh]h_name}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjtubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubj)}(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]jG)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubj)}(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]jG)}(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&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubj)}(hL``_store`` Store handler. Optional, but mandatory if attribute is writable. h](j)}(h ``_store``h]j)}(hj%h]h_store}(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.hhKhjubj)}(hhh]jG)}(h@Store handler. Optional, but mandatory if attribute is writable.h]h@Store handler. Optional, but mandatory if attribute is writable.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjqubeh}(h]h ]h"]h$]h&]uh1jhjUubjG)}(h**Description**h]jv)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj^ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjUubjG)}(h9Convenience macro for defining a struct device_attribute.h]h9Convenience macro for defining a struct device_attribute.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjUubjG)}(hIFor example, ``DEVICE_ATTR(foo, 0644, foo_show, foo_store);`` expands to:h](h For example, }(hjhhhNhNubj)}(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&]uh1jhjubh expands to:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjUubj)}(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,forcelanguagej`highlight_args}uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_ATTR_PREALLOC (C macro)c.DEVICE_ATTR_PREALLOChNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_PREALLOCh]h)}(hDEVICE_ATTR_PREALLOCh]j)}(hDEVICE_ATTR_PREALLOCh]j)}(hjh]hDEVICE_ATTR_PREALLOC}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhhhNhNubjG)}(h6``DEVICE_ATTR_PREALLOC (_name, _mode, _show, _store)``h]j)}(hjh]h2DEVICE_ATTR_PREALLOC (_name, _mode, _show, _store)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h(Define a preallocated device attribute. h]jG)}(h'Define a preallocated device attribute.h]h'Define a preallocated device attribute.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj%ubah}(h]h ]h"]h$]h&]uh1j:hj7hKhhhhubjl)}(hX1**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** Like DEVICE_ATTR(), but ``SYSFS_PREALLOC`` is set on **_mode**.h](jG)}(h**Parameters**h]jv)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjBubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj>ubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjch]h_name}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj]ubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxhKhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKhjZubj)}(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]jG)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjZubj)}(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]jG)}(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&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjZubj)}(hL``_store`` Store handler. Optional, but mandatory if attribute is writable. h](j)}(h ``_store``h]j)}(hj h]h_store}(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]jG)}(h@Store handler. Optional, but mandatory if attribute is writable.h]h@Store handler. Optional, but mandatory if attribute is writable.}(hj' hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj# hKhj$ ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj# hKhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubjG)}(h**Description**h]jv)}(hjI h]h Description}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjG ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj>ubjG)}(h?Like DEVICE_ATTR(), but ``SYSFS_PREALLOC`` is set on **_mode**.h](hLike DEVICE_ATTR(), but }(hj_ hhhNhNubj)}(h``SYSFS_PREALLOC``h]hSYSFS_PREALLOC}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ ubh is set on }(hj_ hhhNhNubjv)}(h **_mode**h]h_mode}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj_ ubh.}(hj_ hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_ATTR_RW (C macro)c.DEVICE_ATTR_RWhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_RWh]h)}(hDEVICE_ATTR_RWh]j)}(hDEVICE_ATTR_RWh]j)}(hj h]hDEVICE_ATTR_RW}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 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,j3uh1hj4j5hj hhhj hKubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hKhj hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj hhhj hKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhhhNhNubjG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h&Define a read-write device attribute. h]jG)}(h%Define a read-write device attribute.h]h%Define a read-write device attribute.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubah}(h]h ]h"]h$]h&]uh1j:hj hKhhhhubjl)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0644, **_show** is <_name>_show, and **_store** is <_name>_store.h](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj< h]h_name}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj6 ubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQ hKhjR ubah}(h]h ]h"]h$]h&]uh1jhj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hKhj3 ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjw h]h Description}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1juhju ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubjG)}(hfLike DEVICE_ATTR(), but **_mode** is 0644, **_show** is <_name>_show, and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hj hhhNhNubjv)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh is 0644, }(hj hhhNhNubjv)}(h **_show**h]h_show}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh is <_name>_show, and }(hj hhhNhNubjv)}(h **_store**h]h_store}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh is <_name>_store.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_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 ]jah"]h$]h&]uh1jhj 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,j3uh1hj4j5hj hhhj hKubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hKhj hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj hhhj hKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfj" jgj" jhjijjuh1hhhhhhNhNubjG)}(h ``DEVICE_ATTR_ADMIN_RW (_name)``h]j)}(hj( h]hDEVICE_ATTR_ADMIN_RW (_name)}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj& ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h2Define an admin-only read-write device attribute. h]jG)}(h1Define an admin-only read-write device attribute.h]h1Define an admin-only read-write device attribute.}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj> ubah}(h]h ]h"]h$]h&]uh1j:hjP hKhhhhubjl)}(hk**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR_RW(), but **_mode** is 0600.h](jG)}(h**Parameters**h]jv)}(hj] h]h Parameters}(hj_ hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj[ ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjW ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj| h]h_name}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjv ubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjv ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjs ubah}(h]h ]h"]h$]h&]uh1jhjW ubjG)}(h**Description**h]jv)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjW ubjG)}(h-Like DEVICE_ATTR_RW(), but **_mode** is 0600.h](hLike DEVICE_ATTR_RW(), but }(hj hhhNhNubjv)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh is 0600.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjW ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_ATTR_RO (C macro)c.DEVICE_ATTR_ROhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_ROh]h)}(hDEVICE_ATTR_ROh]j)}(hDEVICE_ATTR_ROh]j)}(hj h]hDEVICE_ATTR_RO}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 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,j3uh1hj4j5hj hhhj% hKubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj% hKhj hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj hhhj% hKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfj> jgj> jhjijjuh1hhhhhhNhNubjG)}(h``DEVICE_ATTR_RO (_name)``h]j)}(hjD h]hDEVICE_ATTR_RO (_name)}(hjF hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h$Define a readable device attribute. h]jG)}(h#Define a readable device attribute.h]h#Define a readable device attribute.}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjZ ubah}(h]h ]h"]h$]h&]uh1j:hjl hKhhhhubjl)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0444 and **_show** is <_name>_show.h](jG)}(h**Parameters**h]jv)}(hjy h]h Parameters}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjw ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjs 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]jG)}(hAttribute name.h]hAttribute name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjs ubjG)}(h**Description**h]jv)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjs ubjG)}(hHLike DEVICE_ATTR(), but **_mode** is 0444 and **_show** is <_name>_show.h](hLike DEVICE_ATTR(), but }(hj hhhNhNubjv)}(h **_mode**h]h_mode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh is 0444 and }(hj hhhNhNubjv)}(h **_show**h]h_show}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh is <_name>_show.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjs ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_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)}(hj6 h]hDEVICE_ATTR_ADMIN_RO}(hj@ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj< ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj8 hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj4 hhhjS hKubah}(h]j/ ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjS hKhj1 hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj1 hhhjS hKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjl jgjl jhjijjuh1hhhhhhNhNubjG)}(h ``DEVICE_ATTR_ADMIN_RO (_name)``h]j)}(hjr h]hDEVICE_ATTR_ADMIN_RO (_name)}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h0Define an admin-only readable device attribute. h]jG)}(h/Define an admin-only readable device attribute.h]h/Define an admin-only readable device attribute.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubah}(h]h ]h"]h$]h&]uh1j:hj hKhhhhubjl)}(hk**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR_RO(), but **_mode** is 0400.h](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hj h]h_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubjG)}(h-Like DEVICE_ATTR_RO(), but **_mode** is 0400.h](hLike DEVICE_ATTR_RO(), but }(hjhhhNhNubjv)}(h **_mode**h]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh is 0400.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_ATTR_WO (C macro)c.DEVICE_ATTR_WOhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ATTR_WOh]h)}(hDEVICE_ATTR_WOh]j)}(hDEVICE_ATTR_WOh]j)}(hjRh]hDEVICE_ATTR_WO}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjThhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjPhhhjohKubah}(h]jKah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjohKhjMhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjMhhhjohKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjG)}(h``DEVICE_ATTR_WO (_name)``h]j)}(hjh]hDEVICE_ATTR_WO (_name)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h0Define an admin-only writable device attribute. h]jG)}(h/Define an admin-only writable device attribute.h]h/Define an admin-only writable device attribute.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubah}(h]h ]h"]h$]h&]uh1j:hjhKhhhhubjl)}(h**Parameters** ``_name`` Attribute name. **Description** Like DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubjG)}(hJLike DEVICE_ATTR(), but **_mode** is 0200 and **_store** is <_name>_store.h](hLike DEVICE_ATTR(), but }(hj3hhhNhNubjv)}(h **_mode**h]h_mode}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj3ubh is 0200 and }(hj3hhhNhNubjv)}(h **_store**h]h_store}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj3ubh is <_name>_store.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_ULONG_ATTR (C macro)c.DEVICE_ULONG_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_ULONG_ATTRh]h)}(hDEVICE_ULONG_ATTRh]j)}(hDEVICE_ULONG_ATTRh]j)}(hjh]hDEVICE_ULONG_ATTR}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(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,j3uh1hj4j5hj~hhhjhKubah}(h]jyah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhj{hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj{hhhjhKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h6Define a device attribute backed by an unsigned long. h]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubah}(h]h ]h"]h$]h&]uh1j:hjhKhhhhubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj ubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%hKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hjIh]h_mode}(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.hhKhjCubj)}(hhh]jG)}(h File mode.h]h File mode.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^hKhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKhjubj)}(h&``_var`` Identifier of unsigned long. h](j)}(h``_var``h]j)}(hjh]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj|ubj)}(hhh]jG)}(hIdentifier of unsigned long.h]hIdentifier of unsigned long.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubjG)}(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 }(hjhhhNhNubjv)}(h **_show**h]h_show}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh and }(hjhhhNhNubjv)}(h **_store**h]h_store}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh^ are automatically provided such that reads and writes to the attribute from userspace affect }(hjhhhNhNubjv)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_INT_ATTR (C macro)c.DEVICE_INT_ATTRhNtauh1hhhhhhNhNubh)}(hhh](h)}(hDEVICE_INT_ATTRh]h)}(hDEVICE_INT_ATTRh]j)}(hDEVICE_INT_ATTRh]j)}(hj2h]hDEVICE_INT_ATTR}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj4hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj0hhhjOhKubah}(h]j+ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjOhKhj-hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj-hhhjOhKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjhjgjhjhjijjuh1hhhhhhNhNubjG)}(h(``DEVICE_INT_ATTR (_name, _mode, _var)``h]j)}(hjnh]h$DEVICE_INT_ATTR (_name, _mode, _var)}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h,Define a device attribute backed by an int. h]jG)}(h+Define a device attribute backed by an int.h]h+Define a device attribute backed by an int.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubah}(h]h ]h"]h$]h&]uh1j:hjhKhhhhubjl)}(h**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of int. **Description** Like DEVICE_ULONG_ATTR(), but **_var** is an int.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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]jG)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``_var`` Identifier of int. h](j)}(h``_var``h]j)}(hj4h]h_var}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj.ubj)}(hhh]jG)}(hIdentifier of int.h]hIdentifier of int.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjIhKhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjmubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubjG)}(h1Like DEVICE_ULONG_ATTR(), but **_var** is an int.h](hLike DEVICE_ULONG_ATTR(), but }(hjhhhNhNubjv)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh is an int.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_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 ]jah"]h$]h&]uh1jhjubah}(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,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhhhhubj;)}(h,Define a device attribute backed by a bool. h]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjubah}(h]h ]h"]h$]h&]uh1j:hj$hKhhhhubjl)}(h**Parameters** ``_name`` Attribute name. ``_mode`` File mode. ``_var`` Identifier of bool. **Description** Like DEVICE_ULONG_ATTR(), but **_var** is a bool.h](jG)}(h**Parameters**h]jv)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj/ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj+ubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjPh]h_name}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhjJubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjehKhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehKhjGubj)}(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]jG)}(h File mode.h]h File mode.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjGubj)}(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.hhKhjubj)}(hhh]jG)}(hIdentifier of bool.h]hIdentifier of bool.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjGubeh}(h]h ]h"]h$]h&]uh1jhj+ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj+ubjG)}(h1Like DEVICE_ULONG_ATTR(), but **_var** is a bool.h](hLike DEVICE_ULONG_ATTR(), but }(hjhhhNhNubjv)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh is a bool.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhKhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌDEVICE_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)}(hjNh]hDEVICE_STRING_ATTR_RO}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjPhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjLhhhjkhMubah}(h]jGah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjkhMhjIhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjIhhhjkhMubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjG)}(h.``DEVICE_STRING_ATTR_RO (_name, _mode, _var)``h]j)}(hjh]h*DEVICE_STRING_ATTR_RO (_name, _mode, _var)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj;)}(h2Define a device attribute backed by a r/o string. h]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1j:hjhMhhhhubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h``_name`` Attribute name. h](j)}(h ``_name``h]j)}(hjh]h_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(hAttribute name.h]hAttribute name.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``_mode`` File mode. h](j)}(h ``_mode``h]j)}(hjh]h_mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(h File mode.h]h File mode.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h``_var`` Identifier of string. h](j)}(h``_var``h]j)}(hjPh]h_var}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjJubj)}(hhh]jG)}(hIdentifier of string.h]hIdentifier of string.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjehMhjfubah}(h]h ]h"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubjG)}(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 }(hjhhhNhNubjv)}(h**_var**h]h_var}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhf is a string. Because the length of the string allocation is unknown, the attribute must be read-only.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevm_alloc_percpu (C macro)c.devm_alloc_percpuhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevm_alloc_percpuh]h)}(hdevm_alloc_percpuh]j)}(hdevm_alloc_percpuh]j)}(hjh]hdevm_alloc_percpu}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjG)}(h!``devm_alloc_percpu (dev, type)``h]j)}(hjh]hdevm_alloc_percpu (dev, type)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj;)}(hResource-managed alloc_percpu h]jG)}(hResource-managed alloc_percpuh]hResource-managed alloc_percpu}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj.ubah}(h]h ]h"]h$]h&]uh1j:hj@hMhhhhubjl)}(hX2**Parameters** ``dev`` Device to allocate per-cpu memory for ``type`` Type to allocate per-cpu memory for **Description** Managed alloc_percpu. Per-cpu memory allocated with this function is automatically freed on driver detach. **Return** Pointer to allocated memory on success, NULL on failure.h](jG)}(h**Parameters**h]jv)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjKubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM!hjGubj)}(hhh](j)}(h.``dev`` Device to allocate per-cpu memory for h](j)}(h``dev``h]j)}(hjlh]hdev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjfubj)}(hhh]jG)}(h%Device to allocate per-cpu memory forh]h%Device to allocate per-cpu memory for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h-``type`` Type to allocate per-cpu memory for h](j)}(h``type``h]j)}(hjh]htype}(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]jG)}(h#Type to allocate per-cpu memory forh]h#Type to allocate per-cpu memory for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM!hjGubjG)}(hjManaged alloc_percpu. Per-cpu memory allocated with this function is automatically freed on driver detach.h]hjManaged alloc_percpu. Per-cpu memory allocated with this function is automatically freed on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM!hjGubjG)}(h **Return**h]jv)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hjGubjG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdl_dev_state (C enum)c.dl_dev_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(h dl_dev_stateh]h)}(henum dl_dev_stateh](h)}(henumh]henum}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM)ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHhhhjZhM)ubj)}(h dl_dev_stateh]j)}(hjFh]h dl_dev_state}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjHhhhjZhM)ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjDhhhjZhM)ubah}(h]j?ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjZhM)hjAhhubjB)}(hhh]jG)}(h,Device driver presence tracking information.h]h,Device driver presence tracking information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMdhjhhubah}(h]h ]h"]h$]h&]uh1jAhjAhhhjZhM)ubeh}(h]h ](j`enumeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h **Constants**h]jv)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhjubj)}(hhh](j)}(h@``DL_DEV_NO_DRIVER`` There is no driver attached to the device. h](j)}(h``DL_DEV_NO_DRIVER``h]j)}(hjh]hDL_DEV_NO_DRIVER}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMkhjubj)}(hhh]jG)}(h*There is no driver attached to the device.h]h*There is no driver attached to the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMkhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMkhjubj)}(h(``DL_DEV_PROBING`` A driver is probing. h](j)}(h``DL_DEV_PROBING``h]j)}(hj h]hDL_DEV_PROBING}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMnhjubj)}(hhh]jG)}(hA driver is probing.h]hA driver is probing.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubj)}(hA``DL_DEV_DRIVER_BOUND`` The driver has been bound to the device. h](j)}(h``DL_DEV_DRIVER_BOUND``h]j)}(hjBh]hDL_DEV_DRIVER_BOUND}(hjDhhhNhNubah}(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]jG)}(h(The driver has been bound to the device.h]h(The driver has been bound to the device.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjWhMqhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhMqhjubj)}(h=``DL_DEV_UNBINDING`` The driver is unbinding from the device.h](j)}(h``DL_DEV_UNBINDING``h]j)}(hj{h]hDL_DEV_UNBINDING}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMshjuubj)}(hhh]jG)}(h(The driver is unbinding from the device.h]h(The driver is unbinding from the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMthjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_removable (C enum)c.device_removablehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_removableh]h)}(henum device_removableh](h)}(hjNh]henum}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMyubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMyubj)}(hdevice_removableh]j)}(hjh]hdevice_removable}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMyubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMyubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMyhjhhubjB)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMrhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMyubeh}(h]h ](j`enumeh"]h$]h&]jej`jfj/jgj/jhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h **Constants**h]jv)}(hj9h]h Constants}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj7ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMvhj3ubj)}(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)}(hjXh]hDEVICE_REMOVABLE_NOT_SUPPORTED}(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.hhMzhjRubj)}(hhh]jG)}(h:This attribute is not supported for this device (default).h]h:This attribute is not supported for this device (default).}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMyhjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMzhjOubj)}(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.hhM}hjubj)}(hhh]jG)}(hDevice location is Unknown.h]hDevice location is Unknown.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM}hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM}hjOubj)}(h6``DEVICE_FIXED`` Device is not removable by the user. h](j)}(h``DEVICE_FIXED``h]j)}(hjh]h DEVICE_FIXED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(h$Device is not removable by the user.h]h$Device is not removable by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubj)}(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.hhMhjubj)}(hhh]jG)}(h Device is removable by the user.h]h Device is removable by the user.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/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&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_links_info (C struct)c.dev_links_infohNtauh1hhhhhhNhNubh)}(hhh](h)}(hdev_links_infoh]h)}(hstruct dev_links_infoh](h)}(hhh]hstruct}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjkhMubj)}(hdev_links_infoh]j)}(hjXh]hdev_links_info}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjZhhhjkhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjVhhhjkhMubah}(h]jQah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjkhMhjShhubjB)}(hhh]jG)}(h$Device data related to device links.h]h$Device data related to device links.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjShhhjkhMubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hstruct dev_links_info { struct list_head suppliers; struct list_head consumers; struct list_head defer_sync; enum dl_dev_state status; };h]hstruct dev_links_info { struct list_head suppliers; struct list_head consumers; struct list_head defer_sync; enum dl_dev_state status; };}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(h1``suppliers`` List of links to supplier devices. h](j)}(h ``suppliers``h]j)}(hj h]h suppliers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(h"List of links to supplier devices.h]h"List of links to supplier devices.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hMhjubj)}(h1``consumers`` List of links to consumer devices. h](j)}(h ``consumers``h]j)}(hjFh]h consumers}(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.hhMhj@ubj)}(hhh]jG)}(h"List of links to consumer devices.h]h"List of links to consumer devices.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhjubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjyubj)}(hhh]jG)}(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&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h%``status`` Driver status information.h](j)}(h ``status``h]j)}(hjh]hstatus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(hDriver status information.h]hDriver status information.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_msi_info (C struct)c.dev_msi_infohNtauh1hhhhhhNhNubh)}(hhh](h)}(h dev_msi_infoh]h)}(hstruct dev_msi_infoh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h dev_msi_infoh]j)}(hj h]h dev_msi_info}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(hDevice data related to MSIh]hDevice data related to MSI}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjQhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`structeh"]h$]h&]jej`jfjljgjljhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjtubh:}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjpubj)}(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.hhMhjpubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjpubj)}(hhh](j)}(h=``domain`` The MSI interrupt domain associated to the device h](j)}(h ``domain``h]j)}(hjh]hdomain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(h1The MSI interrupt domain associated to the deviceh]h1The MSI interrupt domain associated to the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h#``data`` Pointer to MSI device datah](j)}(h``data``h]j)}(hjh]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(hPointer to MSI device datah]hPointer to MSI device data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(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)}(hjNh]henum}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjahMubj)}(hdevice_physical_location_panelh]j)}(hjNh]hdevice_physical_location_panel}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjPhhhjahMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjLhhhjahMubah}(h]jGah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjahMhjIhhubjB)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjIhhhjahMubeh}(h]h ](j`enumeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h **Constants**h]jv)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh](j)}(hB``DEVICE_PANEL_TOP`` Device connection point is on the top panel. h](j)}(h``DEVICE_PANEL_TOP``h]j)}(hjh]hDEVICE_PANEL_TOP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(h,Device connection point is on the top panel.h]h,Device connection point is on the top panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hH``DEVICE_PANEL_BOTTOM`` Device connection point is on the bottom panel. h](j)}(h``DEVICE_PANEL_BOTTOM``h]j)}(hjh]hDEVICE_PANEL_BOTTOM}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubj)}(hhh]jG)}(h/Device connection point is on the bottom panel.h]h/Device connection point is on the bottom panel.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubj)}(hD``DEVICE_PANEL_LEFT`` Device connection point is on the left panel. h](j)}(h``DEVICE_PANEL_LEFT``h]j)}(hjIh]hDEVICE_PANEL_LEFT}(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]jG)}(h-Device connection point is on the left panel.h]h-Device connection point is on the left panel.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhjubj)}(hF``DEVICE_PANEL_RIGHT`` Device connection point is on the right panel. h](j)}(h``DEVICE_PANEL_RIGHT``h]j)}(hjh]hDEVICE_PANEL_RIGHT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj|ubj)}(hhh]jG)}(h.Device connection point is on the right panel.h]h.Device connection point is on the right panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hF``DEVICE_PANEL_FRONT`` Device connection point is on the front panel. h](j)}(h``DEVICE_PANEL_FRONT``h]j)}(hjh]hDEVICE_PANEL_FRONT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(hhh]jG)}(h.Device connection point is on the front panel.h]h.Device connection point is on the front panel.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hD``DEVICE_PANEL_BACK`` Device connection point is on the back panel. h](j)}(h``DEVICE_PANEL_BACK``h]j)}(hjh]hDEVICE_PANEL_BACK}(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]jG)}(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&]uh1jFhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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]jG)}(h2The panel with device connection point is unknown.h]h2The panel with device connection point is unknown.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ3device_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)}(hjNh]henum}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h*device_physical_location_vertical_positionh]j)}(hjh]h*device_physical_location_vertical_position}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jzah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhj|hhubjB)}(hhh]jG)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjhhubah}(h]h ]h"]h$]h&]uh1jAhj|hhhjhMubeh}(h]h ](j`enumeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h **Constants**h]jv)}(hjh]h Constants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjubj)}(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]jG)}(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&]uh1jFhj 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)}(hjC h]hDEVICE_VERT_POS_CENTER}(hjE hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj= ubj)}(hhh]jG)}(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&]uh1jFhjX hMhjY ubah}(h]h ]h"]h$]h&]uh1jhj= ubeh}(h]h ]h"]h$]h&]uh1jhjX 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&]uh1jhjz ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjv ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ubah}(h]h ]h"]h$]h&]uh1jhjv ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ5device_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)}(hjNh]henum}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj)}(h,device_physical_location_horizontal_positionh]j)}(hj h]h,device_physical_location_horizontal_position}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhj hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhj hMubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hMhj hhubjB)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj!hhubah}(h]h ]h"]h$]h&]uh1jAhj hhhj hMubeh}(h]h ](j`enumeh"]h$]h&]jej`jfj0!jgj0!jhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h **Constants**h]jv)}(hj:!h]h Constants}(hjj?)j@huh1hhj2"hMhj"hhubjB)}(hhh]jG)}(hHDevice data related to physical location of the device connection point.h]hHDevice data related to physical location of the device connection point.}(hjg"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjd"hhubah}(h]h ]h"]h$]h&]uh1jAhj"hhhj2"hMubeh}(h]h ](j`structeh"]h$]h&]jej`jfj"jgj"jhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj"ubh:}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubj)}(hXstruct device_physical_location { enum device_physical_location_panel panel; enum device_physical_location_vertical_position vertical_position; enum device_physical_location_horizontal_position horizontal_position; bool dock; bool lid; };h]hXstruct device_physical_location { enum device_physical_location_panel panel; enum device_physical_location_vertical_position vertical_position; enum device_physical_location_horizontal_position horizontal_position; bool dock; bool lid; };}hj"sbah}(h]h ]h"]h$]h&]j+j,uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubjG)}(h **Members**h]jv)}(hj"h]hMembers}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj"ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubj)}(hhh](j)}(h]``panel`` Panel surface of the system's housing that the device connection point resides on. h](j)}(h ``panel``h]j)}(hj"h]hpanel}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj"ubj)}(hhh]jG)}(hRPanel surface of the system's housing that the device connection point resides on.h]hTPanel surface of the system’s housing that the device connection point resides on.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/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)}(hY``vertical_position`` Vertical position of the device connection point within the panel. h](j)}(h``vertical_position``h]j)}(hj#h]hvertical_position}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj #ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj##hMhj"ubj)}(h]``horizontal_position`` Horizontal position of the device connection point within the panel. h](j)}(h``horizontal_position``h]j)}(hjH#h]hhorizontal_position}(hjJ#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF#ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjB#ubj)}(hhh]jG)}(hDHorizontal position of the device connection point within the panel.h]hDHorizontal position of the device connection point within the panel.}(hja#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj^#ubah}(h]h ]h"]h$]h&]uh1jhjB#ubeh}(h]h ]h"]h$]h&]uh1jhj]#hMhj"ubj)}(h]``dock`` Set if the device connection point resides in a docking station or port replicator. h](j)}(h``dock``h]j)}(hj#h]hdock}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj|#ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj#ubah}(h]h ]h"]h$]h&]uh1jhj|#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj"ubj)}(hP``lid`` Set if this device connection point resides on the lid of laptop system.h](j)}(h``lid``h]j)}(hj#h]hlid}(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]jG)}(hHSet if this device connection point resides on the lid of laptop system.h]hHSet if this device connection point resides on the lid of laptop system.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj#hMhj#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj#hMhj"ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice (C struct)c.devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdeviceh]h)}(h struct deviceh](h)}(hhh]hstruct}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj#$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj"$hMubj)}(hdeviceh]j)}(hj$h]hdevice}(hj5$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1$ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj$hhhj"$hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj $hhhj"$hMubah}(h]j$ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj"$hMhj $hhubjB)}(hhh]jG)}(hThe basic device structureh]hThe basic device structure}(hjW$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjT$hhubah}(h]h ]h"]h$]h&]uh1jAhj $hhhj"$hMubeh}(h]h ](j`structeh"]h$]h&]jej`jfjo$jgjo$jhjijjuh1hhhhhhNhNubjl)}(hX**Definition**:: struct device { struct kobject kobj; struct device *parent; struct device_private *p; const char *init_name; const struct device_type *type; const struct bus_type *bus; struct device_driver *driver; void *platform_data; void *driver_data; struct mutex mutex; struct dev_links_info links; struct dev_pm_info power; struct dev_pm_domain *pm_domain; #ifdef CONFIG_ENERGY_MODEL; struct em_perf_domain *em_pd; #endif; #ifdef CONFIG_PINCTRL; struct dev_pin_info *pins; #endif; struct dev_msi_info msi; #ifdef CONFIG_ARCH_HAS_DMA_OPS; const struct dma_map_ops *dma_ops; #endif; u64 *dma_mask; u64 coherent_dma_mask; u64 bus_dma_limit; const struct bus_dma_region *dma_range_map; struct device_dma_parameters *dma_parms; struct list_head dma_pools; #ifdef CONFIG_DMA_DECLARE_COHERENT; struct dma_coherent_mem *dma_mem; #endif; #ifdef CONFIG_DMA_CMA; struct cma *cma_area; #endif; #ifdef CONFIG_SWIOTLB; struct io_tlb_mem *dma_io_tlb_mem; #endif; #ifdef CONFIG_SWIOTLB_DYNAMIC; struct list_head dma_io_tlb_pools; spinlock_t dma_io_tlb_lock; bool dma_uses_io_tlb; #endif; struct dev_archdata archdata; struct device_node *of_node; struct fwnode_handle *fwnode; #ifdef CONFIG_NUMA; int numa_node; #endif; dev_t devt; u32 id; spinlock_t devres_lock; struct list_head devres_head; const struct class *class; const struct attribute_group **groups; void (*release)(struct device *dev); struct iommu_group *iommu_group; struct dev_iommu *iommu; struct device_physical_location *physical_location; enum device_removable removable; bool offline_disabled:1; bool offline:1; bool of_node_reused:1; bool state_synced:1; bool can_match:1; #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL); bool dma_coherent:1; #endif; #ifdef CONFIG_DMA_OPS_BYPASS; bool dma_ops_bypass : 1; #endif; #ifdef CONFIG_DMA_NEED_SYNC; bool dma_skip_sync:1; #endif; #ifdef CONFIG_IOMMU_DMA; bool dma_iommu:1; #endif; }; **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. ``mutex`` Mutex to synchronize calls to its driver. ``links`` Links to suppliers and consumers of this device. ``power`` For device power management. See Documentation/driver-api/pm/devices.rst for details. ``pm_domain`` Provide callbacks that are executed during system suspend, hibernation, system resume and during runtime PM transitions along with subsystem-level and driver-level callbacks. ``em_pd`` device's energy model performance domain ``pins`` For device pin management. See Documentation/driver-api/pin-control.rst for details. ``msi`` MSI related data ``dma_ops`` DMA mapping operations for this device. ``dma_mask`` Dma mask (if dma'ble device). ``coherent_dma_mask`` Like dma_mask, but for alloc_coherent mapping as not all hardware supports 64-bit addresses for consistent allocations such descriptors. ``bus_dma_limit`` Limit of an upstream bridge or bus which imposes a smaller DMA limit than the device itself supports. ``dma_range_map`` map for DMA memory ranges relative to that of RAM ``dma_parms`` A low level driver may set these to teach IOMMU code about segment limitations. ``dma_pools`` Dma pools (if dma'ble device). ``dma_mem`` Internal for coherent mem override. ``cma_area`` Contiguous memory area for dma allocations ``dma_io_tlb_mem`` Software IO TLB allocator. Not for driver use. ``dma_io_tlb_pools`` List of transient swiotlb memory pools. ``dma_io_tlb_lock`` Protects changes to the list of active pools. ``dma_uses_io_tlb`` ``true`` if device has used the software IO TLB. ``archdata`` For arch-specific additions. ``of_node`` Associated device tree node. ``fwnode`` Associated device node supplied by platform firmware. ``numa_node`` NUMA node this device is close to. ``devt`` For creating the sysfs "dev". ``id`` device instance ``devres_lock`` Spinlock to protect the resource of the device. ``devres_head`` The resources list of the device. ``class`` The class of the device. ``groups`` Optional attribute groups. ``release`` Callback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device). ``iommu_group`` IOMMU group the device belongs to. ``iommu`` Per device generic IOMMU runtime data ``physical_location`` Describes physical location of the device connection point in the system housing. ``removable`` Whether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device. ``offline_disabled`` If set, the device is permanently online. ``offline`` Set after successful invocation of bus type's .offline(). ``of_node_reused`` Set if the device-tree node is shared with an ancestor device. ``state_synced`` The hardware state of this device has been synced to match the software state of this device by calling the driver/bus sync_state() callback. ``can_match`` The device has matched with a driver at least once or it is in a bus (like AMBA) which can't check for matching drivers until other devices probe successfully. ``dma_coherent`` this particular device is dma coherent, even if the architecture supports non-coherent devices. ``dma_ops_bypass`` If set to ``true`` then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported. ``dma_skip_sync`` DMA sync operations can be skipped for coherent buffers. ``dma_iommu`` Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hj{$hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjw$ubh:}(hjw$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjs$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 mutex mutex; struct dev_links_info links; struct dev_pm_info power; struct dev_pm_domain *pm_domain; #ifdef CONFIG_ENERGY_MODEL; struct em_perf_domain *em_pd; #endif; #ifdef CONFIG_PINCTRL; struct dev_pin_info *pins; #endif; struct dev_msi_info msi; #ifdef CONFIG_ARCH_HAS_DMA_OPS; const struct dma_map_ops *dma_ops; #endif; u64 *dma_mask; u64 coherent_dma_mask; u64 bus_dma_limit; const struct bus_dma_region *dma_range_map; struct device_dma_parameters *dma_parms; struct list_head dma_pools; #ifdef CONFIG_DMA_DECLARE_COHERENT; struct dma_coherent_mem *dma_mem; #endif; #ifdef CONFIG_DMA_CMA; struct cma *cma_area; #endif; #ifdef CONFIG_SWIOTLB; struct io_tlb_mem *dma_io_tlb_mem; #endif; #ifdef CONFIG_SWIOTLB_DYNAMIC; struct list_head dma_io_tlb_pools; spinlock_t dma_io_tlb_lock; bool dma_uses_io_tlb; #endif; struct dev_archdata archdata; struct device_node *of_node; struct fwnode_handle *fwnode; #ifdef CONFIG_NUMA; int numa_node; #endif; dev_t devt; u32 id; spinlock_t devres_lock; struct list_head devres_head; const struct class *class; const struct attribute_group **groups; void (*release)(struct device *dev); struct iommu_group *iommu_group; struct dev_iommu *iommu; struct device_physical_location *physical_location; enum device_removable removable; bool offline_disabled:1; bool offline:1; bool of_node_reused:1; bool state_synced:1; bool can_match:1; #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL); bool dma_coherent:1; #endif; #ifdef CONFIG_DMA_OPS_BYPASS; bool dma_ops_bypass : 1; #endif; #ifdef CONFIG_DMA_NEED_SYNC; bool dma_skip_sync:1; #endif; #ifdef CONFIG_IOMMU_DMA; bool dma_iommu:1; #endif; };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 mutex mutex; struct dev_links_info links; struct dev_pm_info power; struct dev_pm_domain *pm_domain; #ifdef CONFIG_ENERGY_MODEL; struct em_perf_domain *em_pd; #endif; #ifdef CONFIG_PINCTRL; struct dev_pin_info *pins; #endif; struct dev_msi_info msi; #ifdef CONFIG_ARCH_HAS_DMA_OPS; const struct dma_map_ops *dma_ops; #endif; u64 *dma_mask; u64 coherent_dma_mask; u64 bus_dma_limit; const struct bus_dma_region *dma_range_map; struct device_dma_parameters *dma_parms; struct list_head dma_pools; #ifdef CONFIG_DMA_DECLARE_COHERENT; struct dma_coherent_mem *dma_mem; #endif; #ifdef CONFIG_DMA_CMA; struct cma *cma_area; #endif; #ifdef CONFIG_SWIOTLB; struct io_tlb_mem *dma_io_tlb_mem; #endif; #ifdef CONFIG_SWIOTLB_DYNAMIC; struct list_head dma_io_tlb_pools; spinlock_t dma_io_tlb_lock; bool dma_uses_io_tlb; #endif; struct dev_archdata archdata; struct device_node *of_node; struct fwnode_handle *fwnode; #ifdef CONFIG_NUMA; int numa_node; #endif; dev_t devt; u32 id; spinlock_t devres_lock; struct list_head devres_head; const struct class *class; const struct attribute_group **groups; void (*release)(struct device *dev); struct iommu_group *iommu_group; struct dev_iommu *iommu; struct device_physical_location *physical_location; enum device_removable removable; bool offline_disabled:1; bool offline:1; bool of_node_reused:1; bool state_synced:1; bool can_match:1; #if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL); bool dma_coherent:1; #endif; #ifdef CONFIG_DMA_OPS_BYPASS; bool dma_ops_bypass : 1; #endif; #ifdef CONFIG_DMA_NEED_SYNC; bool dma_skip_sync:1; #endif; #ifdef CONFIG_IOMMU_DMA; bool dma_iommu:1; #endif; };}hj$sbah}(h]h ]h"]h$]h&]j+j,uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjs$ubjG)}(h **Members**h]jv)}(hj$h]hMembers}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj$ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM7hjs$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.hhMhj$ubj)}(hhh]jG)}(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&]uh1jFhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj$ubj)}(h``parent`` The device's "parent" device, the device to which it is attached. In most cases, a parent device is some sort of bus or host controller. If parent is NULL, the device, is a top-level device, which is not usually what you want. h](j)}(h ``parent``h]j)}(hj$h]hparent}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj$ubj)}(hhh]jG)}(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&]uh1jFh_/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``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)}(hj7%h]hp}(hj9%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj1%ubj)}(hhh]jG)}(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.}(hjP%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjM%ubah}(h]h ]h"]h$]h&]uh1jhj1%ubeh}(h]h ]h"]h$]h&]uh1jhjL%hMhj$ubj)}(h*``init_name`` Initial name of the device. h](j)}(h ``init_name``h]j)}(hjq%h]h init_name}(hjs%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjo%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjk%ubj)}(hhh]jG)}(hInitial name of the device.h]hInitial name of the device.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhjk%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj$ubj)}(hd``type`` The type of device. This identifies the device type and carries type-specific information. h](j)}(h``type``h]j)}(hj%h]htype}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubj)}(hhh]jG)}(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&]uh1jFh_/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"``bus`` Type of bus device is on. h](j)}(h``bus``h]j)}(hj%h]hbus}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj%ubj)}(hhh]jG)}(hType of bus device is on.h]hType of bus device is on.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj$ubj)}(h+``driver`` Which driver has allocated this h](j)}(h ``driver``h]j)}(hj&h]hdriver}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj&ubj)}(hhh]jG)}(hWhich driver has allocated thish]hWhich driver has allocated this}(hj6&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2&hMhj3&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj2&hMhj$ubj)}(h8``platform_data`` Platform data specific to the device. h](j)}(h``platform_data``h]j)}(hjV&h]h platform_data}(hjX&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjP&ubj)}(hhh]jG)}(h%Platform data specific to the device.h]h%Platform data specific to the device.}(hjo&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjk&hMhjl&ubah}(h]h ]h"]h$]h&]uh1jhjP&ubeh}(h]h ]h"]h$]h&]uh1jhjk&hMhj$ubj)}(h:``driver_data`` Private pointer for driver specific info. h](j)}(h``driver_data``h]j)}(hj&h]h driver_data}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj&ubj)}(hhh]jG)}(h)Private pointer for driver specific info.h]h)Private pointer for driver specific info.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&hMhj&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.hhMhj&ubj)}(hhh]jG)}(h)Mutex to synchronize calls to its driver.h]h)Mutex to synchronize calls to its driver.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&hMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhj$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]jG)}(h0Links to suppliers and consumers of this device.h]h0Links to suppliers and consumers of this device.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj'hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj'hMhj$ubj)}(h```power`` For device power management. See Documentation/driver-api/pm/devices.rst for details. h](j)}(h ``power``h]j)}(hj:'h]hpower}(hj<'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj4'ubj)}(hhh]jG)}(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.}(hjS'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjP'ubah}(h]h ]h"]h$]h&]uh1jhj4'ubeh}(h]h ]h"]h$]h&]uh1jhjO'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)}(hjt'h]h pm_domain}(hjv'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr'ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjn'ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj'ubah}(h]h ]h"]h$]h&]uh1jhjn'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]jG)}(h(device's energy model performance domainh]h*device’s energy model performance domain}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj'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]jG)}(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&]uh1jFh_/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]jG)}(hMSI related datah]hMSI related data}(hj:(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6(hMhj7(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj6(hMhj$ubj)}(h4``dma_ops`` DMA mapping operations for this device. h](j)}(h ``dma_ops``h]j)}(hjZ(h]hdma_ops}(hj\(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX(ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjT(ubj)}(hhh]jG)}(h'DMA mapping operations for this device.h]h'DMA mapping operations for this device.}(hjs(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjo(hMhjp(ubah}(h]h ]h"]h$]h&]uh1jhjT(ubeh}(h]h ]h"]h$]h&]uh1jhjo(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]jG)}(hDma mask (if dma'ble device).h]hDma mask (if dma’ble device).}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj(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.hhM hj(ubj)}(hhh]jG)}(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&]uh1jFh_/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(hM hj$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.hhM hj)ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM hj$ubj)}(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}(hjB)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj:)ubj)}(hhh]jG)}(h1map for DMA memory ranges relative to that of RAMh]h1map for DMA memory ranges relative to that of RAM}(hjY)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjU)hM hjV)ubah}(h]h ]h"]h$]h&]uh1jhj:)ubeh}(h]h ]h"]h$]h&]uh1jhjU)hM hj$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)}(hjy)h]h dma_parms}(hj{)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw)ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjs)ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM hj)ubah}(h]h ]h"]h$]h&]uh1jhjs)ubeh}(h]h ]h"]h$]h&]uh1jhj)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]jG)}(hDma pools (if dma'ble device).h]h Dma pools (if dma’ble device).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj)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]jG)}(h#Internal for coherent mem override.h]h#Internal for coherent mem override.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*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]jG)}(h*Contiguous memory area for dma allocationsh]h*Contiguous memory area for dma allocations}(hj>*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:*hMhj;*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj:*hMhj$ubj)}(hC``dma_io_tlb_mem`` Software IO TLB allocator. Not for driver use. h](j)}(h``dma_io_tlb_mem``h]j)}(hj^*h]hdma_io_tlb_mem}(hj`*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjX*ubj)}(hhh]jG)}(h/Software IO TLB allocator. Not for driver use.h]h/Software IO TLB allocator. Not for driver use.}(hjw*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjs*hMhjt*ubah}(h]h ]h"]h$]h&]uh1jhjX*ubeh}(h]h ]h"]h$]h&]uh1jhjs*hMhj$ubj)}(h=``dma_io_tlb_pools`` List of transient swiotlb memory pools. h](j)}(h``dma_io_tlb_pools``h]j)}(hj*h]hdma_io_tlb_pools}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj*ubj)}(hhh]jG)}(h'List of transient swiotlb memory pools.h]h'List of transient swiotlb memory pools.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj$ubj)}(hB``dma_io_tlb_lock`` Protects changes to the list of active pools. h](j)}(h``dma_io_tlb_lock``h]j)}(hj*h]hdma_io_tlb_lock}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj*ubj)}(hhh]jG)}(h-Protects changes to the list of active pools.h]h-Protects changes to the list of active pools.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*hMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hMhj$ubj)}(hE``dma_uses_io_tlb`` ``true`` if device has used the software IO TLB. h](j)}(h``dma_uses_io_tlb``h]j)}(hj +h]hdma_uses_io_tlb}(hj +hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj+ubj)}(hhh]jG)}(h0``true`` if device has used the software IO TLB.h](j)}(h``true``h]htrue}(hj&+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"+ubh( if device has used the software IO TLB.}(hj"+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj$ubj)}(h*``archdata`` For arch-specific additions. h](j)}(h ``archdata``h]j)}(hjP+h]harchdata}(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.hhMhjJ+ubj)}(hhh]jG)}(hFor arch-specific additions.h]hFor arch-specific additions.}(hji+hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhje+hMhjf+ubah}(h]h ]h"]h$]h&]uh1jhjJ+ubeh}(h]h ]h"]h$]h&]uh1jhje+hMhj$ubj)}(h)``of_node`` Associated device tree node. h](j)}(h ``of_node``h]j)}(hj+h]hof_node}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj+ubj)}(hhh]jG)}(hAssociated device tree node.h]hAssociated device tree node.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj$ubj)}(hA``fwnode`` Associated device node supplied by platform firmware. h](j)}(h ``fwnode``h]j)}(hj+h]hfwnode}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj+ubj)}(hhh]jG)}(h5Associated device node supplied by platform firmware.h]h5Associated device node supplied by platform firmware.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+hMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMhj$ubj)}(h1``numa_node`` NUMA node this device is close to. h](j)}(h ``numa_node``h]j)}(hj+h]h numa_node}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj+ubj)}(hhh]jG)}(h"NUMA node this device is close to.h]h"NUMA node this device is close to.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj$ubj)}(h'``devt`` For creating the sysfs "dev". h](j)}(h``devt``h]j)}(hj4,h]hdevt}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj.,ubj)}(hhh]jG)}(hFor creating the sysfs "dev".h]h!For creating the sysfs “dev”.}(hjM,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjI,hMhjJ,ubah}(h]h ]h"]h$]h&]uh1jhj.,ubeh}(h]h ]h"]h$]h&]uh1jhjI,hMhj$ubj)}(h``id`` device instance h](j)}(h``id``h]j)}(hjm,h]hid}(hjo,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjg,ubj)}(hhh]jG)}(hdevice instanceh]hdevice instance}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhjg,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj$ubj)}(h@``devres_lock`` Spinlock to protect the resource of the device. h](j)}(h``devres_lock``h]j)}(hj,h]h devres_lock}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj,ubj)}(hhh]jG)}(h/Spinlock to protect the resource of the device.h]h/Spinlock to protect the resource of the device.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj$ubj)}(h2``devres_head`` The resources list of the device. h](j)}(h``devres_head``h]j)}(hj,h]h devres_head}(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]jG)}(h!The resources list of the device.h]h!The resources list of the device.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj$ubj)}(h#``class`` The class of the device. h](j)}(h ``class``h]j)}(hj-h]hclass}(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]jG)}(hThe class of the device.h]hThe class of the device.}(hj1-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj--hMhj.-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj--hMhj$ubj)}(h&``groups`` Optional attribute groups. h](j)}(h ``groups``h]j)}(hjQ-h]hgroups}(hjS-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO-ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjK-ubj)}(hhh]jG)}(hOptional attribute groups.h]hOptional attribute groups.}(hjj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjf-hMhjg-ubah}(h]h ]h"]h$]h&]uh1jhjK-ubeh}(h]h ]h"]h$]h&]uh1jhjf-hMhj$ubj)}(h``release`` Callback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device). h](j)}(h ``release``h]j)}(hj-h]hrelease}(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]jG)}(hCallback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device).h]hCallback to free the device after all references have gone away. This should be set by the allocator of the device (i.e. the bus driver that discovered the device).}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/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-hM!hj$ubj)}(h3``iommu_group`` IOMMU group the device belongs to. h](j)}(h``iommu_group``h]j)}(hj-h]h iommu_group}(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]jG)}(h"IOMMU group the device belongs to.h]h"IOMMU group the device belongs to.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj-hM"hj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hM"hj$ubj)}(h0``iommu`` Per device generic IOMMU runtime data h](j)}(h ``iommu``h]j)}(hj-h]hiommu}(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]jG)}(h%Per device generic IOMMU runtime datah]h%Per device generic IOMMU runtime data}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.hM#hj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hM#hj$ubj)}(hh``physical_location`` Describes physical location of the device connection point in the system housing. h](j)}(h``physical_location``h]j)}(hj6.h]hphysical_location}(hj8.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4.ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM%hj0.ubj)}(hhh]jG)}(hQDescribes physical location of the device connection point in the system housing.h]hQDescribes physical location of the device connection point in the system housing.}(hjO.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM$hjL.ubah}(h]h ]h"]h$]h&]uh1jhj0.ubeh}(h]h ]h"]h$]h&]uh1jhjK.hM%hj$ubj)}(h``removable`` Whether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device. h](j)}(h ``removable``h]j)}(hjp.h]h removable}(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.hhM(hjj.ubj)}(hhh]jG)}(hWhether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device.h]hWhether the device can be removed from the system. This should be set by the subsystem / bus driver that discovered the device.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM&hj.ubah}(h]h ]h"]h$]h&]uh1jhjj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM(hj$ubj)}(h?``offline_disabled`` If set, the device is permanently online. h](j)}(h``offline_disabled``h]j)}(hj.h]hoffline_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.hhM*hj.ubj)}(hhh]jG)}(h)If set, the device is permanently online.h]h)If set, the device is permanently online.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.hM*hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM*hj$ubj)}(hF``offline`` Set after successful invocation of bus type's .offline(). h](j)}(h ``offline``h]j)}(hj.h]hoffline}(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]jG)}(h9Set after successful invocation of bus type's .offline().h]h;Set after successful invocation of bus type’s .offline().}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.hM+hj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hM+hj$ubj)}(hR``of_node_reused`` Set if the device-tree node is shared with an ancestor device. h](j)}(h``of_node_reused``h]j)}(hj/h]hof_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.hhM-hj/ubj)}(hhh]jG)}(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.}(hj5/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM,hj2/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj1/hM-hj$ubj)}(h``state_synced`` The hardware state of this device has been synced to match the software state of this device by calling the driver/bus sync_state() callback. h](j)}(h``state_synced``h]j)}(hjV/h]h state_synced}(hjX/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM0hjP/ubj)}(hhh]jG)}(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.}(hjo/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM.hjl/ubah}(h]h ]h"]h$]h&]uh1jhjP/ubeh}(h]h ]h"]h$]h&]uh1jhjk/hM0hj$ubj)}(h``can_match`` The device has matched with a driver at least once or it is in a bus (like AMBA) which can't check for matching drivers until other devices probe successfully. h](j)}(h ``can_match``h]j)}(hj/h]h can_match}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM3hj/ubj)}(hhh]jG)}(hThe device has matched with a driver at least once or it is in a bus (like AMBA) which can't check for matching drivers until other devices probe successfully.h]hThe device has matched with a driver at least once or it is in a bus (like AMBA) which can’t check for matching drivers until other devices probe successfully.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/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/hM3hj$ubj)}(hq``dma_coherent`` this particular device is dma coherent, even if the architecture supports non-coherent devices. h](j)}(h``dma_coherent``h]j)}(hj/h]h dma_coherent}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM5hj/ubj)}(hhh]jG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM4hj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hM5hj$ubj)}(hX``dma_ops_bypass`` If set to ``true`` then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported. h](j)}(h``dma_ops_bypass``h]j)}(hj0h]hdma_ops_bypass}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM:hj/ubj)}(hhh]jG)}(hXIf set to ``true`` then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported.h](h If set to }(hj0hhhNhNubj)}(h``true``h]htrue}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh then the dma_ops are bypassed for the streaming DMA operations (->map_* / ->unmap_* / ->sync_*), and optionall (if the coherent mask is large enough) also for dma allocations. This flag is managed by the dma ops instance from ->dma_supported.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM6hj0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hM:hj$ubj)}(hK``dma_skip_sync`` DMA sync operations can be skipped for coherent buffers. h](j)}(h``dma_skip_sync``h]j)}(hjP0h]h dma_skip_sync}(hjR0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM;hjJ0ubj)}(hhh]jG)}(h8DMA sync operations can be skipped for coherent buffers.h]h8DMA sync operations can be skipped for coherent buffers.}(hji0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhje0hM;hjf0ubah}(h]h ]h"]h$]h&]uh1jhjJ0ubeh}(h]h ]h"]h$]h&]uh1jhje0hM;hj$ubj)}(hi``dma_iommu`` Device is using default IOMMU implementation for DMA and doesn't rely on dma_ops structure.h](j)}(h ``dma_iommu``h]j)}(hj0h]h dma_iommu}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM<hj0ubj)}(hhh]jG)}(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.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj0hM<hj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hM<hj$ubeh}(h]h ]h"]h$]h&]uh1jhjs$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubjG)}(h **Example**h]jv)}(hj0h]hExample}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj0ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM@hhhhubj)}(hhh]j)}(hXFor devices on custom boards, as typical of embedded and SOC based hardware, Linux often uses platform_data to point to board-specific structures describing devices and how they are wired. That can include what ports are available, chip variants, which GPIO pins act in what additional roles, and so on. This shrinks the "Board Support Packages" (BSPs) and minimizes board-specific #ifdefs in drivers. h](j)}(h4For devices on custom boards, as typical of embeddedh]h4For devices on custom boards, as typical of embedded}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj0ubj)}(hhh]jG)}(hX^and SOC based hardware, Linux often uses platform_data to point to board-specific structures describing devices and how they are wired. That can include what ports are available, chip variants, which GPIO pins act in what additional roles, and so on. This shrinks the "Board Support Packages" (BSPs) and minimizes board-specific #ifdefs in drivers.h]hXband SOC based hardware, Linux often uses platform_data to point to board-specific structures describing devices and how they are wired. That can include what ports are available, chip variants, which GPIO pins act in what additional roles, and so on. This shrinks the “Board Support Packages” (BSPs) and minimizes board-specific #ifdefs in drivers.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj0ubah}(h]h ]h"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1jhj0hMhj0ubah}(h]h ]h"]h$]h&]uh1jhhhhhNhNubjG)}(h**Description**h]jv)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj1ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubjG)}(hXAt the lowest level, every device in a Linux system is represented by an instance of struct device. The device structure contains the information that the device model core needs to model the system. Most subsystems, however, track additional information about the devices they host. As a result, it is rare for devices to be represented by bare device structures; instead, that structure, like kobject structures, is usually embedded within a higher-level representation of the device.h]hXAt the lowest level, every device in a Linux system is represented by an instance of struct device. The device structure contains the information that the device model core needs to model the system. Most subsystems, however, track additional information about the devices they host. As a result, it is rare for devices to be represented by bare device structures; instead, that structure, like kobject structures, is usually embedded within a higher-level representation of the device.}(hj31hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhM>hhhhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_link (C struct) c.device_linkhNtauh1hhhhhhNhNubh)}(hhh](h)}(h device_linkh]h)}(hstruct device_linkh](h)}(hhh]hstruct}(hj[1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjW1hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMIubh)}(h h]h }(hji1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjW1hhhjh1hMIubj)}(h device_linkh]j)}(hjU1h]h device_link}(hj{1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw1ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjW1hhhjh1hMIubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjS1hhhjh1hMIubah}(h]jN1ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjh1hMIhjP1hhubjB)}(hhh]jG)}(hDevice link representation.h]hDevice link representation.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj1hhubah}(h]h ]h"]h$]h&]uh1jAhjP1hhhjh1hMIubeh}(h]h ](j`structeh"]h$]h&]jej`jfj1jgj1jhjijjuh1hhhhhhNhNubjl)}(hX<**Definition**:: struct device_link { struct device *supplier; struct list_head s_node; struct device *consumer; struct list_head c_node; struct device link_dev; enum device_link_state status; u32 flags; refcount_t rpm_active; struct kref kref; struct work_struct rm_work; bool supplier_preactivated; }; **Members** ``supplier`` The device on the supplier end of the link. ``s_node`` Hook to the supplier device's list of links to consumers. ``consumer`` The device on the consumer end of the link. ``c_node`` Hook to the consumer device's list of links to suppliers. ``link_dev`` device used to expose link details in sysfs ``status`` The state of the link (with respect to the presence of drivers). ``flags`` Link flags. ``rpm_active`` Whether or not the consumer device is runtime-PM-active. ``kref`` Count repeated addition of the same link. ``rm_work`` Work structure used for removing the link. ``supplier_preactivated`` Supplier has been made active before consumer probe.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj1ubh:}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj1ubj)}(hXJstruct device_link { struct device *supplier; struct list_head s_node; struct device *consumer; struct list_head c_node; struct device link_dev; enum device_link_state status; u32 flags; refcount_t rpm_active; struct kref kref; struct work_struct rm_work; bool supplier_preactivated; };h]hXJstruct device_link { struct device *supplier; struct list_head s_node; struct device *consumer; struct list_head c_node; struct device link_dev; enum device_link_state status; u32 flags; refcount_t rpm_active; struct kref kref; struct work_struct rm_work; bool supplier_preactivated; };}hj1sbah}(h]h ]h"]h$]h&]j+j,uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj1ubjG)}(h **Members**h]jv)}(hj1h]hMembers}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj1ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj1ubj)}(hhh](j)}(h9``supplier`` The device on the supplier end of the link. h](j)}(h ``supplier``h]j)}(hj 2h]hsupplier}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj2ubj)}(hhh]jG)}(h+The device on the supplier end of the link.h]h+The device on the supplier end of the link.}(hj#2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2hMhj 2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(hE``s_node`` Hook to the supplier device's list of links to consumers. h](j)}(h ``s_node``h]j)}(hjC2h]hs_node}(hjE2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjA2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj=2ubj)}(hhh]jG)}(h9Hook to the supplier device's list of links to consumers.h]h;Hook to the supplier device’s list of links to consumers.}(hj\2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjX2hMhjY2ubah}(h]h ]h"]h$]h&]uh1jhj=2ubeh}(h]h ]h"]h$]h&]uh1jhjX2hMhj2ubj)}(h9``consumer`` The device on the consumer end of the link. h](j)}(h ``consumer``h]j)}(hj|2h]hconsumer}(hj~2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjv2ubj)}(hhh]jG)}(h+The device on the consumer end of the link.h]h+The device on the consumer end of the link.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhjv2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(hE``c_node`` Hook to the consumer device's list of links to suppliers. h](j)}(h ``c_node``h]j)}(hj2h]hc_node}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj2ubj)}(hhh]jG)}(h9Hook to the consumer device's list of links to suppliers.h]h;Hook to the consumer device’s list of links to suppliers.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2hMhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hMhj2ubj)}(h9``link_dev`` device used to expose link details in sysfs h](j)}(h ``link_dev``h]j)}(hj2h]hlink_dev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj2ubj)}(hhh]jG)}(h+device used to expose link details in sysfsh]h+device used to expose link details in sysfs}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj2ubj)}(hL``status`` The state of the link (with respect to the presence of drivers). h](j)}(h ``status``h]j)}(hj'3h]hstatus}(hj)3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj!3ubj)}(hhh]jG)}(h@The state of the link (with respect to the presence of drivers).h]h@The state of the link (with respect to the presence of drivers).}(hj@3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj<3hMhj=3ubah}(h]h ]h"]h$]h&]uh1jhj!3ubeh}(h]h ]h"]h$]h&]uh1jhj<3hMhj2ubj)}(h``flags`` Link flags. h](j)}(h ``flags``h]j)}(hj`3h]hflags}(hjb3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjZ3ubj)}(hhh]jG)}(h Link flags.h]h Link flags.}(hjy3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhju3hMhjv3ubah}(h]h ]h"]h$]h&]uh1jhjZ3ubeh}(h]h ]h"]h$]h&]uh1jhju3hMhj2ubj)}(hH``rpm_active`` Whether or not the consumer device is runtime-PM-active. h](j)}(h``rpm_active``h]j)}(hj3h]h rpm_active}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj3ubj)}(hhh]jG)}(h8Whether or not the consumer device is runtime-PM-active.h]h8Whether or not the consumer device is runtime-PM-active.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj2ubj)}(h3``kref`` Count repeated addition of the same link. h](j)}(h``kref``h]j)}(hj3h]hkref}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj3ubj)}(hhh]jG)}(h)Count repeated addition of the same link.h]h)Count repeated addition of the same link.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj2ubj)}(h7``rm_work`` Work structure used for removing the link. h](j)}(h ``rm_work``h]j)}(hj 4h]hrm_work}(hj 4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj4ubj)}(hhh]jG)}(h*Work structure used for removing the link.h]h*Work structure used for removing the link.}(hj$4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj 4hMhj!4ubah}(h]h ]h"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]uh1jhj 4hMhj2ubj)}(hN``supplier_preactivated`` Supplier has been made active before consumer probe.h](j)}(h``supplier_preactivated``h]j)}(hjD4h]hsupplier_preactivated}(hjF4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB4ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj>4ubj)}(hhh]jG)}(h4Supplier has been made active before consumer probe.h]h4Supplier has been made active before consumer probe.}(hj]4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjZ4ubah}(h]h ]h"]h$]h&]uh1jhj>4ubeh}(h]h ]h"]h$]h&]uh1jhjY4hMhj2ubeh}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(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](hdesc_sig_keyword_type)}(hboolh]hbool}(hj4hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j4hj4hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhj4hMubj)}(hdevice_iommu_mappedh]j)}(hdevice_iommu_mappedh]hdevice_iommu_mapped}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj4hhhj4hMubhdesc_parameterlist)}(h(struct device *dev)h]hdesc_parameter)}(hstruct device *devh](h)}(hhh]hstruct}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(hdeviceh]hdevice}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&] refdomainj`reftype identifier reftargetj5modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j5 ASTIdentifier)}j5j4sbc.device_iommu_mappedasbuh1hhj4ubh)}(h h]h }(hj(5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubhdesc_sig_punctuation)}(h*h]h*}(hj85hhhNhNubah}(h]h ]pah"]h$]h&]uh1j65hj4ubj)}(hdevh]hdev}(hjG5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj4hhhj4hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj4hhhj4hMubah}(h]j4ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj4hMhj4hhubjB)}(hhh]jG)}(h:Returns true when the device DMA is translated by an IOMMUh]h:Returns true when the device DMA is translated by an IOMMU}(hjq5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjn5hhubah}(h]h ]h"]h$]h&]uh1jAhj4hhhj4hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj5jgj5jhjijjuh1hhhhhhNhNubjl)}(hG**Parameters** ``struct device *dev`` Device to perform the check onh](jG)}(h**Parameters**h]jv)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj5ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5ubj)}(hhh]j)}(h5``struct device *dev`` Device to perform the check onh](j)}(h``struct device *dev``h]j)}(hj5h]hstruct device *dev}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5ubj)}(hhh]jG)}(hDevice to perform the check onh]hDevice to perform the check on}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]uh1jhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_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)}(hconsth]hconst}(hj 6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj6hMubj4)}(hcharh]hchar}(hj)6hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj6hhhj6hMubh)}(h h]h }(hj76hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6hhhj6hMubj75)}(hj:5h]h*}(hjE6hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj6hhhj6hMubj)}(hdev_nameh]j)}(hdev_nameh]hdev_name}(hjV6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR6ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj6hhhj6hMubj4)}(h(const struct device *dev)h]j4)}(hconst struct device *devh](h)}(hj6h]hconst}(hjr6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn6ubh)}(hhh]hstruct}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn6ubh)}(hhh]j)}(hdeviceh]hdevice}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj6modnameN classnameNj5j5)}j 5]j#5)}j5jX6sb c.dev_nameasbuh1hh jn6ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn6ubj75)}(hj:5h]h*}(hj6hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjn6ubj)}(hdevh]hdev}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn6ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjj6ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj6hhhj6hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj6hhhj6hMubah}(h]j5ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj6hMhj6hhubjB)}(hhh]jG)}(hReturn a device's name.h]hReturn a device’s name.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj 7hhubah}(h]h ]h"]h$]h&]uh1jAhj6hhhj6hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj(7jgj(7jhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj27h]h Parameters}(hj47hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj07ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj,7ubj)}(hhh]j)}(h6``const struct device *dev`` Device with name to get. h](j)}(h``const struct device *dev``h]j)}(hjQ7h]hconst struct device *dev}(hjS7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO7ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjK7ubj)}(hhh]jG)}(hDevice with name to get.h]hDevice with name to get.}(hjj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjf7hMhjg7ubah}(h]h ]h"]h$]h&]uh1jhjK7ubeh}(h]h ]h"]h$]h&]uh1jhjf7hMhjH7ubah}(h]h ]h"]h$]h&]uh1jhj,7ubjG)}(h **Return**h]jv)}(hj7h]hReturn}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj7ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj,7ubjG)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj,7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_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)}(hj6h]hconst}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhj7hMubj4)}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj7hhhj7hMubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhj7hMubj75)}(hj:5h]h*}(hj 8hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj7hhhj7hMubj)}(h dev_bus_nameh]j)}(h dev_bus_nameh]h dev_bus_name}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj7hhhj7hMubj4)}(h(const struct device *dev)h]j4)}(hconst struct device *devh](h)}(hj6h]hconst}(hj68hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj28ubh)}(h h]h }(hjC8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj28ubh)}(hhh]hstruct}(hjQ8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj28ubh)}(h h]h }(hj^8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj28ubh)}(hhh]j)}(hdeviceh]hdevice}(hjo8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl8ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjq8modnameN classnameNj5j5)}j 5]j#5)}j5j8sbc.dev_bus_nameasbuh1hhj28ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj28ubj75)}(hj:5h]h*}(hj8hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj28ubj)}(hdevh]hdev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj28ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj.8ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj7hhhj7hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj7hhhj7hMubah}(h]j7ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj7hMhj7hhubjB)}(hhh]jG)}(h4Return a device's bus/class name, if at all possibleh]h6Return a device’s bus/class name, if at all possible}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8hhubah}(h]h ]h"]h$]h&]uh1jAhj7hhhj7hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj8jgj8jhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj8h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj8ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8ubj)}(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)}(hj9h]hconst struct device *dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj9ubj)}(hhh]jG)}(h*struct device to get the bus/class name ofh]h*struct device to get the bus/class name of}(hj.9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*9hMhj+9ubah}(h]h ]h"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]uh1jhj*9hMhj 9ubah}(h]h ]h"]h$]h&]uh1jhj8ubjG)}(h**Description**h]jv)}(hjP9h]h Description}(hjR9hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjN9ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8ubjG)}(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.}(hjf9hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(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)}(hhh]hstruct}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhj9hMubh)}(hhh]j)}(hdeviceh]hdevice}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj9modnameN classnameNj5j5)}j 5]j#5)}j5device_find_child_by_namesbc.device_find_child_by_nameasbuh1hhj9hhhj9hMubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhj9hMubj75)}(hj:5h]h*}(hj9hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj9hhhj9hMubj)}(hdevice_find_child_by_nameh]j)}(hj9h]hdevice_find_child_by_name}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj9hhhj9hMubj4)}(h)(struct device *parent, const char *name)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj :ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj :ubh)}(hhh]j)}(hdeviceh]hdevice}(hj-:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*:ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj/:modnameN classnameNj5j5)}j 5]j9c.device_find_child_by_nameasbuh1hhj :ubh)}(h h]h }(hjK:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj :ubj75)}(hj:5h]h*}(hjY:hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj :ubj)}(hparenth]hparent}(hjf:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj :ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj:ubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{:ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{:ubj4)}(hcharh]hchar}(hj:hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj{:ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{:ubj75)}(hj:5h]h*}(hj:hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj{:ubj)}(hnameh]hname}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{:ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj:ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj9hhhj9hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj9hhhj9hMubah}(h]j9ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj9hMhj9hhubjB)}(hhh]jG)}(h,device iterator for locating a child device.h]h,device iterator for locating a child device.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj:hhubah}(h]h ]h"]h$]h&]uh1jAhj9hhhj9hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj;jgj;jhjijjuh1hhhhhhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ;ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ;ubj)}(hhh](j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hj.;h]hstruct device *parent}(hj0;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj(;ubj)}(hhh]jG)}(hparent struct deviceh]hparent struct device}(hjG;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjC;hMhjD;ubah}(h]h ]h"]h$]h&]uh1jhj(;ubeh}(h]h ]h"]h$]h&]uh1jhjC;hMhj%;ubj)}(h.``const char *name`` name of the child device h](j)}(h``const char *name``h]j)}(hjg;h]hconst char *name}(hji;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje;ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhja;ubj)}(hhh]jG)}(hname of the child deviceh]hname of the child device}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj|;hMhj};ubah}(h]h ]h"]h$]h&]uh1jhja;ubeh}(h]h ]h"]h$]h&]uh1jhj|;hMhj%;ubeh}(h]h ]h"]h$]h&]uh1jhj ;ubjG)}(h**Description**h]jv)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj;ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ;ubjG)}(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 }(hj;hhhNhNubjv)}(h**name**h]hname}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj;ubh.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ;ubjG)}(h**NOTE**h]jv)}(hj;h]hNOTE}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj;ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ;ubjG)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj ;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(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)}(hhh]hstruct}(hj <hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubh)}(h h]h }(hj.<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<hhhj-<hMubh)}(hhh]j)}(hdeviceh]hdevice}(hj?<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<<ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjA<modnameN classnameNj5j5)}j 5]j#5)}j5device_find_any_childsbc.device_find_any_childasbuh1hhj<hhhj-<hMubh)}(h h]h }(hj`<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<hhhj-<hMubj75)}(hj:5h]h*}(hjn<hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj<hhhj-<hMubj)}(hdevice_find_any_childh]j)}(hj]<h]hdevice_find_any_child}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{<ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj<hhhj-<hMubj4)}(h(struct device *parent)h]j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j)}(hdeviceh]hdevice}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj<modnameN classnameNj5j5)}j 5]j[<c.device_find_any_childasbuh1hhj<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj75)}(hj:5h]h*}(hj<hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj<ubj)}(hparenth]hparent}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj<ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj<hhhj-<hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj<hhhj-<hMubah}(h]j<ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj-<hMhj<hhubjB)}(hhh]jG)}(h4device iterator for locating a child device, if any.h]h4device iterator for locating a child device, if any.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj=hhubah}(h]h ]h"]h$]h&]uh1jAhj<hhhj-<hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj3=jgj3=jhjijjuh1hhhhhhNhNubjl)}(hX**Parameters** ``struct device *parent`` parent struct device **Description** This is similar to the device_find_child() function above, but it returns a reference to a child device, if any. **NOTE** you will need to drop the reference with put_device() after use.h](jG)}(h**Parameters**h]jv)}(hj==h]h Parameters}(hj?=hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj;=ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj7=ubj)}(hhh]j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hj\=h]hstruct device *parent}(hj^=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ=ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjV=ubj)}(hhh]jG)}(hparent struct deviceh]hparent struct device}(hju=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjq=hMhjr=ubah}(h]h ]h"]h$]h&]uh1jhjV=ubeh}(h]h ]h"]h$]h&]uh1jhjq=hMhjS=ubah}(h]h ]h"]h$]h&]uh1jhj7=ubjG)}(h**Description**h]jv)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj=ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj7=ubjG)}(hpThis is similar to the device_find_child() function above, but it returns a reference to a child device, if any.h]hpThis is similar to the device_find_child() function above, but it returns a reference to a child device, if any.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj7=ubjG)}(h**NOTE**h]jv)}(hj=h]hNOTE}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj=ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj7=ubjG)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj7=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_lock_set_class (C macro)c.device_lock_set_classhNtauh1hhhhhhNhNubh)}(hhh](h)}(hdevice_lock_set_classh]h)}(hdevice_lock_set_classh]j)}(hdevice_lock_set_classh]j)}(hj=h]hdevice_lock_set_class}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>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,j3uh1hj4j5hj=hhhj>hMubah}(h]j=ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj>hMhj=hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj=hhhj>hMubeh}(h]h ](j`macroeh"]h$]h&]jej`jfj3>jgj3>jhjijjuh1hhhhhhNhNubjG)}(h$``device_lock_set_class (dev, key)``h]j)}(hj9>h]h device_lock_set_class (dev, key)}(hj;>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7>ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj;)}(hFSpecify a temporary lock class while a device is attached to a driver h]jG)}(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}(hjS>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjO>ubah}(h]h ]h"]h$]h&]uh1j:hja>hMhhhhubjl)}(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](jG)}(h**Parameters**h]jv)}(hjn>h]h Parameters}(hjp>hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjl>ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjh>ubj)}(hhh](j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hj>h]hdev}(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]jG)}(hdevice to modifyh]hdevice to modify}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubj)}(h``key`` lock class key data h](j)}(h``key``h]j)}(hj>h]hkey}(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]jG)}(hlock class key datah]hlock class key data}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>hMhj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj>ubeh}(h]h ]h"]h$]h&]uh1jhjh>ubjG)}(h**Description**h]jv)}(hj?h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj>ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjh>ubjG)}(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?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhjh>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(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)}(hj@?h]hdevice_lock_reset_class}(hjJ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF?ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjB?hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj>?hhhj]?hMubah}(h]j9?ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj]?hMhj;?hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj;?hhhj]?hMubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjv?jgjv?jhjijjuh1hhhhhhNhNubjG)}(h!``device_lock_reset_class (dev)``h]j)}(hj|?h]hdevice_lock_reset_class (dev)}(hj~?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz?ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhhhhubj;)}(h8Return a device to the default lockdep novalidate state h]jG)}(h7Return a device to the default lockdep novalidate stateh]h7Return a device to the default lockdep novalidate state}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj?ubah}(h]h ]h"]h$]h&]uh1j:hj?hMhhhhubjl)}(h**Parameters** ``dev`` device to modify **Description** This must be called with the device_lock() already held, for example from driver ->remove().h](jG)}(h**Parameters**h]jv)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj?ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj?ubj)}(hhh]j)}(h``dev`` device to modify h](j)}(h``dev``h]j)}(hj?h]hdev}(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]jG)}(hdevice to modifyh]hdevice to modify}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhj?hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj?ubjG)}(h**Description**h]jv)}(hj @h]h Description}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj @ubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj?ubjG)}(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().}(hj!@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:7: ./include/linux/device.hhMhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_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)}(hhh]hstruct}(hjQ@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjM@hhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKubh)}(h h]h }(hj_@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjM@hhhj^@hKubj)}(hbus_typeh]j)}(hjK@h]hbus_type}(hjq@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjm@ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjM@hhhj^@hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjI@hhhj^@hKubah}(h]jC@ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj^@hKhjF@hhubjB)}(hhh]jG)}(hThe bus type of the deviceh]hThe bus type of the device}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj@hhubah}(h]h ]h"]h$]h&]uh1jAhjF@hhhj^@hKubeh}(h]h ](j`structeh"]h$]h&]jej`jfj@jgj@jhjijjuh1hhhhhhjE@hNubjl)}(hXa **Definition**:: struct bus_type { const char *name; const char *dev_name; const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); void (*sync_state)(struct device *dev); void (*remove)(struct device *dev); void (*shutdown)(struct device *dev); const struct cpumask *(*irq_get_affinity)(struct device *dev, unsigned int irq_vec); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); int (*num_vf)(struct device *dev); int (*dma_configure)(struct device *dev); void (*dma_cleanup)(struct device *dev); const struct dev_pm_ops *pm; bool 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. ``need_parent_lock`` When probing or removing a device on this bus, the device core should lock the device's parent.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj@ubh:}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj@ubj)}(hXstruct bus_type { const char *name; const char *dev_name; const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); void (*sync_state)(struct device *dev); void (*remove)(struct device *dev); void (*shutdown)(struct device *dev); const struct cpumask *(*irq_get_affinity)(struct device *dev, unsigned int irq_vec); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); int (*num_vf)(struct device *dev); int (*dma_configure)(struct device *dev); void (*dma_cleanup)(struct device *dev); const struct dev_pm_ops *pm; bool need_parent_lock; };h]hXstruct bus_type { const char *name; const char *dev_name; const struct attribute_group **bus_groups; const struct attribute_group **dev_groups; const struct attribute_group **drv_groups; int (*match)(struct device *dev, const struct device_driver *drv); int (*uevent)(const struct device *dev, struct kobj_uevent_env *env); int (*probe)(struct device *dev); void (*sync_state)(struct device *dev); void (*remove)(struct device *dev); void (*shutdown)(struct device *dev); const struct cpumask *(*irq_get_affinity)(struct device *dev, unsigned int irq_vec); int (*online)(struct device *dev); int (*offline)(struct device *dev); int (*suspend)(struct device *dev, pm_message_t state); int (*resume)(struct device *dev); int (*num_vf)(struct device *dev); int (*dma_configure)(struct device *dev); void (*dma_cleanup)(struct device *dev); const struct dev_pm_ops *pm; bool need_parent_lock; };}hj@sbah}(h]h ]h"]h$]h&]j+j,uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj@ubjG)}(h **Members**h]jv)}(hj@h]hMembers}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj@ubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK7hj@ubj)}(hhh](j)}(h``name`` The name of the bus. h](j)}(h``name``h]j)}(hjAh]hname}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj@ubj)}(hhh]jG)}(hThe name of the bus.h]hThe name of the bus.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubj)}(hR``dev_name`` Used for subsystems to enumerate devices like ("foo``u``", dev->id). h](j)}(h ``dev_name``h]j)}(hj9Ah]hdev_name}(hj;AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Aubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj3Aubj)}(hhh]jG)}(hDUsed for subsystems to enumerate devices like ("foo``u``", dev->id).h]hHUsed for subsystems to enumerate devices like (“foo``u``”, dev->id).}(hjRAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNAhKhjOAubah}(h]h ]h"]h$]h&]uh1jhj3Aubeh}(h]h ]h"]h$]h&]uh1jhjNAhKhj@ubj)}(h.``bus_groups`` Default attributes of the bus. h](j)}(h``bus_groups``h]j)}(hjrAh]h bus_groups}(hjtAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpAubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjlAubj)}(hhh]jG)}(hDefault attributes of the bus.h]hDefault attributes of the bus.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjlAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubj)}(h=``dev_groups`` Default attributes of the devices on the bus. h](j)}(h``dev_groups``h]j)}(hjAh]h dev_groups}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhjAubj)}(hhh]jG)}(h-Default attributes of the devices on the bus.h]h-Default attributes of the devices on the bus.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAhKhjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhKhj@ubj)}(hD``drv_groups`` Default attributes of the device drivers on the bus. h](j)}(h``drv_groups``h]j)}(hjAh]h drv_groups}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK hjAubj)}(hhh]jG)}(h4Default attributes of the device drivers on the bus.h]h4Default attributes of the device drivers on the bus.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAhK hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhK hj@ubj)}(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)}(hjBh]hmatch}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK&hjBubj)}(hhh]jG)}(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.}(hj6BhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK!hj3Bubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj2BhK&hj@ubj)}(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)}(hjWBh]huevent}(hjYBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUBubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK(hjQBubj)}(hhh]jG)}(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.}(hjpBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK'hjmBubah}(h]h ]h"]h$]h&]uh1jhjQBubeh}(h]h ]h"]h$]h&]uh1jhjlBhK(hj@ubj)}(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)}(hjBh]hprobe}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK*hjBubj)}(hhh]jG)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK)hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhK*hj@ubj)}(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)}(hjBh]h sync_state}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK1hjBubj)}(hhh]jG)}(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.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK+hjBubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjBhK1hj@ubj)}(h7``remove`` Called when a device removed from this bus. h](j)}(h ``remove``h]j)}(hjCh]hremove}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK2hjBubj)}(hhh]jG)}(h+Called when a device removed from this bus.h]h+Called when a device removed from this bus.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjChK2hjCubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhjChK2hj@ubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hj>Ch]hshutdown}(hj@ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhjDubj)}(hhh]jG)}(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.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK=hjDubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhjDhK>hj@ubj)}(hM``dma_cleanup`` Called to cleanup DMA configuration on a device on this bus. h](j)}(h``dma_cleanup``h]j)}(hjEh]h dma_cleanup}(hj EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhK@hjEubj)}(hhh]jG)}(hj?)j@huh1hhj FhKQhjEhhubjB)}(hhh]jG)}(h&Bus Notifier events that have happenedh]h&Bus Notifier events that have happened}(hj>FhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhKhj;Fhhubah}(h]h ]h"]h$]h&]uh1jAhjEhhhj FhKQubeh}(h]h ](j`enumeh"]h$]h&]jej`jfjVFjgjVFjhjijjuh1hhhhhhjE@hNubjl)}(hX**Constants** ``BUS_NOTIFY_ADD_DEVICE`` device is added to this bus ``BUS_NOTIFY_DEL_DEVICE`` device is about to be removed from this bus ``BUS_NOTIFY_REMOVED_DEVICE`` device is successfully removed from this bus ``BUS_NOTIFY_BIND_DRIVER`` a driver is about to be bound to this device on this bus ``BUS_NOTIFY_BOUND_DRIVER`` a driver is successfully bound to this device on this bus ``BUS_NOTIFY_UNBIND_DRIVER`` a driver is about to be unbound from this device on this bus ``BUS_NOTIFY_UNBOUND_DRIVER`` a driver is successfully unbound from this device on this bus ``BUS_NOTIFY_DRIVER_NOT_BOUND`` a driver failed to be bound to this device on this bush](jG)}(h **Constants**h]jv)}(hj`Fh]h Constants}(hjbFhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj^Fubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhMhjZFubj)}(hhh](j)}(h6``BUS_NOTIFY_ADD_DEVICE`` device is added to this bus h](j)}(h``BUS_NOTIFY_ADD_DEVICE``h]j)}(hjFh]hBUS_NOTIFY_ADD_DEVICE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Fubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhMhjyFubj)}(hhh]jG)}(hdevice is added to this bush]hdevice is added to this bus}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjyFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjvFubj)}(hF``BUS_NOTIFY_DEL_DEVICE`` device is about to be removed from this bus h](j)}(h``BUS_NOTIFY_DEL_DEVICE``h]j)}(hjFh]hBUS_NOTIFY_DEL_DEVICE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhMhjFubj)}(hhh]jG)}(h+device is about to be removed from this bush]h+device is about to be removed from this bus}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjvFubj)}(hK``BUS_NOTIFY_REMOVED_DEVICE`` device is successfully removed from this bus h](j)}(h``BUS_NOTIFY_REMOVED_DEVICE``h]j)}(hjFh]hBUS_NOTIFY_REMOVED_DEVICE}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhM hjFubj)}(hhh]jG)}(h,device is successfully removed from this bush]h,device is successfully removed from this bus}(hj GhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGhM hjGubah}(h]h ]h"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]uh1jhjGhM hjvFubj)}(hT``BUS_NOTIFY_BIND_DRIVER`` a driver is about to be bound to this device on this bus h](j)}(h``BUS_NOTIFY_BIND_DRIVER``h]j)}(hj*Gh]hBUS_NOTIFY_BIND_DRIVER}(hj,GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(Gubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhMhj$Gubj)}(hhh]jG)}(h8a driver is about to be bound to this device on this bush]h8a driver is about to be bound to this device on this bus}(hjCGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?GhMhj@Gubah}(h]h ]h"]h$]h&]uh1jhj$Gubeh}(h]h ]h"]h$]h&]uh1jhj?GhMhjvFubj)}(hV``BUS_NOTIFY_BOUND_DRIVER`` a driver is successfully bound to this device on this bus h](j)}(h``BUS_NOTIFY_BOUND_DRIVER``h]j)}(hjcGh]hBUS_NOTIFY_BOUND_DRIVER}(hjeGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaGubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhMhj]Gubj)}(hhh]jG)}(h9a driver is successfully bound to this device on this bush]h9a driver is successfully bound to this device on this bus}(hj|GhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxGhMhjyGubah}(h]h ]h"]h$]h&]uh1jhj]Gubeh}(h]h ]h"]h$]h&]uh1jhjxGhMhjvFubj)}(hZ``BUS_NOTIFY_UNBIND_DRIVER`` a driver is about to be unbound from this device on this bus h](j)}(h``BUS_NOTIFY_UNBIND_DRIVER``h]j)}(hjGh]hBUS_NOTIFY_UNBIND_DRIVER}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:11: ./include/linux/device/bus.hhMhjGubj)}(hhh]jG)}(hj?)j@huh1hhjHhKhjHhhubjB)}(hhh]jG)}(hdevice classesh]hdevice classes}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:14: ./include/linux/device/class.hhKhjHhhubah}(h]h ]h"]h$]h&]uh1jAhjHhhhjHhKubeh}(h]h ](j`structeh"]h$]h&]jej`jfjIjgjIjhjijjuh1hhhhhhjHhNubjl)}(hXG**Definition**:: struct class { const char *name; const struct attribute_group **class_groups; const struct attribute_group **dev_groups; int (*dev_uevent)(const struct device *dev, struct kobj_uevent_env *env); char *(*devnode)(const struct device *dev, umode_t *mode); void (*class_release)(const struct class *class); void (*dev_release)(struct device *dev); int (*shutdown_pre)(struct device *dev); const struct kobj_ns_type_operations *ns_type; const void *(*namespace)(const struct device *dev); void (*get_ownership)(const struct device *dev, kuid_t *uid, kgid_t *gid); const struct dev_pm_ops *pm; }; **Members** ``name`` Name of the class. ``class_groups`` Default attributes of this class. ``dev_groups`` Default attributes of the devices that belong to the class. ``dev_uevent`` Called when a device is added, removed from this class, or a few other things that generate uevents to add the environment variables. ``devnode`` Callback to provide the devtmpfs. ``class_release`` Called to release this class. ``dev_release`` Called to release the device. ``shutdown_pre`` Called at shut-down time before driver shutdown. ``ns_type`` Callbacks so sysfs can detemine namespaces. ``namespace`` Namespace of the device belongs to this class. ``get_ownership`` Allows class to specify uid/gid of the sysfs directories for the devices belonging to the class. Usually tied to device's namespace. ``pm`` The default device power management operations of this class.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjIubh:}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:14: ./include/linux/device/class.hhKhj Iubj)}(hXstruct class { const char *name; const struct attribute_group **class_groups; const struct attribute_group **dev_groups; int (*dev_uevent)(const struct device *dev, struct kobj_uevent_env *env); char *(*devnode)(const struct device *dev, umode_t *mode); void (*class_release)(const struct class *class); void (*dev_release)(struct device *dev); int (*shutdown_pre)(struct device *dev); const struct kobj_ns_type_operations *ns_type; const void *(*namespace)(const struct device *dev); void (*get_ownership)(const struct device *dev, kuid_t *uid, kgid_t *gid); const struct dev_pm_ops *pm; };h]hXstruct class { const char *name; const struct attribute_group **class_groups; const struct attribute_group **dev_groups; int (*dev_uevent)(const struct device *dev, struct kobj_uevent_env *env); char *(*devnode)(const struct device *dev, umode_t *mode); void (*class_release)(const struct class *class); void (*dev_release)(struct device *dev); int (*shutdown_pre)(struct device *dev); const struct kobj_ns_type_operations *ns_type; const void *(*namespace)(const struct device *dev); void (*get_ownership)(const struct device *dev, kuid_t *uid, kgid_t *gid); const struct dev_pm_ops *pm; };}hj-Isbah}(h]h ]h"]h$]h&]j+j,uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:14: ./include/linux/device/class.hhK hj IubjG)}(h **Members**h]jv)}(hj>Ih]hMembers}(hj@IhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjj?)j@huh1hhjaLhKhjILhhubjB)}(hhh]jG)}(hdevice driver probe type to try Device drivers may opt in for special handling of their respective probe routines. This tells the core what to expect and prefer.h]hdevice driver probe type to try Device drivers may opt in for special handling of their respective probe routines. This tells the core what to expect and prefer.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKhjLhhubah}(h]h ]h"]h$]h&]uh1jAhjILhhhjaLhKubeh}(h]h ](j`enumeh"]h$]h&]jej`jfjLjgjLjhjijjuh1hhhhhhjHLhNubjl)}(hX4**Constants** ``PROBE_DEFAULT_STRATEGY`` Used by drivers that work equally well whether probed synchronously or asynchronously. ``PROBE_PREFER_ASYNCHRONOUS`` Drivers for "slow" devices which probing order is not essential for booting the system may opt into executing their probes asynchronously. ``PROBE_FORCE_SYNCHRONOUS`` Use this to annotate drivers that need their probe routines to run synchronously with driver and device registration (with the exception of -EPROBE_DEFER handling - re-probing always ends up being done asynchronously).h](jG)}(h **Constants**h]jv)}(hjLh]h Constants}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjLubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKhjLubj)}(hhh](j)}(hr``PROBE_DEFAULT_STRATEGY`` Used by drivers that work equally well whether probed synchronously or asynchronously. h](j)}(h``PROBE_DEFAULT_STRATEGY``h]j)}(hjLh]hPROBE_DEFAULT_STRATEGY}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK hjLubj)}(hhh]jG)}(hVUsed by drivers that work equally well whether probed synchronously or asynchronously.h]hVUsed by drivers that work equally well whether probed synchronously or asynchronously.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKhjLubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjLhK hjLubj)}(h``PROBE_PREFER_ASYNCHRONOUS`` Drivers for "slow" devices which probing order is not essential for booting the system may opt into executing their probes asynchronously. h](j)}(h``PROBE_PREFER_ASYNCHRONOUS``h]j)}(hjMh]hPROBE_PREFER_ASYNCHRONOUS}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK%hj Mubj)}(hhh]jG)}(hDrivers for "slow" devices which probing order is not essential for booting the system may opt into executing their probes asynchronously.h]hDrivers for “slow” devices which probing order is not essential for booting the system may opt into executing their probes asynchronously.}(hj*MhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK#hj'Mubah}(h]h ]h"]h$]h&]uh1jhj Mubeh}(h]h ]h"]h$]h&]uh1jhj&MhK%hjLubj)}(h``PROBE_FORCE_SYNCHRONOUS`` Use this to annotate drivers that need their probe routines to run synchronously with driver and device registration (with the exception of -EPROBE_DEFER handling - re-probing always ends up being done asynchronously).h](j)}(h``PROBE_FORCE_SYNCHRONOUS``h]j)}(hjKMh]hPROBE_FORCE_SYNCHRONOUS}(hjMMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIMubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK*hjEMubj)}(hhh]jG)}(hUse this to annotate drivers that need their probe routines to run synchronously with driver and device registration (with the exception of -EPROBE_DEFER handling - re-probing always ends up being done asynchronously).h]hUse this to annotate drivers that need their probe routines to run synchronously with driver and device registration (with the exception of -EPROBE_DEFER handling - re-probing always ends up being done asynchronously).}(hjdMhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK(hjaMubah}(h]h ]h"]h$]h&]uh1jhjEMubeh}(h]h ]h"]h$]h&]uh1jhj`MhK*hjLubeh}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhhhhhjHLhNubjG)}(h**Description**h]jv)}(hjMh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjMubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK-hhhhubjG)}(hNote that the end goal is to switch the kernel to use asynchronous probing by default, so annotating drivers with ``PROBE_PREFER_ASYNCHRONOUS`` is a temporary measure that allows us to speed up boot process while we are validating the rest of the drivers.h](hrNote that the end goal is to switch the kernel to use asynchronous probing by default, so annotating drivers with }(hjMhhhNhNubj)}(h``PROBE_PREFER_ASYNCHRONOUS``h]hPROBE_PREFER_ASYNCHRONOUS}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubhp is a temporary measure that allows us to speed up boot process while we are validating the rest of the drivers.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhg/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_driver (C struct)c.device_driverhNtauh1hhhhhhjHLhNubh)}(hhh](h)}(h device_driverh]h)}(hstruct device_driverh](h)}(hhh]hstruct}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK0ubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhjMhK0ubj)}(h device_driverh]j)}(hjMh]h device_driver}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjMhhhjMhK0ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjMhhhjMhK0ubah}(h]jMah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjMhK0hjMhhubjB)}(hhh]jG)}(h!The basic device driver structureh]h!The basic device driver structure}(hj NhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK4hjNhhubah}(h]h ]h"]h$]h&]uh1jAhjMhhhjMhK0ubeh}(h]h ](j`structeh"]h$]h&]jej`jfj8Njgj8Njhjijjuh1hhhhhhjHLhNubjl)}(hX[ **Definition**:: struct device_driver { const char *name; const struct bus_type *bus; struct module *owner; const char *mod_name; bool suppress_bind_attrs; enum probe_type probe_type; const struct of_device_id *of_match_table; const struct acpi_device_id *acpi_match_table; int (*probe) (struct device *dev); void (*sync_state)(struct device *dev); int (*remove) (struct device *dev); void (*shutdown) (struct device *dev); int (*suspend) (struct device *dev, pm_message_t state); int (*resume) (struct device *dev); const struct attribute_group **groups; const struct attribute_group **dev_groups; const struct dev_pm_ops *pm; void (*coredump) (struct device *dev); struct driver_private *p; }; **Members** ``name`` Name of the device driver. ``bus`` The bus which the device of this driver belongs to. ``owner`` The module owner. ``mod_name`` Used for built-in modules. ``suppress_bind_attrs`` Disables bind/unbind via sysfs. ``probe_type`` Type of the probe (synchronous or asynchronous) to use. ``of_match_table`` The open firmware table. ``acpi_match_table`` The ACPI match table. ``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. ``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 the device is removed from the system to unbind a device from this driver. ``shutdown`` Called at shut-down time to quiesce the device. ``suspend`` Called to put the device to sleep mode. Usually to a low power state. ``resume`` Called to bring a device from sleep mode. ``groups`` Default attributes that get created by the driver core automatically. ``dev_groups`` Additional attributes attached to device instance once it is bound to the driver. ``pm`` Power management operations of the device which matched this driver. ``coredump`` Called when sysfs entry is written to. The device driver is expected to call the dev_coredump API resulting in a uevent. ``p`` Driver core's private data, no one other than the driver core can touch this.h](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjDNhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj@Nubh:}(hj@NhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhK8hjhjkPubah}(h]h ]h"]h$]h&]uh1jhjOPubeh}(h]h ]h"]h$]h&]uh1jhjjPhK@hjNubj)}(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)}(hjPh]h sync_state}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKGhjPubj)}(hhh]jG)}(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.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKAhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhKGhjNubj)}(hb``remove`` Called when the device is removed from the system to unbind a device from this driver. h](j)}(h ``remove``h]j)}(hjPh]hremove}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKIhjPubj)}(hhh]jG)}(hVCalled when the device is removed from the system to unbind a device from this driver.h]hVCalled when the device is removed from the system to unbind a device from this driver.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKHhjPubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjPhKIhjNubj)}(h=``shutdown`` Called at shut-down time to quiesce the device. h](j)}(h ``shutdown``h]j)}(hjQh]hshutdown}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKJhjPubj)}(hhh]jG)}(h/Called at shut-down time to quiesce the device.h]h/Called at shut-down time to quiesce the device.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQhKJhjQubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjQhKJhjNubj)}(hR``suspend`` Called to put the device to sleep mode. Usually to a low power state. h](j)}(h ``suspend``h]j)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Qubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKLhj6Qubj)}(hhh]jG)}(hECalled to put the device to sleep mode. Usually to a low power state.h]hECalled to put the device to sleep mode. Usually to a low power state.}(hjUQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKKhjRQubah}(h]h ]h"]h$]h&]uh1jhj6Qubeh}(h]h ]h"]h$]h&]uh1jhjQQhKLhjNubj)}(h5``resume`` Called to bring a device from sleep mode. h](j)}(h ``resume``h]j)}(hjvQh]hresume}(hjxQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtQubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKMhjpQubj)}(hhh]jG)}(h)Called to bring a device from sleep mode.h]h)Called to bring a device from sleep mode.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQhKMhjQubah}(h]h ]h"]h$]h&]uh1jhjpQubeh}(h]h ]h"]h$]h&]uh1jhjQhKMhjNubj)}(hQ``groups`` Default attributes that get created by the driver core automatically. h](j)}(h ``groups``h]j)}(hjQh]hgroups}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKOhjQubj)}(hhh]jG)}(hEDefault attributes that get created by the driver core automatically.h]hEDefault attributes that get created by the driver core automatically.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKNhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhKOhjNubj)}(ha``dev_groups`` Additional attributes attached to device instance once it is bound to the driver. h](j)}(h``dev_groups``h]j)}(hjQh]h dev_groups}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKQhjQubj)}(hhh]jG)}(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.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKPhjQubah}(h]h ]h"]h$]h&]uh1jhjQubeh}(h]h ]h"]h$]h&]uh1jhjQhKQhjNubj)}(hL``pm`` Power management operations of the device which matched this driver. h](j)}(h``pm``h]j)}(hj#Rh]hpm}(hj%RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!Rubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:17: ./include/linux/device/driver.hhKShjRubj)}(hhh]jG)}(hDPower management operations of the device which matched this driver.h]hDPower management operations of the device which matched this driver.}(hjShKubj)}(h driver_inith]j)}(h driver_inith]h driver_init}(hjQShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMSubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj,Shhhj>ShKubj4)}(h(void)h]j4)}(hvoidh]j4)}(hvoidh]hvoid}(hjmShhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjiSubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjeSubah}(h]h ]h"]h$]h&]j+j,uh1j4hj,Shhhj>ShKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj(Shhhj>ShKubah}(h]j#Sah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj>ShKhj%ShhubjB)}(hhh]jG)}(hinitialize driver model.h]hinitialize driver model.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhjShhubah}(h]h ]h"]h$]h&]uh1jAhj%Shhhj>ShKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjSjgjSjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``void`` no arguments **Description** Call the driver model init functions to initialize their subsystems. Called early from init/main.c.h](jG)}(h**Parameters**h]jv)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1juhjSubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhjSubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjSh]hvoid}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhjSubj)}(hhh]jG)}(h no argumentsh]h no arguments}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjShKhjSubah}(h]h ]h"]h$]h&]uh1jhjSubjG)}(h**Description**h]jv)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1juhjTubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhjSubjG)}(hcCall the driver model init functions to initialize their subsystems. Called early from init/main.c.h]hcCall the driver model init functions to initialize their subsystems. Called early from init/main.c.}(hj)ThhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:23: ./drivers/base/init.chKhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'driver_find_device_by_name (C function)c.driver_find_device_by_namehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjXThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTThhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubh)}(h h]h }(hjfThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTThhhjeThKubh)}(hhh]j)}(hdeviceh]hdevice}(hjwThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtTubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjyTmodnameN classnameNj5j5)}j 5]j#5)}j5driver_find_device_by_namesbc.driver_find_device_by_nameasbuh1hhjTThhhjeThKubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTThhhjeThKubj75)}(hj:5h]h*}(hjThhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjTThhhjeThKubj)}(hdriver_find_device_by_nameh]j)}(hjTh]hdriver_find_device_by_name}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjTThhhjeThKubj4)}(h3(const struct device_driver *drv, const char *name)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]hstruct}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjTubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j)}(h device_driverh]h device_driver}(hj UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj UmodnameN classnameNj5j5)}j 5]jTc.driver_find_device_by_nameasbuh1hhjTubh)}(h h]h }(hj)UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj75)}(hj:5h]h*}(hj7UhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjTubj)}(hdrvh]hdrv}(hjDUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjTubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hj]UhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYUubh)}(h h]h }(hjjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYUubj4)}(hcharh]hchar}(hjxUhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjYUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYUubj75)}(hj:5h]h*}(hjUhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjYUubj)}(hnameh]hname}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYUubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjTubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjTThhhjeThKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjPThhhjeThKubah}(h]jKTah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjeThKhjMThhubjB)}(hhh]jG)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjUhhubah}(h]h ]h"]h$]h&]uh1jAhjMThhhjeThKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjUjgjUjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const char *name`` name of the device to matchh](jG)}(h**Parameters**h]jv)}(hjUh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjUubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjUubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hj Vh]hconst struct device_driver *drv}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Vubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjVubj)}(hhh]jG)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hj%VhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj!VhKhj"Vubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhj!VhKhjVubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjEVh]hconst char *name}(hjGVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCVubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj?Vubj)}(hhh]jG)}(hname of the device to matchh]hname of the device to match}(hj^VhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj[Vubah}(h]h ]h"]h$]h&]uh1jhj?Vubeh}(h]h ]h"]h$]h&]uh1jhjZVhKhjVubeh}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*driver_find_device_by_of_node (C function)c.driver_find_device_by_of_nodehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjVhKubh)}(hhh]j)}(hdeviceh]hdevice}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjVmodnameN classnameNj5j5)}j 5]j#5)}j5driver_find_device_by_of_nodesbc.driver_find_device_by_of_nodeasbuh1hhjVhhhjVhKubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVhhhjVhKubj75)}(hj:5h]h*}(hjVhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjVhhhjVhKubj)}(hdriver_find_device_by_of_nodeh]j)}(hjVh]hdriver_find_device_by_of_node}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjVhhhjVhKubj4)}(h?(const struct device_driver *drv, const struct device_node *np)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hj&WhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]hstruct}(hj4WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjAWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(h device_driverh]h device_driver}(hjRWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOWubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjTWmodnameN classnameNj5j5)}j 5]jVc.driver_find_device_by_of_nodeasbuh1hhjWubh)}(h h]h }(hjpWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj75)}(hj:5h]h*}(hj~WhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWubj)}(hdrvh]hdrv}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjWubj4)}(hconst struct device_node *nph](h)}(hj6h]hconst}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]hstruct}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(h device_nodeh]h device_node}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjWmodnameN classnameNj5j5)}j 5]jVc.driver_find_device_by_of_nodeasbuh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj75)}(hj:5h]h*}(hj XhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWubj)}(hnph]hnp}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjWubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjVhhhjVhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjVhhhjVhKubah}(h]jVah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjVhKhjVhhubjB)}(hhh]jG)}(hDdevice iterator for locating a particular device by of_node pointer.h]hDdevice iterator for locating a particular device by of_node pointer.}(hj@XhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj=Xhhubah}(h]h ]h"]h$]h&]uh1jAhjVhhhjVhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjXXjgjXXjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const struct device_node *np`` of_node pointer to match.h](jG)}(h**Parameters**h]jv)}(hjbXh]h Parameters}(hjdXhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj`Xubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj\Xubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hjXh]hconst struct device_driver *drv}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj{Xubj)}(hhh]jG)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXhKhjXubah}(h]h ]h"]h$]h&]uh1jhj{Xubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjxXubj)}(h:``const struct device_node *np`` of_node pointer to match.h](j)}(h ``const struct device_node *np``h]j)}(hjXh]hconst struct device_node *np}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjXubj)}(hhh]jG)}(hof_node pointer to match.h]hof_node pointer to match.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhKhjxXubeh}(h]h ]h"]h$]h&]uh1jhj\Xubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)driver_find_device_by_fwnode (C function)c.driver_find_device_by_fwnodehNtauh1hhjShhhNhNubh)}(hhh](h)}(hlstruct device * driver_find_device_by_fwnode (struct device_driver *drv, const struct fwnode_handle *fwnode)h]h)}(hjstruct device *driver_find_device_by_fwnode(struct device_driver *drv, const struct fwnode_handle *fwnode)h](h)}(hhh]hstruct}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYhhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubh)}(h h]h }(hj"YhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhj!YhKubh)}(hhh]j)}(hdeviceh]hdevice}(hj3YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0Yubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj5YmodnameN classnameNj5j5)}j 5]j#5)}j5driver_find_device_by_fwnodesbc.driver_find_device_by_fwnodeasbuh1hhjYhhhj!YhKubh)}(h h]h }(hjTYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhj!YhKubj75)}(hj:5h]h*}(hjbYhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjYhhhj!YhKubj)}(hdriver_find_device_by_fwnodeh]j)}(hjQYh]hdriver_find_device_by_fwnode}(hjsYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoYubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjYhhhj!YhKubj4)}(h?(struct device_driver *drv, const struct fwnode_handle *fwnode)h](j4)}(hstruct device_driver *drvh](h)}(hhh]hstruct}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]j)}(h device_driverh]h device_driver}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjYmodnameN classnameNj5j5)}j 5]jOYc.driver_find_device_by_fwnodeasbuh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj75)}(hj:5h]h*}(hjYhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjYubj)}(hdrvh]hdrv}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjYubj4)}(h"const struct fwnode_handle *fwnodeh](h)}(hj6h]hconst}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hj ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]hstruct}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hj&ZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hj7ZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4Zubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj9ZmodnameN classnameNj5j5)}j 5]jOYc.driver_find_device_by_fwnodeasbuh1hhjYubh)}(h h]h }(hjUZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj75)}(hj:5h]h*}(hjcZhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjYubj)}(hfwnodeh]hfwnode}(hjpZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjYubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjYhhhj!YhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj Yhhhj!YhKubah}(h]jYah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj!YhKhj YhhubjB)}(hhh]jG)}(hCdevice iterator for locating a particular device by fwnode pointer.h]hCdevice iterator for locating a particular device by fwnode pointer.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjZhhubah}(h]h ]h"]h$]h&]uh1jAhj Yhhhj!YhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjZjgjZjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct device_driver *drv`` the driver we're iterating ``const struct fwnode_handle *fwnode`` fwnode pointer to match.h](jG)}(h**Parameters**h]jv)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjZubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjZubj)}(hhh](j)}(h9``struct device_driver *drv`` the driver we're iterating h](j)}(h``struct device_driver *drv``h]j)}(hjZh]hstruct device_driver *drv}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjZubj)}(hhh]jG)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZhKhjZubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjZhKhjZubj)}(h?``const struct fwnode_handle *fwnode`` fwnode pointer 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&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj[ubj)}(hhh]jG)}(hfwnode pointer to match.h]hfwnode pointer to match.}(hj-[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj*[ubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhj)[hKhjZubeh}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'driver_find_device_by_devt (C function)c.driver_find_device_by_devthNtauh1hhjShhhNhNubh)}(hhh](h)}(hXstruct device * driver_find_device_by_devt (const struct device_driver *drv, dev_t devt)h]h)}(hVstruct device *driver_find_device_by_devt(const struct device_driver *drv, dev_t devt)h](h)}(hhh]hstruct}(hjn[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjj[hhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubh)}(h h]h }(hj|[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjj[hhhj{[hKubh)}(hhh]j)}(hdeviceh]hdevice}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj[modnameN classnameNj5j5)}j 5]j#5)}j5driver_find_device_by_devtsbc.driver_find_device_by_devtasbuh1hhjj[hhhj{[hKubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjj[hhhj{[hKubj75)}(hj:5h]h*}(hj[hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjj[hhhj{[hKubj)}(hdriver_find_device_by_devth]j)}(hj[h]hdriver_find_device_by_devt}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjj[hhhj{[hKubj4)}(h-(const struct device_driver *drv, dev_t devt)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]hstruct}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(h device_driverh]h device_driver}(hj!\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj#\modnameN classnameNj5j5)}j 5]j[c.driver_find_device_by_devtasbuh1hhj[ubh)}(h h]h }(hj?\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj75)}(hj:5h]h*}(hjM\hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj[ubj)}(hdrvh]hdrv}(hjZ\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj[ubj4)}(h dev_t devth](h)}(hhh]j)}(hdev_th]hdev_t}(hjv\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs\ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjx\modnameN classnameNj5j5)}j 5]j[c.driver_find_device_by_devtasbuh1hhjo\ubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjo\ubj)}(hdevth]hdevt}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo\ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj[ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjj[hhhj{[hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjf[hhhj{[hKubah}(h]ja[ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj{[hKhjc[hhubjB)}(hhh]jG)}(h9device iterator for locating a particular device by devt.h]h9device iterator for locating a particular device by devt.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj\hhubah}(h]h ]h"]h$]h&]uh1jAhjc[hhhj{[hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj\jgj\jhjijjuh1hhhhjShNhNubjl)}(hy**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``dev_t devt`` devt pointer to match.h](jG)}(h**Parameters**h]jv)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj\ubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj\ubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hj ]h]hconst struct device_driver *drv}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ]ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj]ubj)}(hhh]jG)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hj&]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj"]hKhj#]ubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhj"]hKhj]ubj)}(h%``dev_t devt`` devt pointer to match.h](j)}(h``dev_t devt``h]j)}(hjF]h]h dev_t devt}(hjH]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD]ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj@]ubj)}(hhh]jG)}(hdevt pointer to match.h]hdevt pointer to match.}(hj_]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj\]ubah}(h]h ]h"]h$]h&]uh1jhj@]ubeh}(h]h ]h"]h$]h&]uh1jhj[]hKhj]ubeh}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+driver_find_device_by_acpi_dev (C function) c.driver_find_device_by_acpi_devhNtauh1hhjShhhNhNubh)}(hhh](h)}(hpstruct device * driver_find_device_by_acpi_dev (const struct device_driver *drv, const struct acpi_device *adev)h]h)}(hnstruct device *driver_find_device_by_acpi_dev(const struct device_driver *drv, const struct acpi_device *adev)h](h)}(hhh]hstruct}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]hhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhj]hKubh)}(hhh]j)}(hdeviceh]hdevice}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj]modnameN classnameNj5j5)}j 5]j#5)}j5driver_find_device_by_acpi_devsb c.driver_find_device_by_acpi_devasbuh1hhj]hhhj]hKubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhj]hKubj75)}(hj:5h]h*}(hj]hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj]hhhj]hKubj)}(hdriver_find_device_by_acpi_devh]j)}(hj]h]hdriver_find_device_by_acpi_dev}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj]hhhj]hKubj4)}(hA(const struct device_driver *drv, const struct acpi_device *adev)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hj'^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]hstruct}(hj5^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hjB^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]j)}(h device_driverh]h device_driver}(hjS^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjP^ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjU^modnameN classnameNj5j5)}j 5]j] c.driver_find_device_by_acpi_devasbuh1hhj^ubh)}(h h]h }(hjq^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj75)}(hj:5h]h*}(hj^hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj^ubj)}(hdrvh]hdrv}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj^ubj4)}(hconst struct acpi_device *adevh](h)}(hj6h]hconst}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]hstruct}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]j)}(h acpi_deviceh]h acpi_device}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj^modnameN classnameNj5j5)}j 5]j] c.driver_find_device_by_acpi_devasbuh1hhj^ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj75)}(hj:5h]h*}(hj _hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj^ubj)}(hadevh]hadev}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj^ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj]hhhj]hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj]hhhj]hKubah}(h]j]ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj]hKhj]hhubjB)}(hhh]jG)}(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.}(hjA_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj>_hhubah}(h]h ]h"]h$]h&]uh1jAhj]hhhj]hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjY_jgjY_jhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct device_driver *drv`` the driver we're iterating ``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](jG)}(h**Parameters**h]jv)}(hjc_h]h Parameters}(hje_hhhNhNubah}(h]h ]h"]h$]h&]uh1juhja_ubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj]_ubj)}(hhh](j)}(h?``const struct device_driver *drv`` the driver we're iterating h](j)}(h#``const struct device_driver *drv``h]j)}(hj_h]hconst struct device_driver *drv}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj|_ubj)}(hhh]jG)}(hthe driver we're iteratingh]hthe driver we’re iterating}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_hKhj_ubah}(h]h ]h"]h$]h&]uh1jhj|_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjy_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&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_ubj)}(hhh]jG)}(hACPI_COMPANION device to match.h]hACPI_COMPANION device to match.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj_hKhjy_ubeh}(h]h ]h"]h$]h&]uh1jhj]_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌmodule_driver (C macro)c.module_driverhNtauh1hhjShhhNhNubh)}(hhh](h)}(h module_driverh]h)}(h module_driverh]j)}(h module_driverh]j)}(hj`h]h module_driver}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj`hhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj `hhhj,`hKubah}(h]j`ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj,`hKhj `hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj `hhhj,`hKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjE`jgjE`jhjijjuh1hhhhjShNhNubjG)}(h;``module_driver (__driver, __register, __unregister, ...)``h]j)}(hjK`h]h7module_driver (__driver, __register, __unregister, ...)}(hjM`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI`ubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjShhubj;)}(hHelper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit(). h]jG)}(hHelper macro for drivers that don't do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit().h]hHelper macro for drivers that don’t do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit().}(hje`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhja`ubah}(h]h ]h"]h$]h&]uh1j:hjs`hKhjShhubjl)}(hXf**Parameters** ``__driver`` driver name ``__register`` register function for this driver type ``__unregister`` unregister function for this driver type ``...`` Additional arguments to be passed to __register and __unregister. **Description** Use this macro to construct bus specific macros for registering drivers, and do not use it on its own.h](jG)}(h**Parameters**h]jv)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj~`ubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjz`ubj)}(hhh](j)}(h``__driver`` driver name h](j)}(h ``__driver``h]j)}(hj`h]h__driver}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj`ubj)}(hhh]jG)}(h driver nameh]h driver name}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`hKhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hKhj`ubj)}(h6``__register`` register function for this driver type h](j)}(h``__register``h]j)}(hj`h]h __register}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj`ubj)}(hhh]jG)}(h®ister function for this driver typeh]h®ister function for this driver type}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`hKhj`ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hKhj`ubj)}(h:``__unregister`` unregister function for this driver type h](j)}(h``__unregister``h]j)}(hjah]h __unregister}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhj aubj)}(hhh]jG)}(h(unregister function for this driver typeh]h(unregister function for this driver type}(hj*ahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&ahKhj'aubah}(h]h ]h"]h$]h&]uh1jhj aubeh}(h]h ]h"]h$]h&]uh1jhj&ahKhj`ubj)}(hJ``...`` Additional arguments to be passed to __register and __unregister. h](j)}(h``...``h]j)}(hjJah]h...}(hjLahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHaubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjDaubj)}(hhh]jG)}(hAAdditional arguments to be passed to __register and __unregister.h]hAAdditional arguments to be passed to __register and __unregister.}(hjcahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_ahKhj`aubah}(h]h ]h"]h$]h&]uh1jhjDaubeh}(h]h ]h"]h$]h&]uh1jhj_ahKhj`ubeh}(h]h ]h"]h$]h&]uh1jhjz`ubjG)}(h**Description**h]jv)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1juhjaubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjz`ubjG)}(hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.h]hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhKhjz`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbuiltin_driver (C macro)c.builtin_driverhNtauh1hhjShhhNhNubh)}(hhh](h)}(hbuiltin_driverh]h)}(hbuiltin_driverh]j)}(hbuiltin_driverh]j)}(hjah]hbuiltin_driver}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjahhhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjahhhjahMubah}(h]jaah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjahMhjahhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjahhhjahMubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjajgjajhjijjuh1hhhhjShNhNubjG)}(h.``builtin_driver (__driver, __register, ...)``h]j)}(hjbh]h*builtin_driver (__driver, __register, ...)}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjShhubj;)}(hXqHelper macro for drivers that don't do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver() above but without the __exit stuff that is not used for builtin cases. h]jG)}(hXpHelper macro for drivers that don't do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver() above but without the __exit stuff that is not used for builtin cases.h]hXrHelper macro for drivers that don’t do anything special in init and have no exit. This eliminates some boilerplate. Each driver may only use this macro once, and calling it replaces device_initcall (or in some cases, the legacy __initcall). This is meant to be a direct parallel of module_driver() above but without the __exit stuff that is not used for builtin cases.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjbubah}(h]h ]h"]h$]h&]uh1j:hj(bhMhjShhubjl)}(hX**Parameters** ``__driver`` driver name ``__register`` register function for this driver type ``...`` Additional arguments to be passed to __register **Description** Use this macro to construct bus specific macros for registering drivers, and do not use it on its own.h](jG)}(h**Parameters**h]jv)}(hj5bh]h Parameters}(hj7bhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj3bubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhj/bubj)}(hhh](j)}(h``__driver`` driver name h](j)}(h ``__driver``h]j)}(hjTbh]h__driver}(hjVbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRbubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjNbubj)}(hhh]jG)}(h driver nameh]h driver name}(hjmbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjibhMhjjbubah}(h]h ]h"]h$]h&]uh1jhjNbubeh}(h]h ]h"]h$]h&]uh1jhjibhMhjKbubj)}(h6``__register`` register function for this driver type h](j)}(h``__register``h]j)}(hjbh]h __register}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjbubj)}(hhh]jG)}(h®ister function for this driver typeh]h®ister function for this driver type}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjKbubj)}(h8``...`` Additional arguments to be passed to __register h](j)}(h``...``h]j)}(hjbh]h...}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhjbubj)}(hhh]jG)}(h/Additional arguments to be passed to __registerh]h/Additional arguments to be passed to __register}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjbhMhjbubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjKbubeh}(h]h ]h"]h$]h&]uh1jhj/bubjG)}(h**Description**h]jv)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1juhjbubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhj/bubjG)}(hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.h]hfUse this macro to construct bus specific macros for registering drivers, and do not use it on its own.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhg/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:26: ./include/linux/device/driver.hhMhj/bubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ driver_set_override (C function)c.driver_set_overridehNtauh1hhjShhhNhNubh)}(hhh](h)}(h^int driver_set_override (struct device *dev, const char **override, const char *s, size_t len)h]h)}(h]int driver_set_override(struct device *dev, const char **override, const char *s, size_t len)h](j4)}(hinth]hint}(hjFchhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjBchhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK"ubh)}(h h]h }(hjUchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBchhhjTchK"ubj)}(hdriver_set_overrideh]j)}(hdriver_set_overrideh]hdriver_set_override}(hjgchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjccubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjBchhhjTchK"ubj4)}(hF(struct device *dev, const char **override, const char *s, size_t len)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(hdeviceh]hdevice}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjcmodnameN classnameNj5j5)}j 5]j#5)}j5jicsbc.driver_set_overrideasbuh1hhjcubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj75)}(hj:5h]h*}(hjchhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjcubj)}(hdevh]hdev}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{cubj4)}(hconst char **overrideh](h)}(hj6h]hconst}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj4)}(hcharh]hchar}(hjdhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjcubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj75)}(hj:5h]h*}(hj,dhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjcubj75)}(hj:5h]h*}(hj9dhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjcubj)}(hoverrideh]hoverride}(hjFdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{cubj4)}(h const char *sh](h)}(hj6h]hconst}(hj_dhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[dubh)}(h h]h }(hjldhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[dubj4)}(hcharh]hchar}(hjzdhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj[dubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[dubj75)}(hj:5h]h*}(hjdhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj[dubj)}(hsh]hs}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[dubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{cubj4)}(h size_t lenh](h)}(hhh]j)}(hsize_th]hsize_t}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjdmodnameN classnameNj5j5)}j 5]jcc.driver_set_overrideasbuh1hhjdubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hlenh]hlen}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{cubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjBchhhjTchK"ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj>chhhjTchK"ubah}(h]j9cah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjTchK"hj;chhubjB)}(hhh]jG)}(h'Helper to set or clear driver override.h]h'Helper to set or clear driver override.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK"hjehhubah}(h]h ]h"]h$]h&]uh1jAhj;chhhjTchK"ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj-ejgj-ejhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct device *dev`` Device to change ``const char **override`` Address of string to change (e.g. :c:type:`device->driver_override `); The contents will be freed and hold newly allocated override. ``const char *s`` NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface). ``size_t len`` length of **s** **Description** Helper to set or clear driver override in a device, intended for the cases when the driver_override field is allocated by driver/bus code. **Return** 0 on success or a negative error code on failure.h](jG)}(h**Parameters**h]jv)}(hj7eh]h Parameters}(hj9ehhhNhNubah}(h]h ]h"]h$]h&]uh1juhj5eubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hj1eubj)}(hhh](j)}(h(``struct device *dev`` Device to change h](j)}(h``struct device *dev``h]j)}(hjVeh]hstruct device *dev}(hjXehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTeubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK#hjPeubj)}(hhh]jG)}(hDevice to changeh]hDevice to change}(hjoehhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjkehK#hjleubah}(h]h ]h"]h$]h&]uh1jhjPeubeh}(h]h ]h"]h$]h&]uh1jhjkehK#hjMeubj)}(h``const char **override`` Address of string to change (e.g. :c:type:`device->driver_override `); The contents will be freed and hold newly allocated override. h](j)}(h``const char **override``h]j)}(hjeh]hconst char **override}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK%hjeubj)}(hhh]jG)}(hAddress of string to change (e.g. :c:type:`device->driver_override `); The contents will be freed and hold newly allocated override.h](h"Address of string to change (e.g. }(hjehhhNhNubh)}(h*:c:type:`device->driver_override `h]j)}(hjeh]hdevice->driver_override}(hjehhhNhNubah}(h]h ](xrefj`c-typeeh"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]refdocdriver-api/infrastructure refdomainj`reftypetype refexplicitrefwarnj5j5)}j 5]sb reftargetdeviceuh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK$hjeubh@); The contents will be freed and hold newly allocated override.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhjehK$hjeubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjehK%hjMeubj)}(h``const char *s`` NUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface). h](j)}(h``const char *s``h]j)}(hjeh]h const char *s}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK(hjeubj)}(hhh]jG)}(hNUL-terminated string, new driver name to force a match, pass empty string to clear it ("" or "\n", where the latter is only for sysfs interface).h]hNUL-terminated string, new driver name to force a match, pass empty string to clear it (”” or “n”, where the latter is only for sysfs interface).}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK&hjfubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjfhK(hjMeubj)}(h``size_t len`` length of **s** h](j)}(h``size_t len``h]j)}(hj,fh]h size_t len}(hj.fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*fubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK)hj&fubj)}(hhh]jG)}(hlength of **s**h](h length of }(hjEfhhhNhNubjv)}(h**s**h]hs}(hjMfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjEfubeh}(h]h ]h"]h$]h&]uh1jFhjAfhK)hjBfubah}(h]h ]h"]h$]h&]uh1jhj&fubeh}(h]h ]h"]h$]h&]uh1jhjAfhK)hjMeubeh}(h]h ]h"]h$]h&]uh1jhj1eubjG)}(h**Description**h]jv)}(hjufh]h Description}(hjwfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjsfubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK+hj1eubjG)}(hHelper to set or clear driver override in a device, intended for the cases when the driver_override field is allocated by driver/bus code.h]hHelper to set or clear driver override in a device, intended for the cases when the driver_override field is allocated by driver/bus code.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK+hj1eubjG)}(h **Return**h]jv)}(hjfh]hReturn}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjfubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK.hj1eubjG)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chK.hj1eubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#driver_for_each_device (C function)c.driver_for_each_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(hjint driver_for_each_device (struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h]h)}(hiint driver_for_each_device(struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h](j4)}(hinth]hint}(hjfhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjfhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKmubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjfhKmubj)}(hdriver_for_each_deviceh]j)}(hdriver_for_each_deviceh]hdriver_for_each_device}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjfhhhjfhKmubj4)}(hO(struct device_driver *drv, struct device *start, void *data, device_iter_t fn)h](j4)}(hstruct device_driver *drvh](h)}(hhh]hstruct}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hj+ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j)}(h device_driverh]h device_driver}(hjgmodnameN classnameNj5j5)}j 5]j#5)}j5jgsbc.driver_for_each_deviceasbuh1hhjgubh)}(h h]h }(hj\ghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj75)}(hj:5h]h*}(hjjghhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjgubj)}(hdrvh]hdrv}(hjwghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjgubj4)}(hstruct device *starth](h)}(hhh]hstruct}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j)}(hdeviceh]hdevice}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjgmodnameN classnameNj5j5)}j 5]jXgc.driver_for_each_deviceasbuh1hhjgubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj75)}(hj:5h]h*}(hjghhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjgubj)}(hstarth]hstart}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjgubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjgubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj75)}(hj:5h]h*}(hjhhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjgubj)}(hdatah]hdata}(hj)hhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjgubj4)}(hdevice_iter_t fnh](h)}(hhh]j)}(h device_iter_th]h device_iter_t}(hjEhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjGhmodnameN classnameNj5j5)}j 5]jXgc.driver_for_each_deviceasbuh1hhj>hubh)}(h h]h }(hjchhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hubj)}(hfnh]hfn}(hjqhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>hubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjgubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjfhhhjfhKmubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjfhhhjfhKmubah}(h]jfah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjfhKmhjfhhubjB)}(hhh]jG)}(h'Iterator for devices bound to a driver.h]h'Iterator for devices bound to a driver.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKmhjhhhubah}(h]h ]h"]h$]h&]uh1jAhjfhhhjfhKmubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjhjgjhjhjijjuh1hhhhjShNhNubjl)}(hX<**Parameters** ``struct device_driver *drv`` Driver we're iterating. ``struct device *start`` Device to begin with ``void *data`` Data to pass to the callback. ``device_iter_t fn`` Function to call for each device. **Description** Iterate over the **drv**'s list of devices calling **fn** for each one.h](jG)}(h**Parameters**h]jv)}(hjhh]h Parameters}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjhubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKqhjhubj)}(hhh](j)}(h6``struct device_driver *drv`` Driver we're iterating. h](j)}(h``struct device_driver *drv``h]j)}(hjhh]hstruct device_driver *drv}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKnhjhubj)}(hhh]jG)}(hDriver we're iterating.h]hDriver we’re iterating.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhhKnhjhubah}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]uh1jhjhhKnhjhubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjih]hstruct device *start}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKohjiubj)}(hhh]jG)}(hDevice to begin withh]hDevice to begin with}(hj.ihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*ihKohj+iubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhj*ihKohjhubj)}(h-``void *data`` Data to pass to the callback. h](j)}(h``void *data``h]j)}(hjNih]h void *data}(hjPihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLiubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKphjHiubj)}(hhh]jG)}(hData to pass to the callback.h]hData to pass to the callback.}(hjgihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjcihKphjdiubah}(h]h ]h"]h$]h&]uh1jhjHiubeh}(h]h ]h"]h$]h&]uh1jhjcihKphjhubj)}(h7``device_iter_t fn`` Function to call for each device. h](j)}(h``device_iter_t fn``h]j)}(hjih]hdevice_iter_t fn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKqhjiubj)}(hhh]jG)}(h!Function to call for each device.h]h!Function to call for each device.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjihKqhjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihKqhjhubeh}(h]h ]h"]h$]h&]uh1jhjhubjG)}(h**Description**h]jv)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1juhjiubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKshjhubjG)}(hGIterate over the **drv**'s list of devices calling **fn** for each one.h](hIterate over the }(hjihhhNhNubjv)}(h**drv**h]hdrv}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1juhjiubh’s list of devices calling }(hjihhhNhNubjv)}(h**fn**h]hfn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1juhjiubh for each one.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKshjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdriver_find_device (C function)c.driver_find_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(hstruct device * driver_find_device (const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h]h)}(hstruct device *driver_find_device(const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h](h)}(hhh]hstruct}(hj+jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'jhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubh)}(h h]h }(hj9jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'jhhhj8jhKubh)}(hhh]j)}(hdeviceh]hdevice}(hjJjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjLjmodnameN classnameNj5j5)}j 5]j#5)}j5driver_find_devicesbc.driver_find_deviceasbuh1hhj'jhhhj8jhKubh)}(h h]h }(hjkjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'jhhhj8jhKubj75)}(hj:5h]h*}(hjyjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj'jhhhj8jhKubj)}(hdriver_find_deviceh]j)}(hjhjh]hdriver_find_device}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj'jhhhj8jhKubj4)}(h_(const struct device_driver *drv, struct device *start, const void *data, device_match_t match)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]hstruct}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(h device_driverh]h device_driver}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjjmodnameN classnameNj5j5)}j 5]jfjc.driver_find_deviceasbuh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj75)}(hj:5h]h*}(hj khhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjjubj)}(hdrvh]hdrv}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjjubj4)}(hstruct device *starth](h)}(hhh]hstruct}(hj0khhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,kubh)}(h h]h }(hj=khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,kubh)}(hhh]j)}(hdeviceh]hdevice}(hjNkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKkubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjPkmodnameN classnameNj5j5)}j 5]jfjc.driver_find_deviceasbuh1hhj,kubh)}(h h]h }(hjlkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,kubj75)}(hj:5h]h*}(hjzkhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj,kubj)}(hstarth]hstart}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,kubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjjubj4)}(hconst void *datah](h)}(hj6h]hconst}(hjkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj4)}(hvoidh]hvoid}(hjkhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjkubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj75)}(hj:5h]h*}(hjkhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjkubj)}(hdatah]hdata}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjjubj4)}(hdevice_match_t matchh](h)}(hhh]j)}(hdevice_match_th]hdevice_match_t}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjlmodnameN classnameNj5j5)}j 5]jfjc.driver_find_deviceasbuh1hhjkubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hmatchh]hmatch}(hj,lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj'jhhhj8jhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj#jhhhj8jhKubah}(h]jjah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj8jhKhj jhhubjB)}(hhh]jG)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjVlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjSlhhubah}(h]h ]h"]h$]h&]uh1jAhj jhhhj8jhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjnljgjnljhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjxlh]h Parameters}(hjzlhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjvlubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjrlubj)}(hhh](j)}(h8``const struct device_driver *drv`` The device's driver h](j)}(h#``const struct device_driver *drv``h]j)}(hjlh]hconst struct device_driver *drv}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjlubj)}(hhh]jG)}(hThe device's driverh]hThe device’s driver}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjlhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjlubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjlh]hstruct device *start}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjlubj)}(hhh]jG)}(hDevice to begin withh]hDevice to begin with}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjlhKhjlubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjlhKhjlubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hj mh]hconst void *data}(hj mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjmubj)}(hhh]jG)}(hData to pass to match functionh]hData to pass to match function}(hj"mhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjmhKhjmubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjlubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjBmh]hdevice_match_t match}(hjDmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@mubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjj?)j@huh1hhjmhKhjmhhubjB)}(hhh]jG)}(hcreate sysfs file for driver.h]hcreate sysfs file for driver.}(hjIohhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjFohhubah}(h]h ]h"]h$]h&]uh1jAhjmhhhjmhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjaojgjaojhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct device_driver *drv`` driver. ``const struct driver_attribute *attr`` driver attribute descriptor.h](jG)}(h**Parameters**h]jv)}(hjkoh]h Parameters}(hjmohhhNhNubah}(h]h ]h"]h$]h&]uh1juhjioubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjeoubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjoh]hconst struct device_driver *drv}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjoubj)}(hhh]jG)}(hdriver.h]hdriver.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjohKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhjoubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjoh]h#const struct driver_attribute *attr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjoubj)}(hhh]jG)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjoubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjohKhjoubeh}(h]h ]h"]h$]h&]uh1jhjeoubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdriver_remove_file (C function)c.driver_remove_filehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjphhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjphhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubh)}(h h]h }(hj,phhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhj+phKubj)}(hdriver_remove_fileh]j)}(hdriver_remove_fileh]hdriver_remove_file}(hj>phhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:pubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjphhhj+phKubj4)}(hF(const struct device_driver *drv, const struct driver_attribute *attr)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hjZphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVpubh)}(h h]h }(hjgphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVpubh)}(hhh]hstruct}(hjuphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVpubh)}(hhh]j)}(h device_driverh]h device_driver}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjpmodnameN classnameNj5j5)}j 5]j#5)}j5j@psbc.driver_remove_fileasbuh1hhjVpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVpubj75)}(hj:5h]h*}(hjphhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjVpubj)}(hdrvh]hdrv}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVpubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjRpubj4)}(h#const struct driver_attribute *attrh](h)}(hj6h]hconst}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]hstruct}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjpubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j)}(hdriver_attributeh]hdriver_attribute}(hj qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj"qmodnameN classnameNj5j5)}j 5]jpc.driver_remove_fileasbuh1hhjpubh)}(h h]h }(hj>qhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj75)}(hj:5h]h*}(hjLqhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjpubj)}(hattrh]hattr}(hjYqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjRpubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjphhhj+phKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjphhhj+phKubah}(h]jpah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj+phKhjphhubjB)}(hhh]jG)}(hremove sysfs file for driver.h]hremove sysfs file for driver.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjqhhubah}(h]h ]h"]h$]h&]uh1jAhjphhhj+phKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjqjgjqjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct device_driver *drv`` driver. ``const struct driver_attribute *attr`` driver attribute descriptor.h](jG)}(h**Parameters**h]jv)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjqubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjqubj)}(hhh](j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hjqh]hconst struct device_driver *drv}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjqubj)}(hhh]jG)}(hdriver.h]hdriver.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjqhKhjqubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjqhKhjqubj)}(hD``const struct driver_attribute *attr`` driver attribute descriptor.h](j)}(h'``const struct driver_attribute *attr``h]j)}(hjqh]h#const struct driver_attribute *attr}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjqubj)}(hhh]jG)}(hdriver attribute descriptor.h]hdriver attribute descriptor.}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjrubah}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]uh1jhjrhKhjqubeh}(h]h ]h"]h$]h&]uh1jhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdriver_register (C function)c.driver_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(h/int driver_register (struct device_driver *drv)h]h)}(h.int driver_register(struct device_driver *drv)h](j4)}(hinth]hint}(hjWrhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjSrhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKubh)}(h h]h }(hjfrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSrhhhjerhKubj)}(hdriver_registerh]j)}(hdriver_registerh]hdriver_register}(hjxrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtrubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjSrhhhjerhKubj4)}(h(struct device_driver *drv)h]j4)}(hstruct device_driver *drvh](h)}(hhh]hstruct}(hjrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(h device_driverh]h device_driver}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjrmodnameN classnameNj5j5)}j 5]j#5)}j5jzrsbc.driver_registerasbuh1hhjrubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj75)}(hj:5h]h*}(hjrhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjrubj)}(hdrvh]hdrv}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjrubah}(h]h ]h"]h$]h&]j+j,uh1j4hjSrhhhjerhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjOrhhhjerhKubah}(h]jJrah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjerhKhjLrhhubjB)}(hhh]jG)}(hregister driver with bush]hregister driver with bus}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjshhubah}(h]h ]h"]h$]h&]uh1jAhjLrhhhjerhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj/sjgj/sjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj9sh]h Parameters}(hj;shhhNhNubah}(h]h ]h"]h$]h&]uh1juhj7subah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj3subj)}(hhh]j)}(h1``struct device_driver *drv`` driver to register h](j)}(h``struct device_driver *drv``h]j)}(hjXsh]hstruct device_driver *drv}(hjZshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVsubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhjRsubj)}(hhh]jG)}(hdriver to registerh]hdriver to register}(hjqshhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjmshKhjnsubah}(h]h ]h"]h$]h&]uh1jhjRsubeh}(h]h ]h"]h$]h&]uh1jhjmshKhjOsubah}(h]h ]h"]h$]h&]uh1jhj3subjG)}(h**Description**h]jv)}(hjsh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1juhjsubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj3subjG)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chKhj3subeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdriver_unregister (C function)c.driver_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h2void driver_unregister (struct device_driver *drv)h]h)}(h1void driver_unregister(struct device_driver *drv)h](j4)}(hvoidh]hvoid}(hjshhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjshhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM ubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjshM ubj)}(hdriver_unregisterh]j)}(hdriver_unregisterh]hdriver_unregister}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjshhhjshM ubj4)}(h(struct device_driver *drv)h]j4)}(hstruct device_driver *drvh](h)}(hhh]hstruct}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hj"thhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j)}(h device_driverh]h device_driver}(hj3thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0tubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj5tmodnameN classnameNj5j5)}j 5]j#5)}j5jssbc.driver_unregisterasbuh1hhjtubh)}(h h]h }(hjSthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj75)}(hj:5h]h*}(hjathhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjtubj)}(hdrvh]hdrv}(hjnthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj tubah}(h]h ]h"]h$]h&]j+j,uh1j4hjshhhjshM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjshhhjshM ubah}(h]jsah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjshM hjshhubjB)}(hhh]jG)}(hremove driver from system.h]hremove driver from system.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjthhubah}(h]h ]h"]h$]h&]uh1jAhjshhhjshM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjtjgjtjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct device_driver *drv`` driver. **Description** Again, we pass off most of the work to the bus-level call.h](jG)}(h**Parameters**h]jv)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1juhjtubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjtubj)}(hhh]j)}(h&``struct device_driver *drv`` driver. h](j)}(h``struct device_driver *drv``h]j)}(hjth]hstruct device_driver *drv}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjtubj)}(hhh]jG)}(hdriver.h]hdriver.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjthM hjtubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjthM hjtubah}(h]h ]h"]h$]h&]uh1jhjtubjG)}(h**Description**h]jv)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjuubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjtubjG)}(h:Again, we pass off most of the work to the bus-level call.h]h:Again, we pass off most of the work to the bus-level call.}(hj*uhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:29: ./drivers/base/driver.chM hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%device_link_wait_removal (C function)c.device_link_wait_removalhNtauh1hhjShhhNhNubh)}(hhh](h)}(h$void device_link_wait_removal (void)h]h)}(h#void device_link_wait_removal(void)h](j4)}(hvoidh]hvoid}(hjYuhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjUuhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUuhhhjguhMubj)}(hdevice_link_wait_removalh]j)}(hdevice_link_wait_removalh]hdevice_link_wait_removal}(hjzuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvuubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjUuhhhjguhMubj4)}(h(void)h]j4)}(hvoidh]j4)}(hvoidh]hvoid}(hjuhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjuubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjuubah}(h]h ]h"]h$]h&]j+j,uh1j4hjUuhhhjguhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjQuhhhjguhMubah}(h]jLuah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjguhMhjNuhhubjB)}(hhh]jG)}(h2Wait for ongoing devlink removal jobs to terminateh]h2Wait for ongoing devlink removal jobs to terminate}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjuhhubah}(h]h ]h"]h$]h&]uh1jAhjNuhhhjguhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjujgjujhjijjuh1hhhhjShNhNubjl)}(h'**Parameters** ``void`` no argumentsh](jG)}(h**Parameters**h]jv)}(hjuh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjuubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM"hjuubj)}(hhh]j)}(h``void`` no argumentsh](j)}(h``void``h]j)}(hjvh]hvoid}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM$hjuubj)}(hhh]jG)}(h no argumentsh]h no arguments}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjvubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjvhM$hjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_link_add (C function)c.device_link_addhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj[vhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWvhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjivhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWvhhhjhvhMubh)}(hhh]j)}(h device_linkh]h device_link}(hjzvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwvubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj|vmodnameN classnameNj5j5)}j 5]j#5)}j5device_link_addsbc.device_link_addasbuh1hhjWvhhhjhvhMubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWvhhhjhvhMubj75)}(hj:5h]h*}(hjvhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWvhhhjhvhMubj)}(hdevice_link_addh]j)}(hjvh]hdevice_link_add}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjWvhhhjhvhMubj4)}(h=(struct device *consumer, struct device *supplier, u32 flags)h](j4)}(hstruct device *consumerh](h)}(hhh]hstruct}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubh)}(hhh]j)}(hdeviceh]hdevice}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjvmodnameN classnameNj5j5)}j 5]jvc.device_link_addasbuh1hhjvubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvubj75)}(hj:5h]h*}(hjwhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjvubj)}(hconsumerh]hconsumer}(hj,whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjvubj4)}(hstruct device *supplierh](h)}(hhh]hstruct}(hjEwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjAwubh)}(h h]h }(hjRwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAwubh)}(hhh]j)}(hdeviceh]hdevice}(hjcwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`wubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjewmodnameN classnameNj5j5)}j 5]jvc.device_link_addasbuh1hhjAwubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAwubj75)}(hj:5h]h*}(hjwhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjAwubj)}(hsupplierh]hsupplier}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAwubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjvubj4)}(h u32 flagsh](h)}(hhh]j)}(hu32h]hu32}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjwmodnameN classnameNj5j5)}j 5]jvc.device_link_addasbuh1hhjwubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hflagsh]hflags}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjvubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjWvhhhjhvhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjSvhhhjhvhMubah}(h]jNvah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhvhMhjPvhhubjB)}(hhh]jG)}(h"Create a link between two devices.h]h"Create a link between two devices.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj xhhubah}(h]h ]h"]h$]h&]uh1jAhjPvhhhjhvhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj&xjgj&xjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj0xh]h Parameters}(hj2xhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj.xubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubj)}(hhh](j)}(h6``struct device *consumer`` Consumer end of the link. h](j)}(h``struct device *consumer``h]j)}(hjOxh]hstruct device *consumer}(hjQxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjIxubj)}(hhh]jG)}(hConsumer end of the link.h]hConsumer end of the link.}(hjhxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjdxhMhjexubah}(h]h ]h"]h$]h&]uh1jhjIxubeh}(h]h ]h"]h$]h&]uh1jhjdxhMhjFxubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjxh]hstruct device *supplier}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubj)}(hhh]jG)}(hSupplier end of the link.h]hSupplier end of the link.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjFxubj)}(h``u32 flags`` Link flags. h](j)}(h ``u32 flags``h]j)}(hjxh]h u32 flags}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubj)}(hhh]jG)}(h Link flags.h]h Link flags.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMhjFxubeh}(h]h ]h"]h$]h&]uh1jhj*xubjG)}(h **Return**h]jv)}(hjxh]hReturn}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjxubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubj)}(hhh]j)}(hmOn success, a device_link struct will be returned. On error or invalid flag settings, NULL will be returned. h](j)}(h2On success, a device_link struct will be returned.h]h2On success, a device_link struct will be returned.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjyubj)}(hhh]jG)}(h9On error or invalid flag settings, NULL will be returned.h]h9On error or invalid flag settings, NULL will be returned.}(hj+yhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj'yhMhj(yubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhj'yhMhjyubah}(h]h ]h"]h$]h&]uh1jhj*xubjG)}(h**Description**h]jv)}(hjMyh]h Description}(hjOyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjKyubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(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.}(hjcyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(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 }(hjryhhhNhNubjv)}(h **flags**h]hflags}(hjzyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjryubh, 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().}(hjryhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(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 }(hjyhhhNhNubjv)}(h **flags**h]hflags}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubhXz 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.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(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 }(hjyhhhNhNubjv)}(h **flags**h]hflags}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubh (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.}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(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 }(hjyhhhNhNubjv)}(h **flags**h]hflags}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubhu at the same time is invalid and will cause NULL to be returned upfront. However, if a device link between the given }(hjyhhhNhNubjv)}(h **consumer**h]hconsumer}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubh and }(hjyhhhNhNubjv)}(h **supplier**h]hsupplier}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubhXN 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 }(hjyhhhNhNubjv)}(h **flags**h]hflags}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubhV, the link needs to be released explicitly when not needed any more (as stated above).}(hjyhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(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).}(hj,zhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubjG)}(hThe supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.h]hThe supplier device is required to be registered when this function is called and NULL will be returned if that is not the case. The consumer device need not be registered, however.}(hj;zhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj*xubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_link_del (C function)c.device_link_delhNtauh1hhjShhhNhNubh)}(hhh](h)}(h/void device_link_del (struct device_link *link)h]h)}(h.void device_link_del(struct device_link *link)h](j4)}(hvoidh]hvoid}(hjjzhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjfzhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjyzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfzhhhjxzhMubj)}(hdevice_link_delh]j)}(hdevice_link_delh]hdevice_link_del}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjfzhhhjxzhMubj4)}(h(struct device_link *link)h]j4)}(hstruct device_link *linkh](h)}(hhh]hstruct}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(h device_linkh]h device_link}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjzmodnameN classnameNj5j5)}j 5]j#5)}j5jzsbc.device_link_delasbuh1hhjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj75)}(hj:5h]h*}(hjzhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjzubj)}(hlinkh]hlink}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjzubah}(h]h ]h"]h$]h&]j+j,uh1j4hjfzhhhjxzhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjbzhhhjxzhMubah}(h]j]zah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjxzhMhj_zhhubjB)}(hhh]jG)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hj*{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj'{hhubah}(h]h ]h"]h$]h&]uh1jAhj_zhhhjxzhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjB{jgjB{jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjL{h]h Parameters}(hjN{hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjJ{ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjF{ubj)}(hhh]j)}(h4``struct device_link *link`` Device link to delete. h](j)}(h``struct device_link *link``h]j)}(hjk{h]hstruct device_link *link}(hjm{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhji{ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhje{ubj)}(hhh]jG)}(hDevice link to delete.h]hDevice link to delete.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1jhje{ubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjb{ubah}(h]h ]h"]h$]h&]uh1jhjF{ubjG)}(h**Description**h]jv)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj{ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjF{ubjG)}(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.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjF{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_link_remove (C function)c.device_link_removehNtauh1hhjShhhNhNubh)}(hhh](h)}(hAvoid device_link_remove (void *consumer, struct device *supplier)h]h)}(h@void device_link_remove(void *consumer, struct device *supplier)h](j4)}(hvoidh]hvoid}(hj{hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj{hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj{hMubj)}(hdevice_link_removeh]j)}(hdevice_link_removeh]hdevice_link_remove}(hj |hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj{hhhj{hMubj4)}(h)(void *consumer, struct device *supplier)h](j4)}(hvoid *consumerh](j4)}(hvoidh]hvoid}(hj(|hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj$|ubh)}(h h]h }(hj6|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$|ubj75)}(hj:5h]h*}(hjD|hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj$|ubj)}(hconsumerh]hconsumer}(hjQ|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$|ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj |ubj4)}(hstruct device *supplierh](h)}(hhh]hstruct}(hjj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjf|ubh)}(h h]h }(hjw|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf|ubh)}(hhh]j)}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj|modnameN classnameNj5j5)}j 5]j#5)}j5j|sbc.device_link_removeasbuh1hhjf|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjf|ubj75)}(hj:5h]h*}(hj|hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjf|ubj)}(hsupplierh]hsupplier}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf|ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj |ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj{hhhj{hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj{hhhj{hMubah}(h]j{ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj{hMhj{hhubjB)}(hhh]jG)}(h,Delete a stateless link between two devices.h]h,Delete a stateless link between two devices.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jAhj{hhhj{hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj}jgj}jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj }ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj }ubj)}(hhh](j)}(h-``void *consumer`` Consumer end of the link. h](j)}(h``void *consumer``h]j)}(hj.}h]hvoid *consumer}(hj0}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj(}ubj)}(hhh]jG)}(hConsumer end of the link.h]hConsumer end of the link.}(hjG}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjC}hMhjD}ubah}(h]h ]h"]h$]h&]uh1jhj(}ubeh}(h]h ]h"]h$]h&]uh1jhjC}hMhj%}ubj)}(h6``struct device *supplier`` Supplier end of the link. h](j)}(h``struct device *supplier``h]j)}(hjg}h]hstruct device *supplier}(hji}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhja}ubj)}(hhh]jG)}(hSupplier end of the link.h]hSupplier end of the link.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj|}hMhj}}ubah}(h]h ]h"]h$]h&]uh1jhja}ubeh}(h]h ]h"]h$]h&]uh1jhj|}hMhj%}ubeh}(h]h ]h"]h$]h&]uh1jhj }ubjG)}(h**Description**h]jv)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj}ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj }ubjG)}(hOThe caller must ensure proper synchronization of this function with runtime PM.h]hOThe caller must ensure proper synchronization of this function with runtime PM.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj }ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_driver_string (C function)c.dev_driver_stringhNtauh1hhjShhhNhNubh)}(hhh](h)}(h9const char * dev_driver_string (const struct device *dev)h]h)}(h7const char *dev_driver_string(const struct device *dev)h](h)}(hj6h]hconst}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMY ubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}hhhj}hMY ubj4)}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj}hhhj}hMY ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}hhhj}hMY ubj75)}(hj:5h]h*}(hj~hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj}hhhj}hMY ubj)}(hdev_driver_stringh]j)}(hdev_driver_stringh]hdev_driver_string}(hj0~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,~ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj}hhhj}hMY ubj4)}(h(const struct device *dev)h]j4)}(hconst struct device *devh](h)}(hj6h]hconst}(hjL~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjH~ubh)}(h h]h }(hjY~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH~ubh)}(hhh]hstruct}(hjg~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjH~ubh)}(h h]h }(hjt~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH~ubh)}(hhh]j)}(hdeviceh]hdevice}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj~modnameN classnameNj5j5)}j 5]j#5)}j5j2~sbc.dev_driver_stringasbuh1hhjH~ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH~ubj75)}(hj:5h]h*}(hj~hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjH~ubj)}(hdevh]hdev}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH~ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjD~ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj}hhhj}hMY ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj}hhhj}hMY ubah}(h]j}ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj}hMY hj}hhubjB)}(hhh]jG)}(h1Return a device's driver name, if at all possibleh]h3Return a device’s driver name, if at all possible}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMY hj~hhubah}(h]h ]h"]h$]h&]uh1jAhj}hhhj}hMY ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM] hjubj)}(hhh]j)}(h>``const struct device *dev`` struct device to get the name of h](j)}(h``const struct device *dev``h]j)}(hj+h]hconst struct device *dev}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMZ hj%ubj)}(hhh]jG)}(h struct device to get the name ofh]h struct device to get the name of}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj@hMZ hjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMZ hj"ubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjfh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjdubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM\ hjubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM\ hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"devm_device_add_group (C function)c.devm_device_add_grouphNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM1 ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM1 ubj)}(hdevm_device_add_grouph]j)}(hdevm_device_add_grouph]hdevm_device_add_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM1 ubj4)}(h7(struct device *dev, const struct attribute_group *grp)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.devm_device_add_groupasbuh1hhjubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj4hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h!const struct attribute_group *grph](h)}(hj6h]hconst}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hhh]hstruct}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j"c.devm_device_add_groupasbuh1hhjVubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjVubj)}(hgrph]hgrp}(hj̀hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM1 ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM1 ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM1 hjhhubjB)}(hhh]jG)}(h0given a device, create a managed attribute grouph]h0given a device, create a managed attribute group}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM1 hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM1 ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM5 hjubj)}(hhh](j)}(h:``struct device *dev`` The device to create the group for h](j)}(h``struct device *dev``h]j)}(hj7h]hstruct device *dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM2 hj1ubj)}(hhh]jG)}(h"The device to create the group forh]h"The device to create the group for}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjLhM2 hjMubah}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhM2 hj.ubj)}(hD``const struct attribute_group *grp`` The attribute group to create h](j)}(h%``const struct attribute_group *grp``h]j)}(hjph]h!const struct attribute_group *grp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM3 hjjubj)}(hhh]jG)}(hThe attribute group to createh]hThe attribute group to create}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM3 hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]uh1jhjhM3 hj.ubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM5 hjubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM5 hjubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM8 hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_create_file (C function)c.device_create_filehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hM ubj)}(hdevice_create_fileh]j)}(hdevice_create_fileh]hdevice_create_file}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj hM ubj4)}(h9(struct device *dev, const struct device_attribute *attr)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hdeviceh]hdevice}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj\modnameN classnameNj5j5)}j 5]j#5)}j5j"sbc.device_create_fileasbuh1hhj8ubh)>}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj8ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubj4)}(h#const struct device_attribute *attrh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjɂhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjւhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jvc.device_create_fileasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hattrh]hattr}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj hM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj hM ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hM hjhhubjB)}(hhh]jG)}(h'create sysfs attribute file for device.h]h'create sysfs attribute file for device.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjGhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj hM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjbjgjbjhjijjuh1hhhhjShNhNubjl)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor.h](jG)}(h**Parameters**h]jv)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjfubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM 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:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hj݃hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjڃubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjكhM hjubeh}(h]h ]h"]h$]h&]uh1jhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_remove_file (C function)c.device_remove_filehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hM ubj)}(hdevice_remove_fileh]j)}(hdevice_remove_fileh]hdevice_remove_file}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj,hM ubj4)}(h9(struct device *dev, const struct device_attribute *attr)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(hdeviceh]hdevice}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj{modnameN classnameNj5j5)}j 5]j#5)}j5jAsbc.device_remove_fileasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjSubj4)}(h#const struct device_attribute *attrh](h)}(hj6h]hconst}(hj̈́hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɄubh)}(h h]h }(hjڄhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɄubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjɄubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɄubh)}(hhh]j)}(hdevice_attributeh]hdevice_attribute}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.device_remove_fileasbuh1hhjɄubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjɄubj75)}(hj:5h]h*}(hj2hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjɄubj)}(hattrh]hattr}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɄubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjSubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj,hM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj,hM ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj,hM hjhhubjB)}(hhh]jG)}(hremove sysfs attribute file.h]hremove sysfs attribute file.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjfhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj,hM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hx**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjÅhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM 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)}(hjh]h#const struct device_attribute *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj݅ubj)}(hhh]jG)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubah}(h]h ]h"]h$]h&]uh1jhj݅ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$device_remove_file_self (C function)c.device_remove_file_selfhNtauh1hhjShhhNhNubh)}(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](j4)}(hj4h]hbool}(hj=hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj9hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjJhM ubj)}(hdevice_remove_file_selfh]j)}(hdevice_remove_file_selfh]hdevice_remove_file_self}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj9hhhjJhM ubj4)}(h9(struct device *dev, const struct device_attribute *attr)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5j_sbc.device_remove_file_selfasbuh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj75)}(hj:5h]h*}(hjņhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjuubj)}(hdevh]hdev}(hj҆hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjqubj4)}(h#const struct device_attribute *attrh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdevice_attributeh]hdevice_attribute}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj&modnameN classnameNj5j5)}j 5]jc.device_remove_file_selfasbuh1hhjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjPhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hattrh]hattr}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjqubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj9hhhjJhM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj5hhhjJhM ubah}(h]j0ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjJhM hj2hhubjB)}(hhh]jG)}(h0remove sysfs attribute file from its own method.h]h0remove sysfs attribute file from its own method.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjhhubah}(h]h ]h"]h$]h&]uh1jAhj2hhhjJhM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct device *dev`` device. ``const struct device_attribute *attr`` device attribute descriptor. **Description** See kernfs_remove_self() for details.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjȇh]hstruct device *dev}(hjʇhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƇubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj‡ubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj݇hM hjއubah}(h]h ]h"]h$]h&]uh1jhj‡ubeh}(h]h ]h"]h$]h&]uh1jhj݇hM hjubj)}(hE``const struct device_attribute *attr`` device attribute descriptor. h](j)}(h'``const struct device_attribute *attr``h]j)}(hjh]h#const struct device_attribute *attr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hdevice attribute descriptor.h]hdevice attribute descriptor.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hj<h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj:ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(h%See kernfs_remove_self() for details.h]h%See kernfs_remove_self() for details.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#device_create_bin_file (C function)c.device_create_bin_filehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj}hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}hhhjhM ubj)}(hdevice_create_bin_fileh]j)}(hdevice_create_bin_fileh]hdevice_create_bin_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj}hhhjhM ubj4)}(h6(struct device *dev, const struct bin_attribute *attr)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjˈhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj܈hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjوubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjވmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.device_create_bin_fileasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h const struct bin_attribute *attrh](h)}(hj6h]hconst}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]hstruct}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(h bin_attributeh]h bin_attribute}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjkmodnameN classnameNj5j5)}j 5]jc.device_create_bin_fileasbuh1hhj,ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj,ubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj}hhhjhM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjyhhhjhM ubah}(h]jtah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM hjvhhubjB)}(hhh]jG)}(h.create sysfs binary attribute file for device.h]h.create sysfs binary attribute file for device.}(hj̉hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjɉhhubah}(h]h ]h"]h$]h&]uh1jAhjvhhhjhM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj h]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj"hM hj#ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj"hM hjubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hjFh]h const struct bin_attribute *attr}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj@ubj)}(hhh]jG)}(h#device binary attribute descriptor.h]h#device binary attribute descriptor.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hM hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#device_remove_bin_file (C function)c.device_remove_bin_filehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM' ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM' ubj)}(hdevice_remove_bin_fileh]j)}(hdevice_remove_bin_fileh]hdevice_remove_bin_file}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM' ubj4)}(h6(struct device *dev, const struct bin_attribute *attr)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj݊hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjيubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjيubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jÊsbc.device_remove_bin_fileasbuh1hhjيubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjيubj75)}(hj:5h]h*}(hj)hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjيubj)}(hdevh]hdev}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjيubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjՊubj4)}(h const struct bin_attribute *attrh](h)}(hj6h]hconst}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]hstruct}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]j)}(h bin_attributeh]h bin_attribute}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.device_remove_bin_fileasbuh1hhjKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjKubj)}(hattrh]hattr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjՊubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM' ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM' ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM' hjhhubjB)}(hhh]jG)}(h"remove sysfs binary attribute fileh]h"remove sysfs binary attribute file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM' hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM' ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h|**Parameters** ``struct device *dev`` device. ``const struct bin_attribute *attr`` device binary attribute descriptor.h](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM+ hjubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj,h]hstruct device *dev}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM( hj&ubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAhM( hjBubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhM( hj#ubj)}(hH``const struct bin_attribute *attr`` device binary attribute descriptor.h](j)}(h$``const struct bin_attribute *attr``h]j)}(hjeh]h const struct bin_attribute *attr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM* hj_ubj)}(hhh]jG)}(h#device binary attribute descriptor.h]h#device binary attribute descriptor.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM) hj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhM* hj#ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_initialize (C function)c.device_initializehNtauh1hhjShhhNhNubh)}(hhh](h)}(h+void device_initialize (struct device *dev)h]h)}(h*void device_initialize(struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMD ubh)}(h h]h }(hjΌhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj͌hMD ubj)}(hdevice_initializeh]j)}(hdevice_initializeh]hdevice_initialize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj܌ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj͌hMD ubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.device_initializeasbuh1hhjubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjHhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj͌hMD ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj͌hMD ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj͌hMD hjhhubjB)}(hhh]jG)}(hinit device structure.h]hinit device structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMD hj|hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj͌hMD ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMH 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:32: ./drivers/base/core.chME hjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjٍhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjՍhME hj֍ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjՍhME hjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMG hjubjG)}(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 }(hjhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh\’s fields. In particular, get_device()/put_device() may be used for reference counting of }(hjhhhNhNubjv)}(h**dev**h]hdev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh after calling this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMG hjubjG)}(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 }(hjDhhhNhNubjv)}(h**dev**h]hdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjDubh 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 }(hjDhhhNhNubjv)}(h**dev**h]hdev}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjDubh.}(hjDhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMO hjubjG)}(h**NOTE**h]jv)}(hjyh]hNOTE}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjwubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMT hjubjG)}(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 }(hjhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh- directly once you have called this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMT hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_set_name (C function)c.dev_set_namehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjЎhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj̎hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubh)}(h h]h }(hjߎhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̎hhhjގhM ubj)}(h dev_set_nameh]j)}(h dev_set_nameh]h dev_set_name}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj̎hhhjގhM ubj4)}(h*(struct device *dev, const char *fmt, ...)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hdeviceh]hdevice}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj-modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.dev_set_nameasbuh1hhj ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj75)}(hj:5h]h*}(hjYhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj ubj)}(hdevh]hdev}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst char *fmth](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj{ubj)}(hfmth]hfmt}(hjÏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h...h]j75)}(h...h]h...}(hj܏hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj؏ubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj̎hhhjގhM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjȎhhhjގhM ubah}(h]jÎah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjގhM hjŎhhubjB)}(hhh]jG)}(hset a device nameh]hset a device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjhhubah}(h]h ]h"]h$]h&]uh1jAhjŎhhhjގhM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct device *dev`` device ``const char *fmt`` format string for the device's name ``...`` variable argumentsh](jG)}(h**Parameters**h]jv)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj&ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hj"ubj)}(hhh](j)}(h``struct device *dev`` device h](j)}(h``struct device *dev``h]j)}(hjGh]hstruct device *dev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjAubj)}(hhh]jG)}(hdeviceh]hdevice}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj\hM hj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hM hj>ubj)}(h8``const char *fmt`` format string for the device's name h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjzubj)}(hhh]jG)}(h#format string for the device's nameh]h%format string for the device’s name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhM hj>ubj)}(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:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hvariable argumentsh]hvariable arguments}(hjҐhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjϐubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjΐhM hj>ubeh}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_add (C function) c.device_addhNtauh1hhjShhhNhNubh)}(hhh](h)}(h#int device_add (struct device *dev)h]h)}(h"int device_add(struct device *dev)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM ubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj!hM ubj)}(h device_addh]j)}(h device_addh]h device_add}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj!hM ubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubh)}(hhh]j)}(hdeviceh]hdevice}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjpmodnameN classnameNj5j5)}j 5]j#5)}j5j6sb c.device_addasbuh1hhjLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjLubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjHubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj!hM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhj!hM ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj!hM hjhhubjB)}(hhh]jG)}(hadd device to device hierarchy.h]hadd device to device hierarchy.}(hjӑhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjБhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj!hM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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. 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. **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.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj)hM hj*ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj)hM hj ubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjMubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(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.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(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 }(hjthhhNhNubjv)}(h**dev**h]hdev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjtubh 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.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(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 }(hjhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhN have been dropped.) Allocate and register a fresh new struct device instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(hRule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has *not* succeeded, use *only* put_device() to drop the reference count.h](h}Rule of thumb is: if device_add() succeeds, you should call device_del() when you want to get rid of it. If device_add() has }(hjhhhNhNubhemphasis)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh succeeded, use }(hjhhhNhNubj)}(h*only*h]honly}(hjҒhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh* put_device() to drop the reference count.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(h**NOTE**h]jv)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubjG)}(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 }(hjhhhNhNubjv)}(h**dev**h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhv after calling this function, even if it returned an error! Always use put_device() to give up your reference instead.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_register (C function)c.device_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(h(int device_register (struct device *dev)h]h)}(h'int device_register(struct device *dev)h](j4)}(hinth]hint}(hjDhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj@hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhjRhMubj)}(hdevice_registerh]j)}(hdevice_registerh]hdevice_register}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj@hhhjRhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jgsbc.device_registerasbuh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj75)}(hj:5h]h*}(hj͓hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj}ubj)}(hdevh]hdev}(hjړhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjyubah}(h]h ]h"]h$]h&]j+j,uh1j4hj@hhhjRhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj<hhhjRhMubah}(h]j7ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjRhMhj9hhubjB)}(hhh]jG)}(h"register a device with the system.h]h"register a device with the system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhj9hhhjRhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj&h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj$ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj)}(hhh]j)}(h7``struct device *dev`` pointer to the device structure h](j)}(h``struct device *dev``h]j)}(hjEh]hstruct device *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj?ubj)}(hhh]jG)}(hpointer to the device structureh]hpointer to the device structure}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj~ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubjG)}(h**NOTE**h]jv)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubjG)}(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̔hhhNhNubjv)}(h**dev**h]hdev}(hjԔhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj̔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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌget_device (C function) c.get_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h/struct device * get_device (struct device *dev)h]h)}(h-struct device *get_device(struct device *dev)h](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubh)}(hhh]j)}(hdeviceh]hdevice}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj.modnameN classnameNj5j5)}j 5]j#5)}j5 get_devicesb c.get_deviceasbuh1hhj hhhjhMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubj75)}(hj:5h]h*}(hj[hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj hhhjhMubj)}(h get_deviceh]j)}(hjJh]h get_device}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jH c.get_deviceasbuh1hhjubh)}(h h]h }(hjÕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjѕhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjޕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hj hhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h%increment reference count for device.h]h%increment reference count for device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj(ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjIh]hstruct device *dev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjCubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj$ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌput_device (C function) c.put_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h$void put_device (struct device *dev)h]h)}(h#void put_device(struct device *dev)h](j4)}(hvoidh]hvoid}(hjɖhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjŖhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjؖhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjŖhhhjזhMubj)}(h put_deviceh]j)}(h put_deviceh]h put_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjŖhhhjזhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj&modnameN classnameNj5j5)}j 5]j#5)}j5jsb c.put_deviceasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjRhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjŖhhhjזhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjזhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjזhMhjhhubjB)}(hhh]jG)}(hdecrement reference count.h]hdecrement reference count.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjזhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h<**Parameters** ``struct device *dev`` device in question.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(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:32: ./drivers/base/core.chMhjėubj)}(hhh]jG)}(hdevice in question.h]hdevice in question.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubah}(h]h ]h"]h$]h&]uh1jhjėubeh}(h]h ]h"]h$]h&]uh1jhjߗhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_del (C function) c.device_delhNtauh1hhjShhhNhNubh)}(hhh](h)}(h$void device_del (struct device *dev)h]h)}(h#void device_del(struct device *dev)h](j4)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj2hMubj)}(h device_delh]j)}(h device_delh]h device_del}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhj2hMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jGsb c.device_delasbuh1hhj]ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj]ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjYubah}(h]h ]h"]h$]h&]j+j,uh1j4hj hhhj2hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj2hMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj2hMhjhhubjB)}(hhh]jG)}(hdelete device from system.h]hdelete device from system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj2hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj%h]hstruct device *dev}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj^ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(h**NOTE**h]jv)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_unregister (C function)c.device_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h+void device_unregister (struct device *dev)h]h)}(h*void device_unregister(struct device *dev)h](j4)}(hvoidh]hvoid}(hj̙hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjșhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMEubh)}(h h]h }(hjۙhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjșhhhjڙhMEubj)}(hdevice_unregisterh]j)}(hdevice_unregisterh]hdevice_unregister}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjșhhhjڙhMEubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj)modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.device_unregisterasbuh1hhjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjUhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjșhhhjڙhMEubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjęhhhjڙhMEubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjڙhMEhjhhubjB)}(hhh]jG)}(hunregister device from system.h]hunregister device from system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjڙhMEubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMIhjubj)}(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:32: ./drivers/base/core.chMFhjǚubj)}(hhh]jG)}(hdevice going away.h]hdevice going away.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMFhjubah}(h]h ]h"]h$]h&]uh1jhjǚubeh}(h]h ]h"]h$]h&]uh1jhjhMFhjĚubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMHhjubjG)}(hXlWe do this in two parts, like we do device_register(). First, we remove it from all the subsystems with device_del(), then we decrement the reference count via put_device(). If that is the final reference count, the device will be cleaned up via device_release() above. Otherwise, the structure will stick around until the final reference to the device is dropped.h]hXlWe do this in two parts, like we do device_register(). First, we remove it from all the subsystems with device_del(), then we decrement the reference count via put_device(). If that is the final reference count, the device will be cleaned up via device_release() above. Otherwise, the structure will stick around until the final reference to the device is dropped.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMHhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"device_for_each_child (C function)c.device_for_each_childhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjMhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjIhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIhhhj[hMubj)}(hdevice_for_each_childh]j)}(hdevice_for_each_childh]hdevice_for_each_child}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjIhhhj[hMubj4)}(h5(struct device *parent, void *data, device_iter_t fn)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jpsbc.device_for_each_childasbuh1hhjubh)}(h h]h }(hjțhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj֛hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdatah]hdata}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hdevice_iter_t fnh](h)}(hhh]j)}(h device_iter_th]h device_iter_t}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjCmodnameN classnameNj5j5)}j 5]jěc.device_for_each_childasbuh1hhj:ubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hfnh]hfn}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjIhhhj[hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjEhhhj[hMubah}(h]j@ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj[hMhjBhhubjB)}(hhh]jG)}(hdevice child iterator.h]hdevice child iterator.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjBhhhj[hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hj؜h]hstruct device *parent}(hjڜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj֜ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjҜubj)}(hhh]jG)}(hparent struct device.h]hparent struct device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjҜubeh}(h]h ]h"]h$]h&]uh1jhjhMhjϜubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj ubj)}(hhh]jG)}(hdata for the callback.h]hdata for the callback.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjϜubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjJh]hdevice_iter_t fn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjDubj)}(hhh]jG)}(h&function to be called for each device.h]h&function to be called for each device.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjϜubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hjhhhNhNubjv)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh’s child devices, and call }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh for each, passing it }(hjhhhNhNubjv)}(h**data**h]hdata}(hjǝhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(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 }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhT each time. If it returns anything other than 0, we break out and return that value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*device_for_each_child_reverse (C function)c.device_for_each_child_reversehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj!hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj/hMubj)}(hdevice_for_each_child_reverseh]j)}(hdevice_for_each_child_reverseh]hdevice_for_each_child_reverse}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj/hMubj4)}(h5(struct device *parent, void *data, device_iter_t fn)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj~modnameN classnameNj5j5)}j 5]j#5)}j5jDsbc.device_for_each_child_reverseasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjZubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hjОhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj̞ubh)}(h h]h }(hjޞhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̞ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj̞ubj)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̞ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubj4)}(hdevice_iter_t fnh](h)}(hhh]j)}(h device_iter_th]h device_iter_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.device_for_each_child_reverseasbuh1hhjubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfnh]hfn}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj/hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj/hMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj/hMhjhhubjB)}(hhh]jG)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj/hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hparent struct device.h]hparent struct device.}(hjşhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjŸubah}(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)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjߟubj)}(hhh]jG)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjߟubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h&function to be called for each device.h]h&function to be called for each device.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjWubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(hWIterate over **parent**'s child devices, and call **fn** for each, passing it **data**.h](h Iterate over }(hjohhhNhNubjv)}(h **parent**h]hparent}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjoubh’s child devices, and call }(hjohhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjoubh for each, passing it }(hjohhhNhNubjv)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(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 }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhT each time. If it returns anything other than 0, we break out and return that value.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ/device_for_each_child_reverse_from (C function)$c.device_for_each_child_reverse_fromhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h"device_for_each_child_reverse_fromh]j)}(h"device_for_each_child_reverse_fromh]h"device_for_each_child_reverse_from}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(hJ(struct device *parent, struct device *from, void *data, device_iter_t fn)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjRmodnameN classnameNj5j5)}j 5]j#5)}j5jsb$c.device_for_each_child_reverse_fromasbuh1hhj.ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj75)}(hj:5h]h*}(hj~hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj.ubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*ubj4)}(hstruct device *fromh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj¡hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjġmodnameN classnameNj5j5)}j 5]jl$c.device_for_each_child_reverse_fromasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*ubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj0hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdatah]hdata}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*ubj4)}(hdevice_iter_t fnh](h)}(hhh]j)}(h device_iter_th]h device_iter_t}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj[modnameN classnameNj5j5)}j 5]jl$c.device_for_each_child_reverse_fromasbuh1hhjRubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hfnh]hfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h(device child iterator in reversed order.h]h(device child iterator in reversed order.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjǢjgjǢjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjѢh]h Parameters}(hjӢhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjϢubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjˢubj)}(hhh](j)}(h0``struct device *parent`` parent struct device. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hparent struct device.h]hparent struct device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``struct device *from`` optional starting point in child list h](j)}(h``struct device *from``h]j)}(hj)h]hstruct device *from}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj#ubj)}(hhh]jG)}(h%optional starting point in child listh]h%optional starting point in child list}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjbh]h void *data}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj\ubj)}(hhh]jG)}(hdata for the callback.h]hdata for the callback.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h&function to be called for each device.h]h&function to be called for each device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjˢubjG)}(h**Description**h]jv)}(hj֣h]h Description}(hjأhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjԣubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjˢubjG)}(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 }(hjhhhNhNubjv)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh ’s child devices, starting at }(hjhhhNhNubjv)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh , and call }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh for each, passing it }(hjhhhNhNubjv)}(h**data**h]hdata}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhC. This helper is identical to device_for_each_child_reverse() when }(hjhhhNhNubjv)}(h**from**h]hfrom}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh is NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjˢubjG)}(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](jv)}(h**fn**h]hfn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjUubh 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();}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjˢubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_find_child (C function)c.device_find_childhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5device_find_childsbc.device_find_childasbuh1hhjhhhjhMubh)}(h h]h }(hjҤhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhMubj)}(hdevice_find_childh]j)}(hjϤh]hdevice_find_child}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h?(struct device *parent, const void *data, device_match_t match)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj,modnameN classnameNj5j5)}j 5]jͤc.device_find_childasbuh1hhjubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjVhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hparenth]hparent}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst void *datah](h)}(hj6h]hconst}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjxubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjxubj)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hdevice_match_t matchh](h)}(hhh]j)}(hdevice_match_th]hdevice_match_t}(hjܥhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj٥ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjޥmodnameN classnameNj5j5)}j 5]jͤc.device_find_childasbuh1hhjեubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjեubj)}(hmatchh]hmatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjեubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj/hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjJjgjJjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjRubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjNubj)}(hhh](j)}(h/``struct device *parent`` parent struct device h](j)}(h``struct device *parent``h]j)}(hjsh]hstruct device *parent}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjmubj)}(hhh]jG)}(hparent struct deviceh]hparent struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(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:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hData to pass to match functionh]hData to pass to match function}(hjŦhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhj¦ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjh]hdevice_match_t match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjߦubj)}(hhh]jG)}(h!Callback function to check deviceh]h!Callback function to check device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjߦubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubeh}(h]h ]h"]h$]h&]uh1jhjNubjG)}(h**Description**h]jv)}(hj h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjNubjG)}(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 }(hj6hhhNhNubjv)}(h **match**h]hmatch}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj6ubh callback.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjNubjG)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjNubjG)}(h**NOTE**h]jv)}(hjhh]hNOTE}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjfubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjNubjG)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#__root_device_register (C function)c.__root_device_registerhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hdeviceh]hdevice}(hj̧hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɧubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjΧmodnameN classnameNj5j5)}j 5]j#5)}j5__root_device_registersbc.__root_device_registerasbuh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhMubj)}(h__root_device_registerh]j)}(hjh]h__root_device_register}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h((const char *name, struct module *owner)h](j4)}(hconst char *nameh](h)}(hj6h]hconst}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj4)}(hcharh]hchar}(hjBhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj#ubh)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj75)}(hj:5h]h*}(hj^hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj#ubj)}(hnameh]hname}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct module *ownerh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.__root_device_registerasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjΨhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hownerh]howner}(hjۨhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h#allocate and register a root deviceh]h#allocate and register a root device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj%ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubj)}(hhh](j)}(h&``const char *name`` root device name h](j)}(h``const char *name``h]j)}(hjFh]hconst char *name}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj@ubj)}(hhh]jG)}(hroot device nameh]hroot device name}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj[hMhj\ubah}(h]h ]h"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hMhj=ubj)}(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&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjyubj)}(hhh]jG)}(h4owner module of the root device, usually THIS_MODULEh]h4owner module of the root device, usually THIS_MODULE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjyubeh}(h]h ]h"]h$]h&]uh1jhjhMhj=ubeh}(h]h ]h"]h$]h&]uh1jhj!ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubjG)}(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 }(hjhhhNhNubjv)}(h **owner**h]howner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh directory in sysfs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubjG)}(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 ](jej`c-typeeh"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejedeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubh+ pointer on success, or ERR_PTR() on error.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhj6hMhj!ubjG)}(h**Note**h]jv)}(hjCh]hNote}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjAubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubjG)}(h0You probably want to use root_device_register().h]h0You probably want to use root_device_register().}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#root_device_unregister (C function)c.root_device_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h0void root_device_unregister (struct device *dev)h]h)}(h/void root_device_unregister(struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hroot_device_unregisterh]j)}(hroot_device_unregisterh]hroot_device_unregister}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjŪhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjҪhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.root_device_unregisterasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]j{ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhj}hhubjB)}(hhh]jG)}(h!unregister and free a root deviceh]h!unregister and free a root device}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjEhhubah}(h]h ]h"]h$]h&]uh1jAhj}hhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj`jgj`jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjjh]h Parameters}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjhubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubj)}(hhh]j)}(h)``struct device *dev`` device going away h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hdevice going awayh]hdevice going away}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubjG)}(h**Description**h]jv)}(hjīh]h Description}(hjƫhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj«ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_create (C function)c.device_createhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM"ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM"ubh)}(hhh]j)}(hdeviceh]hdevice}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj*modnameN classnameNj5j5)}j 5]j#5)}j5 device_createsbc.device_createasbuh1hhjhhhjhM"ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM"ubj75)}(hj:5h]h*}(hjWhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhM"ubj)}(h device_createh]j)}(hjFh]h device_create}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM"ubj4)}(hc(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const char *fmt, ...)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jDc.device_createasbuh1hhjubh)}(h h]h }(hjڬhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{ubj4)}(hstruct device *parenth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hdeviceh]hdevice}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj.modnameN classnameNj5j5)}j 5]jDc.device_createasbuh1hhj ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj75)}(hj:5h]h*}(hjXhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj ubj)}(hparenth]hparent}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{ubj4)}(h dev_t devth](h)}(hhh]j)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jDc.device_createasbuh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{ubj4)}(h void *drvdatah](j4)}(hvoidh]hvoid}(hjƭhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj­ubh)}(h h]h }(hjԭhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj­ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj­ubj)}(hdrvdatah]hdrvdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj­ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{ubj4)}(hconst char *fmth](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hcharh]hchar}(hj#hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj?hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfmth]hfmt}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{ubj4)}(h...h]j75)}(hjޏh]h...}(hjehhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjaubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj{ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM"ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM"ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM"hjhhubjB)}(hhh]jG)}(h,creates a device and registers it with sysfsh]h,creates a device and registers it with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM"hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM"ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM&hjubj)}(hhh](j)}(hc``const struct class *class`` pointer to the struct class that this device should be registered to h](j)}(h``const struct class *class``h]j)}(hjϮh]hconst struct class *class}(hjѮhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͮubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM#hjɮubj)}(hhh]jG)}(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&]uh1jFhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhjɮubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjƮubj)}(hY``struct device *parent`` pointer to the parent struct device of this new device, if any h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM$hjubj)}(hhh]jG)}(h>pointer to the parent struct device of this new device, if anyh]h>pointer to the parent struct device of this new device, if any}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjƮubj)}(h9``dev_t devt`` the dev_t for the char device to be added h](j)}(h``dev_t devt``h]j)}(hjAh]h dev_t devt}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM%hj;ubj)}(hhh]jG)}(h)the dev_t for the char device to be addedh]h)the dev_t for the char device to be added}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjVhM%hjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhjVhM%hjƮubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hjzh]h void *drvdata}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM&hjtubj)}(hhh]jG)}(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&]uh1jFhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjƮubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM'hjubj)}(hhh]jG)}(hstring for the device's nameh]hstring for the device’s name}(hj̯hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjȯ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)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubj)}(hhh]jG)}(hvariable argumentsh]hvariable arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjƮubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj%ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubjG)}(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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM)hjubjG)}(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.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM,hjubjG)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj[hhhNhNubh)}(h :c:type:`struct device `h]j)}(hjeh]h struct device}(hjghhhNhNubah}(h]h ](jej`c-typeeh"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejedeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM4hj[ubh+ pointer on success, or ERR_PTR() on error.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhjhM4hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&device_create_with_groups (C function)c.device_create_with_groupshNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMEubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMEubh)}(hhh]j)}(hdeviceh]hdevice}(hj̰hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɰubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjΰmodnameN classnameNj5j5)}j 5]j#5)}j5device_create_with_groupssbc.device_create_with_groupsasbuh1hhjhhhjhMEubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMEubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhMEubj)}(hdevice_create_with_groupsh]j)}(hjh]hdevice_create_with_groups}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMEubj4)}(h(const struct class *class, struct device *parent, dev_t devt, void *drvdata, const struct attribute_group **groups, const char *fmt, ...)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hhh]hstruct}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hhh]j)}(hclassh]hclass}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjbmodnameN classnameNj5j5)}j 5]jc.device_create_with_groupsasbuh1hhj#ubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj#ubj)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *parenth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjбhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjͱubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjұmodnameN classnameNj5j5)}j 5]jc.device_create_with_groupsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hparenth]hparent}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h dev_t devth](h)}(hhh]j)}(hdev_th]hdev_t}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj'modnameN classnameNj5j5)}j 5]jc.device_create_with_groupsasbuh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdevth]hdevt}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h void *drvdatah](j4)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjfubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjfubj)}(hdrvdatah]hdrvdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h%const struct attribute_group **groupsh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjDzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjԲhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.device_create_with_groupsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hgroupsh]hgroups}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst char *fmth](h)}(hj6h]hconst}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj4)}(hcharh]hchar}(hj_hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj@ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj75)}(hj:5h]h*}(hj{hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj@ubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h...h]j75)}(hjޏh]h...}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMEubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMEubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMEhjhhubjB)}(hhh]jG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMEhjdzhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMEubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMIhjubj)}(hhh](j)}(hc``const struct class *class`` pointer to the struct class that this device should be registered to h](j)}(h``const struct class *class``h]j)}(hj h]hconst struct class *class}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMFhjubj)}(hhh]jG)}(hDpointer to the struct class that this device should be registered toh]hDpointer to the struct class that this device should be registered to}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hMFhj!ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMFhjubj)}(hY``struct device *parent`` pointer to the parent struct device of this new device, if any h](j)}(h``struct device *parent``h]j)}(hjDh]hstruct device *parent}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMGhj>ubj)}(hhh]jG)}(h>pointer to the parent struct device of this new device, if anyh]h>pointer to the parent struct device of this new device, if any}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjYhMGhjZubah}(h]h ]h"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]uh1jhjYhMGhjubj)}(h9``dev_t devt`` the dev_t for the char device to be added h](j)}(h``dev_t devt``h]j)}(hj}h]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMHhjwubj)}(hhh]jG)}(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&]uh1jFhjhMHhjubah}(h]h ]h"]h$]h&]uh1jhjwubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubj)}(hC``void *drvdata`` the data to be added to the device for callbacks h](j)}(h``void *drvdata``h]j)}(hjh]h void *drvdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMIhjubj)}(hhh]jG)}(h0the data to be added to the device for callbacksh]h0the data to be added to the device for callbacks}(hjϴhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj˴hMIhj̴ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj˴hMIhjubj)}(ha``const struct attribute_group **groups`` NULL-terminated list of attribute groups to be created h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMJhjubj)}(hhh]jG)}(h6NULL-terminated list of attribute groups to be createdh]h6NULL-terminated list of attribute groups to be created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMJhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubj)}(h1``const char *fmt`` string for the device's name h](j)}(h``const char *fmt``h]j)}(hj(h]hconst char *fmt}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMKhj"ubj)}(hhh]jG)}(hstring for the device's nameh]hstring for the device’s name}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj=hMKhj>ubah}(h]h ]h"]h$]h&]uh1jhj"ubeh}(h]h ]h"]h$]h&]uh1jhj=hMKhjubj)}(h``...`` variable arguments h](j)}(h``...``h]j)}(hjah]h...}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhj[ubj)}(hhh]jG)}(hvariable argumentsh]hvariable arguments}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjvhKhjwubah}(h]h ]h"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chKhjubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMMhjubjG)}(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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMRhjubjG)}(hSReturns :c:type:`struct device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjеhhhNhNubh)}(h :c:type:`struct device `h]j)}(hjڵh]h struct device}(hjܵhhhNhNubah}(h]h ](jej`c-typeeh"]h$]h&]uh1jhjصubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejedeviceuh1hh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMZhjеubh+ pointer on success, or ERR_PTR() on error.}(hjеhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhjhMZhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_destroy (C function)c.device_destroyhNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMnubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj0hMnubj)}(hdevice_destroyh]j)}(hdevice_destroyh]hdevice_destroy}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj0hMnubj4)}(h'(const struct class *class, dev_t devt)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]hstruct}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jEsbc.device_destroyasbuh1hhj[ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj75)}(hj:5h]h*}(hjƶhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj[ubj)}(hclassh]hclass}(hjӶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjWubj4)}(h dev_t devth](h)}(hhh]j)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.device_destroyasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjWubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj0hMnubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj0hMnubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj0hMnhjhhubjB)}(hhh]jG)}(h6removes a device that was created with device_create()h]h6removes a device that was created with device_create()}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMnhjBhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj0hMnubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj]jgj]jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjgh]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1juhjeubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrhjaubj)}(hhh](j)}(h_``const struct class *class`` pointer to the struct class that this device was registered with h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMohjubj)}(hhh]jG)}(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&]uh1jFhjhMohjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMohj}ubj)}(hF``dev_t devt`` the dev_t of the device that was previously registered h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMphjubj)}(hhh]jG)}(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&]uh1jFhjԷhMphjշubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԷhMphj}ubeh}(h]h ]h"]h$]h&]uh1jhjaubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrhjaubjG)}(h]This call unregisters and cleans up a device that was created with a call to device_create().h]h]This call unregisters and cleans up a device that was created with a call to device_create().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrhjaubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_rename (C function)c.device_renamehNtauh1hhjShhhNhNubh)}(hhh](h)}(hj?)j@huh1hhjMhMhj4hhubjB)}(hhh]jG)}(hrenames a deviceh]hrenames a device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjYhhubah}(h]h ]h"]h$]h&]uh1jAhj4hhhjMhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjtjgjtjhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct device *dev`` the pointer to the struct device to be renamed ``const char *new_name`` the new name of the device **Description** It is the responsibility of the caller to provide mutual exclusion between two different calls of device_rename on the same device to ensure that new_name is valid and won't conflict with other devices. However, if you're writing new code, do not call this function. The following text from Kay Sievers offers some insight: Renaming devices is racy at many levels, symlinks and other stuff are not replaced atomically, and you get a "move" uevent, but it's not easy to connect the event to the old and new device. Device nodes are not renamed at all, there isn't even support for that in the kernel now. In the meantime, during renaming, your target name might be taken by another driver, creating conflicts. Or the old name is taken directly after you renamed it -- then you get events for the same DEVPATH, before you even see the "move" event. It's just a mess, and nothing new should ever rely on kernel device renaming. Besides that, it's not even implemented now for other things than (driver-core wise very simple) network devices. Make up a "real" name in the driver before you register anything, or add some other attributes for userspace to find the device, or use udev to add symlinks -- but never rename kernel devices later, it's a complete mess. We don't even want to get into that and try to implement the missing pieces in the core. We really have other pieces to fix in the driver core mess. :) **Note** given that some subsystems (networking and infiniband) use this function, with no immediate plans for this to change, we cannot assume or require that this function not be called at all.h](jG)}(h**Parameters**h]jv)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj|ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubj)}(hhh](j)}(hF``struct device *dev`` the pointer to the struct device to be renamed h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h.the pointer to the struct device to be renamedh]h.the pointer to the struct device to be renamed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``const char *new_name`` the new name of the device h](j)}(h``const char *new_name``h]j)}(hjֹh]hconst char *new_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:32: ./drivers/base/core.chMhjйubj)}(hhh]jG)}(hthe new name of the deviceh]hthe new name of the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjйubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjxubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(hIt is the responsibility of the caller to provide mutual exclusion between two different calls of device_rename on the same device to ensure that new_name is valid and won't conflict with other devices.h]hIt is the responsibility of the caller to provide mutual exclusion between two different calls of device_rename on the same device to ensure that new_name is valid and won’t conflict with other devices.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(hxHowever, if you're writing new code, do not call this function. The following text from Kay Sievers offers some insight:h]hzHowever, if you’re writing new code, do not call this function. The following text from Kay Sievers offers some insight:}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(hXRenaming devices is racy at many levels, symlinks and other stuff are not replaced atomically, and you get a "move" uevent, but it's not easy to connect the event to the old and new device. Device nodes are not renamed at all, there isn't even support for that in the kernel now.h]hXRenaming devices is racy at many levels, symlinks and other stuff are not replaced atomically, and you get a “move” uevent, but it’s not easy to connect the event to the old and new device. Device nodes are not renamed at all, there isn’t even support for that in the kernel now.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(hXIn the meantime, during renaming, your target name might be taken by another driver, creating conflicts. Or the old name is taken directly after you renamed it -- then you get events for the same DEVPATH, before you even see the "move" event. It's just a mess, and nothing new should ever rely on kernel device renaming. Besides that, it's not even implemented now for other things than (driver-core wise very simple) network devices.h]hXIn the meantime, during renaming, your target name might be taken by another driver, creating conflicts. Or the old name is taken directly after you renamed it -- then you get events for the same DEVPATH, before you even see the “move” event. It’s just a mess, and nothing new should ever rely on kernel device renaming. Besides that, it’s not even implemented now for other things than (driver-core wise very simple) network devices.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(hXtMake up a "real" name in the driver before you register anything, or add some other attributes for userspace to find the device, or use udev to add symlinks -- but never rename kernel devices later, it's a complete mess. We don't even want to get into that and try to implement the missing pieces in the core. We really have other pieces to fix in the driver core mess. :)h]hX|Make up a “real” name in the driver before you register anything, or add some other attributes for userspace to find the device, or use udev to add symlinks -- but never rename kernel devices later, it’s a complete mess. We don’t even want to get into that and try to implement the missing pieces in the core. We really have other pieces to fix in the driver core mess. :)}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(h**Note**h]jv)}(hjth]hNote}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjrubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubjG)}(hgiven that some subsystems (networking and infiniband) use this function, with no immediate plans for this to change, we cannot assume or require that this function not be called at all.h]hgiven that some subsystems (networking and infiniband) use this function, with no immediate plans for this to change, we cannot assume or require that this function not be called at all.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_move (C function) c.device_movehNtauh1hhjShhhNhNubh)}(hhh](h)}(hYint device_move (struct device *dev, struct device *new_parent, enum dpm_order dpm_order)h]h)}(hXint device_move(struct device *dev, struct device *new_parent, enum dpm_order dpm_order)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjȺhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjǺhMubj)}(h device_moveh]j)}(h device_moveh]h device_move}(hjںhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֺubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjǺhMubj4)}(hI(struct device *dev, struct device *new_parent, enum dpm_order dpm_order)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jܺsb c.device_moveasbuh1hhjubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjBhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *new_parenth](h)}(hhh]hstruct}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j0 c.device_moveasbuh1hhjdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjdubj)}(h new_parenth]h new_parent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(henum dpm_order dpm_orderh](h)}(hjNh]henum}(hjػhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjԻubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjԻubh)}(hhh]j)}(h dpm_orderh]h dpm_order}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j0 c.device_moveasbuh1hhjԻubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjԻubj)}(h dpm_orderh]h dpm_order}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԻubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjǺhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjǺhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjǺhMhjhhubjB)}(hhh]jG)}(hmoves a device to a new parenth]hmoves a device to a new parent}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjIhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjǺhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjdjgjdjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1juhjlubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhubj)}(hhh](j)}(hD``struct device *dev`` the pointer to the struct device to be moved h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(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&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h*the new parent of the device (can be NULL)h]h*the new parent of the device (can be NULL)}(hj߼hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjۼhMhjܼubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjۼhMhjubj)}(h8``enum dpm_order dpm_order`` how to reorder the dpm_listh](j)}(h``enum dpm_order dpm_order``h]j)}(hjh]henum dpm_order dpm_order}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hhow to reorder the dpm_listh]hhow to reorder the dpm_list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ device_change_owner (C function)c.device_change_ownerhNtauh1hhjShhhNhNubh)}(hhh](h)}(hFint device_change_owner (struct device *dev, kuid_t kuid, kgid_t kgid)h]h)}(hEint device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid)h](j4)}(hinth]hint}(hjYhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjUhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMmubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghMmubj)}(hdevice_change_ownerh]j)}(hdevice_change_ownerh]hdevice_change_owner}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjUhhhjghMmubj4)}(h.(struct device *dev, kuid_t kuid, kgid_t kgid)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5j|sbc.device_change_ownerasbuh1hhjubh)}(h h]h }(hjԽhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h kuid_t kuidh](h)}(hhh]j)}(hkuid_th]hkuid_t}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]jнc.device_change_ownerasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hkuidh]hkuid}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h kgid_t kgidh](h)}(hhh]j)}(hkgid_th]hkgid_t}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjUmodnameN classnameNj5j5)}j 5]jнc.device_change_ownerasbuh1hhjLubh)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj)}(hkgidh]hkgid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjUhhhjghMmubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjQhhhjghMmubah}(h]jLah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjghMmhjNhhubjB)}(hhh]jG)}(h'change the owner of an existing device.h]h'change the owner of an existing device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMmhjhhubah}(h]h ]h"]h$]h&]uh1jAhjNhhhjghMmubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hX[**Parameters** ``struct device *dev`` device. ``kuid_t kuid`` new owner's kuid ``kgid_t kgid`` new owner's kgid **Description** This changes the owner of **dev** and its corresponding sysfs entries to **kuid**/**kgid**. This function closely mirrors how **dev** was added via driver core. Returns 0 on success or error code on failure.h](jG)}(h**Parameters**h]jv)}(hj˾h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjɾubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMqhjžubj)}(hhh](j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMnhjubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMnhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMnhjubj)}(h!``kuid_t kuid`` new owner's kuid h](j)}(h``kuid_t kuid``h]j)}(hj#h]h kuid_t kuid}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMohjubj)}(hhh]jG)}(hnew owner's kuidh]hnew owner’s kuid}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj8hMohj9ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj8hMohjubj)}(h!``kgid_t kgid`` new owner's kgid h](j)}(h``kgid_t kgid``h]j)}(hj\h]h kgid_t kgid}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMphjVubj)}(hhh]jG)}(hnew owner's kgidh]hnew owner’s kgid}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjqhMphjrubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjqhMphjubeh}(h]h ]h"]h$]h&]uh1jhjžubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrhjžubjG)}(hThis changes the owner of **dev** and its corresponding sysfs entries to **kuid**/**kgid**. This function closely mirrors how **dev** was added via driver core.h](hThis changes the owner of }(hjhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh( and its corresponding sysfs entries to }(hjhhhNhNubjv)}(h**kuid**h]hkuid}(hjǿhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh/}(hjhhhNhNubjv)}(h**kgid**h]hkgid}(hjٿhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh$. This function closely mirrors how }(hjhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh was added via driver core.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMrhjžubjG)}(h.Returns 0 on success or error code on failure.h]h.Returns 0 on success or error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMvhjžubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_err_probe (C function)c.dev_err_probehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj3hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj/hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj)}(h dev_err_probeh]j)}(h dev_err_probeh]h dev_err_probe}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj/hhhjAhMubj4)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j4)}(hconst struct device *devh](h)}(hj6h]hconst}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jVsbc.dev_err_probeasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjlubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjhubj4)}(hint errh](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(herrh]herr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjhubj4)}(hconst char *fmth](h)}(hj6h]hconst}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj4)}(hcharh]hchar}(hjMhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj.ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj75)}(hj:5h]h*}(hjihhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj.ubj)}(hfmth]hfmt}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjhubj4)}(h...h]j75)}(hjޏh]h...}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjhubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj/hhhjAhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj+hhhjAhMubah}(h]j&ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjAhMhj(hhubjB)}(hhh]jG)}(h probe error check and log helperh]h probe error check and log helper}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhj(hhhjAhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(h>``const struct device *dev`` the pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hjh]hconst struct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``int err`` error value to test h](j)}(h ``int err``h]j)}(hj2h]hint err}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj,ubj)}(hhh]jG)}(herror value to testh]herror value to test}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGhMhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjubj)}(h/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjkh]hconst char *fmt}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjeubj)}(hhh]jG)}(hprintf-style format stringh]hprintf-style format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(hXjThis helper implements common pattern present in probe functions for error checking: print debug or error message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence::h]hXiThis helper implements common pattern present in probe functions for error checking: print debug or error message depending if the error value is -EPROBE_DEFER and propagate error upwards. In case of -EPROBE_DEFER it sets also defer probe reason, which can be checked later by reading devices_deferred debugfs attribute. It replaces the following code sequence:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(h`if (err != -EPROBE_DEFER) dev_err(dev, ...); else dev_dbg(dev, ...); return err;h]h`if (err != -EPROBE_DEFER) dev_err(dev, ...); else dev_dbg(dev, ...); return err;}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(hwith::h]hwith:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(h$return dev_err_probe(dev, err, ...);h]h$return dev_err_probe(dev, err, ...);}hj"sbah}(h]h ]h"]h$]h&]j+j,uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(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 }(hj1hhhNhNubjv)}(h**err**h]herr}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj1ubhX 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.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(hReturns **err**.h](hReturns }(hjRhhhNhNubjv)}(h**err**h]herr}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjRubh.}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdev_warn_probe (C function)c.dev_warn_probehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdev_warn_probeh]j)}(hdev_warn_probeh]hdev_warn_probe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h9(const struct device *dev, int err, const char *fmt, ...)h](j4)}(hconst struct device *devh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.dev_warn_probeasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj7hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hint errh](j4)}(hinth]hint}(hj]hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjYubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj)}(herrh]herr}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst char *fmth](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h...h]j75)}(hjޏh]h...}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h probe error check and log helperh]h probe error check and log helper}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj0jgj0jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj8ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubj)}(hhh](j)}(h>``const struct device *dev`` the pointer to the struct device h](j)}(h``const struct device *dev``h]j)}(hjYh]hconst struct 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:32: ./drivers/base/core.chMhjSubj)}(hhh]jG)}(h the pointer to the struct deviceh]h the pointer to the struct device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]uh1jhjnhMhjPubj)}(h ``int err`` error value to test h](j)}(h ``int err``h]j)}(hjh]hint err}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(herror value to testh]herror value to test}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h/``const char *fmt`` printf-style format string h](j)}(h``const char *fmt``h]j)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(hprintf-style format stringh]hprintf-style format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubj)}(h4``...`` arguments as specified in the format string h](j)}(h``...``h]j)}(hjh]h...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h+arguments as specified in the format stringh]h+arguments as specified in the format string}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjPubeh}(h]h ]h"]h$]h&]uh1jhj4ubjG)}(h**Description**h]jv)}(hj?h]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj=ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubjG)}(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:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubj)}(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;}hjdsbah}(h]h ]h"]h$]h&]j+j,uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubjG)}(hwith::h]hwith:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubj)}(h%return dev_warn_probe(dev, err, ...);h]h%return dev_warn_probe(dev, err, ...);}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubjG)}(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 }(hjhhhNhNubjv)}(h**err**h]herr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhX 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&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubjG)}(hReturns **err**.h](hReturns }(hjhhhNhNubjv)}(h**err**h]herr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌset_primary_fwnode (C function)c.set_primary_fwnodehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hset_primary_fwnodeh]j)}(hset_primary_fwnodeh]hset_primary_fwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubh)}(hhh]j)}(hdeviceh]hdevice}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjPmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.set_primary_fwnodeasbuh1hhj,ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj75)}(hj:5h]h*}(hj|hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj,ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj(ubj4)}(hstruct fwnode_handle *fwnodeh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jjc.set_primary_fwnodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj(ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h3Change the primary firmware node of a given device.h]h3Change the primary firmware node of a given device.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj;jgj;jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjCubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj?ubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. 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:32: ./drivers/base/core.chMhj^ubj)}(hhh]jG)}(hDevice to handle.h]hDevice to handle.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhMhj[ubj)}(hJ``struct fwnode_handle *fwnode`` New primary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]jG)}(h(New primary firmware node of the device.h]h(New primary firmware node of the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj?ubjG)}(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 }(hjhhhNhNubjv)}(h **fwnode**h]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhI, but if a secondary firmware node of the device is present, preserve it.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj?ubj)}(hhh]j)}(hmValid fwnode cases are: - primary --> secondary --> -ENODEV - primary --> NULL - secondary --> -ENODEV - NULLh](j)}(hValid fwnode cases are:h]hValid fwnode cases are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh]h bullet_list)}(hhh](h list_item)}(h!primary --> secondary --> -ENODEVh]jG)}(hj1h]h!primary --> secondary --> -ENODEV}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj/ubah}(h]h ]h"]h$]h&]uh1j-hj*ubj.)}(hprimary --> NULLh]jG)}(hjIh]hprimary --> NULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjGubah}(h]h ]h"]h$]h&]uh1j-hj*ubj.)}(hsecondary --> -ENODEVh]jG)}(hjah]hsecondary --> -ENODEV}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$hMhj_ubah}(h]h ]h"]h$]h&]uh1j-hj*ubj.)}(hNULLh]jG)}(hjxh]hNULL}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjvubah}(h]h ]h"]h$]h&]uh1j-hj*ubeh}(h]h ]h"]h$]h&]bullet-uh1j(hj@hMhj%ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!set_secondary_fwnode (C function)c.set_secondary_fwnodehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM<ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM<ubj)}(hset_secondary_fwnodeh]j)}(hset_secondary_fwnodeh]hset_secondary_fwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM<ubj4)}(h2(struct device *dev, struct fwnode_handle *fwnode)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj%modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.set_secondary_fwnodeasbuh1hhjubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjQhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct fwnode_handle *fwnodeh](h)}(hhh]hstruct}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j?c.set_secondary_fwnodeasbuh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM<ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM<ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM<hjhhubjB)}(hhh]jG)}(h5Change the secondary firmware node of a given device.h]h5Change the secondary firmware node of a given device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM<hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM<ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM@hjubj)}(hhh](j)}(h)``struct device *dev`` Device to handle. h](j)}(h``struct device *dev``h]j)}(hj9h]hstruct device *dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM=hj3ubj)}(hhh]jG)}(hDevice to handle.h]hDevice to handle.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNhM=hjOubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhjNhM=hj0ubj)}(hL``struct fwnode_handle *fwnode`` New secondary firmware node of the device. h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjrh]hstruct fwnode_handle *fwnode}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM>hjlubj)}(hhh]jG)}(h*New secondary firmware node of the device.h]h*New secondary firmware node of the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM>hjubah}(h]h ]h"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]uh1jhjhM>hj0ubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM@hjubjG)}(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 }(hjhhhNhNubjv)}(h **fwnode**h]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:. Otherwise, set the device’s firmware node pointer to }(hjhhhNhNubjv)}(h **fwnode**h]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"device_remove_of_node (C function)c.device_remove_of_nodehNtauh1hhjShhhNhNubh)}(hhh](h)}(h/void device_remove_of_node (struct device *dev)h]h)}(h.void device_remove_of_node(struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMQubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hMQubj)}(hdevice_remove_of_nodeh]j)}(hdevice_remove_of_nodeh]hdevice_remove_of_node}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj$hMQubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j)}(hdeviceh]hdevice}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjsmodnameN classnameNj5j5)}j 5]j#5)}j5j9sbc.device_remove_of_nodeasbuh1hhjOubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjOubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjKubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj$hMQubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj$hMQubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj$hMQhj hhubjB)}(hhh]jG)}(hRemove an of_node from a deviceh]hRemove an of_node from a device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jAhj hhhj$hMQubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hW**Parameters** ``struct device *dev`` device whose device tree node is being removedh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMUhjubj)}(hhh]j)}(hE``struct device *dev`` device whose device tree node is being removedh](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMWhjubj)}(hhh]jG)}(h.device whose device tree node is being removedh]h.device whose device tree node is being removed}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMRhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hMWhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_add_of_node (C function)c.device_add_of_nodehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjqhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjmhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMiubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjhMiubj)}(hdevice_add_of_nodeh]j)}(hdevice_add_of_nodeh]hdevice_add_of_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjmhhhjhMiubj4)}(h1(struct device *dev, struct device_node *of_node)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.device_add_of_nodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device_node *of_nodeh](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h device_nodeh]h device_node}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj@modnameN classnameNj5j5)}j 5]jc.device_add_of_nodeasbuh1hhjubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hof_nodeh]hof_node}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjmhhhjhMiubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjihhhjhMiubah}(h]jdah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMihjfhhubjB)}(hhh]jG)}(h$Add an of_node to an existing deviceh]h$Add an of_node to an existing device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMihjhhubah}(h]h ]h"]h$]h&]uh1jAhjfhhhjhMiubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMmhjubj)}(hhh](j)}(hD``struct device *dev`` device whose device tree node is being added h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMjhjubj)}(hhh]jG)}(h,device whose device tree node is being addedh]h,device whose device tree node is being added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMjhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhjubj)}(h/``struct device_node *of_node`` of_node to add h](j)}(h``struct device_node *of_node``h]j)}(hjh]hstruct device_node *of_node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMkhjubj)}(hhh]jG)}(hof_node to addh]hof_node to add}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj0hMkhj1ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hMkhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h **Return**h]jv)}(hjVh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjTubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMmhjubjG)}(h&0 on success or error code on failure.h]h&0 on success or error code on failure.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMmhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(device_set_of_node_from_dev (C function)c.device_set_of_node_from_devhNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdevice_set_of_node_from_devh]j)}(hdevice_set_of_node_from_devh]hdevice_set_of_node_from_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h/(struct device *dev, const struct device *dev2)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.device_set_of_node_from_devasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj$hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst struct device *dev2h](h)}(hj6h]hconst}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]hstruct}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.device_set_of_node_from_devasbuh1hhjFubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjFubj)}(hdev2h]hdev2}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h(reuse device-tree node of another deviceh]h(reuse device-tree node of another device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubj)}(hhh](j)}(hB``struct device *dev`` device whose device-tree node is being set h](j)}(h``struct device *dev``h]j)}(hj'h]hstruct device *dev}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhj!ubj)}(hhh]jG)}(h*device whose device-tree node is being seth]h*device whose device-tree node is being set}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj<hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hMhjubj)}(hL``const struct device *dev2`` device whose device-tree node is being reused h](j)}(h``const struct device *dev2``h]j)}(hj`h]hconst struct device *dev2}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjZubj)}(hhh]jG)}(h-device whose device-tree node is being reusedh]h-device whose device-tree node is being reused}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuhMhjvubah}(h]h ]h"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubjG)}(hlTakes another reference to the new device-tree node after first dropping any reference held to the old node.h]hlTakes another reference to the new device-tree node after first dropping any reference held to the old node.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:32: ./drivers/base/core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!register_syscore_ops (C function)c.register_syscore_opshNtauh1hhjShhhNhNubh)}(hhh](h)}(h3void register_syscore_ops (struct syscore_ops *ops)h]h)}(h2void register_syscore_ops(struct syscore_ops *ops)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hregister_syscore_opsh]j)}(hregister_syscore_opsh]hregister_syscore_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h(struct syscore_ops *ops)h]j4)}(hstruct syscore_ops *opsh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h syscore_opsh]h syscore_ops}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj=modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.register_syscore_opsasbuh1hhjubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjihhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hopsh]hops}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(h)Register a set of system core operations.h]h)Register a set of system core operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hQ**Parameters** ``struct syscore_ops *ops`` System core operations to register.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubj)}(hhh]j)}(h?``struct syscore_ops *ops`` System core operations to register.h](j)}(h``struct syscore_ops *ops``h]j)}(hjh]hstruct syscore_ops *ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubj)}(hhh]jG)}(h#System core operations to register.h]h#System core operations to register.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#unregister_syscore_ops (C function)c.unregister_syscore_opshNtauh1hhjShhhNhNubh)}(hhh](h)}(h5void unregister_syscore_ops (struct syscore_ops *ops)h]h)}(h4void unregister_syscore_ops(struct syscore_ops *ops)h](j4)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj7hhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhjIhKubj)}(hunregister_syscore_opsh]j)}(hunregister_syscore_opsh]hunregister_syscore_ops}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj7hhhjIhKubj4)}(h(struct syscore_ops *ops)h]j4)}(hstruct syscore_ops *opsh](h)}(hhh]hstruct}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j)}(h syscore_opsh]h syscore_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5j^sbc.unregister_syscore_opsasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjtubj)}(hopsh]hops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjpubah}(h]h ]h"]h$]h&]j+j,uh1j4hj7hhhjIhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj3hhhjIhKubah}(h]j.ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjIhKhj0hhubjB)}(hhh]jG)}(h+Unregister a set of system core operations.h]h+Unregister a set of system core operations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjhhubah}(h]h ]h"]h$]h&]uh1jAhj0hhhjIhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hS**Parameters** ``struct syscore_ops *ops`` System core operations to unregister.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK"hjubj)}(hhh]j)}(hA``struct syscore_ops *ops`` System core operations to unregister.h](j)}(h``struct syscore_ops *ops``h]j)}(hj<h]hstruct syscore_ops *ops}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK$hj6ubj)}(hhh]jG)}(h%System core operations to unregister.h]h%System core operations to unregister.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhK$hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsyscore_suspend (C function)c.syscore_suspendhNtauh1hhjShhhNhNubh)}(hhh](h)}(hint syscore_suspend (void)h]h)}(hint syscore_suspend(void)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK+ubj)}(hsyscore_suspendh]j)}(hsyscore_suspendh]hsyscore_suspend}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhK+ubj4)}(h(void)h]j4)}(hvoidh]j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhK+ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhK+ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhK+hjhhubjB)}(hhh]jG)}(h9Execute all the registered system core suspend callbacks.h]h9Execute all the registered system core suspend callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK+hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhK+ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``void`` no arguments **Description** This function is executed with one CPU on-line and disabled interrupts.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK/hjubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj>h]hvoid}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhj8ubj)}(hhh]jG)}(h no argumentsh]h no arguments}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjShKhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]uh1jhjShKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjwubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjubjG)}(hGThis function is executed with one CPU on-line and disabled interrupts.h]hGThis function is executed with one CPU on-line and disabled interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK,hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌsyscore_resume (C function)c.syscore_resumehNtauh1hhjShhhNhNubh)}(hhh](h)}(hvoid syscore_resume (void)h]h)}(hvoid syscore_resume(void)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKWubj)}(hsyscore_resumeh]j)}(hsyscore_resumeh]hsyscore_resume}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKWubj4)}(h(void)h]j4)}(hvoidh]j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubah}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKWubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKWubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKWhjhhubjB)}(hhh]jG)}(h8Execute all the registered system core resume callbacks.h]h8Execute all the registered system core resume callbacks.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKWhj"hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKWubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj=jgj=jhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``void`` no arguments **Description** This function is executed with one CPU on-line and disabled interrupts.h](jG)}(h**Parameters**h]jv)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjEubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chK[hjAubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hjfh]hvoid}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhj`ubj)}(hhh]jG)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{hKhj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hKhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKhjAubjG)}(hGThis function is executed with one CPU on-line and disabled interrupts.h]hGThis function is executed with one CPU on-line and disabled interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh`/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:35: ./drivers/base/syscore.chKXhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&class_find_device_by_name (C function)c.class_find_device_by_namehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKcubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKcubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5class_find_device_by_namesbc.class_find_device_by_nameasbuh1hhjhhhjhKcubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKcubj75)}(hj:5h]h*}(hj4hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhKcubj)}(hclass_find_device_by_nameh]j)}(hj#h]hclass_find_device_by_name}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKcubj4)}(h-(const struct class *class, const char *name)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubh)}(hhh]hstruct}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j!c.class_find_device_by_nameasbuh1hhj\ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj\ubj)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjXubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj"hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hnameh]hname}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjXubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKcubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKcubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKchjhhubjB)}(hhh]jG)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKchjVhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKcubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjqjgjqjhjijjuh1hhhhjShNhNubjl)}(hn**Parameters** ``const struct class *class`` class type ``const char *name`` name of the device to matchh](jG)}(h**Parameters**h]jv)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKghjuubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKehjubj)}(hhh]jG)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKghjubj)}(hhh]jG)}(hname of the device to matchh]hname of the device to match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubeh}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)class_find_device_by_of_node (C function)c.class_find_device_by_of_nodehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKoubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj:hKoubh)}(hhh]j)}(hdeviceh]hdevice}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjNmodnameN classnameNj5j5)}j 5]j#5)}j5class_find_device_by_of_nodesbc.class_find_device_by_of_nodeasbuh1hhj)hhhj:hKoubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj:hKoubj75)}(hj:5h]h*}(hj{hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj)hhhj:hKoubj)}(hclass_find_device_by_of_nodeh]j)}(hjjh]hclass_find_device_by_of_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj)hhhj:hKoubj4)}(h9(const struct class *class, const struct device_node *np)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jhc.class_find_device_by_of_nodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst struct device_node *nph](h)}(hj6h]hconst}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]hstruct}(hjMhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(h device_nodeh]h device_node}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmmodnameN classnameNj5j5)}j 5]jhc.class_find_device_by_of_nodeasbuh1hhj.ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj.ubj)}(hnph]hnp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj)hhhj:hKoubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj%hhhj:hKoubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj:hKohj"hhubjB)}(hhh]jG)}(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&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKohjhhubah}(h]h ]h"]h$]h&]uh1jAhj"hhhj:hKoubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h~**Parameters** ``const struct class *class`` class type ``const struct device_node *np`` of_node of the device to match.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKshjubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKqhj ubj)}(hhh]jG)}(h class typeh]h class type}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$hKqhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKqhjubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(hjHh]hconst struct device_node *np}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKshjBubj)}(hhh]jG)}(hof_node of the device to match.h]hof_node of the device to match.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKrhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKshjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(class_find_device_by_fwnode (C function)c.class_find_device_by_fwnodehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK{ubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5class_find_device_by_fwnodesbc.class_find_device_by_fwnodeasbuh1hhjhhhjhK{ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK{ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhK{ubj)}(hclass_find_device_by_fwnodeh]j)}(hjh]hclass_find_device_by_fwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhK{ubj4)}(h?(const struct class *class, const struct fwnode_handle *fwnode)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjWmodnameN classnameNj5j5)}j 5]jc.class_find_device_by_fwnodeasbuh1hhjubh)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h"const struct fwnode_handle *fwnodeh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.class_find_device_by_fwnodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhK{ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhK{ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhK{hjhhubjB)}(hhh]jG)}(hEdevice iterator for locating a particular device matching the fwnode.h]hEdevice iterator for locating a particular device matching the fwnode.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK{hj@hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhK{ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj[jgj[jhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct class *class`` class type ``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](jG)}(h**Parameters**h]jv)}(hjeh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1juhjcubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj_ubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK}hj~ubj)}(hhh]jG)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK}hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhK}hj{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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]jG)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhK~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj{ubeh}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&class_find_device_by_devt (C function)c.class_find_device_by_devthNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hKubh)}(hhh]j)}(hdeviceh]hdevice}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj8modnameN classnameNj5j5)}j 5]j#5)}j5class_find_device_by_devtsbc.class_find_device_by_devtasbuh1hhjhhhj$hKubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj$hKubj75)}(hj:5h]h*}(hjehhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhj$hKubj)}(hclass_find_device_by_devth]j)}(hjTh]hclass_find_device_by_devt}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj$hKubj4)}(h'(const struct class *class, dev_t devt)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jRc.class_find_device_by_devtasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h dev_t devth](h)}(hhh]j)}(hdev_th]hdev_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj!modnameN classnameNj5j5)}j 5]jRc.class_find_device_by_devtasbuh1hhjubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdevth]hdevt}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj$hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj$hKubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj$hKhj hhubjB)}(hhh]jG)}(hJdevice iterator for locating a particular device matching the device type.h]hJdevice iterator for locating a particular device matching the device type.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjrhhubah}(h]h ]h"]h$]h&]uh1jAhj hhhj$hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hp**Parameters** ``const struct class *class`` class type ``dev_t devt`` device type of the device to match.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]jG)}(h class typeh]h class type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hjh]h dev_t devt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh]jG)}(h#device type of the device to match.h]h#device type of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*class_find_device_by_acpi_dev (C function)c.class_find_device_by_acpi_devhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjVhKubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjjmodnameN classnameNj5j5)}j 5]j#5)}j5class_find_device_by_acpi_devsbc.class_find_device_by_acpi_devasbuh1hhjEhhhjVhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjVhKubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjEhhhjVhKubj)}(hclass_find_device_by_acpi_devh]j)}(hjh]hclass_find_device_by_acpi_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjEhhhjVhKubj4)}(h;(const struct class *class, const struct acpi_device *adev)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.class_find_device_by_acpi_devasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj(hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst struct acpi_device *adevh](h)}(hj6h]hconst}(hjNhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hhh]hstruct}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hhh]j)}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.class_find_device_by_acpi_devasbuh1hhjJubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjJubj)}(hadevh]hadev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjEhhhjVhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjAhhhjVhKubah}(h]j<ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjVhKhj>hhubjB)}(hhh]jG)}(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&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jAhj>hhhjVhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct class *class`` class type ``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjubj)}(hhh](j)}(h)``const struct class *class`` class type h](j)}(h``const struct class *class``h]j)}(hj+h]hconst struct class *class}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj%ubj)}(hhh]jG)}(h class typeh]h class type}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj@hKhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj"ubj)}(hB``const struct acpi_device *adev`` ACPI_COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hjdh]hconst struct acpi_device *adev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhj^ubj)}(hhh]jG)}(hACPI_COMPANION device to match.h]hACPI_COMPANION device to match.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhf/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:38: ./include/linux/device/class.hhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj"ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclass_create (C function)c.class_createhNtauh1hhjShhhNhNubh)}(hhh](h)}(h.struct class * class_create (const char *name)h]h)}(h,struct class *class_create(const char *name)h](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5 class_createsbc.class_createasbuh1hhjhhhjhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj75)}(hj:5h]h*}(hj hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhKubj)}(h class_createh]j)}(hjh]h class_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h(const char *name)h]j4)}(hconst char *nameh](h)}(hj6h]hconst}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj4)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj4ubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj75)}(hj:5h]h*}(hjohhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj4ubj)}(hnameh]hname}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj0ubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(hcreate a struct class structureh]hcreate a struct class structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chKhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]j)}(hE``const char *name`` pointer to a string for the name of this class. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]jG)}(h/pointer to a string for the name of this class.h]h/pointer to a string for the name of this class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(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().}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(hQReturns :c:type:`struct class ` pointer on success, or ERR_PTR() on error.h](hReturns }(hjGhhhNhNubh)}(h:c:type:`struct class `h]j)}(hjQh]h struct class}(hjShhhNhNubah}(h]h ](jej`c-typeeh"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejeclassuh1hh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjGubh+ pointer on success, or ERR_PTR() on error.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhjnhMhjubjG)}(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().}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclass_destroy (C function)c.class_destroyhNtauh1hhjShhhNhNubh)}(hhh](h)}(h,void class_destroy (const struct class *cls)h]h)}(h+void class_destroy(const struct class *cls)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM%ubj)}(h class_destroyh]j)}(h class_destroyh]h class_destroy}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM%ubj4)}(h(const struct class *cls)h]j4)}(hconst struct class *clsh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.class_destroyasbuh1hhjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjLhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclsh]hcls}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM%ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM%ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM%hjhhubjB)}(hhh]jG)}(h!destroys a struct class structureh]h!destroys a struct class structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM%hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM%ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM)hjubj)}(hhh]j)}(hP``const struct class *cls`` pointer to the struct class that is to be destroyed h](j)}(h``const struct class *cls``h]j)}(hjh]hconst struct class *cls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM&hjubj)}(hhh]jG)}(h3pointer to the struct class that is to be destroyedh]h3pointer to the struct class that is to be destroyed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM&hjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM(hjubjG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM(hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ class_dev_iter_init (C function)c.class_dev_iter_inithNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj@hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5ubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhjRhM5ubj)}(hclass_dev_iter_inith]j)}(hclass_dev_iter_inith]hclass_dev_iter_init}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj@hhhjRhM5ubj4)}(ht(struct class_dev_iter *iter, const struct class *class, const struct device *start, const struct device_type *type)h](j4)}(hstruct class_dev_iter *iterh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j)}(hclass_dev_iterh]hclass_dev_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jgsbc.class_dev_iter_initasbuh1hhj}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj}ubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjyubj4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj.modnameN classnameNj5j5)}j 5]jc.class_dev_iter_initasbuh1hhjubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjXhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjyubj4)}(hconst struct device *starth](h)}(hj6h]hconst}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.class_dev_iter_initasbuh1hhjzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjzubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjyubj4)}(hconst struct device_type *typeh](h)}(hj6h]hconst}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h device_typeh]h device_type}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjDmodnameN classnameNj5j5)}j 5]jc.class_dev_iter_initasbuh1hhjubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjnhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(htypeh]htype}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjyubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj@hhhjRhM5ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj<hhhjRhM5ubah}(h]j7ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjRhM5hj9hhubjB)}(hhh]jG)}(h initialize class device iteratorh]h initialize class device iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jAhj9hhhjRhM5ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjubj)}(hhh](j)}(h=``struct class_dev_iter *iter`` class iterator to initialize h](j)}(h``struct class_dev_iter *iter``h]j)}(hjh]hstruct class_dev_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM6hjubj)}(hhh]jG)}(hclass iterator to initializeh]hclass iterator to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM6hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM6hjubj)}(h>``const struct class *class`` the class we wanna iterate over h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM7hjubj)}(hhh]jG)}(hthe class we wanna iterate overh]hthe class we wanna iterate over}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj4hM7hj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj4hM7hjubj)}(hJ``const struct device *start`` the device to start iterating from, if any h](j)}(h``const struct device *start``h]j)}(hjXh]hconst struct device *start}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM8hjRubj)}(hhh]jG)}(h*the device to start iterating from, if anyh]h*the device to start iterating from, if any}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjmhM8hjnubah}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]uh1jhjmhM8hjubj)}(h\``const struct device_type *type`` device_type of the devices to iterate over, NULL for all h](j)}(h"``const struct device_type *type``h]j)}(hjh]hconst struct device_type *type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjubj)}(hhh]jG)}(h8device_type of the devices to iterate over, NULL for allh]h8device_type of the devices to iterate over, NULL for all}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM;hjubjG)}(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 }(hjhhhNhNubjv)}(h**iter**h]hiter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh' such that it iterates over devices of }(hjhhhNhNubjv)}(h **class**h]hclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh. If }(hjhhhNhNubjv)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhy is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ class_dev_iter_next (C function)c.class_dev_iter_nexthNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjThMVubh)}(hhh]j)}(hdeviceh]hdevice}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjhmodnameN classnameNj5j5)}j 5]j#5)}j5class_dev_iter_nextsbc.class_dev_iter_nextasbuh1hhjChhhjThMVubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjThMVubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjChhhjThMVubj)}(hclass_dev_iter_nexth]j)}(hjh]hclass_dev_iter_next}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjChhhjThMVubj4)}(h(struct class_dev_iter *iter)h]j4)}(hstruct class_dev_iter *iterh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclass_dev_iterh]hclass_dev_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.class_dev_iter_nextasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjChhhjThMVubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj?hhhjThMVubah}(h]j:ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjThMVhj<hhubjB)}(hhh]jG)}(hiterate to the next deviceh]hiterate to the next device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMVhj?hhubah}(h]h ]h"]h$]h&]uh1jAhj<hhhjThMVubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjZjgjZjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjbubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMZhj^ubj)}(hhh]j)}(h:``struct class_dev_iter *iter`` class iterator to proceed h](j)}(h``struct class_dev_iter *iter``h]j)}(hjh]hstruct class_dev_iter *iter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMWhj}ubj)}(hhh]jG)}(hclass iterator to proceedh]hclass iterator to proceed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMWhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMWhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMYhj^ubjG)}(hZProceed **iter** to the next device and return it. Returns NULL if iteration is complete.h](hProceed }(hjhhhNhNubjv)}(h**iter**h]hiter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhJ to the next device and return it. Returns NULL if iteration is complete.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMYhj^ubjG)}(hThe returned device is referenced and won't be released till iterator is proceed to the next device or exited. The caller is free to do whatever it wants to do with the device including calling back into class code.h]hThe returned device is referenced and won’t be released till iterator is proceed to the next device or exited. The caller is free to do whatever it wants to do with the device including calling back into class code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM\hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ class_dev_iter_exit (C function)c.class_dev_iter_exithNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuubh)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj2hMuubj)}(hclass_dev_iter_exith]j)}(hclass_dev_iter_exith]hclass_dev_iter_exit}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhj2hMuubj4)}(h(struct class_dev_iter *iter)h]j4)}(hstruct class_dev_iter *iterh](h)}(hhh]hstruct}(hjahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]j)}(hclass_dev_iterh]hclass_dev_iter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jGsbc.class_dev_iter_exitasbuh1hhj]ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj]ubj)}(hiterh]hiter}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjYubah}(h]h ]h"]h$]h&]j+j,uh1j4hj hhhj2hMuubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj2hMuubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj2hMuhjhhubjB)}(hhh]jG)}(hfinish iterationh]hfinish iteration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMuhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj2hMuubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMyhjubj)}(hhh]j)}(h9``struct class_dev_iter *iter`` class iterator to finish h](j)}(h``struct class_dev_iter *iter``h]j)}(hj%h]hstruct class_dev_iter *iter}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMvhjubj)}(hhh]jG)}(hclass iterator to finishh]hclass iterator to finish}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hMvhj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hMvhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj^ubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMxhjubjG)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMxhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"class_for_each_device (C function)c.class_for_each_devicehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hclass_for_each_deviceh]j)}(hclass_for_each_deviceh]hclass_for_each_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(hU(const struct class *class, const struct device *start, void *data, device_iter_t fn)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.class_for_each_deviceasbuh1hhjubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjIhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst struct device *starth](h)}(hj6h]hconst}(hjohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j7c.class_for_each_deviceasbuh1hhjkubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjkubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdatah]hdata}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hdevice_iter_t fnh](h)}(hhh]j)}(h device_iter_th]h device_iter_t}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjAmodnameN classnameNj5j5)}j 5]j7c.class_for_each_deviceasbuh1hhj8ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj)}(hfnh]hfn}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(hdevice iteratorh]hdevice iterator}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]jG)}(hthe class we're iteratingh]hthe class we’re iterating}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hM``const struct device *start`` the device to start with in the list, if any. h](j)}(h``const struct device *start``h]j)}(hjh]hconst struct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj ubj)}(hhh]jG)}(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&]uh1jFhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubj)}(h%``void *data`` data for the callback h](j)}(h``void *data``h]j)}(hjHh]h void *data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjBubj)}(hhh]jG)}(hdata for the callbackh]hdata for the callback}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjubj)}(h;``device_iter_t fn`` function to be called for each device h](j)}(h``device_iter_t fn``h]j)}(hjh]hdevice_iter_t fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhj{ubj)}(hhh]jG)}(h%function to be called for each deviceh]h%function to be called for each device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(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 }(hjhhhNhNubjv)}(h **class**h]hclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh’s list of devices, and call }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh for each, passing it }(hjhhhNhNubjv)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh. If }(hjhhhNhNubjv)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhy is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(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)hhhNhNubjv)}(h**fn**h]hfn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj)ubhT each time. If it returns anything other than 0, we break out and return that value.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(hi**fn** is allowed to do anything including calling back into class code. There's no locking restriction.h](jv)}(h**fn**h]hfn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjJubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hjJhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌclass_find_device (C function)c.class_find_devicehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5class_find_devicesbc.class_find_deviceasbuh1hhjhhhjhMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhMubj)}(hclass_find_deviceh]j)}(hjh]hclass_find_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h_(const struct class *class, const struct device *start, const void *data, device_match_t match)h](j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj<modnameN classnameNj5j5)}j 5]jc.class_find_deviceasbuh1hhjubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjfhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst struct device *starth](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.class_find_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst void *datah](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hvoidh]hvoid}(hj2hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjNhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdatah]hdata}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hdevice_match_t matchh](h)}(hhh]j)}(hdevice_match_th]hdevice_match_t}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjymodnameN classnameNj5j5)}j 5]jc.class_find_deviceasbuh1hhjpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hmatchh]hmatch}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jzah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhj|hhubjB)}(hhh]jG)}(h0device iterator for locating a particular deviceh]h0device iterator for locating a particular device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhj|hhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh](j)}(h8``const struct class *class`` the class we're iterating h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]jG)}(hthe class we're iteratingh]hthe class we’re iterating}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hMhjubj)}(h4``const struct device *start`` Device to begin with h](j)}(h``const struct device *start``h]j)}(hjGh]hconst struct device *start}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjAubj)}(hhh]jG)}(hDevice to begin withh]hDevice to begin with}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hMhjubj)}(h1``const void *data`` data for the match function h](j)}(h``const void *data``h]j)}(hjh]hconst void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjzubj)}(hhh]jG)}(hdata for the match functionh]hdata for the match function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h2``device_match_t match`` function to check device h](j)}(h``device_match_t match``h]j)}(hjh]hdevice_match_t match}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubj)}(hhh]jG)}(hfunction to check deviceh]hfunction to check device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(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 }(hj hhhNhNubjv)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh callback.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(hFNote, you will need to drop the reference with put_device() after use.h]hFNote, you will need to drop the reference with put_device() after use.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubjG)}(hl**match** is allowed to do anything including calling back into class code. There's no locking restriction.h](jv)}(h **match**h]hmatch}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjIubhe is allowed to do anything including calling back into class code. There’s no locking restriction.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"class_compat_register (C function)c.class_compat_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(h>struct class_compat * class_compat_register (const char *name)h]h)}(hj?)j@huh1hhjhM6hj{hhubjB)}(hhh]jG)}(hregister a compatibility classh]hregister a compatibility class}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM6hjkhhubah}(h]h ]h"]h$]h&]uh1jAhj{hhhjhM6ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const char *name`` the name of the class **Description** Compatibility class are meant as a temporary user-space compatibility workaround when converting a family of class devices to a bus devices.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM:hjubj)}(hhh]j)}(h+``const char *name`` the name of the class h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM7hjubj)}(hhh]jG)}(hthe name of the classh]hthe name of the class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjubjG)}(hCompatibility class are meant as a temporary user-space compatibility workaround when converting a family of class devices to a bus devices.h]hCompatibility class are meant as a temporary user-space compatibility workaround when converting a family of class devices to a bus devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM9hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$class_compat_unregister (C function)c.class_compat_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h7void class_compat_unregister (struct class_compat *cls)h]h)}(h6void class_compat_unregister(struct class_compat *cls)h](j4)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj+hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMMubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hMMubj)}(hclass_compat_unregisterh]j)}(hclass_compat_unregisterh]hclass_compat_unregister}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj+hhhj=hMMubj4)}(h(struct class_compat *cls)h]j4)}(hstruct class_compat *clsh](h)}(hhh]hstruct}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(h class_compath]h class_compat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jRsbc.class_compat_unregisterasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhubj)}(hclsh]hcls}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjdubah}(h]h ]h"]h$]h&]j+j,uh1j4hj+hhhj=hMMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj'hhhj=hMMubah}(h]j"ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj=hMMhj$hhubjB)}(hhh]jG)}(h unregister a compatibility classh]h unregister a compatibility class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jAhj$hhhj=hMMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hF**Parameters** ``struct class_compat *cls`` the class to unregisterh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMQhj ubj)}(hhh]j)}(h4``struct class_compat *cls`` the class to unregisterh](j)}(h``struct class_compat *cls``h]j)}(hj0h]hstruct class_compat *cls}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMShj*ubj)}(hhh]jG)}(hthe class to unregisterh]hthe class to unregister}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMNhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhMShj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%class_compat_create_link (C function)c.class_compat_create_linkhNtauh1hhjShhhNhNubh)}(hhh](h)}(hKint class_compat_create_link (struct class_compat *cls, struct device *dev)h]h)}(hJint class_compat_create_link(struct class_compat *cls, struct device *dev)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMXubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMXubj)}(hclass_compat_create_linkh]j)}(hclass_compat_create_linkh]hclass_compat_create_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMXubj4)}(h.(struct class_compat *cls, struct device *dev)h](j4)}(hstruct class_compat *clsh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h class_compath]h class_compat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.class_compat_create_linkasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclsh]hcls}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *devh](h)}(hhh]hstruct}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj5ubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j)}(hdeviceh]hdevice}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjYmodnameN classnameNj5j5)}j 5]jc.class_compat_create_linkasbuh1hhj5ubh)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj5ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMXubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMXubah}(h]j}ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMXhjhhubjB)}(hhh]jG)}(h8create a compatibility class device link to a bus deviceh]h8create a compatibility class device link to a bus device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMXhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMXubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hv**Parameters** ``struct class_compat *cls`` the compatibility class ``struct device *dev`` the target bus deviceh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM\hjubj)}(hhh](j)}(h5``struct class_compat *cls`` the compatibility class h](j)}(h``struct class_compat *cls``h]j)}(hjh]hstruct class_compat *cls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMZhjubj)}(hhh]jG)}(hthe compatibility classh]hthe compatibility class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMZhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMZhjubj)}(h,``struct device *dev`` the target bus deviceh](j)}(h``struct device *dev``h]j)}(hj4h]hstruct device *dev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM\hj.ubj)}(hhh]jG)}(hthe target bus deviceh]hthe target bus device}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chM[hjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhM\hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%class_compat_remove_link (C function)c.class_compat_remove_linkhNtauh1hhjShhhNhNubh)}(hhh](h)}(hLvoid class_compat_remove_link (struct class_compat *cls, struct device *dev)h]h)}(hKvoid class_compat_remove_link(struct class_compat *cls, struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMdubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMdubj)}(hclass_compat_remove_linkh]j)}(hclass_compat_remove_linkh]hclass_compat_remove_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMdubj4)}(h.(struct class_compat *cls, struct device *dev)h](j4)}(hstruct class_compat *clsh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h class_compath]h class_compat}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.class_compat_remove_linkasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclsh]hcls}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *devh](h)}(hhh]hstruct}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9ubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hhh]j)}(hdeviceh]hdevice}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj]modnameN classnameNj5j5)}j 5]jc.class_compat_remove_linkasbuh1hhj9ubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj9ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMdubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMdubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMdhjhhubjB)}(hhh]jG)}(h8remove a compatibility class device link to a bus deviceh]h8remove a compatibility class device link to a bus device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMdubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hv**Parameters** ``struct class_compat *cls`` the compatibility class ``struct device *dev`` the target bus deviceh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhhjubj)}(hhh](j)}(h5``struct class_compat *cls`` the compatibility class h](j)}(h``struct class_compat *cls``h]j)}(hjh]hstruct class_compat *cls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMfhjubj)}(hhh]jG)}(hthe compatibility classh]hthe compatibility class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMfhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMfhjubj)}(h,``struct device *dev`` the target bus deviceh](j)}(h``struct device *dev``h]j)}(hj8h]hstruct device *dev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMhhj2ubj)}(hhh]jG)}(hthe target bus deviceh]hthe target bus device}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMghjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhMhhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ class_is_registered (C function)c.class_is_registeredhNtauh1hhjShhhNhNubh)}(hhh](h)}(h4bool class_is_registered (const struct class *class)h]h)}(h3bool class_is_registered(const struct class *class)h](j4)}(hj4h]hbool}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMpubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMpubj)}(hclass_is_registeredh]j)}(hclass_is_registeredh]hclass_is_registered}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMpubj4)}(h(const struct class *class)h]j4)}(hconst struct class *classh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.class_is_registeredasbuh1hhjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj5hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclassh]hclass}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMpubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMpubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMphjhhubjB)}(hhh]jG)}(hUdetermine if at this moment in time, a class is registered in the driver core or not.h]hUdetermine if at this moment in time, a class is registered in the driver core or not.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMphjihhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMpubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``const struct class *class`` the class to check **Description** Returns a boolean to state if the class is registered in the driver core or not. Note that the value could switch right after this call is made, so only use this in places where you "know" it is safe to do so (usually to determine if the specific class has been registered yet or not). Be careful in using this.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMthjubj)}(hhh]j)}(h1``const struct class *class`` the class to check h](j)}(h``const struct class *class``h]j)}(hjh]hconst struct class *class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMrhjubj)}(hhh]jG)}(hthe class to checkh]hthe class to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMrhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMthjubjG)}(hXReturns a boolean to state if the class is registered in the driver core or not. Note that the value could switch right after this call is made, so only use this in places where you "know" it is safe to do so (usually to determine if the specific class has been registered yet or not).h]hX"Returns a boolean to state if the class is registered in the driver core or not. Note that the value could switch right after this call is made, so only use this in places where you “know” it is safe to do so (usually to determine if the specific class has been registered yet or not).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMthjubjG)}(hBe careful in using this.h]hBe careful in using this.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:41: ./drivers/base/class.chMyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfaux_device (C struct) c.faux_devicehNtauh1hhjShhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhNubh)}(hhh](h)}(h faux_deviceh]h)}(hstruct faux_deviceh](h)}(hhh]hstruct}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjJhKubj)}(h faux_deviceh]j)}(hj7h]h faux_device}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj9hhhjJhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj5hhhjJhKubah}(h]j/ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjJhKhj2hhubjB)}(hhh]jG)}(ha "faux" deviceh]ha “faux” device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhj|hhubah}(h]h ]h"]h$]h&]uh1jAhj2hhhjJhKubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShj1hNubjl)}(h**Definition**:: struct faux_device { struct device dev; }; **Members** ``dev`` internal struct device of the objecth](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(h.struct faux_device { struct device dev; };h]h.struct faux_device { struct device dev; };}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(hhh]j)}(h,``dev`` internal struct device of the objecth](j)}(h``dev``h]j)}(hjh]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubj)}(hhh]jG)}(h$internal struct device of the objecth]h$internal struct device of the object}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhj1hNubjG)}(h**Description**h]jv)}(hj/h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj-ubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjShhubjG)}(hX'A simple faux device that can be created/destroyed. To be used when a driver only needs to have a device to "hang" something off. This can be used for downloading firmware or other basic tasks. Use this instead of a struct platform_device if the device has no resources assigned to it at all.h]hX+A simple faux device that can be created/destroyed. To be used when a driver only needs to have a device to “hang” something off. This can be used for downloading firmware or other basic tasks. Use this instead of a struct platform_device if the device has no resources assigned to it at all.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhKhjShhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfaux_device_ops (C struct)c.faux_device_opshNtauh1hhjShhhj1hNubh)}(hhh](h)}(hfaux_device_opsh]h)}(hstruct faux_device_opsh](h)}(hhh]hstruct}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK ubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjzhK ubj)}(hfaux_device_opsh]j)}(hjgh]hfaux_device_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjihhhjzhK ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjehhhjzhK ubah}(h]j`ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjzhK hjbhhubjB)}(hhh]jG)}(h+a set of callbacks for a struct faux_deviceh]h+a set of callbacks for a struct faux_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK#hjhhubah}(h]h ]h"]h$]h&]uh1jAhjbhhhjzhK ubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShj1hNubjl)}(hX**Definition**:: struct faux_device_ops { int (*probe)(struct faux_device *faux_dev); void (*remove)(struct faux_device *faux_dev); }; **Members** ``probe`` called when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding. ``remove`` called when a faux device is removed from the systemh](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK'hjubj)}(h}struct faux_device_ops { int (*probe)(struct faux_device *faux_dev); void (*remove)(struct faux_device *faux_dev); };h]h}struct faux_device_ops { int (*probe)(struct faux_device *faux_dev); void (*remove)(struct faux_device *faux_dev); };}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK.hjubj)}(hhh](j)}(h``probe`` called when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding. h](j)}(h ``probe``h]j)}(hjh]hprobe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hjubj)}(hhh]jG)}(hcalled when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding.h]hcalled when a faux device is probed by the driver core before the device is fully bound to the internal faux bus code. If probe succeeds, return 0, otherwise return a negative error number to stop the probe sequence from succeeding.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK%hj2ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj1hK)hjubj)}(h?``remove`` called when a faux device is removed from the systemh](j)}(h ``remove``h]j)}(hjVh]hremove}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK)hjPubj)}(hhh]jG)}(h4called when a faux device is removed from the systemh]h4called when a faux device is removed from the system}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK*hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhK)hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhj1hNubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK-hjShhubjG)}(hGBoth **probe** and **remove** are optional, if not needed, set to NULL.h](hBoth }(hjhhhNhNubjv)}(h **probe**h]hprobe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh and }(hjhhhNhNubjv)}(h **remove**h]hremove}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh* are optional, if not needed, set to NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:44: ./include/linux/device/faux.hhK+hjShhubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+faux_device_create_with_groups (C function) c.faux_device_create_with_groupshNtauh1hhjShhhNhNubh)}(hhh](h)}(hstruct faux_device * faux_device_create_with_groups (const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h]h)}(hstruct faux_device *faux_device_create_with_groups(const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKdubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKdubh)}(hhh]j)}(h faux_deviceh]h faux_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5faux_device_create_with_groupssb c.faux_device_create_with_groupsasbuh1hhjhhhjhKdubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKdubj75)}(hj:5h]h*}(hjIhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhKdubj)}(hfaux_device_create_with_groupsh]j)}(hj8h]hfaux_device_create_with_groups}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKdubj4)}(hx(const char *name, struct device *parent, const struct faux_device_ops *faux_ops, const struct attribute_group **groups)h](j4)}(hconst char *nameh](h)}(hj6h]hconst}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjqubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjqubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjmubj4)}(hstruct device *parenth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j6 c.faux_device_create_with_groupsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hparenth]hparent}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjmubj4)}(h&const struct faux_device_ops *faux_opsh](h)}(hj6h]hconst}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubh)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]hstruct}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j)}(hfaux_device_opsh]hfaux_device_ops}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj}modnameN classnameNj5j5)}j 5]j6 c.faux_device_create_with_groupsasbuh1hhj>ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj>ubj)}(hfaux_opsh]hfaux_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjmubj4)}(h%const struct attribute_group **groupsh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j6 c.faux_device_create_with_groupsasbuh1hhjubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj2hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj75)}(hj:5h]h*}(hj?hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hgroupsh]hgroups}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjmubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKdubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKdubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKdhjhhubjB)}(hhh]jG)}(hwCreate and register with the driver core a faux device and populate the device with an initial set of sysfs attributes.h]hwCreate and register with the driver core a faux device and populate the device with an initial set of sysfs attributes.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKdhjshhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKdubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``const char *name`` The name of the device we are adding, must be unique for all faux devices. ``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. ``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. ``const struct attribute_group **groups`` The set of sysfs attributes that will be created for this device when it is registered with the driver core. **Description** Create a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle. Note, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. If the probe callback (if one is present) does NOT succeed, the creation of the device will fail and NULL will be returned. **Return** * NULL if an error happened with creating the device * pointer to a valid struct faux_device that is registered with sysfsh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhhjubj)}(hhh](j)}(h```const char *name`` The name of the device we are adding, must be unique for all faux devices. h](j)}(h``const char *name``h]j)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhhjubj)}(hhh]jG)}(hJThe name of the device we are adding, must be unique for all faux devices.h]hJThe name of the device we are adding, must be unique for all faux devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKghjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhhjubj)}(h``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKkhjubj)}(hhh]jG)}(hPointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs.h]hPointer to a potential parent struct device. If set to NULL, the device will be created in the “root” of the faux device tree in sysfs.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKihjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKkhjubj)}(hx``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. h](j)}(h*``const struct faux_device_ops *faux_ops``h]j)}(hj+h]h&const struct faux_device_ops *faux_ops}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKmhj%ubj)}(hhh]jG)}(hLstruct faux_device_ops that the new device will call back into, can be NULL.h]hLstruct faux_device_ops that the new device will call back into, can be NULL.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKlhjAubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKmhjubj)}(h``const struct attribute_group **groups`` The set of sysfs attributes that will be created for this device when it is registered with the driver core. h](j)}(h)``const struct attribute_group **groups``h]j)}(hjeh]h%const struct attribute_group **groups}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKohj_ubj)}(hhh]jG)}(hlThe set of sysfs attributes that will be created for this device when it is registered with the driver core.h]hlThe set of sysfs attributes that will be created for this device when it is registered with the driver core.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKnhj{ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKohjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKqhjubjG)}(hCreate a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle.h](h_Create a new faux device and register it in the driver core properly. If present, callbacks in }(hjhhhNhNubjv)}(h **faux_ops**h]hfaux_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh{ will be called with the device that for the caller to do something with at the proper time given the device’s lifecycle.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKqhjubjG)}(hXJNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. If the probe callback (if one is present) does NOT succeed, the creation of the device will fail and NULL will be returned.h]hXJNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. If the probe callback (if one is present) does NOT succeed, the creation of the device will fail and NULL will be returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKvhjubjG)}(h **Return**h]jv)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chK|hjubj))}(hhh](j.)}(h2NULL if an error happened with creating the deviceh]jG)}(hjh]h2NULL if an error happened with creating the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chK|hjubah}(h]h ]h"]h$]h&]uh1j-hjubj.)}(hCpointer to a valid struct faux_device that is registered with sysfsh]jG)}(hjh]hCpointer to a valid struct faux_device that is registered with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chK}hjubah}(h]h ]h"]h$]h&]uh1j-hjubeh}(h]h ]h"]h$]h&]jj:5uh1j(hjhK|hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌfaux_device_create (C function)c.faux_device_createhNtauh1hhjShhhNhNubh)}(hhh](h)}(hystruct faux_device * faux_device_create (const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h]h)}(hwstruct faux_device *faux_device_create(const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h](h)}(hhh]hstruct}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKubh)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjehKubh)}(hhh]j)}(h faux_deviceh]h faux_device}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjymodnameN classnameNj5j5)}j 5]j#5)}j5faux_device_createsbc.faux_device_createasbuh1hhjThhhjehKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjehKubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjThhhjehKubj)}(hfaux_device_createh]j)}(hjh]hfaux_device_create}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjThhhjehKubj4)}(hQ(const char *name, struct device *parent, const struct faux_device_ops *faux_ops)h](j4)}(hconst char *nameh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hhh]j)}(hdeviceh]hdevice}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjOmodnameN classnameNj5j5)}j 5]jc.faux_device_createasbuh1hhj+ubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj75)}(hj:5h]h*}(hjyhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj+ubj)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h&const struct faux_device_ops *faux_opsh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hfaux_device_opsh]hfaux_device_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.faux_device_createasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfaux_opsh]hfaux_ops}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjThhhjehKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjPhhhjehKubah}(h]jKah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjehKhjMhhubjB)}(hhh]jG)}(h6create and register with the driver core a faux deviceh]h6create and register with the driver core a faux device}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj8hhubah}(h]h ]h"]h$]h&]uh1jAhjMhhhjehKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjSjgjSjhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``const char *name`` The name of the device we are adding, must be unique for all faux devices. ``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. ``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. **Description** Create a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle. Note, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time. **Return** * NULL if an error happened with creating the device * pointer to a valid struct faux_device that is registered with sysfsh](jG)}(h**Parameters**h]jv)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj[ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjWubj)}(hhh](j)}(h```const char *name`` The name of the device we are adding, must be unique for all faux devices. h](j)}(h``const char *name``h]j)}(hj|h]hconst char *name}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjvubj)}(hhh]jG)}(hJThe name of the device we are adding, must be unique for all faux devices.h]hJThe name of the device we are adding, must be unique for all faux devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubj)}(h``struct device *parent`` Pointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs. h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj)}(hhh]jG)}(hPointer to a potential parent struct device. If set to NULL, the device will be created in the "root" of the faux device tree in sysfs.h]hPointer to a potential parent struct device. If set to NULL, the device will be created in the “root” of the faux device tree in sysfs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubj)}(hx``const struct faux_device_ops *faux_ops`` struct faux_device_ops that the new device will call back into, can be NULL. h](j)}(h*``const struct faux_device_ops *faux_ops``h]j)}(hjh]h&const struct faux_device_ops *faux_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubj)}(hhh]jG)}(hLstruct faux_device_ops that the new device will call back into, can be NULL.h]hLstruct faux_device_ops that the new device will call back into, can be NULL.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubjG)}(h**Description**h]jv)}(hj,h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj*ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjWubjG)}(hCreate a new faux device and register it in the driver core properly. If present, callbacks in **faux_ops** will be called with the device that for the caller to do something with at the proper time given the device's lifecycle.h](h_Create a new faux device and register it in the driver core properly. If present, callbacks in }(hjBhhhNhNubjv)}(h **faux_ops**h]hfaux_ops}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjBubh{ will be called with the device that for the caller to do something with at the proper time given the device’s lifecycle.}(hjBhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjWubjG)}(hNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time.h]hNote, when this function is called, the functions specified in struct faux_ops can be called before the function returns, so be prepared for everything to be properly initialized before that point in time.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjWubjG)}(h **Return**h]jv)}(hjth]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjrubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjWubj))}(hhh](j.)}(h2NULL if an error happened with creating the deviceh]jG)}(hjh]h2NULL if an error happened with creating the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1j-hjubj.)}(hCpointer to a valid struct faux_device that is registered with sysfsh]jG)}(hjh]hCpointer to a valid struct faux_device that is registered with sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhjubah}(h]h ]h"]h$]h&]uh1j-hjubeh}(h]h ]h"]h$]h&]jj:5uh1j(hjhKhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ faux_device_destroy (C function)c.faux_device_destroyhNtauh1hhjShhhNhNubh)}(hhh](h)}(h7void faux_device_destroy (struct faux_device *faux_dev)h]h)}(h6void faux_device_destroy(struct faux_device *faux_dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hfaux_device_destroyh]j)}(hfaux_device_destroyh]hfaux_device_destroy}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h(struct faux_device *faux_dev)h]j4)}(hstruct faux_device *faux_devh](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj- hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(h faux_deviceh]h faux_device}(hj> hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj; ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj@ modnameN classnameNj5j5)}j 5]j#5)}j5j sbc.faux_device_destroyasbuh1hhj ubh)}(h h]h }(hj^ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj75)}(hj:5h]h*}(hjl hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj ubj)}(hfaux_devh]hfaux_dev}(hjy hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(hdestroy a faux deviceh]hdestroy a faux device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct faux_device *faux_dev`` faux device to destroy **Description** Unregisters and cleans up a device that was created with a call to faux_device_create()h](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubj)}(hhh]j)}(h8``struct faux_device *faux_dev`` faux device to destroy h](j)}(h ``struct faux_device *faux_dev``h]j)}(hj h]hstruct faux_device *faux_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:47: ./drivers/base/faux.chKhj ubj)}(hhh]jG)}(hfaux device to destroyh]hfaux device to destroy}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hj h]h Description}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubjG)}(hWUnregisters and cleans up a device that was created with a call to faux_device_create()h]hWUnregisters and cleans up a device that was created with a call to faux_device_create()}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:47: ./drivers/base/faux.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnode_access_nodes (C struct)c.node_access_nodeshNtauh1hhjShhhNhNubh)}(hhh](h)}(hnode_access_nodesh]h)}(hstruct node_access_nodesh](h)}(hhh]hstruct}(hjd hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj` hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKubh)}(h h]h }(hjr hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj` hhhjq hKubj)}(hnode_access_nodesh]j)}(hj^ h]hnode_access_nodes}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj` hhhjq hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj\ hhhjq hKubah}(h]jW ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjq hKhjY hhubjB)}(hhh]jG)}(hFAccess class device to hold user visible relationships to other nodes.h]hFAccess class device to hold user visible relationships to other nodes.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKIhj hhubah}(h]h ]h"]h$]h&]uh1jAhjY hhhjq hKubeh}(h]h ](j`structeh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhjShNhNubjl)}(hX**Definition**:: struct node_access_nodes { struct device dev; struct list_head list_node; unsigned int access; #ifdef CONFIG_HMEM_REPORTING; struct access_coordinate coord; #endif; }; **Members** ``dev`` Device for this memory access class ``list_node`` List element in the node's access list ``access`` The access class rank ``coord`` Heterogeneous memory performance coordinatesh](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKMhj ubj)}(hstruct node_access_nodes { struct device dev; struct list_head list_node; unsigned int access; #ifdef CONFIG_HMEM_REPORTING; struct access_coordinate coord; #endif; };h]hstruct node_access_nodes { struct device dev; struct list_head list_node; unsigned int access; #ifdef CONFIG_HMEM_REPORTING; struct access_coordinate coord; #endif; };}hj sbah}(h]h ]h"]h$]h&]j+j,uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKOhj ubjG)}(h **Members**h]jv)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKXhj ubj)}(hhh](j)}(h,``dev`` Device for this memory access class h](j)}(h``dev``h]j)}(hj h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKLhj ubj)}(hhh]jG)}(h#Device for this memory access classh]h#Device for this memory access class}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj( hKLhj) ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj( hKLhj ubj)}(h5``list_node`` List element in the node's access list h](j)}(h ``list_node``h]j)}(hjL h]h list_node}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJ ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKMhjF ubj)}(hhh]jG)}(h&List element in the node's access listh]h(List element in the node’s access list}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhja hKMhjb ubah}(h]h ]h"]h$]h&]uh1jhjF ubeh}(h]h ]h"]h$]h&]uh1jhja hKMhj ubj)}(h!``access`` The access class rank h](j)}(h ``access``h]j)}(hj h]haccess}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKNhj ubj)}(hhh]jG)}(hThe access class rankh]hThe access class rank}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKNhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKNhj ubj)}(h6``coord`` Heterogeneous memory performance coordinatesh](j)}(h ``coord``h]j)}(hj h]hcoord}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKNhj ubj)}(hhh]jG)}(h,Heterogeneous memory performance coordinatesh]h,Heterogeneous memory performance coordinates}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKOhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKNhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnode_cache_info (C struct)c.node_cache_infohNtauh1hhjShhhNhNubh)}(hhh](h)}(hnode_cache_infoh]h)}(hstruct node_cache_infoh](h)}(hhh]hstruct}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKUubh)}(h h]h }(hj& hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj% hKUubj)}(hnode_cache_infoh]j)}(hj h]hnode_cache_info}(hj8 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4 ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhj% hKUubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhj% hKUubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj% hKUhj hhubjB)}(hhh]jG)}(h(Internal tracking for memory node cachesh]h(Internal tracking for memory node caches}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhjW hhubah}(h]h ]h"]h$]h&]uh1jAhj hhhj% hKUubeh}(h]h ](j`structeh"]h$]h&]jej`jfjr jgjr jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hj~ hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjz ubh:}(hjz hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhjv ubj)}(hvstruct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; };h]hvstruct node_cache_info { struct device dev; struct list_head node; struct node_cache_attrs cache_attrs; };}hj sbah}(h]h ]h"]h$]h&]j+j,uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhjv ubjG)}(h **Members**h]jv)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhjv ubj)}(hhh](j)}(h+``dev`` Device represeting the cache level h](j)}(h``dev``h]j)}(hj h]hdev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhj ubj)}(hhh]jG)}(h"Device represeting the cache levelh]h"Device represeting the cache level}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj 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:50: ./drivers/base/node.chKhj ubj)}(hhh]jG)}(h%List element for tracking in the nodeh]h%List element for tracking in the node}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(h/``cache_attrs`` Attributes for this cache levelh](j)}(h``cache_attrs``h]j)}(hj9 h]h cache_attrs}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7 ubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhj3 ubj)}(hhh]jG)}(hAttributes for this cache levelh]hAttributes for this cache level}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chKhjO ubah}(h]h ]h"]h$]h&]uh1jhj3 ubeh}(h]h ]h"]h$]h&]uh1jhjN hKhj ubeh}(h]h ]h"]h$]h&]uh1jhjv ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌnode_add_cache (C function)c.node_add_cachehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj hhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM0ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hM0ubj)}(hnode_add_cacheh]j)}(hnode_add_cacheh]hnode_add_cache}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhj hM0ubj4)}(h8(unsigned int nid, struct node_cache_attrs *cache_attrs)h](j4)}(hunsigned int nidh](j4)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj4)}(hinth]hint}(hj hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj ubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hnidh]hnid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubj4)}(h$struct node_cache_attrs *cache_attrsh](h)}(hhh]hstruct}(hj!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hnode_cache_attrsh]hnode_cache_attrs}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjAmodnameN classnameNj5j5)}j 5]j#5)}j5j sbc.node_add_cacheasbuh1hhjubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjmhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(h cache_attrsh]h cache_attrs}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj hhhj hM0ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhj hM0ubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hM0hj hhubjB)}(hhh]jG)}(h$add cache attribute to a memory nodeh]h$add cache attribute to a memory node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM0hjhhubah}(h]h ]h"]h$]h&]uh1jAhj hhhj hM0ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``unsigned int nid`` Node identifier that has new cache attributes ``struct node_cache_attrs *cache_attrs`` Attributes for the cache being addedh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM4hjubj)}(hhh](j)}(hC``unsigned int nid`` Node identifier that has new cache attributes h](j)}(h``unsigned int nid``h]j)}(hjh]hunsigned int nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM1hjubj)}(hhh]jG)}(h-Node identifier that has new cache attributesh]h-Node identifier that has new cache attributes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(hM``struct node_cache_attrs *cache_attrs`` Attributes for the cache being addedh](j)}(h(``struct node_cache_attrs *cache_attrs``h]j)}(hjh]h$struct node_cache_attrs *cache_attrs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM3hjubj)}(hhh]jG)}(h$Attributes for the cache being addedh]h$Attributes for the cache being added}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chM2hj4ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj3hM3hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌunregister_node (C function)c.unregister_nodehNtauh1hhjShhhNhNubh)}(hhh](h)}(h(void unregister_node (struct node *node)h]h)}(h'void unregister_node(struct node *node)h](j4)}(hvoidh]hvoid}(hjxhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjthhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhjhMubj)}(hunregister_nodeh]j)}(hunregister_nodeh]hunregister_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjthhhjhMubj4)}(h(struct node *node)h]j4)}(hstruct node *nodeh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.unregister_nodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hnodeh]hnode}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjthhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjphhhjhMubah}(h]jkah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjmhhubjB)}(hhh]jG)}(hunregister a node deviceh]hunregister a node device}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj5hhubah}(h]h ]h"]h$]h&]uh1jAhjmhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjPjgjPjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct node *node`` node going away **Description** Unregisters a node device **node**. All the devices on the node must be unregistered before calling this function.h](jG)}(h**Parameters**h]jv)}(hjZh]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjXubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjTubj)}(hhh]j)}(h&``struct node *node`` node going away h](j)}(h``struct node *node``h]j)}(hjyh]hstruct node *node}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjsubj)}(hhh]jG)}(hnode going awayh]hnode going away}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjpubah}(h]h ]h"]h$]h&]uh1jhjTubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjTubjG)}(hsUnregisters a node device **node**. All the devices on the node must be unregistered before calling this function.h](hUnregisters a node device }(hjhhhNhNubjv)}(h**node**h]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhQ. All the devices on the node must be unregistered before calling this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ4register_memory_node_under_compute_node (C function))c.register_memory_node_under_compute_nodehNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(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 ]jah"]h$]h&]uh1jhj(ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(hQ(unsigned int mem_nid, unsigned int cpu_nid, enum access_coordinate_class access)h](j4)}(hunsigned int mem_nidh](j4)}(hunsignedh]hunsigned}(hjHhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjDubh)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj4)}(hinth]hint}(hjdhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjDubh)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj)}(hmem_nidh]hmem_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj@ubj4)}(hunsigned int cpu_nidh](j4)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hcpu_nidh]hcpu_nid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj@ubj4)}(h#enum access_coordinate_class accessh](h)}(hjNh]henum}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(haccess_coordinate_classh]haccess_coordinate_class}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5j.sb)c.register_memory_node_under_compute_nodeasbuh1hhjubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(haccessh]haccess}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj@ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(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.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjxjgjxjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj|ubj)}(hhh](j)}(h,``unsigned int mem_nid`` Memory node number h](j)}(h``unsigned int mem_nid``h]j)}(hjh]hunsigned int mem_nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh]jG)}(hMemory node numberh]hMemory node number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h*``unsigned int cpu_nid`` Cpu node number h](j)}(h``unsigned int cpu_nid``h]j)}(hjh]hunsigned int cpu_nid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjubj)}(hhh]jG)}(hCpu node numberh]hCpu node number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hA``enum access_coordinate_class access`` Access class to register h](j)}(h'``enum access_coordinate_class access``h]j)}(hjh]h#enum access_coordinate_class access}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj ubj)}(hhh]jG)}(hAccess class to registerh]hAccess class to register}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhjubeh}(h]h ]h"]h$]h&]uh1jhj|ubjG)}(h**Description**h]jv)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjLubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhj|ubj;)}(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]jG)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh]/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:50: ./drivers/base/node.chMhjdubah}(h]h ]h"]h$]h&]uh1j:hjvhMhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%transport_class_register (C function)c.transport_class_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(h=int transport_class_register (struct transport_class *tclass)h]h)}(hj?)j@huh1hhjhK&hjhhubjB)}(hhh]jG)}(h#register an initial transport classh]h#register an initial transport class}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK&hjZhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhK&ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjujgjujhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct transport_class *tclass`` a pointer to the transport class structure to be initialised **Description** The transport class contains an embedded class which is used to identify it. The caller should initialise this structure with zeros and then generic class must have been initialised with the actual transport class unique name. There's a macro DECLARE_TRANSPORT_CLASS() to do this (declared classes still must be registered). Returns 0 on success or error on failure.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj}ubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK*hjyubj)}(hhh]j)}(h```struct transport_class *tclass`` a pointer to the transport class structure to be initialised h](j)}(h"``struct transport_class *tclass``h]j)}(hjh]hstruct transport_class *tclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK(hjubj)}(hhh]jG)}(hj?)j@huh1hhj;hK:hj"hhubjB)}(hhh]jG)}(h(unregister a previously registered classh]h(unregister a previously registered class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK:hjhhubah}(h]h ]h"]h$]h&]uh1jAhj"hhhj;hK:ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct transport_class *tclass`` The transport class to unregister **Description** Must be called prior to deallocating the memory for the transport class.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK>hj ubj)}(hhh]j)}(hE``struct transport_class *tclass`` The transport class to unregister h](j)}(h"``struct transport_class *tclass``h]j)}(hj.h]hstruct transport_class *tclass}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj ubjG)}(hHMust be called prior to deallocating the memory for the transport class.h]hHMust be called prior to deallocating the memory for the transport class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chK>hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*anon_transport_class_register (C function)c.anon_transport_class_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(hDint anon_transport_class_register (struct anon_transport_class *atc)h]h)}(hCint anon_transport_class_register(struct anon_transport_class *atc)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKPubj)}(hanon_transport_class_registerh]j)}(hanon_transport_class_registerh]hanon_transport_class_register}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKPubj4)}(h"(struct anon_transport_class *atc)h]j4)}(h struct anon_transport_class *atch](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hanon_transport_classh]hanon_transport_class}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.anon_transport_class_registerasbuh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj7hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hatch]hatc}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKPubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKPubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKPhjhhubjB)}(hhh]jG)}(hregister an anonymous classh]hregister an anonymous class}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKPhjkhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKPubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjubj)}(hhh]j)}(hJ``struct anon_transport_class *atc`` The anon transport class to register h](j)}(h$``struct anon_transport_class *atc``h]j)}(hjh]h struct anon_transport_class *atc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKRhjubj)}(hhh]jG)}(h$The anon transport class to registerh]h$The anon transport class to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjubjG)}(hXtThe anonymous transport class contains both a transport class and a container. The idea of an anonymous class is that it never actually has any device attributes associated with it (and thus saves on container storage). So it can only be used for triggering events. Use prezero and then use DECLARE_ANON_TRANSPORT_CLASS() to initialise the anon transport class storage.h]hXtThe anonymous transport class contains both a transport class and a container. The idea of an anonymous class is that it never actually has any device attributes associated with it (and thus saves on container storage). So it can only be used for triggering events. Use prezero and then use DECLARE_ANON_TRANSPORT_CLASS() to initialise the anon transport class storage.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKThjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,anon_transport_class_unregister (C function)!c.anon_transport_class_unregisterhNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hj/hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj+hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hKjubj)}(hanon_transport_class_unregisterh]j)}(hanon_transport_class_unregisterh]hanon_transport_class_unregister}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj+hhhj=hKjubj4)}(h"(struct anon_transport_class *atc)h]j4)}(h struct anon_transport_class *atch](h)}(hhh]hstruct}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(hanon_transport_classh]hanon_transport_class}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jRsb!c.anon_transport_class_unregisterasbuh1hhjhubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhubj)}(hatch]hatc}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjdubah}(h]h ]h"]h$]h&]j+j,uh1j4hj+hhhj=hKjubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj'hhhj=hKjubah}(h]j"ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj=hKjhj$hhubjB)}(hhh]jG)}(hunregister an anon classh]hunregister an anon class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKjhjhhubah}(h]h ]h"]h$]h&]uh1jAhj$hhhj=hKjubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKnhj ubj)}(hhh]j)}(hW``struct anon_transport_class *atc`` Pointer to the anon transport class to unregister h](j)}(h$``struct anon_transport_class *atc``h]j)}(hj0h]h struct anon_transport_class *atc}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKlhj*ubj)}(hhh]jG)}(h1Pointer to the anon transport class to unregisterh]h1Pointer to the anon transport class to unregister}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjEhKlhjFubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhjEhKlhj'ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjiubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKnhj ubjG)}(hMMust be called prior to deallocating the memory for the anon transport class.h]hMMust be called prior to deallocating the memory for the anon transport class.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKnhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#transport_setup_device (C function)c.transport_setup_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h0void transport_setup_device (struct device *dev)h]h)}(h/void transport_setup_device(struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(htransport_setup_deviceh]j)}(htransport_setup_deviceh]htransport_setup_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.transport_setup_deviceasbuh1hhjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj9hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjmhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubj)}(hhh]j)}(hN``struct device *dev`` the generic device representing the entity being added h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubj)}(hhh]jG)}(h6the generic device representing the entity being addedh]h6the generic device representing the entity being added}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubjG)}(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).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!transport_add_device (C function)c.transport_add_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h-int transport_add_device (struct device *dev)h]h)}(h,int transport_add_device(struct device *dev)h](j4)}(hinth]hint}(hj1hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj-hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubh)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-hhhj?hKubj)}(htransport_add_deviceh]j)}(htransport_add_deviceh]htransport_add_device}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj-hhhj?hKubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jTsbc.transport_add_deviceasbuh1hhjjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjfubah}(h]h ]h"]h$]h&]j+j,uh1j4hj-hhhj?hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj)hhhj?hKubah}(h]j$ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj?hKhj&hhubjB)}(hhh]jG)}(h1declare a new dev for transport class associationh]h1declare a new dev for transport class association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjhhubah}(h]h ]h"]h$]h&]uh1jAhj&hhhj?hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj ubj)}(hhh]j)}(hN``struct device *dev`` the generic device representing the entity being added h](j)}(h``struct device *dev``h]j)}(hj2h]hstruct device *dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj,ubj)}(hhh]jG)}(h6the generic device representing the entity being addedh]h6the generic device representing the entity being added}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGhKhjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhKhj)ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1juhjkubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj ubjG)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'transport_configure_device (C function)c.transport_configure_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h4void transport_configure_device (struct device *dev)h]h)}(h3void transport_configure_device(struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(htransport_configure_deviceh]j)}(htransport_configure_deviceh]htransport_configure_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.transport_configure_deviceasbuh1hhjubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj;hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(h"configure an already set up deviceh]h"configure an already set up device}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjohhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubj)}(hhh]j)}(hK``struct device *dev`` generic device representing device to be configured h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubj)}(hhh]jG)}(h3generic device representing device to be configuredh]h3generic device representing device to be configured}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubjG)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$transport_remove_device (C function)c.transport_remove_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h1void transport_remove_device (struct device *dev)h]h)}(h0void transport_remove_device(struct device *dev)h](j4)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj/hhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhKubj)}(htransport_remove_deviceh]j)}(htransport_remove_deviceh]htransport_remove_device}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj/hhhjAhKubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jVsbc.transport_remove_deviceasbuh1hhjlubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjlubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjhubah}(h]h ]h"]h$]h&]j+j,uh1j4hj/hhhjAhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj+hhhjAhKubah}(h]j&ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjAhKhj(hhubjB)}(hhh]jG)}(h!remove the visibility of a deviceh]h!remove the visibility of a device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chKhjhhubah}(h]h ]h"]h$]h&]uh1jAhj(hhhjAhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjubj)}(hhh]j)}(h0``struct device *dev`` generic device to remove h](j)}(h``struct device *dev``h]j)}(hj4h]hstruct device *dev}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj.ubj)}(hhh]jG)}(hgeneric device to removeh]hgeneric device to remove}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMhj+ubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjoh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjmubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjubjG)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%transport_destroy_device (C function)c.transport_destroy_devicehNtauh1hhjShhhNhNubh)}(hhh](h)}(h2void transport_destroy_device (struct device *dev)h]h)}(h1void transport_destroy_device(struct device *dev)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(htransport_destroy_deviceh]j)}(htransport_destroy_deviceh]htransport_destroy_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]j#5)}j5jsbc.transport_destroy_deviceasbuh1hhjubh)}(h h]h }(hj/ hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj= hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjJ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(hdestroy a removed deviceh]hdestroy a removed device}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhjq hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj jgj jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM hj ubj)}(hhh]j)}(hE``struct device *dev`` device to eliminate from the transport class. h](j)}(h``struct device *dev``h]j)}(hj h]hstruct device *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chMhj ubj)}(hhh]jG)}(h-device to eliminate from the transport class.h]h-device to eliminate from the transport class.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM hj ubjG)}(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&]uh1jFhh/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:53: ./drivers/base/transport_class.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.driver_deferred_probe_check_state (C function)#c.driver_deferred_probe_check_statehNtauh1hhjShhhNhNubh)}(hhh](h)}(h:int driver_deferred_probe_check_state (struct device *dev)h]h)}(h9int driver_deferred_probe_check_state(struct device *dev)h](j4)}(hinth]hint}(hj5!hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj1!hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubh)}(h h]h }(hjD!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1!hhhjC!hMubj)}(h!driver_deferred_probe_check_stateh]j)}(h!driver_deferred_probe_check_stateh]h!driver_deferred_probe_check_state}(hjV!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR!ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj1!hhhjC!hMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjr!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjn!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn!ubh)}(hhh]j)}(hdeviceh]hdevice}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj!modnameN classnameNj5j5)}j 5]j#5)}j5jX!sb#c.driver_deferred_probe_check_stateasbuh1hhjn!ubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjn!ubj75)}(hj:5h]h*}(hj!hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjn!ubj)}(hdevh]hdev}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn!ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjj!ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj1!hhhjC!hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj-!hhhjC!hMubah}(h]j(!ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjC!hMhj*!hhubjB)}(hhh]jG)}(hCheck deferred probe stateh]hCheck deferred probe state}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj!hhubah}(h]h ]h"]h$]h&]uh1jAhj*!hhhjC!hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj "jgj "jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj"h]h Parameters}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj"ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(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:56: ./drivers/base/dd.chMhj0"ubj)}(hhh]jG)}(hdevice to checkh]hdevice to check}(hjO"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjK"hMhjL"ubah}(h]h ]h"]h$]h&]uh1jhj0"ubeh}(h]h ]h"]h$]h&]uh1jhjK"hMhj-"ubah}(h]h ]h"]h$]h&]uh1jhj"ubjG)}(h **Return**h]jv)}(hjq"h]hReturn}(hjs"hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjo"ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubj))}(hhh](j.)}(h=-ENODEV if initcalls have completed and modules are disabled.h]jG)}(hj"h]h=-ENODEV if initcalls have completed and modules are disabled.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubah}(h]h ]h"]h$]h&]uh1j-hj"ubj.)}(hY-ETIMEDOUT if the deferred probe timeout was set and has expired and modules are enabled.h]jG)}(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&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubah}(h]h ]h"]h$]h&]uh1j-hj"ubj.)}(h-EPROBE_DEFER in other cases. h]jG)}(h-EPROBE_DEFER in other cases.h]h-EPROBE_DEFER in other cases.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubah}(h]h ]h"]h$]h&]uh1j-hj"ubeh}(h]h ]h"]h$]h&]jj:5uh1j(hj"hMhj"ubjG)}(h**Description**h]jv)}(hj"h]h Description}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj"ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubjG)}(hfDrivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.h]hfDrivers or subsystems can opt-in to calling this function instead of directly returning -EPROBE_DEFER.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_is_bound (C function)c.device_is_boundhNtauh1hhjShhhNhNubh)}(hhh](h)}(h)bool device_is_bound (struct device *dev)h]h)}(h(bool device_is_bound(struct device *dev)h](j4)}(hj4h]hbool}(hj!#hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj#hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubh)}(h h]h }(hj/#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#hhhj.#hMubj)}(hdevice_is_boundh]j)}(hdevice_is_boundh]hdevice_is_bound}(hjA#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=#ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj#hhhj.#hMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj]#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjY#ubh)}(h h]h }(hjj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY#ubh)}(hhh]j)}(hdeviceh]hdevice}(hj{#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjx#ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj}#modnameN classnameNj5j5)}j 5]j#5)}j5jC#sbc.device_is_boundasbuh1hhjY#ubh)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY#ubj75)}(hj:5h]h*}(hj#hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjY#ubj)}(hdevh]hdev}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY#ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjU#ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj#hhhj.#hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj#hhhj.#hMubah}(h]j#ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj.#hMhj#hhubjB)}(hhh]jG)}(h$Check if device is bound to a driverh]h$Check if device is bound to a driver}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj#hhubah}(h]h ]h"]h$]h&]uh1jAhj#hhhj.#hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj#jgj#jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj$ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj#ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj!$h]hstruct device *dev}(hj#$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj$ubj)}(hhh]jG)}(hdevice to checkh]hdevice to check}(hj:$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6$hMhj7$ubah}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]uh1jhj6$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhj#ubjG)}(h**Description**h]jv)}(hj\$h]h Description}(hj^$hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjZ$ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj#ubjG)}(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.}(hjr$hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj#ubjG)}(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&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_bind_driver (C function)c.device_bind_driverhNtauh1hhjShhhNhNubh)}(hhh](h)}(h+int device_bind_driver (struct device *dev)h]h)}(h*int device_bind_driver(struct device *dev)h](j4)}(hinth]hint}(hj$hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj$hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj$hMubj)}(hdevice_bind_driverh]j)}(hdevice_bind_driverh]hdevice_bind_driver}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj$hhhj$hMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$ubh)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j)}(hdeviceh]hdevice}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj %modnameN classnameNj5j5)}j 5]j#5)}j5j$sbc.device_bind_driverasbuh1hhj$ubh)}(h h]h }(hj+%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj75)}(hj:5h]h*}(hj9%hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj$ubj)}(hdevh]hdev}(hjF%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj$ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj$hhhj$hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj$hhhj$hMubah}(h]j$ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj$hMhj$hhubjB)}(hhh]jG)}(hbind a driver to one device.h]hbind a driver to one device.}(hjp%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjm%hhubah}(h]h ]h"]h$]h&]uh1jAhj$hhhj$hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj%jgj%jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj%ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj%ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj%h]hstruct device *dev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj%ubj)}(hhh]jG)}(hdevice.h]hdevice.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubjG)}(h**Description**h]jv)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj%ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj%ubjG)}(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&hhhNhNubjv)}(h**dev->driver**h]h dev->driver}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj&ubh.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj%ubjG)}(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&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj%ubjG)}(h7This function must be called with the device lock held.h]h7This function must be called with the device lock held.}(hj2&hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj%ubjG)}(hj?)j@huh1hhj~&hMhje&hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhje&hhhj~&hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj&jgj&jhjijjuh1hhhhjShNhNubjl)}(hb**Parameters** ``void`` no arguments **Description** Wait for device probing to be completed.h](jG)}(h**Parameters**h]jv)}(hj&h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj&ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj&ubj)}(hhh]j)}(h``void`` no arguments h](j)}(h``void``h]j)}(hj 'h]hvoid}(hj 'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chKhj'ubj)}(hhh]jG)}(h no argumentsh]h no arguments}(hj"'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj'hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubjG)}(h**Description**h]jv)}(hjD'h]h Description}(hjF'hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjB'ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chKhj&ubjG)}(h(Wait for device probing to be completed.h]h(Wait for device probing to be completed.}(hjZ'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_attach (C function)c.device_attachhNtauh1hhjShhhNhNubh)}(hhh](h)}(h&int device_attach (struct device *dev)h]h)}(h%int device_attach(struct device *dev)h](j4)}(hinth]hint}(hj'hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj'hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM!ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hM!ubj)}(h device_attachh]j)}(h device_attachh]h device_attach}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj'hhhj'hM!ubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j)}(hdeviceh]hdevice}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj'modnameN classnameNj5j5)}j 5]j#5)}j5j'sbc.device_attachasbuh1hhj'ubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj75)}(hj:5h]h*}(hj(hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj'ubj)}(hdevh]hdev}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj'ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj'hhhj'hM!ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj'hhhj'hM!ubah}(h]j|'ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj'hM!hj~'hhubjB)}(hhh]jG)}(h!try to attach device to a driver.h]h!try to attach device to a driver.}(hjI(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM!hjF(hhubah}(h]h ]h"]h$]h&]uh1jAhj~'hhhj'hM!ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfja(jgja(jhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct device *dev`` device. **Description** Walk 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. Returns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered. When called for a USB interface, **dev->parent** lock must be held.h](jG)}(h**Parameters**h]jv)}(hjk(h]h Parameters}(hjm(hhhNhNubah}(h]h ]h"]h$]h&]uh1juhji(ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM%hje(ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hj(h]hstruct device *dev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM"hj(ubj)}(hhh]jG)}(hdevice.h]hdevice.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj(hM"hj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hM"hj(ubah}(h]h ]h"]h$]h&]uh1jhje(ubjG)}(h**Description**h]jv)}(hj(h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj(ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM$hje(ubjG)}(hWalk the list of drivers that the bus has and call driver_probe_device() for each pair. If a compatible pair is found, break out and return.h]hWalk the list of drivers that the bus has and call driver_probe_device() for each pair. If a compatible pair is found, break out and return.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM$hje(ubjG)}(hzReturns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered.h]hzReturns 1 if the device was bound to a driver; 0 if no matching driver was found; -ENODEV if the device is not registered.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM(hje(ubjG)}(hCWhen called for a USB interface, **dev->parent** lock must be held.h](h!When called for a USB interface, }(hj(hhhNhNubjv)}(h**dev->parent**h]h dev->parent}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj(ubh lock must be held.}(hj(hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM,hje(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!device_driver_attach (C function)c.device_driver_attachhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj:)hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj6)hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMZubh)}(h h]h }(hjI)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6)hhhjH)hMZubj)}(hdevice_driver_attachh]j)}(hdevice_driver_attachh]hdevice_driver_attach}(hj[)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjW)ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj6)hhhjH)hMZubj4)}(h5(const struct device_driver *drv, struct device *dev)h](j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hjw)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjs)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs)ubh)}(hhh]hstruct}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjs)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs)ubh)}(hhh]j)}(h device_driverh]h device_driver}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj)modnameN classnameNj5j5)}j 5]j#5)}j5j])sbc.device_driver_attachasbuh1hhjs)ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs)ubj75)}(hj:5h]h*}(hj)hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjs)ubj)}(hdrvh]hdrv}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjs)ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjo)ubj4)}(hstruct device *devh](h)}(hhh]hstruct}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*ubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hhh]j)}(hdeviceh]hdevice}(hj"*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj$*modnameN classnameNj5j5)}j 5]j)c.device_driver_attachasbuh1hhj*ubh)}(h h]h }(hj@*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj75)}(hj:5h]h*}(hjN*hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj*ubj)}(hdevh]hdev}(hj[*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjo)ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj6)hhhjH)hMZubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj2)hhhjH)hMZubah}(h]j-)ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjH)hMZhj/)hhubjB)}(hhh]jG)}(h-attach a specific driver to a specific deviceh]h-attach a specific driver to a specific device}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMZhj*hhubah}(h]h ]h"]h$]h&]uh1jAhj/)hhhjH)hMZubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj*jgj*jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj*h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj*ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM^hj*ubj)}(hhh](j)}(h5``const struct device_driver *drv`` Driver to attach h](j)}(h#``const struct device_driver *drv``h]j)}(hj*h]hconst struct device_driver *drv}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM[hj*ubj)}(hhh]jG)}(hDriver to attachh]hDriver to attach}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj*hM[hj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj*hM[hj*ubj)}(h.``struct device *dev`` Device to attach it to h](j)}(h``struct device *dev``h]j)}(hj*h]hstruct device *dev}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM\hj*ubj)}(hhh]jG)}(hDevice to attach it toh]hDevice to attach it to}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+hM\hj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj+hM\hj*ubeh}(h]h ]h"]h$]h&]uh1jhj*ubjG)}(h**Description**h]jv)}(hj:+h]h Description}(hj<+hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj8+ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM^hj*ubjG)}(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 }(hjP+hhhNhNubjv)}(h**dev**h]hdev}(hjX+hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjP+ubh lock and }(hjP+hhhNhNubjv)}(h**dev->parent**h]h dev->parent}(hjj+hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjP+ubh7 lock if needed. Returns 0 on success, -ERR on failure.}(hjP+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chM^hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdriver_attach (C function)c.driver_attachhNtauh1hhjShhhNhNubh)}(hhh](h)}(h3int driver_attach (const struct device_driver *drv)h]h)}(h2int driver_attach(const struct device_driver *drv)h](j4)}(hinth]hint}(hj+hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj+hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj+hMubj)}(h driver_attachh]j)}(h driver_attachh]h driver_attach}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj+hhhj+hMubj4)}(h!(const struct device_driver *drv)h]j4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hhh]hstruct}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hhh]j)}(h device_driverh]h device_driver}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj,modnameN classnameNj5j5)}j 5]j#5)}j5j+sbc.driver_attachasbuh1hhj+ubh)}(h h]h }(hj9,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj75)}(hj:5h]h*}(hjG,hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj+ubj)}(hdrvh]hdrv}(hjT,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj+ubah}(h]h ]h"]h$]h&]j+j,uh1j4hj+hhhj+hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj+hhhj+hMubah}(h]j+ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj+hMhj+hhubjB)}(hhh]jG)}(htry to bind driver to devices.h]htry to bind driver to devices.}(hj~,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj{,hhubah}(h]h ]h"]h$]h&]uh1jAhj+hhhj+hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj,jgj,jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj,h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj,ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubj)}(hhh]j)}(h,``const struct device_driver *drv`` driver. h](j)}(h#``const struct device_driver *drv``h]j)}(hj,h]hconst struct device_driver *drv}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubj)}(hhh]jG)}(hdriver.h]hdriver.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubjG)}(h**Description**h]jv)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj,ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubjG)}(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 }(hj-hhhNhNubjv)}(h**dev->driver**h]h dev->driver}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj-ubh) is set, we’ve found a compatible pair.}(hj-hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"device_release_driver (C function)c.device_release_driverhNtauh1hhjShhhNhNubh)}(hhh](h)}(h/void device_release_driver (struct device *dev)h]h)}(h.void device_release_driver(struct device *dev)h](j4)}(hvoidh]hvoid}(hjQ-hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjM-hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMubh)}(h h]h }(hj`-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjM-hhhj_-hMubj)}(hdevice_release_driverh]j)}(hdevice_release_driverh]hdevice_release_driver}(hjr-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn-ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjM-hhhj_-hMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubh)}(hhh]j)}(hdeviceh]hdevice}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj-modnameN classnameNj5j5)}j 5]j#5)}j5jt-sbc.device_release_driverasbuh1hhj-ubh)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-ubj75)}(hj:5h]h*}(hj-hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj-ubj)}(hdevh]hdev}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj-ubah}(h]h ]h"]h$]h&]j+j,uh1j4hjM-hhhj_-hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjI-hhhj_-hMubah}(h]jD-ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj_-hMhjF-hhubjB)}(hhh]jG)}(h#manually detach device from driver.h]h#manually detach device from driver.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj.hhubah}(h]h ]h"]h$]h&]uh1jAhjF-hhhj_-hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj).jgj).jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj3.h]h Parameters}(hj5.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj1.ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-.ubj)}(hhh]j)}(h``struct device *dev`` device. h](j)}(h``struct device *dev``h]j)}(hjR.h]hstruct device *dev}(hjT.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP.ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhjL.ubj)}(hhh]jG)}(hdevice.h]hdevice.}(hjk.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjg.hMhjh.ubah}(h]h ]h"]h$]h&]uh1jhjL.ubeh}(h]h ]h"]h$]h&]uh1jhjg.hMhjI.ubah}(h]h ]h"]h$]h&]uh1jhj-.ubjG)}(h**Description**h]jv)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj.ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-.ubjG)}(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.hhhNhNubjv)}(h**dev->parent**h]h dev->parent}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj.ubh lock must be held.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-.ubjG)}(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 }(hj.hhhNhNubjv)}(h**dev->parent**h]h dev->parent}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj.ubhv lock held, ensure that the device’s consumers are unbound in advance or that their locks can be acquired under the }(hj.hhhNhNubjv)}(h**dev->parent**h]h dev->parent}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj.ubh lock.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:56: ./drivers/base/dd.chMhj-.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ.platform_device_register_resndata (C function)#c.platform_device_register_resndatahNtauh1hhjShhhNhNubh)}(hhh](h)}(hstruct platform_device * platform_device_register_resndata (struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h]h)}(hstruct platform_device *platform_device_register_resndata(struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h](h)}(hhh]hstruct}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubh)}(h h]h }(hj%/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhj$/hKubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj6/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3/ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj8/modnameN classnameNj5j5)}j 5]j#5)}j5!platform_device_register_resndatasb#c.platform_device_register_resndataasbuh1hhj/hhhj$/hKubh)}(h h]h }(hjW/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhj$/hKubj75)}(hj:5h]h*}(hje/hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj/hhhj$/hKubj)}(h!platform_device_register_resndatah]j)}(hjT/h]h!platform_device_register_resndata}(hjv/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr/ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj/hhhj$/hKubj4)}(h~(struct device *parent, const char *name, int id, const struct resource *res, unsigned int num, const void *data, size_t size)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j)}(hdeviceh]hdevice}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj/modnameN classnameNj5j5)}j 5]jR/#c.platform_device_register_resndataasbuh1hhj/ubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj75)}(hj:5h]h*}(hj/hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj/ubj)}(hparenth]hparent}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj4)}(hcharh]hchar}(hj0hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj/ubh)}(h h]h }(hj*0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj75)}(hj:5h]h*}(hj80hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj/ubj)}(hnameh]hname}(hjE0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubj4)}(hint idh](j4)}(hinth]hint}(hj^0hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjZ0ubh)}(h h]h }(hjl0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ0ubj)}(hidh]hid}(hjz0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ0ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubj4)}(hconst struct resource *resh](h)}(hj6h]hconst}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]hstruct}(hj0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j)}(hresourceh]hresource}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj0modnameN classnameNj5j5)}j 5]jR/#c.platform_device_register_resndataasbuh1hhj0ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj75)}(hj:5h]h*}(hj0hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj0ubj)}(hresh]hres}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubj4)}(hunsigned int numh](j4)}(hunsignedh]hunsigned}(hj1hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj1ubh)}(h h]h }(hj,1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj4)}(hinth]hint}(hj:1hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj1ubh)}(h h]h }(hjH1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hnumh]hnum}(hjV1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubj4)}(hconst void *datah](h)}(hj6h]hconst}(hjo1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjk1ubh)}(h h]h }(hj|1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk1ubj4)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjk1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjk1ubj75)}(hj:5h]h*}(hj1hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjk1ubj)}(hdatah]hdata}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjk1ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubj4)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj1modnameN classnameNj5j5)}j 5]jR/#c.platform_device_register_resndataasbuh1hhj1ubh)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hsizeh]hsize}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj/ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj/hhhj$/hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj/hhhj$/hKubah}(h]j /ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj$/hKhj /hhubjB)}(hhh]jG)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hj%2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj"2hhubah}(h]h ]h"]h$]h&]uh1jAhj /hhhj$/hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj=2jgj=2jhjijjuh1hhhhjShNhNubjl)}(hX'**Parameters** ``struct device *parent`` parent device for the device we're adding ``const char *name`` base name of the device we're adding ``int id`` instance id ``const struct resource *res`` set of resources that needs to be allocated for the device ``unsigned int num`` number of resources ``const void *data`` platform specific data for this platform device ``size_t size`` size of platform specific data **Description** Returns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](jG)}(h**Parameters**h]jv)}(hjG2h]h Parameters}(hjI2hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjE2ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjA2ubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjf2h]hstruct device *parent}(hjh2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd2ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj`2ubj)}(hhh]jG)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{2hKhj|2ubah}(h]h ]h"]h$]h&]uh1jhj`2ubeh}(h]h ]h"]h$]h&]uh1jhj{2hKhj]2ubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hj2h]hconst char *name}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj2ubj)}(hhh]jG)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj]2ubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj2h]hint id}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj2ubj)}(hhh]jG)}(h instance idh]h instance id}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhj2hKhj]2ubj)}(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)}(hj3h]hconst struct resource *res}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj 3ubj)}(hhh]jG)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hj*3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&3hKhj'3ubah}(h]h ]h"]h$]h&]uh1jhj 3ubeh}(h]h ]h"]h$]h&]uh1jhj&3hKhj]2ubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjJ3h]hunsigned int num}(hjL3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH3ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjD3ubj)}(hhh]jG)}(hnumber of resourcesh]hnumber of resources}(hjc3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_3hKhj`3ubah}(h]h ]h"]h$]h&]uh1jhjD3ubeh}(h]h ]h"]h$]h&]uh1jhj_3hKhj]2ubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hj3h]hconst void *data}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj}3ubj)}(hhh]jG)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1jhj}3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhj]2ubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj3h]h size_t size}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj3ubj)}(hhh]jG)}(hsize of platform specific datah]hsize of platform specific data}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1jhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhj]2ubeh}(h]h ]h"]h$]h&]uh1jhjA2ubjG)}(h**Description**h]jv)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj3ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjA2ubjG)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj 4hhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hj4h]hstruct platform_device}(hj4hhhNhNubah}(h]h ](jej`c-typeeh"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejeplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj 4ubh+ pointer on success, or ERR_PTR() on error.}(hj 4hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhj44hKhjA2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,platform_device_register_simple (C function)!c.platform_device_register_simplehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj_4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj[4hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubh)}(h h]h }(hjm4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[4hhhjl4hKubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj~4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{4ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj4modnameN classnameNj5j5)}j 5]j#5)}j5platform_device_register_simplesb!c.platform_device_register_simpleasbuh1hhj[4hhhjl4hKubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[4hhhjl4hKubj75)}(hj:5h]h*}(hj4hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj[4hhhjl4hKubj)}(hplatform_device_register_simpleh]j)}(hj4h]hplatform_device_register_simple}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj[4hhhjl4hKubj4)}(hH(const char *name, int id, const struct resource *res, unsigned int num)h](j4)}(hconst char *nameh](h)}(hj6h]hconst}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj4)}(hcharh]hchar}(hj4hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj4ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj75)}(hj:5h]h*}(hj5hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj4ubj)}(hnameh]hname}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubj4)}(hint idh](j4)}(hinth]hint}(hj65hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj25ubh)}(h h]h }(hjD5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj25ubj)}(hidh]hid}(hjR5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj25ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubj4)}(hconst struct resource *resh](h)}(hj6h]hconst}(hjk5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg5ubh)}(h h]h }(hjx5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg5ubh)}(hhh]hstruct}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg5ubh)}(hhh]j)}(hresourceh]hresource}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj5modnameN classnameNj5j5)}j 5]j4!c.platform_device_register_simpleasbuh1hhjg5ubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg5ubj75)}(hj:5h]h*}(hj5hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjg5ubj)}(hresh]hres}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg5ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubj4)}(hunsigned int numh](j4)}(hunsignedh]hunsigned}(hj5hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj5ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj4)}(hinth]hint}(hj6hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj5ubh)}(h h]h }(hj 6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hnumh]hnum}(hj.6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj4ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj[4hhhjl4hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjW4hhhjl4hKubah}(h]jR4ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjl4hKhjT4hhubjB)}(hhh]jG)}(h-add a platform-level device and its resourcesh]h-add a platform-level device and its resources}(hjX6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjU6hhubah}(h]h ]h"]h$]h&]uh1jAhjT4hhhjl4hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjp6jgjp6jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjz6h]h Parameters}(hj|6hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjx6ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjt6ubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hj6h]hconst char *name}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj6ubj)}(hhh]jG)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj6h]hint id}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj6ubj)}(hhh]jG)}(h instance idh]h instance id}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6hKhj6ubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhj6hKhj6ubj)}(hZ``const struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``const struct resource *res``h]j)}(hj 7h]hconst struct resource *res}(hj 7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 7ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj7ubj)}(hhh]jG)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hj$7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj 7hKhj!7ubah}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ]h"]h$]h&]uh1jhj 7hKhj6ubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjD7h]hunsigned int num}(hjF7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB7ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj>7ubj)}(hhh]jG)}(hnumber of resourcesh]hnumber of resources}(hj]7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjY7hKhjZ7ubah}(h]h ]h"]h$]h&]uh1jhj>7ubeh}(h]h ]h"]h$]h&]uh1jhjY7hKhj6ubeh}(h]h ]h"]h$]h&]uh1jhjt6ubjG)}(h**Description**h]jv)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj}7ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjt6ubjG)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjt6ubjG)}(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”.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjt6ubjG)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj7hhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hj7h]hstruct platform_device}(hj7hhhNhNubah}(h]h ](jej`c-typeeh"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejeplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj7ubh+ pointer on success, or ERR_PTR() on error.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhj7hKhjt6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*platform_device_register_data (C function)c.platform_device_register_datahNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj8hKubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj$8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!8ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj&8modnameN classnameNj5j5)}j 5]j#5)}j5platform_device_register_datasbc.platform_device_register_dataasbuh1hhj8hhhj8hKubh)}(h h]h }(hjE8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj8hKubj75)}(hj:5h]h*}(hjS8hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj8hhhj8hKubj)}(hplatform_device_register_datah]j)}(hjB8h]hplatform_device_register_data}(hjd8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`8ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj8hhhj8hKubj4)}(hP(struct device *parent, const char *name, int id, const void *data, size_t size)h](j4)}(hstruct device *parenth](h)}(hhh]hstruct}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{8ubh)}(hhh]j)}(hdeviceh]hdevice}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj8modnameN classnameNj5j5)}j 5]j@8c.platform_device_register_dataasbuh1hhj{8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{8ubj75)}(hj:5h]h*}(hj8hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj{8ubj)}(hparenth]hparent}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{8ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjw8ubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj4)}(hcharh]hchar}(hj 9hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj8ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj75)}(hj:5h]h*}(hj&9hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj8ubj)}(hnameh]hname}(hj39hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjw8ubj4)}(hint idh](j4)}(hinth]hint}(hjL9hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjH9ubh)}(h h]h }(hjZ9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH9ubj)}(hidh]hid}(hjh9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH9ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjw8ubj4)}(hconst void *datah](h)}(hj6h]hconst}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}9ubj4)}(hvoidh]hvoid}(hj9hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj}9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}9ubj75)}(hj:5h]h*}(hj9hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj}9ubj)}(hdatah]hdata}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}9ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjw8ubj4)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj9modnameN classnameNj5j5)}j 5]j@8c.platform_device_register_dataasbuh1hhj9ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hsizeh]hsize}(hj :hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjw8ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj8hhhj8hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj7hhhj8hKubah}(h]j7ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj8hKhj7hhubjB)}(hhh]jG)}(h7add a platform-level device with platform-specific datah]h7add a platform-level device with platform-specific data}(hj7:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj4:hhubah}(h]h ]h"]h$]h&]uh1jAhj7hhhj8hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjO:jgjO:jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjY:h]h Parameters}(hj[:hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjW:ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjS:ubj)}(hhh](j)}(hD``struct device *parent`` parent device for the device we're adding h](j)}(h``struct device *parent``h]j)}(hjx:h]hstruct device *parent}(hjz:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv:ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjr:ubj)}(hhh]jG)}(h)parent device for the device we're addingh]h+parent device for the device we’re adding}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1jhjr:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjo:ubj)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hj:h]hconst char *name}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj:ubj)}(hhh]jG)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hKhj:ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjo:ubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hj:h]hint id}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj:ubj)}(hhh]jG)}(h instance idh]h instance id}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jhj:ubeh}(h]h ]h"]h$]h&]uh1jhj:hKhjo:ubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hj#;h]hconst void *data}(hj%;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!;ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj;ubj)}(hhh]jG)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hj<;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj8;hKhj9;ubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ]h"]h$]h&]uh1jhj8;hKhjo:ubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hj\;h]h size_t size}(hj^;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZ;ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjV;ubj)}(hhh]jG)}(hsize of platform specific datah]hsize of platform specific data}(hju;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjq;hKhjr;ubah}(h]h ]h"]h$]h&]uh1jhjV;ubeh}(h]h ]h"]h$]h&]uh1jhjq;hKhjo:ubeh}(h]h ]h"]h$]h&]uh1jhjS:ubjG)}(h**Description**h]jv)}(hj;h]h Description}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj;ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjS:ubjG)}(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.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhjS:ubjG)}(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 ](jej`c-typeeh"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejeplatform_deviceuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:59: ./include/linux/platform_device.hhKhj;ubh+ pointer on success, or ERR_PTR() on error.}(hj;hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhj;hKhjS:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"platform_get_resource (C function)c.platform_get_resourcehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj <hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj <hhhj<hK0ubh)}(hhh]j)}(hresourceh]hresource}(hj-<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*<ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj/<modnameN classnameNj5j5)}j 5]j#5)}j5platform_get_resourcesbc.platform_get_resourceasbuh1hhj <hhhj<hK0ubh)}(h h]h }(hjN<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj <hhhj<hK0ubj75)}(hj:5h]h*}(hj\<hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj <hhhj<hK0ubj)}(hplatform_get_resourceh]j)}(hjK<h]hplatform_get_resource}(hjm<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhji<ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj <hhhj<hK0ubj4)}(hB(struct platform_device *dev, unsigned int type, unsigned int num)h](j4)}(hstruct platform_device *devh](h)}(hhh]hstruct}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj<modnameN classnameNj5j5)}j 5]jI<c.platform_get_resourceasbuh1hhj<ubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj75)}(hj:5h]h*}(hj<hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj<ubj)}(hdevh]hdev}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj<ubj4)}(hunsigned int typeh](j4)}(hunsignedh]hunsigned}(hj<hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj<ubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj4)}(hinth]hint}(hj=hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj<ubh)}(h h]h }(hj"=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(htypeh]htype}(hj0=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj<ubj4)}(hunsigned int numh](j4)}(hunsignedh]hunsigned}(hjI=hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjE=ubh)}(h h]h }(hjW=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE=ubj4)}(hinth]hint}(hje=hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjE=ubh)}(h h]h }(hjs=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjE=ubj)}(hnumh]hnum}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjE=ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj<ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj <hhhj<hK0ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj<hhhj<hK0ubah}(h]j<ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj<hK0hj<hhubjB)}(hhh]jG)}(hget a resource for a deviceh]hget a resource for a device}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK0hj=hhubah}(h]h ]h"]h$]h&]uh1jAhj<hhhj<hK0ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj=jgj=jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj=ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./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:62: ./drivers/base/platform.chK1hj=ubj)}(hhh]jG)}(hplatform deviceh]hplatform device}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj>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:62: ./drivers/base/platform.chK2hj>ubj)}(hhh]jG)}(h resource typeh]h resource type}(hj>>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:>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)}(hj^>h]hunsigned int num}(hj`>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\>ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK3hjX>ubj)}(hhh]jG)}(hresource indexh]hresource index}(hjw>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjs>hK3hjt>ubah}(h]h ]h"]h$]h&]uh1jhjX>ubeh}(h]h ]h"]h$]h&]uh1jhjs>hK3hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=ubjG)}(h **Return**h]jv)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj>ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK5hj=ubjG)}(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&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK5hj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ3devm_platform_get_and_ioremap_resource (C function)(c.devm_platform_get_and_ioremap_resourcehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hj>hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj>hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKWubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhj>hKWubh__iomem}(hj>hhhNhNubh)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>hhhj>hKWubj75)}(hj:5h]h*}(hj ?hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj>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 ]jah"]h$]h&]uh1jhj?ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj>hhhj>hKWubj4)}(hI(struct platform_device *pdev, unsigned int index, struct resource **res)h](j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hj:?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6?ubh)}(h h]h }(hjG?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6?ubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjX?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjU?ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjZ?modnameN classnameNj5j5)}j 5]j#5)}j5j ?sb(c.devm_platform_get_and_ioremap_resourceasbuh1hhj6?ubh)}(h h]h }(hjx?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6?ubj75)}(hj:5h]h*}(hj?hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj6?ubj)}(hpdevh]hpdev}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6?ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj2?ubj4)}(hunsigned int indexh](j4)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj4)}(hinth]hint}(hj?hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj?ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hindexh]hindex}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj2?ubj4)}(hstruct resource **resh](h)}(hhh]hstruct}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?ubh)}(h h]h }(hj @hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j)}(hresourceh]hresource}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj@modnameN classnameNj5j5)}j 5]jt?(c.devm_platform_get_and_ioremap_resourceasbuh1hhj?ubh)}(h h]h }(hj9@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj75)}(hj:5h]h*}(hjG@hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj?ubj75)}(hj:5h]h*}(hjT@hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj?ubj)}(hresh]hres}(hja@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj2?ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj>hhhj>hKWubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj>hhhj>hKWubah}(h]j>ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj>hKWhj>hhubjB)}(hhh]jG)}(hCcall devm_ioremap_resource() for a platform device and get resourceh]hCcall devm_ioremap_resource() for a platform device and get resource}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKWhj@hhubah}(h]h ]h"]h$]h&]uh1jAhj>hhhj>hKWubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj@jgj@jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj@ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./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:62: ./drivers/base/platform.chK[hj@ubj)}(hhh]jG)}(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&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./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)}(hjAh]hunsigned int index}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK\hjAubj)}(hhh]jG)}(hresource indexh]hresource index}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjAhK\hjAubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjAhK\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?Ah]hstruct resource **res}(hjAAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Aubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK]hj9Aubj)}(hhh]jG)}(hFoptional output parameter to store a pointer to the obtained resource.h]hFoptional output parameter to store a pointer to the obtained resource.}(hjXAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjTAhK]hjUAubah}(h]h ]h"]h$]h&]uh1jhj9Aubeh}(h]h ]h"]h$]h&]uh1jhjTAhK]hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@ubjG)}(h **Return**h]jv)}(hjzAh]hReturn}(hj|AhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjxAubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK_hj@ubjG)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chK_hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+devm_platform_ioremap_resource (C function) c.devm_platform_ioremap_resourcehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjAhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKpubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjAhKpubh__iomem}(hjAhhhNhNubh)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjAhKpubj75)}(hj:5h]h*}(hjAhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjAhhhjAhKpubj)}(hdevm_platform_ioremap_resourceh]j)}(hdevm_platform_ioremap_resourceh]hdevm_platform_ioremap_resource}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjAhhhjAhKpubj4)}(h2(struct platform_device *pdev, unsigned int index)h](j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubh)}(h h]h }(hj(BhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj9BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6Bubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj;BmodnameN classnameNj5j5)}j 5]j#5)}j5jBsb c.devm_platform_ioremap_resourceasbuh1hhjBubh)}(h h]h }(hjYBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj75)}(hj:5h]h*}(hjgBhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjBubj)}(hpdevh]hpdev}(hjtBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjBubj4)}(hunsigned int indexh](j4)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj4)}(hinth]hint}(hjBhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjBubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hindexh]hindex}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjBubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjAhhhjAhKpubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjAhhhjAhKpubah}(h]jAah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjAhKphjAhhubjB)}(hhh]jG)}(h2call devm_ioremap_resource() for a platform deviceh]h2call devm_ioremap_resource() for a platform device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKphjBhhubah}(h]h ]h"]h$]h&]uh1jAhjAhhhjAhKpubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjCjgjCjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1juhjCubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKthj Cubj)}(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)}(hj0Ch]hstruct platform_device *pdev}(hj2ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.Cubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKthj*Cubj)}(hhh]jG)}(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}(hjIChhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKshjFCubah}(h]h ]h"]h$]h&]uh1jhj*Cubeh}(h]h ]h"]h$]h&]uh1jhjEChKthj'Cubj)}(h&``unsigned int index`` resource index h](j)}(h``unsigned int index``h]j)}(hjjCh]hunsigned int index}(hjlChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhCubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKuhjdCubj)}(hhh]jG)}(hresource indexh]hresource index}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjChKuhjCubah}(h]h ]h"]h$]h&]uh1jhjdCubeh}(h]h ]h"]h$]h&]uh1jhjChKuhj'Cubeh}(h]h ]h"]h$]h&]uh1jhj CubjG)}(h **Return**h]jv)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1juhjCubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKwhj CubjG)}(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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKwhj Cubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ2devm_platform_ioremap_resource_byname (C function)'c.devm_platform_ioremap_resource_bynamehNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjChhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjChKubh__iomem}(hjChhhNhNubh)}(h h]h }(hj DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjChKubj75)}(hj:5h]h*}(hjDhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjChhhjChKubj)}(h%devm_platform_ioremap_resource_bynameh]j)}(h%devm_platform_ioremap_resource_bynameh]h%devm_platform_ioremap_resource_byname}(hj*DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&Dubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjChhhjChKubj4)}(h0(struct platform_device *pdev, const char *name)h](j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hjFDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBDubh)}(h h]h }(hjSDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBDubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjdDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaDubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjfDmodnameN classnameNj5j5)}j 5]j#5)}j5j,Dsb'c.devm_platform_ioremap_resource_bynameasbuh1hhjBDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBDubj75)}(hj:5h]h*}(hjDhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjBDubj)}(hpdevh]hpdev}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBDubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj>Dubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj4)}(hcharh]hchar}(hjDhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjDubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj75)}(hj:5h]h*}(hjDhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjDubj)}(hnameh]hname}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj>Dubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjChhhjChKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjChhhjChKubah}(h]jCah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjChKhjChhubjB)}(hhh]jG)}(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}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhj#Ehhubah}(h]h ]h"]h$]h&]uh1jAhjChhhjChKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj>Ejgj>Ejhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjHEh]h Parameters}(hjJEhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjFEubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjBEubj)}(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)}(hjgEh]hstruct platform_device *pdev}(hjiEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeEubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjaEubj)}(hhh]jG)}(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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhj}Eubah}(h]h ]h"]h$]h&]uh1jhjaEubeh}(h]h ]h"]h$]h&]uh1jhj|EhKhj^Eubj)}(h*``const char *name`` name of the resource h](j)}(h``const char *name``h]j)}(hjEh]hconst char *name}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjEubj)}(hhh]jG)}(hname of the resourceh]hname of the resource}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjEhKhjEubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKhj^Eubeh}(h]h ]h"]h$]h&]uh1jhjBEubjG)}(h **Return**h]jv)}(hjEh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjEubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjBEubjG)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjBEubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&platform_get_irq_optional (C function)c.platform_get_irq_optionalhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj!FhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjFhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKubh)}(h h]h }(hj0FhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhj/FhKubj)}(hplatform_get_irq_optionalh]j)}(hplatform_get_irq_optionalh]hplatform_get_irq_optional}(hjBFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Fubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjFhhhj/FhKubj4)}(h/(struct platform_device *dev, unsigned int num)h](j4)}(hstruct platform_device *devh](h)}(hhh]hstruct}(hj^FhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZFubh)}(h h]h }(hjkFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZFubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj|FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyFubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj~FmodnameN classnameNj5j5)}j 5]j#5)}j5jDFsbc.platform_get_irq_optionalasbuh1hhjZFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZFubj75)}(hj:5h]h*}(hjFhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjZFubj)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZFubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVFubj4)}(hunsigned int numh](j4)}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj4)}(hinth]hint}(hjFhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjFubh)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFubj)}(hnumh]hnum}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVFubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjFhhhj/FhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjFhhhj/FhKubah}(h]jFah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj/FhKhjFhhubjB)}(hhh]jG)}(h get an optional IRQ for a deviceh]h get an optional IRQ for a device}(hj2GhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhj/Ghhubah}(h]h ]h"]h$]h&]uh1jAhjFhhhj/FhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjJGjgjJGjhjijjuh1hhhhjShNhNubjl)}(hXh**Parameters** ``struct platform_device *dev`` platform device ``unsigned int num`` IRQ number index **Description** Gets an IRQ 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 IRQ can not be obtained. For example:: int irq = platform_get_irq_optional(pdev, 0); if (irq < 0) return irq; **Return** non-zero IRQ number on success, negative error number on failure.h](jG)}(h**Parameters**h]jv)}(hjTGh]h Parameters}(hjVGhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjRGubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjsGh]hstruct platform_device *dev}(hjuGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqGubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjmGubj)}(hhh]jG)}(hplatform deviceh]hplatform device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGhKhjGubah}(h]h ]h"]h$]h&]uh1jhjmGubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjjGubj)}(h&``unsigned int num`` IRQ number index h](j)}(h``unsigned int num``h]j)}(hjGh]hunsigned int num}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjGubj)}(hhh]jG)}(hIRQ number indexh]hIRQ number index}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGhKhjGubah}(h]h ]h"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]uh1jhjGhKhjjGubeh}(h]h ]h"]h$]h&]uh1jhjNGubjG)}(h**Description**h]jv)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjGubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubjG)}(hXGets an IRQ 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 IRQ can not be obtained.h]hXGets an IRQ 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 IRQ can not be obtained.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubjG)}(h For example::h]h For example:}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubj)}(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;}hjHsbah}(h]h ]h"]h$]h&]j+j,uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubjG)}(h **Return**h]jv)}(hj,Hh]hReturn}(hj.HhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj*Hubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubjG)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjBHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjNGubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌplatform_get_irq (C function)c.platform_get_irqhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjqHhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjmHhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmHhhhjHhKubj)}(hplatform_get_irqh]j)}(hplatform_get_irqh]hplatform_get_irq}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjmHhhhjHhKubj4)}(h/(struct platform_device *dev, unsigned int num)h](j4)}(hstruct platform_device *devh](h)}(hhh]hstruct}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjHmodnameN classnameNj5j5)}j 5]j#5)}j5jHsbc.platform_get_irqasbuh1hhjHubh)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj75)}(hj:5h]h*}(hjHhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjHubj)}(hdevh]hdev}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjHubj4)}(hunsigned int numh](j4)}(hunsignedh]hunsigned}(hj IhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjIubh)}(h h]h }(hj.IhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIubj4)}(hinth]hint}(hjj?)j@huh1hhjHhKhjfHhhubjB)}(hhh]jG)}(hget an IRQ for a deviceh]hget an IRQ for a device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIhhubah}(h]h ]h"]h$]h&]uh1jAhjfHhhhjHhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjIjgjIjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjIubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjIh]hstruct platform_device *dev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIubj)}(hhh]jG)}(hplatform deviceh]hplatform device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjIhKhjIubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjIhKhjIubj)}(h&``unsigned int num`` IRQ 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:62: ./drivers/base/platform.chKhjIubj)}(hhh]jG)}(hIRQ number indexh]hIRQ number index}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjIubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjIubeh}(h]h ]h"]h$]h&]uh1jhjIubjG)}(h**Description**h]jv)}(hj7Jh]h Description}(hj9JhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj5Jubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIubjG)}(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.}(hjMJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIubjG)}(h For example::h]h For example:}(hj\JhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIubj)}(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;}hjkJsbah}(h]h ]h"]h$]h&]j+j,uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chKhjIubjG)}(h **Return**h]jv)}(hj|Jh]hReturn}(hj~JhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjzJubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjIubjG)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌplatform_irq_count (C function)c.platform_irq_counthNtauh1hhjShhhNhNubh)}(hhh](h)}(h4int platform_irq_count (struct platform_device *dev)h]h)}(h3int platform_irq_count(struct platform_device *dev)h](j4)}(hinth]hint}(hjJhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjJhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJhhhjJhMubj)}(hplatform_irq_counth]j)}(hplatform_irq_counth]hplatform_irq_count}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjJhhhjJhMubj4)}(h(struct platform_device *dev)h]j4)}(hstruct platform_device *devh](h)}(hhh]hstruct}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubh)}(h h]h }(hj KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjKmodnameN classnameNj5j5)}j 5]j#5)}j5jJsbc.platform_irq_countasbuh1hhjJubh)}(h h]h }(hjj?)j@huh1hhjJhMhjJhhubjB)}(hhh]jG)}(h/Count the number of IRQs a platform device usesh]h/Count the number of IRQs a platform device uses}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj~Khhubah}(h]h ]h"]h$]h&]uh1jAhjJhhhjJhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjKjgjKjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct platform_device *dev`` platform device **Return** Number of IRQs a platform device uses or EPROBE_DEFERh](jG)}(h**Parameters**h]jv)}(hjKh]h Parameters}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjKubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjKubj)}(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:62: ./drivers/base/platform.chMhjKubj)}(hhh]jG)}(hplatform deviceh]hplatform device}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjKubah}(h]h ]h"]h$]h&]uh1jhjKubjG)}(h **Return**h]jv)}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjKubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjKubjG)}(h5Number of IRQs a platform device uses or EPROBE_DEFERh]h5Number of IRQs a platform device uses or EPROBE_DEFER}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ,devm_platform_get_irqs_affinity (C function)!c.devm_platform_get_irqs_affinityhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjBLhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj>Lhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMBubh)}(h h]h }(hjQLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>LhhhjPLhMBubj)}(hdevm_platform_get_irqs_affinityh]j)}(hdevm_platform_get_irqs_affinityh]hdevm_platform_get_irqs_affinity}(hjcLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_Lubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj>LhhhjPLhMBubj4)}(hn(struct platform_device *dev, struct irq_affinity *affd, unsigned int minvec, unsigned int maxvec, int **irqs)h](j4)}(hstruct platform_device *devh](h)}(hhh]hstruct}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{Lubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{Lubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjLmodnameN classnameNj5j5)}j 5]j#5)}j5jeLsb!c.devm_platform_get_irqs_affinityasbuh1hhj{Lubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{Lubj75)}(hj:5h]h*}(hjLhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj{Lubj)}(hdevh]hdev}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Lubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjwLubj4)}(hstruct irq_affinity *affdh](h)}(hhh]hstruct}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLubh)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubh)}(hhh]j)}(h irq_affinityh]h irq_affinity}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj Mubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjMmodnameN classnameNj5j5)}j 5]jL!c.devm_platform_get_irqs_affinityasbuh1hhjLubh)}(h h]h }(hj-MhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLubj75)}(hj:5h]h*}(hj;MhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjLubj)}(haffdh]haffd}(hjHMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjwLubj4)}(hunsigned int minvech](j4)}(hunsignedh]hunsigned}(hjaMhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj]Mubh)}(h h]h }(hjoMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]Mubj4)}(hinth]hint}(hj}MhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj]Mubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]Mubj)}(hminvech]hminvec}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]Mubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjwLubj4)}(hunsigned int maxvech](j4)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj4)}(hinth]hint}(hjMhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjMubh)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hmaxvech]hmaxvec}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjwLubj4)}(h int **irqsh](j4)}(hinth]hint}(hjNhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjMubh)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj75)}(hj:5h]h*}(hjNhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjMubj75)}(hj:5h]h*}(hj,NhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjMubj)}(hirqsh]hirqs}(hj9NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjwLubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj>LhhhjPLhMBubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj:LhhhjPLhMBubah}(h]j5Lah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjPLhMBhj7LhhubjB)}(hhh]jG)}(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}(hjcNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMBhj`Nhhubah}(h]h ]h"]h$]h&]uh1jAhj7LhhhjPLhMBubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj{Njgj{Njhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMFhjNubj)}(hhh](j)}(h8``struct platform_device *dev`` platform device pointer h](j)}(h``struct platform_device *dev``h]j)}(hjNh]hstruct platform_device *dev}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMDhjNubj)}(hhh]jG)}(hplatform device pointerh]hplatform device pointer}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNhMDhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMDhjNubj)}(h2``struct irq_affinity *affd`` affinity descriptor h](j)}(h``struct irq_affinity *affd``h]j)}(hjNh]hstruct irq_affinity *affd}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMEhjNubj)}(hhh]jG)}(haffinity descriptorh]haffinity descriptor}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjNhMEhjNubah}(h]h ]h"]h$]h&]uh1jhjNubeh}(h]h ]h"]h$]h&]uh1jhjNhMEhjNubj)}(h;``unsigned int minvec`` minimum count of interrupt vectors h](j)}(h``unsigned int minvec``h]j)}(hjOh]hunsigned int minvec}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMFhjOubj)}(hhh]jG)}(h"minimum count of interrupt vectorsh]h"minimum count of interrupt vectors}(hj/OhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj+OhMFhj,Oubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhj+OhMFhjNubj)}(h;``unsigned int maxvec`` maximum count of interrupt vectors h](j)}(h``unsigned int maxvec``h]j)}(hjOOh]hunsigned int maxvec}(hjQOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMOubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMGhjIOubj)}(hhh]jG)}(h"maximum count of interrupt vectorsh]h"maximum count of interrupt vectors}(hjhOhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjdOhMGhjeOubah}(h]h ]h"]h$]h&]uh1jhjIOubeh}(h]h ]h"]h$]h&]uh1jhjdOhMGhjNubj)}(h.``int **irqs`` pointer holder for IRQ numbers h](j)}(h``int **irqs``h]j)}(hjOh]h int **irqs}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMHhjOubj)}(hhh]jG)}(hpointer holder for IRQ numbersh]hpointer holder for IRQ numbers}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjOhMHhjOubah}(h]h ]h"]h$]h&]uh1jhjOubeh}(h]h ]h"]h$]h&]uh1jhjOhMHhjNubeh}(h]h ]h"]h$]h&]uh1jhjNubjG)}(h**Description**h]jv)}(hjOh]h Description}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjOubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMJhjNubjG)}(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}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMJhjNubjG)}(h **Return**h]jv)}(hjOh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjOubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMMhjNubjG)}(h?Number of vectors on success, negative error number on failure.h]h?Number of vectors on success, negative error number on failure.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ)platform_get_resource_byname (C function)c.platform_get_resource_bynamehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj/PhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+Phhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hj=PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+Phhhjj?)j@huh1hhjj?)j@huh1hhjRhMhjRhhubjB)}(hhh]jG)}(hget an IRQ for a device by nameh]hget an IRQ for a device by name}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjShhubah}(h]h ]h"]h$]h&]uh1jAhjRhhhjRhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjTjgjTjhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct platform_device *dev`` platform device ``const char *name`` IRQ name **Description** Get an IRQ like platform_get_irq(), but then by name rather then by index. **Return** non-zero IRQ number on success, negative error number on failure.h](jG)}(h**Parameters**h]jv)}(hj$Th]h Parameters}(hj&ThhhNhNubah}(h]h ]h"]h$]h&]uh1juhj"Tubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjTubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjCTh]hstruct platform_device *dev}(hjEThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjATubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj=Tubj)}(hhh]jG)}(hplatform deviceh]hplatform device}(hj\ThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXThMhjYTubah}(h]h ]h"]h$]h&]uh1jhj=Tubeh}(h]h ]h"]h$]h&]uh1jhjXThMhj:Tubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hj|Th]hconst char *name}(hj~ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzTubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjvTubj)}(hhh]jG)}(hIRQ nameh]hIRQ name}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjThMhjTubah}(h]h ]h"]h$]h&]uh1jhjvTubeh}(h]h ]h"]h$]h&]uh1jhjThMhj:Tubeh}(h]h ]h"]h$]h&]uh1jhjTubjG)}(h**Description**h]jv)}(hjTh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1juhjTubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjTubjG)}(hJGet an IRQ like platform_get_irq(), but then by name rather then by index.h]hJGet an IRQ like platform_get_irq(), but then by name rather then by index.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjTubjG)}(h **Return**h]jv)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1juhjTubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjTubjG)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ-platform_get_irq_byname_optional (C function)"c.platform_get_irq_byname_optionalhNtauh1hhjShhhNhNubh)}(hhh](h)}(hTint platform_get_irq_byname_optional (struct platform_device *dev, const char *name)h]h)}(hSint platform_get_irq_byname_optional(struct platform_device *dev, const char *name)h](j4)}(hinth]hint}(hj#UhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjUhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hj2UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhj1UhMubj)}(h platform_get_irq_byname_optionalh]j)}(h platform_get_irq_byname_optionalh]h platform_get_irq_byname_optional}(hjDUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Uubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjUhhhj1UhMubj4)}(h/(struct platform_device *dev, const char *name)h](j4)}(hstruct platform_device *devh](h)}(hhh]hstruct}(hj`UhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\Uubh)}(h h]h }(hjmUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\Uubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj~UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{Uubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjUmodnameN classnameNj5j5)}j 5]j#5)}j5jFUsb"c.platform_get_irq_byname_optionalasbuh1hhj\Uubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\Uubj75)}(hj:5h]h*}(hjUhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj\Uubj)}(hdevh]hdev}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\Uubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjXUubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj4)}(hcharh]hchar}(hjUhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjUubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj75)}(hj:5h]h*}(hj VhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjUubj)}(hnameh]hname}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjXUubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjUhhhj1UhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjUhhhj1UhMubah}(h]jUah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj1UhMhjUhhubjB)}(hhh]jG)}(h(get an optional IRQ for a device by nameh]h(get an optional IRQ for a device by name}(hj@VhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj=Vhhubah}(h]h ]h"]h$]h&]uh1jAhjUhhhj1UhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjXVjgjXVjhjijjuh1hhhhjShNhNubjl)}(hXM**Parameters** ``struct platform_device *dev`` platform device ``const char *name`` IRQ name **Description** Get an optional IRQ by name like platform_get_irq_byname(). Except that it does not print an error message if an IRQ can not be obtained. **Return** non-zero IRQ number on success, negative error number on failure.h](jG)}(h**Parameters**h]jv)}(hjbVh]h Parameters}(hjdVhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj`Vubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj\Vubj)}(hhh](j)}(h0``struct platform_device *dev`` platform device h](j)}(h``struct platform_device *dev``h]j)}(hjVh]hstruct platform_device *dev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj{Vubj)}(hhh]jG)}(hplatform deviceh]hplatform device}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhj{Vubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjxVubj)}(h``const char *name`` IRQ name h](j)}(h``const char *name``h]j)}(hjVh]hconst char *name}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjVubj)}(hhh]jG)}(hIRQ nameh]hIRQ name}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjVhMhjVubah}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]uh1jhjVhMhjxVubeh}(h]h ]h"]h$]h&]uh1jhj\VubjG)}(h**Description**h]jv)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjVubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj\VubjG)}(hGet an optional IRQ by name like platform_get_irq_byname(). Except that it does not print an error message if an IRQ can not be obtained.h]hGet an optional IRQ by name like platform_get_irq_byname(). Except that it does not print an error message if an IRQ can not be obtained.}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj\VubjG)}(h **Return**h]jv)}(hjWh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjWubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj\VubjG)}(hAnon-zero IRQ number on success, negative error number on failure.h]hAnon-zero IRQ number on success, negative error number on failure.}(hj2WhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj\Vubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!platform_add_devices (C function)c.platform_add_deviceshNtauh1hhjShhhNhNubh)}(hhh](h)}(hAint platform_add_devices (struct platform_device **devs, int num)h]h)}(h@int platform_add_devices(struct platform_device **devs, int num)h](j4)}(hinth]hint}(hjaWhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj]Whhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjpWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]WhhhjoWhMubj)}(hplatform_add_devicesh]j)}(hplatform_add_devicesh]hplatform_add_devices}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~Wubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj]WhhhjoWhMubj4)}(h((struct platform_device **devs, int num)h](j4)}(hstruct platform_device **devsh](h)}(hhh]hstruct}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjWmodnameN classnameNj5j5)}j 5]j#5)}j5jWsbc.platform_add_devicesasbuh1hhjWubh)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj75)}(hj:5h]h*}(hjWhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWubj75)}(hj:5h]h*}(hjWhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWubj)}(hdevsh]hdevs}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjWubj4)}(hint numh](j4)}(hinth]hint}(hjXhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjXubh)}(h h]h }(hj+XhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hnumh]hnum}(hj9XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjWubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj]WhhhjoWhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjYWhhhjoWhMubah}(h]jTWah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjoWhMhjVWhhubjB)}(hhh]jG)}(h!add a numbers of platform devicesh]h!add a numbers of platform devices}(hjcXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj`Xhhubah}(h]h ]h"]h$]h&]uh1jAhjVWhhhjoWhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj{Xjgj{Xjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct platform_device **devs`` array of platform devices to add ``int num`` number of platform devices in array **Return** 0 on success, negative error number on failure.h](jG)}(h**Parameters**h]jv)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjXubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjXubj)}(hhh](j)}(hC``struct platform_device **devs`` array of platform devices to add h](j)}(h!``struct platform_device **devs``h]j)}(hjXh]hstruct platform_device **devs}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjXubj)}(hhh]jG)}(h array of platform devices to addh]h array of platform devices to add}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubj)}(h0``int num`` number of platform devices in array h](j)}(h ``int num``h]j)}(hjXh]hint num}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjXubj)}(hhh]jG)}(h#number of platform devices in arrayh]h#number of platform devices in array}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjXubeh}(h]h ]h"]h$]h&]uh1jhjXubjG)}(h **Return**h]jv)}(hjYh]hReturn}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjYubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjXubjG)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hj.YhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjXubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ platform_device_put (C function)c.platform_device_puthNtauh1hhjShhhNhNubh)}(hhh](h)}(h7void platform_device_put (struct platform_device *pdev)h]h)}(h6void platform_device_put(struct platform_device *pdev)h](j4)}(hvoidh]hvoid}(hj]YhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjYYhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjlYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYYhhhjkYhMubj)}(hplatform_device_puth]j)}(hplatform_device_puth]hplatform_device_put}(hj~YhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzYubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjYYhhhjkYhMubj4)}(h(struct platform_device *pdev)h]j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjYmodnameN classnameNj5j5)}j 5]j#5)}j5jYsbc.platform_device_putasbuh1hhjYubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYubj75)}(hj:5h]h*}(hjYhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjYubj)}(hpdevh]hpdev}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjYubah}(h]h ]h"]h$]h&]j+j,uh1j4hjYYhhhjkYhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjUYhhhjkYhMubah}(h]jPYah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjkYhMhjRYhhubjB)}(hhh]jG)}(hdestroy a platform deviceh]hdestroy a platform device}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjZhhubah}(h]h ]h"]h$]h&]uh1jAhjRYhhhjkYhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj5Zjgj5Zjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct platform_device *pdev`` platform device to free **Description** Free all memory associated with a platform device. This function must _only_ be externally called in error cases. All other usage is a bug.h](jG)}(h**Parameters**h]jv)}(hj?Zh]h Parameters}(hjAZhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj=Zubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM#hj9Zubj)}(hhh]j)}(h9``struct platform_device *pdev`` platform device to free h](j)}(h ``struct platform_device *pdev``h]j)}(hj^Zh]hstruct platform_device *pdev}(hj`ZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\Zubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM hjXZubj)}(hhh]jG)}(hplatform device to freeh]hplatform device to free}(hjwZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjsZhM hjtZubah}(h]h ]h"]h$]h&]uh1jhjXZubeh}(h]h ]h"]h$]h&]uh1jhjsZhM hjUZubah}(h]h ]h"]h$]h&]uh1jhj9ZubjG)}(h**Description**h]jv)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjZubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM"hj9ZubjG)}(hFree all memory associated with a platform device. This function must _only_ be externally called in error cases. All other usage is a bug.h]hFree all memory associated with a platform device. This function must _only_ be externally called in error cases. All other usage is a bug.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM"hj9Zubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"platform_device_alloc (C function)c.platform_device_allochNtauh1hhjShhhNhNubh)}(hhh](h)}(hIstruct platform_device * platform_device_alloc (const char *name, int id)h]h)}(hGstruct platform_device *platform_device_alloc(const char *name, int id)h](h)}(hhh]hstruct}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM:ubh)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhM:ubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjZmodnameN classnameNj5j5)}j 5]j#5)}j5platform_device_allocsbc.platform_device_allocasbuh1hhjZhhhjZhM:ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhM:ubj75)}(hj:5h]h*}(hj,[hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjZhhhjZhM:ubj)}(hplatform_device_alloch]j)}(hj[h]hplatform_device_alloc}(hj=[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9[ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjZhhhjZhM:ubj4)}(h(const char *name, int id)h](j4)}(hconst char *nameh](h)}(hj6h]hconst}(hjX[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjT[ubh)}(h h]h }(hje[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjT[ubj4)}(hcharh]hchar}(hjs[hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjT[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjT[ubj75)}(hj:5h]h*}(hj[hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjT[ubj)}(hnameh]hname}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT[ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjP[ubj4)}(hint idh](j4)}(hinth]hint}(hj[hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj[ubh)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj)}(hidh]hid}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjP[ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjZhhhjZhM:ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjZhhhjZhM:ubah}(h]jZah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjZhM:hjZhhubjB)}(hhh]jG)}(hcreate a platform deviceh]hcreate a platform device}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM:hj[hhubah}(h]h ]h"]h$]h&]uh1jAhjZhhhjZhM:ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj\jgj\jhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``const char *name`` base name of the device we're adding ``int id`` instance id **Description** Create a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.h](jG)}(h**Parameters**h]jv)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj\ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj\ubj)}(hhh](j)}(h:``const char *name`` base name of the device we're adding h](j)}(h``const char *name``h]j)}(hj<\h]hconst char *name}(hj>\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM;hj6\ubj)}(hhh]jG)}(h$base name of the device we're addingh]h&base name of the device we’re adding}(hjU\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjQ\hM;hjR\ubah}(h]h ]h"]h$]h&]uh1jhj6\ubeh}(h]h ]h"]h$]h&]uh1jhjQ\hM;hj3\ubj)}(h``int id`` instance id h](j)}(h ``int id``h]j)}(hju\h]hint id}(hjw\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM<hjo\ubj)}(hhh]jG)}(h instance idh]h instance id}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj\hM<hj\ubah}(h]h ]h"]h$]h&]uh1jhjo\ubeh}(h]h ]h"]h$]h&]uh1jhj\hM<hj3\ubeh}(h]h ]h"]h$]h&]uh1jhj\ubjG)}(h**Description**h]jv)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj\ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj\ubjG)}(hCreate a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.h]hCreate a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM>hj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*platform_device_add_resources (C function)c.platform_device_add_resourceshNtauh1hhjShhhNhNubh)}(hhh](h)}(hnint platform_device_add_resources (struct platform_device *pdev, const struct resource *res, unsigned int num)h]h)}(hmint platform_device_add_resources(struct platform_device *pdev, const struct resource *res, unsigned int num)h](j4)}(hinth]hint}(hj\hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj\hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMTubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\hhhj]hMTubj)}(hplatform_device_add_resourcesh]j)}(hplatform_device_add_resourcesh]hplatform_device_add_resources}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj\hhhj]hMTubj4)}(hL(struct platform_device *pdev, const struct resource *res, unsigned int num)h](j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hj2]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.]ubh)}(h h]h }(hj?]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.]ubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjP]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM]ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjR]modnameN classnameNj5j5)}j 5]j#5)}j5j]sbc.platform_device_add_resourcesasbuh1hhj.]ubh)}(h h]h }(hjp]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.]ubj75)}(hj:5h]h*}(hj~]hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj.]ubj)}(hpdevh]hpdev}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.]ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*]ubj4)}(hconst struct resource *resh](h)}(hj6h]hconst}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]hstruct}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubh)}(hhh]j)}(hresourceh]hresource}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj]modnameN classnameNj5j5)}j 5]jl]c.platform_device_add_resourcesasbuh1hhj]ubh)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj75)}(hj:5h]h*}(hj ^hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj]ubj)}(hresh]hres}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*]ubj4)}(hunsigned int numh](j4)}(hunsignedh]hunsigned}(hj/^hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj+^ubh)}(h h]h }(hj=^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+^ubj4)}(hinth]hint}(hjK^hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj+^ubh)}(h h]h }(hjY^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+^ubj)}(hnumh]hnum}(hjg^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+^ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*]ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj\hhhj]hMTubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj\hhhj]hMTubah}(h]j\ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj]hMThj\hhubjB)}(hhh]jG)}(h"add resources to a platform deviceh]h"add resources to a platform device}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMThj^hhubah}(h]h ]h"]h$]h&]uh1jAhj\hhhj]hMTubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj^jgj^jhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to ``const struct resource *res`` set of resources that needs to be allocated for the device ``unsigned int num`` number of resources **Description** Add a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.h](jG)}(h**Parameters**h]jv)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj^ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMXhj^ubj)}(hhh](j)}(hh``struct platform_device *pdev`` platform device allocated by platform_device_alloc to add resources to h](j)}(h ``struct platform_device *pdev``h]j)}(hj^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:62: ./drivers/base/platform.chMUhj^ubj)}(hhh]jG)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj^hMUhj^ubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^hMUhj^ubj)}(hZ``const struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``const struct resource *res``h]j)}(hj _h]hconst struct resource *res}(hj _hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj _ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMVhj_ubj)}(hhh]jG)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hj$_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj _hMVhj!_ubah}(h]h ]h"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]uh1jhj _hMVhj^ubj)}(h)``unsigned int num`` number of resources h](j)}(h``unsigned int num``h]j)}(hjD_h]hunsigned int num}(hjF_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjB_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMWhj>_ubj)}(hhh]jG)}(hnumber of resourcesh]hnumber of resources}(hj]_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjY_hMWhjZ_ubah}(h]h ]h"]h$]h&]uh1jhj>_ubeh}(h]h ]h"]h$]h&]uh1jhjY_hMWhj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubjG)}(h**Description**h]jv)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj}_ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMYhj^ubjG)}(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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMYhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%platform_device_add_data (C function)c.platform_device_add_datahNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj_hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj_hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMpubh)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhj_hMpubj)}(hplatform_device_add_datah]j)}(hplatform_device_add_datah]hplatform_device_add_data}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj_hhhj_hMpubj4)}(h=(struct platform_device *pdev, const void *data, size_t size)h](j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hj`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj!`modnameN classnameNj5j5)}j 5]j#5)}j5j_sbc.platform_device_add_dataasbuh1hhj_ubh)}(h h]h }(hj?`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubj75)}(hj:5h]h*}(hjM`hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj_ubj)}(hpdevh]hpdev}(hjZ`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj_ubj4)}(hconst void *datah](h)}(hj6h]hconst}(hjs`hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjo`ubj4)}(hvoidh]hvoid}(hj`hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjo`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjo`ubj75)}(hj:5h]h*}(hj`hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjo`ubj)}(hdatah]hdata}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjo`ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj_ubj4)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj`modnameN classnameNj5j5)}j 5]j;`c.platform_device_add_dataasbuh1hhj`ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`ubj)}(hsizeh]hsize}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj_ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj_hhhj_hMpubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj_hhhj_hMpubah}(h]j_ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj_hMphj_hhubjB)}(hhh]jG)}(h/add platform-specific data to a platform deviceh]h/add platform-specific data to a platform device}(hj)ahhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMphj&ahhubah}(h]h ]h"]h$]h&]uh1jAhj_hhhj_hMpubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjAajgjAajhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjKah]h Parameters}(hjMahhhNhNubah}(h]h ]h"]h$]h&]uh1juhjIaubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMthjEaubj)}(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)}(hjjah]hstruct platform_device *pdev}(hjlahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMqhjdaubj)}(hhh]jG)}(hFplatform device allocated by platform_device_alloc to add resources toh]hFplatform device allocated by platform_device_alloc to add resources to}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjahMqhjaubah}(h]h ]h"]h$]h&]uh1jhjdaubeh}(h]h ]h"]h$]h&]uh1jhjahMqhjaaubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjah]hconst void *data}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMrhjaubj)}(hhh]jG)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjahMrhjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMrhjaaubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjah]h size_t size}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMshjaubj)}(hhh]jG)}(hsize of platform specific datah]hsize of platform specific data}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjahMshjaubah}(h]h ]h"]h$]h&]uh1jhjaubeh}(h]h ]h"]h$]h&]uh1jhjahMshjaaubeh}(h]h ]h"]h$]h&]uh1jhjEaubjG)}(h**Description**h]jv)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjbubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMuhjEaubjG)}(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-bhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMuhjEaubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ platform_device_add (C function)c.platform_device_addhNtauh1hhjShhhNhNubh)}(hhh](h)}(h6int platform_device_add (struct platform_device *pdev)h]h)}(h5int platform_device_add(struct platform_device *pdev)h](j4)}(hinth]hint}(hj\bhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjXbhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjkbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXbhhhjjbhMubj)}(hplatform_device_addh]j)}(hplatform_device_addh]hplatform_device_add}(hj}bhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjybubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjXbhhhjjbhMubj4)}(h(struct platform_device *pdev)h]j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjbmodnameN classnameNj5j5)}j 5]j#5)}j5jbsbc.platform_device_addasbuh1hhjbubh)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj75)}(hj:5h]h*}(hjbhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjbubj)}(hpdevh]hpdev}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjbubah}(h]h ]h"]h$]h&]j+j,uh1j4hjXbhhhjjbhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjTbhhhjjbhMubah}(h]jObah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjjbhMhjQbhhubjB)}(hhh]jG)}(h)add a platform device to device hierarchyh]h)add a platform device to device hierarchy}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjchhubah}(h]h ]h"]h$]h&]uh1jAhjQbhhhjjbhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj4cjgj4cjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj>ch]h Parameters}(hj@chhhNhNubah}(h]h ]h"]h$]h&]uh1juhj``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hj]ch]hstruct platform_device *pdev}(hj_chhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[cubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjWcubj)}(hhh]jG)}(hplatform device we're addingh]hplatform device we’re adding}(hjvchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjrchMhjscubah}(h]h ]h"]h$]h&]uh1jhjWcubeh}(h]h ]h"]h$]h&]uh1jhjrchMhjTcubah}(h]h ]h"]h$]h&]uh1jhj8cubjG)}(h**Description**h]jv)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1juhjcubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj8cubjG)}(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().}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj8cubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ platform_device_del (C function)c.platform_device_delhNtauh1hhjShhhNhNubh)}(hhh](h)}(h7void platform_device_del (struct platform_device *pdev)h]h)}(h6void platform_device_del(struct platform_device *pdev)h](j4)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjchhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjchMubj)}(hplatform_device_delh]j)}(hplatform_device_delh]hplatform_device_del}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjchhhjchMubj4)}(h(struct platform_device *pdev)h]j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubh)}(h h]h }(hj'dhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj8dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5dubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj:dmodnameN classnameNj5j5)}j 5]j#5)}j5jdsbc.platform_device_delasbuh1hhjdubh)}(h h]h }(hjXdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj75)}(hj:5h]h*}(hjfdhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjdubj)}(hpdevh]hpdev}(hjsdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjdubah}(h]h ]h"]h$]h&]j+j,uh1j4hjchhhjchMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjchhhjchMubah}(h]jcah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjchMhjchhubjB)}(hhh]jG)}(hremove a platform-level deviceh]hremove a platform-level device}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jAhjchhhjchMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjdjgjdjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjdubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj)}(hhh]j)}(h@``struct platform_device *pdev`` platform device we're removing h](j)}(h ``struct platform_device *pdev``h]j)}(hjdh]hstruct platform_device *pdev}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubj)}(hhh]jG)}(hplatform device we're removingh]h platform device we’re removing}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jhjdubjG)}(h**Description**h]jv)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1juhjeubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubjG)}(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/ehhhNhNubjv)}(h**dev->resource**h]h dev->resource}(hj7ehhhNhNubah}(h]h ]h"]h$]h&]uh1juhj/eubh]). This function must _only_ be externally called in error cases. All other usage is a bug.}(hj/ehhhNhNubeh}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%platform_device_register (C function)c.platform_device_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(h;int platform_device_register (struct platform_device *pdev)h]h)}(h:int platform_device_register(struct platform_device *pdev)h](j4)}(hinth]hint}(hjpehhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjlehhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlehhhj~ehMubj)}(hplatform_device_registerh]j)}(hplatform_device_registerh]hplatform_device_register}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjlehhhj~ehMubj4)}(h(struct platform_device *pdev)h]j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjemodnameN classnameNj5j5)}j 5]j#5)}j5jesbc.platform_device_registerasbuh1hhjeubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj75)}(hj:5h]h*}(hjehhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjeubj)}(hpdevh]hpdev}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjeubah}(h]h ]h"]h$]h&]j+j,uh1j4hjlehhhj~ehMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhehhhj~ehMubah}(h]jceah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj~ehMhjeehhubjB)}(hhh]jG)}(hadd a platform-level deviceh]hadd a platform-level device}(hj0fhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj-fhhubah}(h]h ]h"]h$]h&]uh1jAhjeehhhj~ehMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjHfjgjHfjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjRfh]h Parameters}(hjTfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjPfubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjLfubj)}(hhh]j)}(h>``struct platform_device *pdev`` platform device we're adding h](j)}(h ``struct platform_device *pdev``h]j)}(hjqfh]hstruct platform_device *pdev}(hjsfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjofubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkfubj)}(hhh]jG)}(hplatform device we're addingh]hplatform device we’re adding}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjfhMhjfubah}(h]h ]h"]h$]h&]uh1jhjkfubeh}(h]h ]h"]h$]h&]uh1jhjfhMhjhfubah}(h]h ]h"]h$]h&]uh1jhjLfubjG)}(h**NOTE**h]jv)}(hjfh]hNOTE}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjfubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjLfubjG)}(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 }(hjfhhhNhNubjv)}(h**pdev**h]hpdev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjfubh 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.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjLfubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'platform_device_unregister (C function)c.platform_device_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h>void platform_device_unregister (struct platform_device *pdev)h]h)}(h=void platform_device_unregister(struct platform_device *pdev)h](j4)}(hvoidh]hvoid}(hjghhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjfhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjghMubj)}(hplatform_device_unregisterh]j)}(hplatform_device_unregisterh]hplatform_device_unregister}(hj$ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj gubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjfhhhjghMubj4)}(h(struct platform_device *pdev)h]j4)}(hstruct platform_device *pdevh](h)}(hhh]hstruct}(hj@ghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjj?)j@huh1hhjghMhjfhhubjB)}(hhh]jG)}(h"unregister a platform-level deviceh]h"unregister a platform-level device}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjghhubah}(h]h ]h"]h$]h&]uh1jAhjfhhhjghMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjgjgjgjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1juhjgubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjgubj)}(hhh]j)}(hE``struct platform_device *pdev`` platform device we're unregistering h](j)}(h ``struct platform_device *pdev``h]j)}(hjhh]hstruct platform_device *pdev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjgubj)}(hhh]jG)}(h#platform device we're unregisteringh]h%platform device we’re unregistering}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhhMhjhubah}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjgubah}(h]h ]h"]h$]h&]uh1jhjgubjG)}(h**Description**h]jv)}(hj?hh]h Description}(hjAhhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj=hubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjgubjG)}(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().}(hjUhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ*platform_device_register_full (C function)c.platform_device_register_fullhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjhhMubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjhmodnameN classnameNj5j5)}j 5]j#5)}j5platform_device_register_fullsbc.platform_device_register_fullasbuh1hhjhhhhjhhMubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjhhMubj75)}(hj:5h]h*}(hjhhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhhjhhMubj)}(hplatform_device_register_fullh]j)}(hjhh]hplatform_device_register_full}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhhjhhMubj4)}(h-(const struct platform_device_info *pdevinfo)h]j4)}(h+const struct platform_device_info *pdevinfoh](h)}(hj6h]hconst}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hj ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]hstruct}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubh)}(h h]h }(hj&ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j)}(hplatform_device_infoh]hplatform_device_info}(hj7ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4iubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj9imodnameN classnameNj5j5)}j 5]jhc.platform_device_register_fullasbuh1hhjhubh)}(h h]h }(hjUihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj75)}(hj:5h]h*}(hjcihhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhubj)}(hpdevinfoh]hpdevinfo}(hjpihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjhubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhhjhhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj|hhhhjhhMubah}(h]jwhah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhhMhjyhhhubjB)}(hhh]jG)}(hEadd a platform-level device with resources and platform-specific datah]hEadd a platform-level device with resources and platform-specific data}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjihhubah}(h]h ]h"]h$]h&]uh1jAhjyhhhhjhhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjijgjijhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1juhjiubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM#hjiubj)}(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)}(hjih]h+const struct platform_device_info *pdevinfo}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM"hjiubj)}(hhh]jG)}(hdata used to create deviceh]hdata used to create device}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjihM"hjiubah}(h]h ]h"]h$]h&]uh1jhjiubeh}(h]h ]h"]h$]h&]uh1jhjihM"hjiubah}(h]h ]h"]h$]h&]uh1jhjiubjG)}(h**Description**h]jv)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjjubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM$hjiubjG)}(heReturns :c:type:`struct platform_device ` pointer on success, or ERR_PTR() on error.h](hReturns }(hj,jhhhNhNubh)}(h2:c:type:`struct platform_device `h]j)}(hj6jh]hstruct platform_device}(hj8jhhhNhNubah}(h]h ](jej`c-typeeh"]h$]h&]uh1jhj4jubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejeplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM$hj,jubh+ pointer on success, or ERR_PTR() on error.}(hj,jhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhjSjhM$hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'__platform_driver_register (C function)c.__platform_driver_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(hRint __platform_driver_register (struct platform_driver *drv, struct module *owner)h]h)}(hQint __platform_driver_register(struct platform_driver *drv, struct module *owner)h](j4)}(hinth]hint}(hj~jhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjzjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMYubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzjhhhjjhMYubj)}(h__platform_driver_registerh]j)}(h__platform_driver_registerh]h__platform_driver_register}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjzjhhhjjhMYubj4)}(h3(struct platform_driver *drv, struct module *owner)h](j4)}(hstruct platform_driver *drvh](h)}(hhh]hstruct}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(hplatform_driverh]hplatform_driver}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjjmodnameN classnameNj5j5)}j 5]j#5)}j5jjsbc.__platform_driver_registerasbuh1hhjjubh)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj75)}(hj:5h]h*}(hjkhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjjubj)}(hdrvh]hdrv}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjjubj4)}(hstruct module *ownerh](h)}(hhh]hstruct}(hj-khhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)kubh)}(h h]h }(hj:khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)kubh)}(hhh]j)}(hmoduleh]hmodule}(hjKkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHkubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjMkmodnameN classnameNj5j5)}j 5]jjc.__platform_driver_registerasbuh1hhj)kubh)}(h h]h }(hjikhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)kubj75)}(hj:5h]h*}(hjwkhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj)kubj)}(hownerh]howner}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)kubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjzjhhhjjhMYubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjvjhhhjjhMYubah}(h]jqjah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjjhMYhjsjhhubjB)}(hhh]jG)}(h,register a driver for platform-level devicesh]h,register a driver for platform-level devices}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMYhjkhhubah}(h]h ]h"]h$]h&]uh1jAhjsjhhhjjhMYubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjkjgjkjhjijjuh1hhhhjShNhNubjl)}(h|**Parameters** ``struct platform_driver *drv`` platform driver structure ``struct module *owner`` owning module/driverh](jG)}(h**Parameters**h]jv)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjkubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM]hjkubj)}(hhh](j)}(h:``struct platform_driver *drv`` platform driver structure h](j)}(h``struct platform_driver *drv``h]j)}(hjkh]hstruct platform_driver *drv}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMZhjkubj)}(hhh]jG)}(hplatform driver structureh]hplatform driver structure}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjlhMZhjlubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjlhMZhjkubj)}(h-``struct module *owner`` owning module/driverh](j)}(h``struct module *owner``h]j)}(hj(lh]hstruct module *owner}(hj*lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&lubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM\hj"lubj)}(hhh]jG)}(howning module/driverh]howning module/driver}(hjAlhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM[hj>lubah}(h]h ]h"]h$]h&]uh1jhj"lubeh}(h]h ]h"]h$]h&]uh1jhj=lhM\hjkubeh}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'platform_driver_unregister (C function)c.platform_driver_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h=void platform_driver_unregister (struct platform_driver *drv)h]h)}(hj?)j@huh1hhjlhMhhjwlhhubjB)}(hhh]jG)}(h.unregister a driver for platform-level devicesh]h.unregister a driver for platform-level devices}(hjBmhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhhj?mhhubah}(h]h ]h"]h$]h&]uh1jAhjwlhhhjlhMhubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjZmjgjZmjhjijjuh1hhhhjShNhNubjl)}(hK**Parameters** ``struct platform_driver *drv`` platform driver structureh](jG)}(h**Parameters**h]jv)}(hjdmh]h Parameters}(hjfmhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjbmubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMlhj^mubj)}(hhh]j)}(h9``struct platform_driver *drv`` platform driver structureh](j)}(h``struct platform_driver *drv``h]j)}(hjmh]hstruct platform_driver *drv}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMnhj}mubj)}(hhh]jG)}(hplatform driver structureh]hplatform driver structure}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMihjmubah}(h]h ]h"]h$]h&]uh1jhj}mubeh}(h]h ]h"]h$]h&]uh1jhjmhMnhjzmubah}(h]h ]h"]h$]h&]uh1jhj^mubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$__platform_driver_probe (C function)c.__platform_driver_probehNtauh1hhjShhhNhNubh)}(hhh](h)}(hxint __platform_driver_probe (struct platform_driver *drv, int (*probe)(struct platform_device *), struct module *module)h]h)}(hvint __platform_driver_probe(struct platform_driver *drv, int (*probe)(struct platform_device*), struct module *module)h](j4)}(hinth]hint}(hjmhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjmhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM~ubh)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjmhM~ubj)}(h__platform_driver_probeh]j)}(h__platform_driver_probeh]h__platform_driver_probe}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjmhhhjmhM~ubj4)}(h[(struct platform_driver *drv, int (*probe)(struct platform_device*), struct module *module)h](j4)}(hstruct platform_driver *drvh](h)}(hhh]hstruct}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hj'nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(hplatform_driverh]hplatform_driver}(hj8nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5nubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj:nmodnameN classnameNj5j5)}j 5]j#5)}j5jnsbc.__platform_driver_probeasbuh1hhjnubh)}(h h]h }(hjXnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj75)}(hj:5h]h*}(hjfnhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubj)}(hdrvh]hdrv}(hjsnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjnubj4)}(h%int (*probe)(struct platform_device*)h](j4)}(hinth]hint}(hjnhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj75)}(h(h]h(}(hjnhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubj75)}(hj:5h]h*}(hjnhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubj)}(hprobeh]hprobe}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj75)}(h)h]h)}(hjnhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubj75)}(hjnh]h(}(hjnhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubh)}(hhh]hstruct}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubh)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j)}(hplatform_deviceh]hplatform_device}(hj ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj omodnameN classnameNj5j5)}j 5]jTnc.__platform_driver_probeasbuh1hhjnubj75)}(hj:5h]h*}(hj(ohhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubj75)}(hjnh]h)}(hj5ohhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjnubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjnubj4)}(hstruct module *moduleh](h)}(hhh]hstruct}(hjMohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIoubh)}(h h]h }(hjZohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIoubh)}(hhh]j)}(hmoduleh]hmodule}(hjkohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhoubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmomodnameN classnameNj5j5)}j 5]jTnc.__platform_driver_probeasbuh1hhjIoubh)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIoubj75)}(hj:5h]h*}(hjohhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjIoubj)}(hmoduleh]hmodule}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIoubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjnubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjmhhhjmhM~ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjmhhhjmhM~ubah}(h]jmah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjmhM~hjmhhubjB)}(hhh]jG)}(h+register driver for non-hotpluggable deviceh]h+register driver for non-hotpluggable device}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM~hjohhubah}(h]h ]h"]h$]h&]uh1jAhjmhhhjmhM~ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjojgjojhjijjuh1hhhhjShNhNubjl)}(hXn**Parameters** ``struct platform_driver *drv`` platform driver structure ``int (*probe)(struct platform_device *)`` the driver probe routine, probably from an __init section ``struct module *module`` module which will be the owner of the driver **Description** Use this instead of platform_driver_register() when you know the device is not hotpluggable and has already been registered, and you want to remove its run-once probe() infrastructure from memory after the driver has bound to the device. One typical use for this would be with drivers for controllers integrated into system-on-chip processors, where the controller devices have been configured as part of board setup. Note that this is incompatible with deferred probing. Returns zero if the driver registered and bound to a device, else returns a negative error code and with the driver not registered.h](jG)}(h**Parameters**h]jv)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1juhjoubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubj)}(hhh](j)}(h:``struct platform_driver *drv`` platform driver structure h](j)}(h``struct platform_driver *drv``h]j)}(hjph]hstruct platform_driver *drv}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhj pubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj pubj)}(hhh]jG)}(hplatform driver structureh]hplatform driver structure}(hj(phhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$phMhj%pubah}(h]h ]h"]h$]h&]uh1jhj pubeh}(h]h ]h"]h$]h&]uh1jhj$phMhjpubj)}(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)}(hjHph]h&int (*probe)(struct platform_device *)}(hjJphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFpubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjBpubj)}(hhh]jG)}(h9the driver probe routine, probably from an __init sectionh]h9the driver probe routine, probably from an __init section}(hjaphhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj]phMhj^pubah}(h]h ]h"]h$]h&]uh1jhjBpubeh}(h]h ]h"]h$]h&]uh1jhj]phMhjpubj)}(hG``struct module *module`` module which will be the owner of the driver h](j)}(h``struct module *module``h]j)}(hjph]hstruct module *module}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj{pubj)}(hhh]jG)}(h,module which will be the owner of the driverh]h,module which will be the owner of the driver}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjphMhjpubah}(h]h ]h"]h$]h&]uh1jhj{pubeh}(h]h ]h"]h$]h&]uh1jhjphMhjpubeh}(h]h ]h"]h$]h&]uh1jhjoubjG)}(h**Description**h]jv)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1juhjpubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubjG)}(hUse this instead of platform_driver_register() when you know the device is not hotpluggable and has already been registered, and you want to remove its run-once probe() infrastructure from memory after the driver has bound to the device.h]hUse this instead of platform_driver_register() when you know the device is not hotpluggable and has already been registered, and you want to remove its run-once probe() infrastructure from memory after the driver has bound to the device.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubjG)}(hOne typical use for this would be with drivers for controllers integrated into system-on-chip processors, where the controller devices have been configured as part of board setup.h]hOne typical use for this would be with drivers for controllers integrated into system-on-chip processors, where the controller devices have been configured as part of board setup.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubjG)}(h5Note that this is incompatible with deferred probing.h]h5Note that this is incompatible with deferred probing.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubjG)}(hReturns zero if the driver registered and bound to a device, else returns a negative error code and with the driver not registered.h]hReturns zero if the driver registered and bound to a device, else returns a negative error code and with the driver not registered.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ%__platform_create_bundle (C function)c.__platform_create_bundlehNtauh1hhjShhhNhNubh)}(hhh](h)}(hstruct platform_device * __platform_create_bundle (struct platform_driver *driver, int (*probe)(struct platform_device *), struct resource *res, unsigned int n_res, const void *data, size_t size, struct module *module)h]h)}(hstruct platform_device *__platform_create_bundle(struct platform_driver *driver, int (*probe)(struct platform_device*), struct resource *res, unsigned int n_res, const void *data, size_t size, struct module *module)h](h)}(hhh]hstruct}(hj.qhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*qhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjj?)j@huh1hhj;qhMhj#qhhubjB)}(hhh]jG)}(h/register driver and create corresponding deviceh]h/register driver and create corresponding device}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjthhubah}(h]h ]h"]h$]h&]uh1jAhj#qhhhj;qhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjtjgjtjhjijjuh1hhhhjShNhNubjl)}(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 **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](jG)}(h**Parameters**h]jv)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1juhjtubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjtubj)}(hhh](j)}(h=``struct platform_driver *driver`` platform driver structure h](j)}(h"``struct platform_driver *driver``h]j)}(hjth]hstruct platform_driver *driver}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjtubj)}(hhh]jG)}(hplatform driver structureh]hplatform driver structure}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubj)}(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)}(hj8uh]h&int (*probe)(struct platform_device *)}(hj:uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6uubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj2uubj)}(hhh]jG)}(h9the driver probe routine, probably from an __init sectionh]h9the driver probe routine, probably from an __init section}(hjQuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjMuhMhjNuubah}(h]h ]h"]h$]h&]uh1jhj2uubeh}(h]h ]h"]h$]h&]uh1jhjMuhMhjtubj)}(hT``struct resource *res`` set of resources that needs to be allocated for the device h](j)}(h``struct resource *res``h]j)}(hjquh]hstruct resource *res}(hjsuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjouubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjkuubj)}(hhh]jG)}(h:set of resources that needs to be allocated for the deviceh]h:set of resources that needs to be allocated for the device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjkuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubj)}(h+``unsigned int n_res`` number of resources h](j)}(h``unsigned int n_res``h]j)}(hjuh]hunsigned int n_res}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjuubj)}(hhh]jG)}(hnumber of resourcesh]hnumber of resources}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubj)}(hE``const void *data`` platform specific data for this platform device h](j)}(h``const void *data``h]j)}(hjuh]hconst void *data}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjuubj)}(hhh]jG)}(h/platform specific data for this platform deviceh]h/platform specific data for this platform device}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjtubj)}(h/``size_t size`` size of platform specific data h](j)}(h``size_t size``h]j)}(hjvh]h size_t size}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjvubj)}(hhh]jG)}(hsize of platform specific datah]hsize of platform specific data}(hj5vhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj1vhMhj2vubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhj1vhMhjtubj)}(hG``struct module *module`` module which will be the owner of the driver h](j)}(h``struct module *module``h]j)}(hjUvh]hstruct module *module}(hjWvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSvubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjOvubj)}(hhh]jG)}(h,module which will be the owner of the driverh]h,module which will be the owner of the driver}(hjnvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjjvhMhjkvubah}(h]h ]h"]h$]h&]uh1jhjOvubeh}(h]h ]h"]h$]h&]uh1jhjjvhMhjtubeh}(h]h ]h"]h$]h&]uh1jhjtubjG)}(h**Description**h]jv)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjvubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjtubjG)}(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.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjtubjG)}(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 ](jej`c-typeeh"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]refdocje refdomainj`reftypetype refexplicitrefwarnj5jejeplatform_deviceuh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjvubh+ pointer on success, or ERR_PTR() on error.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhjvhMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(__platform_register_drivers (C function)c.__platform_register_drivershNtauh1hhjShhhNhNubh)}(hhh](h)}(hsint __platform_register_drivers (struct platform_driver * const *drivers, unsigned int count, struct module *owner)h]h)}(hqint __platform_register_drivers(struct platform_driver *const *drivers, unsigned int count, struct module *owner)h](j4)}(hinth]hint}(hjwhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjwhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhjwhMubj)}(h__platform_register_driversh]j)}(h__platform_register_driversh]h__platform_register_drivers}(hj(whhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$wubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjwhhhjwhMubj4)}(hR(struct platform_driver *const *drivers, unsigned int count, struct module *owner)h](j4)}(h&struct platform_driver *const *driversh](h)}(hhh]hstruct}(hjDwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@wubh)}(h h]h }(hjQwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@wubh)}(hhh]j)}(hplatform_driverh]hplatform_driver}(hjbwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_wubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjdwmodnameN classnameNj5j5)}j 5]j#5)}j5j*wsbc.__platform_register_driversasbuh1hhj@wubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@wubj75)}(hj:5h]h*}(hjwhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj@wubh)}(hj6h]hconst}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@wubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@wubj75)}(hj:5h]h*}(hjwhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj@wubj)}(hdriversh]hdrivers}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@wubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjj?)j@huh1hhjwhMhjvhhubjB)}(hhh]jG)}(h%register an array of platform driversh]h%register an array of platform drivers}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jAhjvhhhjwhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjxjgjxjhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``struct platform_driver * const *drivers`` an array of drivers to register ``unsigned int count`` the number of drivers to register ``struct module *owner`` module owning the drivers **Description** Registers platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order. **Return** 0 on success or a negative error code on failure.h](jG)}(h**Parameters**h]jv)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjxubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxubj)}(hhh](j)}(hL``struct platform_driver * const *drivers`` an array of drivers to register h](j)}(h+``struct platform_driver * const *drivers``h]j)}(hjxh]h'struct platform_driver * const *drivers}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxubj)}(hhh]jG)}(han array of drivers to registerh]han array of drivers to register}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jhjyhMhjxubj)}(h9``unsigned int count`` the number of drivers to register h](j)}(h``unsigned int count``h]j)}(hj*yh]hunsigned int count}(hj,yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(yubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj$yubj)}(hhh]jG)}(h!the number of drivers to registerh]h!the number of drivers to register}(hjCyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj?yhMhj@yubah}(h]h ]h"]h$]h&]uh1jhj$yubeh}(h]h ]h"]h$]h&]uh1jhj?yhMhjxubj)}(h3``struct module *owner`` module owning the drivers h](j)}(h``struct module *owner``h]j)}(hjcyh]hstruct module *owner}(hjeyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjayubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj]yubj)}(hhh]jG)}(hmodule owning the driversh]hmodule owning the drivers}(hj|yhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxyhMhjyyubah}(h]h ]h"]h$]h&]uh1jhj]yubeh}(h]h ]h"]h$]h&]uh1jhjxyhMhjxubeh}(h]h ]h"]h$]h&]uh1jhjxubjG)}(h**Description**h]jv)}(hjyh]h Description}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxubjG)}(hRegisters platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order.h]hRegisters platform drivers specified by an array. On failure to register a driver, all previously registered drivers will be unregistered. Callers of this API should use platform_unregister_drivers() to unregister drivers in the reverse order.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxubjG)}(h **Return**h]jv)}(hjyh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjyubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxubjG)}(h10 on success or a negative error code on failure.h]h10 on success or a negative error code on failure.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(platform_unregister_drivers (C function)c.platform_unregister_drivershNtauh1hhjShhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hj zhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjzhhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM%ubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjzhM%ubj)}(hplatform_unregister_driversh]j)}(hplatform_unregister_driversh]hplatform_unregister_drivers}(hj+zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'zubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjzhhhjzhM%ubj4)}(h<(struct platform_driver *const *drivers, unsigned int count)h](j4)}(h&struct platform_driver *const *driversh](h)}(hhh]hstruct}(hjGzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCzubh)}(h h]h }(hjTzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCzubh)}(hhh]j)}(hplatform_driverh]hplatform_driver}(hjezhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbzubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjgzmodnameN classnameNj5j5)}j 5]j#5)}j5j-zsbc.platform_unregister_driversasbuh1hhjCzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCzubj75)}(hj:5h]h*}(hjzhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjCzubh)}(hj6h]hconst}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCzubj75)}(hj:5h]h*}(hjzhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjCzubj)}(hdriversh]hdrivers}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCzubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?zubj4)}(hunsigned int counth](j4)}(hunsignedh]hunsigned}(hjzhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjzubh)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj4)}(hinth]hint}(hjzhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjzubh)}(h h]h }(hj {hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hcounth]hcount}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?zubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjzhhhjzhM%ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjzhhhjzhM%ubah}(h]jyah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjzhM%hjyhhubjB)}(hhh]jG)}(h'unregister an array of platform driversh]h'unregister an array of platform drivers}(hjC{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM%hj@{hhubah}(h]h ]h"]h$]h&]uh1jAhjyhhhjzhM%ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj[{jgj[{jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hje{h]h Parameters}(hjg{hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjc{ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM)hj_{ubj)}(hhh](j)}(hN``struct platform_driver * const *drivers`` an array of drivers to unregister h](j)}(h+``struct platform_driver * const *drivers``h]j)}(hj{h]h'struct platform_driver * const *drivers}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM&hj~{ubj)}(hhh]jG)}(h!an array of drivers to unregisterh]h!an array of drivers to unregister}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{hM&hj{ubah}(h]h ]h"]h$]h&]uh1jhj~{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM&hj{{ubj)}(h;``unsigned int count`` the number of drivers to unregister h](j)}(h``unsigned int count``h]j)}(hj{h]hunsigned int count}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM'hj{ubj)}(hhh]jG)}(h#the number of drivers to unregisterh]h#the number of drivers to unregister}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{hM'hj{ubah}(h]h ]h"]h$]h&]uh1jhj{ubeh}(h]h ]h"]h$]h&]uh1jhj{hM'hj{{ubeh}(h]h ]h"]h$]h&]uh1jhj_{ubjG)}(h**Description**h]jv)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj{ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM)hj_{ubjG)}(hUnregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.h]hUnregisters platform drivers specified by an array. This is typically used to complement an earlier call to platform_register_drivers(). Drivers are unregistered in the reverse order in which they were registered.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chM)hj_{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ+platform_find_device_by_driver (C function) c.platform_find_device_by_driverhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj=|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9|hhha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMubh)}(h h]h }(hjK|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9|hhhjJ|hMubh)}(hhh]j)}(hdeviceh]hdevice}(hj\|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY|ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj^|modnameN classnameNj5j5)}j 5]j#5)}j5platform_find_device_by_driversb c.platform_find_device_by_driverasbuh1hhj9|hhhjJ|hMubh)}(h h]h }(hj}|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9|hhhjJ|hMubj75)}(hj:5h]h*}(hj|hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj9|hhhjJ|hMubj)}(hplatform_find_device_by_driverh]j)}(hjz|h]hplatform_find_device_by_driver}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj9|hhhjJ|hMubj4)}(h7(struct device *start, const struct device_driver *drv)h](j4)}(hstruct device *starth](h)}(hhh]hstruct}(hj|hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubh)}(hhh]j)}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj|modnameN classnameNj5j5)}j 5]jx| c.platform_find_device_by_driverasbuh1hhj|ubh)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj|ubj75)}(hj:5h]h*}(hj}hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj|ubj)}(hstarth]hstart}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj|ubj4)}(hconst struct device_driver *drvh](h)}(hj6h]hconst}(hj'}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#}ubh)}(h h]h }(hj4}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#}ubh)}(hhh]hstruct}(hjB}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#}ubh)}(h h]h }(hjO}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#}ubh)}(hhh]j)}(h device_driverh]h device_driver}(hj`}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]}ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjb}modnameN classnameNj5j5)}j 5]jx| c.platform_find_device_by_driverasbuh1hhj#}ubh)}(h h]h }(hj~}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#}ubj75)}(hj:5h]h*}(hj}hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj#}ubj)}(hdrvh]hdrv}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#}ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj|ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj9|hhhjJ|hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj5|hhhjJ|hMubah}(h]j0|ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjJ|hMhj2|hhubjB)}(hhh]jG)}(h+Find a platform device with a given driver.h]h+Find a platform device with a given driver.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj}hhubah}(h]h ]h"]h$]h&]uh1jAhj2|hhhjJ|hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj}jgj}jhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``struct device *start`` The device to start the search from. ``const struct device_driver *drv`` The device driver to look for.h](jG)}(h**Parameters**h]jv)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj}ubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj}ubj)}(hhh](j)}(h>``struct device *start`` The device to start the search from. h](j)}(h``struct device *start``h]j)}(hj~h]hstruct device *start}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj}ubj)}(hhh]jG)}(h$The device to start the search from.h]h$The device to start the search from.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj}ubj)}(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}(hj?~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;~ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhj7~ubj)}(hhh]jG)}(hThe device driver to look for.h]hThe device driver to look for.}(hjV~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFha/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:62: ./drivers/base/platform.chMhjS~ubah}(h]h ]h"]h$]h&]uh1jhj7~ubeh}(h]h ]h"]h$]h&]uh1jhjR~hMhj}ubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$bus_find_device_by_name (C function)c.bus_find_device_by_namehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj~hKubh)}(hhh]j)}(hdeviceh]hdevice}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj~modnameN classnameNj5j5)}j 5]j#5)}j5bus_find_device_by_namesbc.bus_find_device_by_nameasbuh1hhj~hhhj~hKubh)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj~hKubj75)}(hj:5h]h*}(hj~hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj~hhhj~hKubj)}(hbus_find_device_by_nameh]j)}(hj~h]hbus_find_device_by_name}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj~hhhj~hKubj4)}(hD(const struct bus_type *bus, struct device *start, const char *name)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]hstruct}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjLmodnameN classnameNj5j5)}j 5]j~c.bus_find_device_by_nameasbuh1hhj ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj75)}(hj:5h]h*}(hjvhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj ubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubj4)}(hstruct device *starth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j~c.bus_find_device_by_nameasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubj4)}(hconst char *nameh](h)}(hj6h]hconst}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hcharh]hchar}(hj'hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjChhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hnameh]hname}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj~hhhj~hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj~hhhj~hKubah}(h]j~ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj~hKhj~hhubjB)}(hhh]jG)}(hDdevice iterator for locating a particular device of a specific name.h]hDdevice iterator for locating a particular device of a specific name.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjwhhubah}(h]h ]h"]h$]h&]uh1jAhj~hhhj~hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]jG)}(hbus typeh]hbus type}(hjԀhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjЀhKhjрubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjЀhKhjubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]jG)}(hDevice to begin withh]hDevice to begin with}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(h0``const char *name`` name of the device to matchh](j)}(h``const char *name``h]j)}(hj-h]hconst char *name}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj'ubj)}(hhh]jG)}(hname of the device to matchh]hname of the device to match}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]$h$]h&]uh1jhjBhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ'bus_find_device_by_of_node (C function)c.bus_find_device_by_of_nodehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5bus_find_device_by_of_nodesbc.bus_find_device_by_of_nodeasbuh1hhjhhhjhKubh)}(h h]h }(hjǁhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj75)}(hj:5h]h*}(hjՁhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhKubj)}(hbus_find_device_by_of_nodeh]j)}(hjāh]hbus_find_device_by_of_node}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h:(const struct bus_type *bus, const struct device_node *np)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj<modnameN classnameNj5j5)}j 5]jc.bus_find_device_by_of_nodeasbuh1hhjubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjfhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst struct device_node *nph](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h device_nodeh]h device_node}(hjłhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj‚ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjǂmodnameN classnameNj5j5)}j 5]jc.bus_find_device_by_of_nodeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hnph]hnp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jzah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhj|hhubjB)}(hhh]jG)}(hFdevice iterator for locating a particular device matching the of_node.h]hFdevice iterator for locating a particular device matching the of_node.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj%hhubah}(h]h ]h"]h$]h&]uh1jAhj|hhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj@jgj@jhjijjuh1hhhhjShNhNubjl)}(h}**Parameters** ``const struct bus_type *bus`` bus type ``const struct device_node *np`` of_node of the device to match.h](jG)}(h**Parameters**h]jv)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjHubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjDubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjih]hconst struct bus_type *bus}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjcubj)}(hhh]jG)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj~hKhjubah}(h]h ]h"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]uh1jhj~hKhj`ubj)}(h@``const struct device_node *np`` of_node of the device to match.h](j)}(h ``const struct device_node *np``h]j)}(hjh]hconst struct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]jG)}(hof_node of the device to match.h]hof_node of the device to match.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj`ubeh}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ&bus_find_device_by_fwnode (C function)c.bus_find_device_by_fwnodehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hKubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5bus_find_device_by_fwnodesbc.bus_find_device_by_fwnodeasbuh1hhjhhhj hKubh)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hKubj75)}(hj:5h]h*}(hjJhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhj hKubj)}(hbus_find_device_by_fwnodeh]j)}(hj9h]hbus_find_device_by_fwnode}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj hKubj4)}(h@(const struct bus_type *bus, const struct fwnode_handle *fwnode)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j7c.bus_find_device_by_fwnodeasbuh1hhjrubh)}(h h]h }(hj̈́hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj75)}(hj:5h]h*}(hjۄhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjrubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjnubj4)}(h"const struct fwnode_handle *fwnodeh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h fwnode_handleh]h fwnode_handle}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj<modnameN classnameNj5j5)}j 5]j7c.bus_find_device_by_fwnodeasbuh1hhjubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjfhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfwnodeh]hfwnode}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjnubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj hKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hKhjhhubjB)}(hhh]jG)}(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&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct fwnode_handle *fwnode`` fwnode of the device to match.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjޅh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj܅ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj؅ubj)}(hhh]jG)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]jG)}(hfwnode of the device to match.h]hfwnode of the device to match.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hKhjՅubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$bus_find_device_by_devt (C function)c.bus_find_device_by_devthNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhj~hKubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5bus_find_device_by_devtsbc.bus_find_device_by_devtasbuh1hhjmhhhj~hKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhj~hKubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjmhhhj~hKubj)}(hbus_find_device_by_devth]j)}(hjh]hbus_find_device_by_devt}(hjІhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̆ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjmhhhj~hKubj4)}(h((const struct bus_type *bus, dev_t devt)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj&modnameN classnameNj5j5)}j 5]jc.bus_find_device_by_devtasbuh1hhjubh)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjPhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h dev_t devth](h)}(hhh]j)}(hdev_th]hdev_t}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj{modnameN classnameNj5j5)}j 5]jc.bus_find_device_by_devtasbuh1hhjrubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hdevth]hdevt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjmhhhj~hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjihhhj~hKubah}(h]jdah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj~hKhjfhhubjB)}(hhh]jG)}(hJdevice iterator for locating a particular device matching the device type.h]hJdevice iterator for locating a particular device matching the device type.}(hjχhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj̇hhubah}(h]h ]h"]h$]h&]uh1jAhjfhhhj~hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(ho**Parameters** ``const struct bus_type *bus`` bus type ``dev_t devt`` device type of the device to match.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj ubj)}(hhh]jG)}(hbus typeh]hbus type}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj%hKhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hKhjubj)}(h2``dev_t devt`` device type of the device to match.h](j)}(h``dev_t devt``h]j)}(hjIh]h dev_t devt}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjCubj)}(hhh]jG)}(h#device type of the device to match.h]h#device type of the device to match.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj_ubah}(h]h ]h"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]uh1jhj^hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ!bus_find_next_device (C function)c.bus_find_next_devicehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j)}(hdeviceh]hdevice}(hjˆhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjĈmodnameN classnameNj5j5)}j 5]j#5)}j5bus_find_next_devicesbc.bus_find_next_deviceasbuh1hhjhhhjhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhKubj)}(hbus_find_next_deviceh]j)}(hjh]hbus_find_next_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h0(const struct bus_type *bus, struct device *cur)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjXmodnameN classnameNj5j5)}j 5]jވc.bus_find_next_deviceasbuh1hhjubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *curh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjƉhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÉubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjȉmodnameN classnameNj5j5)}j 5]jވc.bus_find_next_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hcurh]hcur}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(h9Find the next device after a given device in a given bus.h]h9Find the next device after a given device in a given bus.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj&hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjAjgjAjhjijjuh1hhhhjShNhNubjl)}(ht**Parameters** ``const struct bus_type *bus`` bus type ``struct device *cur`` device to begin the search with.h](jG)}(h**Parameters**h]jv)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjIubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjEubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjjh]hconst struct bus_type *bus}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjdubj)}(hhh]jG)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubj)}(h7``struct device *cur`` device to begin the search with.h](j)}(h``struct device *cur``h]j)}(hjh]hstruct device *cur}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]jG)}(h device to begin the search with.h]h device to begin the search with.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjaubeh}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ(bus_find_device_by_acpi_dev (C function)c.bus_find_device_by_acpi_devhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hKubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5bus_find_device_by_acpi_devsbc.bus_find_device_by_acpi_devasbuh1hhjhhhj hKubh)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hKubj75)}(hj:5h]h*}(hjKhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhj hKubj)}(hbus_find_device_by_acpi_devh]j)}(hj:h]hbus_find_device_by_acpi_dev}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj hKubj4)}(h<(const struct bus_type *bus, const struct acpi_device *adev)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j8c.bus_find_device_by_acpi_devasbuh1hhjsubh)}(h h]h }(hj΋hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj75)}(hj:5h]h*}(hj܋hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjoubj4)}(hconst struct acpi_device *adevh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h acpi_deviceh]h acpi_device}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj=modnameN classnameNj5j5)}j 5]j8c.bus_find_device_by_acpi_devasbuh1hhjubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjghhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hadevh]hadev}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjoubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj hKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj hKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hKhjhhubjB)}(hhh]jG)}(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&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj hKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(h**Parameters** ``const struct bus_type *bus`` bus type ``const struct acpi_device *adev`` ACPI COMPANION device to match.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjŒhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjߌh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݌ubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjٌubj)}(hhh]jG)}(hbus typeh]hbus type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjٌubeh}(h]h ]h"]h$]h&]uh1jhjhKhj֌ubj)}(hB``const struct acpi_device *adev`` ACPI COMPANION device to match.h](j)}(h"``const struct acpi_device *adev``h]j)}(hjh]hconst struct acpi_device *adev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhjubj)}(hhh]jG)}(hACPI COMPANION device to match.h]hACPI COMPANION device to match.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhd/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:65: ./include/linux/device/bus.hhKhj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhj֌ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_for_each_dev (C function)c.bus_for_each_devhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjrhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjnhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnhhhjhMRubj)}(hbus_for_each_devh]j)}(hbus_for_each_devh]hbus_for_each_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjnhhhjhMRubj4)}(hP(const struct bus_type *bus, struct device *start, void *data, device_iter_t fn)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjʍhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj׍hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.bus_for_each_devasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *starth](h)}(hhh]hstruct}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubh)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubh)}(hhh]j)}(hdeviceh]hdevice}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj\modnameN classnameNj5j5)}j 5]jc.bus_for_each_devasbuh1hhj8ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj8ubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjȎhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdatah]hdata}(hjՎhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hdevice_iter_t fnh](h)}(hhh]j)}(h device_iter_th]h device_iter_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.bus_for_each_devasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hfnh]hfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjnhhhjhMRubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjjhhhjhMRubah}(h]jeah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMRhjghhubjB)}(hhh]jG)}(hdevice iterator.h]hdevice iterator.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMRhjDhhubah}(h]h ]h"]h$]h&]uh1jAhjghhhjhMRubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj_jgj_jhjijjuh1hhhhjShNhNubjl)}(hX**Parameters** ``const struct bus_type *bus`` bus type. ``struct device *start`` device to start iterating from. ``void *data`` data for the callback. ``device_iter_t fn`` function to be called for each device. **Description** Iterate over **bus**'s list of devices, and call **fn** for each, passing it **data**. If **start** is not NULL, we use that device to begin iterating from. We check the return of **fn** each time. If it returns anything other than 0, we break out and return that value. **NOTE** The device that returns a non-zero value is not retained in any way, nor is its refcount incremented. If the caller needs to retain this data, it should do so, and increment the reference count in the supplied callback.h](jG)}(h**Parameters**h]jv)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjgubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMVhjcubj)}(hhh](j)}(h)``const struct bus_type *bus`` bus type. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMShjubj)}(hhh]jG)}(h bus type.h]h bus type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubj)}(h9``struct device *start`` device to start iterating from. h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(hjÏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMThjubj)}(hhh]jG)}(hdevice to start iterating from.h]hdevice to start iterating from.}(hjڏhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj֏hMThj׏ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj֏hMThjubj)}(h&``void *data`` data for the callback. h](j)}(h``void *data``h]j)}(hjh]h void *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMUhjubj)}(hhh]jG)}(hdata for the callback.h]hdata for the callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMUhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMUhjubj)}(h<``device_iter_t fn`` function to be called for each device. h](j)}(h``device_iter_t fn``h]j)}(hj3h]hdevice_iter_t fn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMVhj-ubj)}(hhh]jG)}(h&function to be called for each device.h]h&function to be called for each device.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjHhMVhjIubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMVhjubeh}(h]h ]h"]h$]h&]uh1jhjcubjG)}(h**Description**h]jv)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1juhjlubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMXhjcubjG)}(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 }(hjhhhNhNubjv)}(h**bus**h]hbus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh’s list of devices, and call }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh for each, passing it }(hjhhhNhNubjv)}(h**data**h]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh. If }(hjhhhNhNubjv)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh9 is not NULL, we use that device to begin iterating from.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMXhjcubjG)}(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ېhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjېubhT each time. If it returns anything other than 0, we break out and return that value.}(hjېhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM\hjcubjG)}(h**NOTE**h]jv)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM_hjcubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM_hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_find_device (C function)c.bus_find_devicehNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMzubh)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhjPhMzubh)}(hhh]j)}(hdeviceh]hdevice}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjdmodnameN classnameNj5j5)}j 5]j#5)}j5bus_find_devicesbc.bus_find_deviceasbuh1hhj?hhhjPhMzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhjPhMzubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj?hhhjPhMzubj)}(hbus_find_deviceh]j)}(hjh]hbus_find_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj?hhhjPhMzubj4)}(hZ(const struct bus_type *bus, struct device *start, const void *data, device_match_t match)h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjʑhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjؑhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j~c.bus_find_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj"hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *starth](h)}(hhh]hstruct}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDubh)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubh)}(hhh]j)}(hdeviceh]hdevice}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjhmodnameN classnameNj5j5)}j 5]j~c.bus_find_deviceasbuh1hhjDubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjDubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst void *datah](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjŒhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hvoidh]hvoid}(hjӒhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hdevice_match_t matchh](h)}(hhh]j)}(hdevice_match_th]hdevice_match_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j~c.bus_find_deviceasbuh1hhjubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hmatchh]hmatch}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj?hhhjPhMzubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj;hhhjPhMzubah}(h]j6ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjPhMzhj8hhubjB)}(hhh]jG)}(h1device iterator for locating a particular device.h]h1device iterator for locating a particular device.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMzhjkhhubah}(h]h ]h"]h$]h&]uh1jAhj8hhhjPhMzubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM~hjubj)}(hhh](j)}(h(``const struct bus_type *bus`` bus type h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM{hjubj)}(hhh]jG)}(hbus typeh]hbus type}(hjȓhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjēhM{hjœubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjēhM{hjubj)}(h.``struct device *start`` Device to begin with h](j)}(h``struct device *start``h]j)}(hjh]hstruct device *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM|hjubj)}(hhh]jG)}(hDevice to begin withh]hDevice to begin with}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM|hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubj)}(h4``const void *data`` Data to pass to match function h](j)}(h``const void *data``h]j)}(hj!h]hconst void *data}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM}hjubj)}(hhh]jG)}(hData to pass to match functionh]hData to pass to match function}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj6hM}hj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj6hM}hjubj)}(h;``device_match_t match`` Callback function to check device h](j)}(h``device_match_t match``h]j)}(hjZh]hdevice_match_t match}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM~hjTubj)}(hhh]jG)}(h!Callback function to check deviceh]h!Callback function to check device}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjohM~hjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM~hjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubjG)}(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 }(hjhhhNhNubjv)}(h **match**h]hmatch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh callback.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_for_each_drv (C function)c.bus_for_each_drvhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(hbus_for_each_drvh]j)}(hbus_for_each_drvh]hbus_for_each_drv}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj hMubj4)}(hn(const struct bus_type *bus, struct device_driver *start, void *data, int (*fn)(struct device_driver*, void*))h](j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]hstruct}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubh)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjsmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.bus_for_each_drvasbuh1hhj4ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj4ubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj0ubj4)}(hstruct device_driver *starth](h)}(hhh]hstruct}(hjŕhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjҕhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.bus_for_each_drvasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hstarth]hstart}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj0ubj4)}(h void *datah](j4)}(hvoidh]hvoid}(hj5hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj1ubh)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj75)}(hj:5h]h*}(hjQhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj1ubj)}(hdatah]hdata}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj0ubj4)}(h'int (*fn)(struct device_driver*, void*)h](j4)}(hinth]hint}(hjwhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj75)}(hjnh]h(}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj)}(hfnh]hfn}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj75)}(hjnh]h)}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj75)}(hjnh]h(}(hjȖhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubh)}(hhh]hstruct}(hjՖhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjsubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j)}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.bus_for_each_drvasbuh1hhjsubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj75)}(h,h]h,}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubh)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj4)}(hvoidh]hvoid}(hj:hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjsubj75)}(hj:5h]h*}(hjHhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubj75)}(hjnh]h)}(hjUhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjsubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj0ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj hMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hMhjhhubjB)}(hhh]jG)}(hdriver iteratorh]hdriver iterator}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh](j)}(h7``const struct bus_type *bus`` bus we're dealing with. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]jG)}(hbus we're dealing with.h]hbus we’re dealing with.}(hjؗhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjԗhMhj՗ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjԗhMhjubj)}(h>``struct device_driver *start`` driver to start iterating on. h](j)}(h``struct device_driver *start``h]j)}(hjh]hstruct device_driver *start}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]jG)}(hdriver to start iterating on.h]hdriver to start iterating on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h-``void *data`` data to pass to the callback. h](j)}(h``void *data``h]j)}(hj1h]h void *data}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj+ubj)}(hhh]jG)}(hdata to pass to the callback.h]hdata to pass to the callback.}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhjubj)}(hP``int (*fn)(struct device_driver *, void *)`` function to call for each driver. h](j)}(h-``int (*fn)(struct device_driver *, void *)``h]j)}(hjjh]h)int (*fn)(struct device_driver *, void *)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjdubj)}(hhh]jG)}(h!function to call for each driver.h]h!function to call for each driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubjG)}(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 }(hjhhhNhNubjv)}(h**bus**h]hbus}(hjØhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh , and call }(hjhhhNhNubjv)}(h**fn**h]hfn}(hj՘hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh for each. If }(hjhhhNhNubjv)}(h**fn**h]hfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh8 returns anything but 0, we break out and return it. If }(hjhhhNhNubjv)}(h **start**h]hstart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh0 is not NULL, we use it as the head of the list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubjG)}(h**NOTE**h]jv)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubjG)}(hX(we don't return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn't disappear before returning to the caller.h]hX,we don’t return the driver that returns a non-zero value, nor do we leave the reference count incremented for that driver. If the caller needs to know that info, it must set it in the callback. It must also be sure to increment the refcount so it doesn’t disappear before returning to the caller.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_rescan_devices (C function)c.bus_rescan_deviceshNtauh1hhjShhhNhNubh)}(hhh](h)}(h3int bus_rescan_devices (const struct bus_type *bus)h]h)}(h2int bus_rescan_devices(const struct bus_type *bus)h](j4)}(hinth]hint}(hjYhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjUhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM ubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghM ubj)}(hbus_rescan_devicesh]j)}(hbus_rescan_devicesh]hbus_rescan_devices}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjUhhhjghM ubj4)}(h(const struct bus_type *bus)h]j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjϙhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̙ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjљmodnameN classnameNj5j5)}j 5]j#5)}j5j|sbc.bus_rescan_devicesasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjUhhhjghM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjQhhhjghM ubah}(h]jLah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjghM hjNhhubjB)}(hhh]jG)}(h.rescan devices on the bus for possible driversh]h.rescan devices on the bus for possible drivers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hj1hhubah}(h]h ]h"]h$]h&]uh1jAhjNhhhjghM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjLjgjLjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjVh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjTubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjPubj)}(hhh]j)}(h0``const struct bus_type *bus`` the bus to scan. 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:68: ./drivers/base/bus.chM hjoubj)}(hhh]jG)}(hthe bus to scan.h]hthe bus to scan.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjoubeh}(h]h ]h"]h$]h&]uh1jhjhM hjlubah}(h]h ]h"]h$]h&]uh1jhjPubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjPubjG)}(hThis function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.h]hThis function will look for devices on the bus with no driver attached and rescan it against existing drivers to see if it matches any by calling device_attach() for the unbound devices.}(hjƚhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdevice_reprobe (C function)c.device_reprobehNtauh1hhjShhhNhNubh)}(hhh](h)}(h'int device_reprobe (struct device *dev)h]h)}(h&int device_reprobe(struct device *dev)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdevice_reprobeh]j)}(hdevice_reprobeh]hdevice_reprobe}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjRmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.device_reprobeasbuh1hhj.ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj75)}(hj:5h]h*}(hj~hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj.ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*ubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj͛jgj͛jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjכh]h Parameters}(hjٛhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj՛ubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjћubj)}(hhh]j)}(h-``struct device *dev`` the device to reprobe h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]jG)}(hthe device to reprobeh]hthe device to reprobe}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjћubjG)}(h**Description**h]jv)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj/ubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjћubjG)}(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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjћubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_register (C function)c.bus_registerhNtauh1hhjShhhNhNubh)}(hhh](h)}(h-int bus_register (const struct bus_type *bus)h]h)}(h,int bus_register(const struct bus_type *bus)h](j4)}(hinth]hint}(hjvhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjrhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMQubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrhhhjhMQubj)}(h bus_registerh]j)}(h bus_registerh]h bus_register}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjrhhhjhMQubj4)}(h(const struct bus_type *bus)h]j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjΜhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjۜhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.bus_registerasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjrhhhjhMQubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjnhhhjhMQubah}(h]jiah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMQhjkhhubjB)}(hhh]jG)}(h register a driver-core subsystemh]h register a driver-core subsystem}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMQhjNhhubah}(h]h ]h"]h$]h&]uh1jAhjkhhhjhMQubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjijgjijhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjsh]h Parameters}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjqubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMUhjmubj)}(hhh]j)}(h/``const struct bus_type *bus`` bus to register h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMRhjubj)}(hhh]jG)}(hbus to registerh]hbus to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubah}(h]h ]h"]h$]h&]uh1jhjmubjG)}(h**Description**h]jv)}(hj͝h]h Description}(hjϝhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj˝ubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMThjmubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMThjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_unregister (C function)c.bus_unregisterhNtauh1hhjShhhNhNubh)}(hhh](h)}(h0void bus_unregister (const struct bus_type *bus)h]h)}(h/void bus_unregister(const struct bus_type *bus)h](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMubj)}(hbus_unregisterh]j)}(hbus_unregisterh]hbus_unregister}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj hMubj4)}(h(const struct bus_type *bus)h]j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubh)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]hstruct}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubh)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5j5sbc.bus_unregisterasbuh1hhjKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjKubj)}(hbush]hbus}(hjÞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjGubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhj hMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hMhjhhubjB)}(hhh]jG)}(hremove a bus from the systemh]hremove a bus from the system}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj ubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj ubj)}(hhh]j)}(h$``const struct bus_type *bus`` bus. h](j)}(h``const struct bus_type *bus``h]j)}(hj.h]hconst struct bus_type *bus}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj(ubj)}(hhh]jG)}(hbus.h]hbus.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjChMhjDubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjgubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj ubjG)}(hfUnregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcounth]hfUnregister the child subsystems and the bus itself. Finally, we call bus_put() to release the refcount}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ#subsys_system_register (C function)c.subsys_system_registerhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hsubsys_system_registerh]j)}(hsubsys_system_registerh]hsubsys_system_register}(hjϟhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˟ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j4)}(hconst struct bus_type *subsysh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj&modnameN classnameNj5j5)}j 5]j#5)}j5jџsbc.subsys_system_registerasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjRhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hsubsysh]hsubsys}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(h%const struct attribute_group **groupsh](h)}(hj6h]hconst}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j@c.subsys_system_registerasbuh1hhjtubh)}(h h]h }(hjϠhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj75)}(hj:5h]h*}(hjݠhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjtubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjtubj)}(hgroupsh]hgroups}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h,register a subsystem at /sys/devices/system/h]h,register a subsystem at /sys/devices/system/}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj9jgj9jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjCh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjAubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj=ubj)}(hhh](j)}(h3``const struct bus_type *subsys`` system subsystem h](j)}(h!``const struct bus_type *subsys``h]j)}(hjbh]hconst struct bus_type *subsys}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj\ubj)}(hhh]jG)}(hsystem subsystemh]hsystem subsystem}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjwhMhjxubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhMhjYubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhjubj)}(hhh]jG)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjYubeh}(h]h ]h"]h$]h&]uh1jhj=ubjG)}(h**Description**h]jv)}(hj֡h]h Description}(hjءhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjԡubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj=ubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj=ubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ$subsys_virtual_register (C function)c.subsys_virtual_registerhNtauh1hhjShhhNhNubh)}(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](j4)}(hinth]hint}(hj*hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj&hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM ubh)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj8hM ubj)}(hsubsys_virtual_registerh]j)}(hsubsys_virtual_registerh]hsubsys_virtual_register}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj&hhhj8hM ubj4)}(hF(const struct bus_type *subsys, const struct attribute_group **groups)h](j4)}(hconst struct bus_type *subsysh](h)}(hj6h]hconst}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jMsbc.subsys_virtual_registerasbuh1hhjcubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj75)}(hj:5h]h*}(hj΢hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjcubj)}(hsubsysh]hsubsys}(hjۢhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj_ubj4)}(h%const struct attribute_group **groupsh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hattribute_grouph]hattribute_group}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj/modnameN classnameNj5j5)}j 5]jc.subsys_virtual_registerasbuh1hhjubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjYhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj75)}(hj:5h]h*}(hjfhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hgroupsh]hgroups}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj_ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj&hhhj8hM ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj"hhhj8hM ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj8hM hjhhubjB)}(hhh]jG)}(h-register a subsystem at /sys/devices/virtual/h]h-register a subsystem at /sys/devices/virtual/}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj8hM ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjubj)}(hhh](j)}(h4``const struct bus_type *subsys`` virtual subsystem h](j)}(h!``const struct bus_type *subsys``h]j)}(hjޣh]hconst struct bus_type *subsys}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܣubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjأubj)}(hhh]jG)}(hvirtual subsystemh]hvirtual subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjأubeh}(h]h ]h"]h$]h&]uh1jhjhM hjգubj)}(hQ``const struct attribute_group **groups`` default attributes for the root device h](j)}(h)``const struct attribute_group **groups``h]j)}(hjh]h%const struct attribute_group **groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjubj)}(hhh]jG)}(h&default attributes for the root deviceh]h&default attributes for the root device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj,hM hj-ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj,hM hjգubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjRh]h Description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1juhjPubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjubjG)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdriver_find (C function) c.driver_findhNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM!ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM!ubh)}(hhh]j)}(h device_driverh]h device_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5 driver_findsb c.driver_findasbuh1hhjhhhjhM!ubh)}(h h]h }(hjפhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM!ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhM!ubj)}(h driver_findh]j)}(hjԤh]h driver_find}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM!ubj4)}(h.(const char *name, const struct bus_type *bus)h](j4)}(hconst char *nameh](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj4)}(hcharh]hchar}(hj,hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj ubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj75)}(hj:5h]h*}(hjHhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj ubj)}(hnameh]hname}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubj4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jҤ c.driver_findasbuh1hhjjubh)}(h h]h }(hjťhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj75)}(hj:5h]h*}(hjӥhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjjubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM!ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM!ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM!hjhhubjB)}(hhh]jG)}(h#locate driver on a bus by its name.h]h#locate driver on a bus by its name.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM!hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM!ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj"jgj"jhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj*ubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM%hj&ubj)}(hhh](j)}(h)``const char *name`` name of the driver. h](j)}(h``const char *name``h]j)}(hjKh]hconst char *name}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM"hjEubj)}(hhh]jG)}(hname of the driver.h]hname of the driver.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj`hM"hjaubah}(h]h ]h"]h$]h&]uh1jhjEubeh}(h]h ]h"]h$]h&]uh1jhj`hM"hjBubj)}(h;``const struct bus_type *bus`` bus to scan for the driver. h](j)}(h``const struct bus_type *bus``h]j)}(hjh]hconst struct bus_type *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM#hj~ubj)}(hhh]jG)}(hbus to scan for the driver.h]hbus to scan for the driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM#hjubah}(h]h ]h"]h$]h&]uh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhjhM#hjBubeh}(h]h ]h"]h$]h&]uh1jhj&ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM%hj&ubjG)}(hmCall kset_find_obj() to iterate over list of drivers on a bus to find driver by name. Return driver if found.h]hmCall kset_find_obj() to iterate over list of drivers on a bus to find driver by name. Return driver if found.}(hjզhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM%hj&ubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM(hj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌbus_get_dev_root (C function)c.bus_get_dev_roothNtauh1hhjShhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMSubh)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMSubh)}(hhh]j)}(hdeviceh]hdevice}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj4modnameN classnameNj5j5)}j 5]j#5)}j5bus_get_dev_rootsbc.bus_get_dev_rootasbuh1hhjhhhj hMSubh)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj hMSubj75)}(hj:5h]h*}(hjahhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhj hMSubj)}(hbus_get_dev_rooth]j)}(hjPh]hbus_get_dev_root}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj hMSubj4)}(h(const struct bus_type *bus)h]j4)}(hconst struct bus_type *bush](h)}(hj6h]hconst}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hbus_typeh]hbus_type}(hjƧhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjçubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjȧmodnameN classnameNj5j5)}j 5]jNc.bus_get_dev_rootasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hbush]hbus}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj hMSubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj hhhj hMSubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hMShjhhubjB)}(hhh]jG)}(h.return a pointer to the "device root" of a bush]h2return a pointer to the “device root” of a bus}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMShj&hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj hMSubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjAjgjAjhjijjuh1hhhhjShNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjKh]h Parameters}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjIubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMWhjEubj)}(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)}(hjjh]hconst struct bus_type *bus}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMThjdubj)}(hhh]jG)}(h!bus to return the device root of.h]h!bus to return the device root of.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMThjubah}(h]h ]h"]h$]h&]uh1jhjdubeh}(h]h ]h"]h$]h&]uh1jhjhMThjaubah}(h]h ]h"]h$]h&]uh1jhjEubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMVhjEubjG)}(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&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMVhjEubjG)}(hHNote, when finished with the device, a call to put_device() is required.h]hHNote, when finished with the device, a call to put_device() is required.}(hjʨhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chMYhjEubjG)}(hYIf the device root is not present (or bus is not a valid pointer), NULL will be returned.h]hYIf the device root is not present (or bus is not a valid pointer), NULL will be returned.}(hj٨hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:68: ./drivers/base/bus.chM[hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjShhhNhNubeh}(h]device-drivers-baseah ]h"]device drivers baseah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hDevice Drivers DMA Managementh]hDevice Drivers DMA Management}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKHubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdmam_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](j4)}(hvoidh]hvoid}(hj!hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=ubh)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj/hK=ubj)}(hdmam_free_coherenth]j)}(hdmam_free_coherenth]hdmam_free_coherent}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj/hK=ubj4)}(hE(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hdeviceh]hdevice}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj~modnameN classnameNj5j5)}j 5]j#5)}j5jDsbc.dmam_free_coherentasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjZubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubj4)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjөhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЩubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjթmodnameN classnameNj5j5)}j 5]jc.dmam_free_coherentasbuh1hhj̩ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj̩ubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̩ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubj4)}(h void *vaddrh](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj4hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hvaddrh]hvaddr}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubj4)}(hdma_addr_t dma_handleh](h)}(hhh]j)}(h dma_addr_th]h dma_addr_t}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj_modnameN classnameNj5j5)}j 5]jc.dmam_free_coherentasbuh1hhjVubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(h dma_handleh]h dma_handle}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjVubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj/hK=ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj/hK=ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj/hK=hjhhubjB)}(hhh]jG)}(hManaged dma_free_coherent()h]hManaged dma_free_coherent()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK=hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj/hK=ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj˪jgj˪jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjժh]h Parameters}(hjתhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjӪubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhjϪubj)}(hhh](j)}(h:``struct device *dev`` Device to free coherent memory for h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK>hjubj)}(hhh]jG)}(h"Device to free coherent memory forh]h"Device to free coherent memory for}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hK>hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK>hjubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hj-h]h size_t size}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK?hj'ubj)}(hhh]jG)}(hSize of allocationh]hSize of allocation}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjBhK?hjCubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhjBhK?hjubj)}(h6``void *vaddr`` Virtual address of the memory to free h](j)}(h``void *vaddr``h]j)}(hjfh]h void *vaddr}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chK@hj`ubj)}(hhh]jG)}(h%Virtual address of the memory to freeh]h%Virtual address of the memory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj{hK@hj|ubah}(h]h ]h"]h$]h&]uh1jhj`ubeh}(h]h ]h"]h$]h&]uh1jhj{hK@hjubj)}(h;``dma_addr_t dma_handle`` DMA handle of the memory to free h](j)}(h``dma_addr_t dma_handle``h]j)}(hjh]hdma_addr_t dma_handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKAhjubj)}(hhh]jG)}(h DMA handle of the memory to freeh]h DMA handle of the memory to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKAhjubeh}(h]h ]h"]h$]h&]uh1jhjϪubjG)}(h**Description**h]jv)}(hjګh]h Description}(hjܫhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjثubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKChjϪubjG)}(hManaged dma_free_coherent().h]hManaged dma_free_coherent().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKChjϪubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdmam_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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPubh)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj-hKPubj75)}(hj:5h]h*}(hj<hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhj-hKPubj)}(hdmam_alloc_attrsh]j)}(hdmam_alloc_attrsh]hdmam_alloc_attrs}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj-hKPubj4)}(hY(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jOsbc.dmam_alloc_attrsasbuh1hhjeubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjeubj)}(hdevh]hdev}(hj¬hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjެhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj۬ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.dmam_alloc_attrsasbuh1hhj׬ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj׬ubj)}(hsizeh]hsize}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׬ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(hdma_addr_t *dma_handleh](h)}(hhh]j)}(h dma_addr_th]h dma_addr_t}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj(modnameN classnameNj5j5)}j 5]jc.dmam_alloc_attrsasbuh1hhjubh)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjRhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(h dma_handleh]h dma_handle}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(h gfp_t gfph](h)}(hhh]j)}(hgfp_th]hgfp_t}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj}modnameN classnameNj5j5)}j 5]jc.dmam_alloc_attrsasbuh1hhjtubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(hunsigned long attrsh](j4)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjέhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hlongh]hlong}(hjܭhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj-hKPubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj-hKPubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj-hKPhjhhubjB)}(hhh]jG)}(hManaged dma_alloc_attrs()h]hManaged dma_alloc_attrs()}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKPhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj-hKPubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj:jgj:jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjBubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./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)}(hjch]hstruct device *dev}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKQhj]ubj)}(hhh]jG)}(h*Device to allocate non_coherent memory forh]h*Device to allocate non_coherent memory for}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjxhKQhjyubah}(h]h ]h"]h$]h&]uh1jhj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKQhjZubj)}(h#``size_t size`` Size of allocation h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKRhjubj)}(hhh]jG)}(hSize of allocationh]hSize of allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhjZubj)}(hA``dma_addr_t *dma_handle`` Out argument for allocated DMA handle h](j)}(h``dma_addr_t *dma_handle``h]j)}(hjծh]hdma_addr_t *dma_handle}(hj׮hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӮubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKShjϮubj)}(hhh]jG)}(h%Out argument for allocated DMA handleh]h%Out argument for allocated DMA handle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKShjubah}(h]h ]h"]h$]h&]uh1jhjϮubeh}(h]h ]h"]h$]h&]uh1jhjhKShjZubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKThjubj)}(hhh]jG)}(hAllocation flagsh]hAllocation flags}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj#hKThj$ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj#hKThjZubj)}(h;``unsigned long attrs`` Flags in the DMA_ATTR_* namespace. h](j)}(h``unsigned long attrs``h]j)}(hjGh]hunsigned long attrs}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKUhjAubj)}(hhh]jG)}(h"Flags in the DMA_ATTR_* namespace.h]h"Flags in the DMA_ATTR_* namespace.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj\hKUhj]ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKUhjZubeh}(h]h ]h"]h$]h&]uh1jhj>ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKWhj>ubjG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKWhj>ubjG)}(h **Return**h]jv)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKZhj>ubjG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKZhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdma_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](j4)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj4)}(hinth]hint}(hj hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhhjhKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hdma_map_sg_attrsh]j)}(hdma_map_sg_attrsh]hdma_map_sg_attrs}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(hi(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hdeviceh]hdevice}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjgmodnameN classnameNj5j5)}j 5]j#5)}j5j-sbc.dma_map_sg_attrsasbuh1hhjCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjCubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(hstruct scatterlist *sgh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjưhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h scatterlisth]h scatterlist}(hjװhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj԰ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjٰmodnameN classnameNj5j5)}j 5]jc.dma_map_sg_attrsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hsgh]hsg}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(h int nentsh](j4)}(hinth]hint}(hj)hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj%ubh)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hnentsh]hnents}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(henum dma_data_direction dirh](h)}(hjNh]henum}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(hhh]j)}(hdma_data_directionh]hdma_data_direction}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj~modnameN classnameNj5j5)}j 5]jc.dma_map_sg_attrsasbuh1hhjZubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(hunsigned long attrsh](j4)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjϱhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hlongh]hlong}(hjݱhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hattrsh]hattrs}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj hhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj;jgj;jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjCubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj?ubj)}(hhh](j)}(hI``struct device *dev`` The device for which to perform the DMA operation 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:74: ./kernel/dma/mapping.chKhj^ubj)}(hhh]jG)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjyhKhjzubah}(h]h ]h"]h$]h&]uh1jhj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj[ubj)}(hE``struct scatterlist *sg`` The sg_table object describing the buffer h](j)}(h``struct scatterlist *sg``h]j)}(hjh]hstruct scatterlist *sg}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhjubj)}(hhh]jG)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj[ubj)}(h'``int nents`` Number of entries to map h](j)}(h ``int nents``h]j)}(hjֲh]h int nents}(hjزhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjԲubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhjвubj)}(hhh]jG)}(hNumber of entries to maph]hNumber of entries to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjвubeh}(h]h ]h"]h$]h&]uh1jhjhKhj[ubj)}(h.``enum dma_data_direction dir`` DMA direction h](j)}(h``enum dma_data_direction dir``h]j)}(hjh]henum dma_data_direction dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj ubj)}(hhh]jG)}(h DMA directionh]h DMA direction}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhj[ubj)}(hF``unsigned long attrs`` Optional DMA attributes for the map operation h](j)}(h``unsigned long attrs``h]j)}(hjHh]hunsigned long attrs}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhjBubj)}(hhh]jG)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhj[ubeh}(h]h ]h"]h$]h&]uh1jhj?ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj?ubjG)}(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 }(hjhhhNhNubjv)}(h**dir**h]hdir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh DMA operation by the }(hjhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj?ubjG)}(hoReturns the number of mapped entries (which can be less than nents) on success. Zero is returned for any error.h]hoReturns the number of mapped entries (which can be less than nents) on success. Zero is returned for any error.}(hj̳hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj?ubjG)}(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).}(hj۳hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chKhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdma_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](j4)}(hinth]hint}(hj hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdma_map_sgtableh]j)}(hdma_map_sgtableh]hdma_map_sgtable}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h\(struct device *dev, struct sg_table *sgt, enum dma_data_direction dir, unsigned long attrs)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjCubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j)}(hdeviceh]hdevice}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjgmodnameN classnameNj5j5)}j 5]j#5)}j5j-sbc.dma_map_sgtableasbuh1hhjCubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjCubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(hstruct sg_table *sgth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjƴhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hsg_tableh]hsg_table}(hj״hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԴubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjٴmodnameN classnameNj5j5)}j 5]jc.dma_map_sgtableasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hsgth]hsgt}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(henum dma_data_direction dirh](h)}(hjNh]henum}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubh)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j)}(hdma_data_directionh]hdma_data_direction}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjImodnameN classnameNj5j5)}j 5]jc.dma_map_sgtableasbuh1hhj%ubh)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hdirh]hdir}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubj4)}(hunsigned long attrsh](j4)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hattrsh]hattrs}(hjĵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj?ubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(hMap the given buffer for DMAh]hMap the given buffer for DMA}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM hj ubj)}(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}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj)ubj)}(hhh]jG)}(h1The device for which to perform the DMA operationh]h1The device for which to perform the DMA operation}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhj&ubj)}(hC``struct sg_table *sgt`` The sg_table object describing the buffer h](j)}(h``struct sg_table *sgt``h]j)}(hjhh]hstruct sg_table *sgt}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM hjbubj)}(hhh]jG)}(h)The sg_table object describing the bufferh]h)The sg_table object describing the buffer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj}hM hj~ubah}(h]h ]h"]h$]h&]uh1jhjbubeh}(h]h ]h"]h$]h&]uh1jhj}hM hj&ubj)}(h.``enum dma_data_direction dir`` DMA direction h](j)}(h``enum dma_data_direction dir``h]j)}(hjh]henum dma_data_direction dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM hjubj)}(hhh]jG)}(h DMA directionh]h DMA direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM hj&ubj)}(hF``unsigned long attrs`` Optional DMA attributes for the map operation h](j)}(h``unsigned long attrs``h]j)}(hjڶh]hunsigned long attrs}(hjܶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjضubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM hjԶubj)}(hhh]jG)}(h-Optional DMA attributes for the map operationh]h-Optional DMA attributes for the map operation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM hjubah}(h]h ]h"]h$]h&]uh1jhjԶubeh}(h]h ]h"]h$]h&]uh1jhjhM hj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM hj ubjG)}(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 }(hj+hhhNhNubjv)}(h**dir**h]hdir}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj+ubh DMA operation by the }(hj+hhhNhNubjv)}(h**dev**h]hdev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1juhj+ubh 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.}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM hj ubjG)}(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:}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj ubj;)}(hXM-EINVAL An invalid argument, unaligned access or other error in usage. Will not succeed if retried. -ENOMEM Insufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later. -EIO Legacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR. -EREMOTEIO The DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]h option_list)}(hhh](hoption_list_item)}(hhh](h option_group)}(hhh]hoption)}(h-EINVALh](h option_string)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhjubhoption_argument)}(hINVALh]hINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1j{hjxubh description)}(h[An invalid argument, unaligned access or other error in usage. Will not succeed if retried.h]jG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jvhjsubjw)}(hhh](j|)}(hhh]j)}(h-ENOMEMh](j)}(h-Eh]h-E}hj޷sbah}(h]h ]h"]h$]h&]uh1jhjڷubj)}(hNOMEMh]hNOMEM}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhjڷubeh}(h]h ]h"]h$]h&]uh1jhj׷ubah}(h]h ]h"]h$]h&]uh1j{hjԷubj)}(hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.h]jG)}(hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.h]hlInsufficient resources (like memory or IOVA space) to complete the mapping. Should succeed if retried later.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubah}(h]h ]h"]h$]h&]uh1jhjԷubeh}(h]h ]h"]h$]h&]uh1jvhjsubjw)}(hhh](j|)}(hhh]j)}(h-EIOh](j)}(h-Eh]h-E}hj0sbah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hIOh]hIO}(hj>hhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1j{hj&ubj)}(hqLegacy error code with an unknown meaning. eg. this is returned if a lower level call returned DMA_MAPPING_ERROR.h]jG)}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjYubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jvhjsubjw)}(hhh](j|)}(hhh]j)}(h -EREMOTEIOh](j)}(h-Eh]h-E}hjsbah}(h]h ]h"]h$]h&]uh1jhj~ubj)}(hREMOTEIOh]hREMOTEIO}(hjhhhNhNubah}(h]h ]h"]h$]h&] delimiterhuh1jhj~ubeh}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1j{hjxubj)}(hgThe DMA device cannot access P2PDMA memory specified in the sg_table. This will not succeed if retried.h]jG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubah}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]uh1jvhjsubeh}(h]h ]h"]h$]h&]uh1jqhjǷhMhjmubah}(h]h ]h"]h$]h&]uh1j:hjǷhMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdma_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](j4)}(hj4h]hbool}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hdma_need_unmaph]j)}(hdma_need_unmaph]hdma_need_unmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.ubh)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubh)}(hhh]j)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjRmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.dma_need_unmapasbuh1hhj.ubh)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj75)}(hj:5h]h*}(hj~hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj.ubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hj*ubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h,does this device need dma_unmap_* operationsh]h,does this device need dma_unmap_* operations}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj͹jgj͹jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj׹h]h Parameters}(hjٹhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjչubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjѹubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]jG)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubah}(h]h ]h"]h$]h&]uh1jhjѹubjG)}(h**Description**h]jv)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj/ubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjѹubjG)}(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 }(hjGhhhNhNubj)}(h ``false``h]hfalse}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh, 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.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjѹubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdma_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](j4)}(hj4h]hbool}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(h dma_can_mmaph]j)}(h dma_can_mmaph]h dma_can_mmap}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjĺhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjѺhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߺubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.dma_can_mmapasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]j{ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhj}hhubjB)}(hhh]jG)}(h+check if a given device supports dma_mmap_*h]h+check if a given device supports dma_mmap_*}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jAhj}hhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj_jgj_jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjgubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjcubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjubj)}(hhh]jG)}(hdevice to checkh]hdevice to check}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjcubjG)}(h**Description**h]jv)}(hjûh]h Description}(hjŻhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjcubjG)}(hrReturns ``true`` if **dev** supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.h](hReturns }(hjٻhhhNhNubj)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjٻubh if }(hjٻhhhNhNubjv)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjٻubhW supports dma_mmap_coherent() and dma_mmap_attrs() to map DMA allocations to userspace.}(hjٻhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌdma_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](j4)}(hinth]hint}(hj,hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj(hhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM+ubh)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(hhhj:hM+ubj)}(hdma_mmap_attrsh]j)}(hdma_mmap_attrsh]hdma_mmap_attrs}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj(hhhj:hM+ubj4)}(hw(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)h](j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeubh)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jOsbc.dma_mmap_attrsasbuh1hhjeubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjeubj)}(hdevh]hdev}(hj¼hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(hstruct vm_area_struct *vmah](h)}(hhh]hstruct}(hjۼhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj׼ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj׼ubh)}(hhh]j)}(hvm_area_structh]hvm_area_struct}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.dma_mmap_attrsasbuh1hhj׼ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj׼ubj75)}(hj:5h]h*}(hj%hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hj׼ubj)}(hvmah]hvma}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj׼ubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(hvoid *cpu_addrh](j4)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjGubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj75)}(hj:5h]h*}(hjghhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjGubj)}(hcpu_addrh]hcpu_addr}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(hdma_addr_t dma_addrh](h)}(hhh]j)}(h dma_addr_th]h dma_addr_t}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.dma_mmap_attrsasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hdma_addrh]hdma_addr}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(h size_t sizeh](h)}(hhh]j)}(hsize_th]hsize_t}(hjؽhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjսubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjڽmodnameN classnameNj5j5)}j 5]jc.dma_mmap_attrsasbuh1hhjѽubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjѽubj)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѽubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubj4)}(hunsigned long attrsh](j4)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj4)}(hlongh]hlong}(hj9hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjubh)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hattrsh]hattrs}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjaubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj(hhhj:hM+ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj$hhhj:hM+ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj:hM+hj!hhubjB)}(hhh]jG)}(h-map a coherent DMA allocation into user spaceh]h-map a coherent DMA allocation into user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM+hj|hhubah}(h]h ]h"]h$]h&]uh1jAhj!hhhj:hM+ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM/hjubj)}(hhh](j)}(hZ``struct device *dev`` valid struct device pointer, or NULL for ISA and EISA-like devices h](j)}(h``struct device *dev``h]j)}(hjh]hstruct device *dev}(hj¾hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM,hjubj)}(hhh]jG)}(hBvalid struct device pointer, or NULL for ISA and EISA-like devicesh]hBvalid struct device pointer, or NULL for ISA and EISA-like devices}(hjپhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjվhM,hj־ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjվhM,hjubj)}(hP``struct vm_area_struct *vma`` vm_area_struct describing requested user mapping h](j)}(h``struct vm_area_struct *vma``h]j)}(hjh]hstruct vm_area_struct *vma}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM-hjubj)}(hhh]jG)}(h0vm_area_struct describing requested user mappingh]h0vm_area_struct describing requested user mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(hI``void *cpu_addr`` kernel CPU-view address returned from dma_alloc_attrs h](j)}(h``void *cpu_addr``h]j)}(hj2h]hvoid *cpu_addr}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM.hj,ubj)}(hhh]jG)}(h5kernel CPU-view address returned from dma_alloc_attrsh]h5kernel CPU-view address returned from dma_alloc_attrs}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjGhM.hjHubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM.hjubj)}(hJ``dma_addr_t dma_addr`` device-view address returned from dma_alloc_attrs h](j)}(h``dma_addr_t dma_addr``h]j)}(hjkh]hdma_addr_t dma_addr}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM/hjeubj)}(hhh]jG)}(h1device-view address returned from dma_alloc_attrsh]h1device-view address returned from dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubj)}(hG``size_t size`` size of memory originally requested in dma_alloc_attrs h](j)}(h``size_t size``h]j)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM0hjubj)}(hhh]jG)}(h6size of memory originally requested in dma_alloc_attrsh]h6size of memory originally requested in dma_alloc_attrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM0hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjubj)}(hV``unsigned long attrs`` attributes of mapping properties requested in dma_alloc_attrs h](j)}(h``unsigned long attrs``h]j)}(hjݿh]hunsigned long attrs}(hj߿hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjۿubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM1hj׿ubj)}(hhh]jG)}(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&]uh1jFhjhM1hjubah}(h]h ]h"]h$]h&]uh1jhj׿ubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM3hjubjG)}(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.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chM3hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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](j4)}(hj4h]hbool}(hj]hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjYhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMubh)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjjhMubj)}(hdma_addressing_limitedh]j)}(hdma_addressing_limitedh]hdma_addressing_limited}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjYhhhjjhMubj4)}(h(struct device *dev)h]j4)}(hstruct device *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.dma_addressing_limitedasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjYhhhjjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjUhhhjjhMubah}(h]jPah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjjhMhjRhhubjB)}(hhh]jG)}(h*return if the device is addressing limitedh]h*return if the device is addressing limited}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjRhhhjjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj4jgj4jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj<ubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj8ubj)}(hhh]j)}(h'``struct device *dev`` device to check h](j)}(h``struct device *dev``h]j)}(hj]h]hstruct device *dev}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhjWubj)}(hhh]jG)}(hdevice to checkh]hdevice to check}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj8ubjG)}(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&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:74: ./kernel/dma/mapping.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubeh}(h]device-drivers-dma-managementah ]h"]device drivers dma managementah$]h&]uh1hhhhhhhhKHubh)}(hhh](h)}(hDevice drivers PnP supporth]hDevice drivers PnP support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌ"pnp_register_protocol (C function)c.pnp_register_protocolhNtauh1hhjhhhNhNubh)}(hhh](h)}(h9int pnp_register_protocol (struct pnp_protocol *protocol)h]h)}(h8int pnp_register_protocol(struct pnp_protocol *protocol)h](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*ubh)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj(hK*ubj)}(hpnp_register_protocolh]j)}(hpnp_register_protocolh]hpnp_register_protocol}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj(hK*ubj4)}(h(struct pnp_protocol *protocol)h]j4)}(hstruct pnp_protocol *protocolh](h)}(hhh]hstruct}(hjWhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubh)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubh)}(hhh]j)}(h pnp_protocolh]h pnp_protocol}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjwmodnameN classnameNj5j5)}j 5]j#5)}j5j=sbc.pnp_register_protocolasbuh1hhjSubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjSubj)}(hprotocolh]hprotocol}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjOubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj(hK*ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj(hK*ubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj(hK*hjhhubjB)}(hhh]jG)}(h$adds a pnp protocol to the pnp layerh]h$adds a pnp protocol to the pnp layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK*hjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj(hK*ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(h**Parameters** ``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure Ex protocols: ISAPNP, PNPBIOS, etch](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK.hjubj)}(hhh]j)}(hy``struct pnp_protocol *protocol`` pointer to the corresponding pnp_protocol structure Ex protocols: ISAPNP, PNPBIOS, etch](j)}(h!``struct pnp_protocol *protocol``h]j)}(hjh]hstruct pnp_protocol *protocol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK,hjubj)}(hhh](jG)}(h3pointer to the corresponding pnp_protocol structureh]h3pointer to the corresponding pnp_protocol structure}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK+hj1ubjG)}(h"Ex protocols: ISAPNP, PNPBIOS, etch]h"Ex protocols: ISAPNP, PNPBIOS, etc}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:80: ./drivers/pnp/core.chK-hj1ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj0hK,hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM#ubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5pnp_request_card_devicesbc.pnp_request_card_deviceasbuh1hhjhhhjhM#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM#ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjhhhjhM#ubj)}(hpnp_request_card_deviceh]j)}(hjh]hpnp_request_card_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM#ubj4)}(hC(struct pnp_card_link *clink, const char *id, struct pnp_dev *from)h](j4)}(hstruct pnp_card_link *clinkh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(h pnp_card_linkh]h pnp_card_link}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.pnp_request_card_deviceasbuh1hhjubh)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjHhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hclinkh]hclink}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst char *idh](h)}(hj6h]hconst}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubh)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj4)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjjubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct pnp_dev *fromh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.pnp_request_card_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hfromh]hfrom}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM#ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj|hhhjhM#ubah}(h]jwah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM#hjyhhubjB)}(hhh]jG)}(h2Searches for a PnP device under the specified cardh]h2Searches for a PnP device under the specified card}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM#hjIhhubah}(h]h ]h"]h$]h&]uh1jAhjyhhhjhM#ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjdjgjdjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjnh]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1juhjlubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM'hjhubj)}(hhh](j)}(hI``struct pnp_card_link *clink`` pointer to the card link, cannot be NULL h](j)}(h``struct pnp_card_link *clink``h]j)}(hjh]hstruct pnp_card_link *clink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM$hjubj)}(hhh]jG)}(h(pointer to the card link, cannot be NULLh]h(pointer to the card link, cannot be NULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h```const char *id`` pointer to a PnP ID structure that explains the rules for finding the device h](j)}(h``const char *id``h]j)}(hjh]hconst char *id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM%hjubj)}(hhh]jG)}(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&]uh1jFhjhM%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:83: ./drivers/pnp/card.chM'hjubj)}(hhh]jG)}(hHStarting place to search from. If NULL it will start from the beginning.h]hHStarting place to search from. If NULL it will start from the beginning.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM&hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM'hjubeh}(h]h ]h"]h$]h&]uh1jhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjYhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjUhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghMWubj)}(hpnp_release_card_deviceh]j)}(hpnp_release_card_deviceh]hpnp_release_card_device}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjUhhhjghMWubj4)}(h(struct pnp_dev *dev)h]j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5j|sbc.pnp_release_card_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjUhhhjghMWubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjQhhhjghMWubah}(h]jLah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjghMWhjNhhubjB)}(hhh]jG)}(h4call this when the driver no longer needs the deviceh]h4call this when the driver no longer needs the device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMWhjhhubah}(h]h ]h"]h$]h&]uh1jAhjNhhhjghMWubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj1jgj1jhjijjuh1hhhhjhNhNubjl)}(hM**Parameters** ``struct pnp_dev *dev`` pointer to the PnP device structureh](jG)}(h**Parameters**h]jv)}(hj;h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj9ubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM[hj5ubj)}(hhh]j)}(h;``struct pnp_dev *dev`` pointer to the PnP device structureh](j)}(h``struct pnp_dev *dev``h]j)}(hjZh]hstruct pnp_dev *dev}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM]hjTubj)}(hhh]jG)}(h#pointer to the PnP device structureh]h#pointer to the PnP device structure}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMXhjpubah}(h]h ]h"]h$]h&]uh1jhjTubeh}(h]h ]h"]h$]h&]uh1jhjohM]hjQubah}(h]h ]h"]h$]h&]uh1jhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM}ubj)}(hpnp_register_card_driverh]j)}(hpnp_register_card_driverh]hpnp_register_card_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhM}ubj4)}(h(struct pnp_card_driver *drv)h]j4)}(hstruct pnp_card_driver *drvh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_card_driverh]hpnp_card_driver}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.pnp_register_card_driverasbuh1hhjubh)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj=hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdrvh]hdrv}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhM}ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhM}ubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhM}hjhhubjB)}(hhh]jG)}(h.registers a PnP card driver with the PnP Layerh]h.registers a PnP card driver with the PnP Layer}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM}hjqhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhM}ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(hS**Parameters** ``struct pnp_card_driver *drv`` pointer to the driver to registerh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjubj)}(hhh]j)}(hA``struct pnp_card_driver *drv`` pointer to the driver to registerh](j)}(h``struct pnp_card_driver *drv``h]j)}(hjh]hstruct pnp_card_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjubj)}(hhh]jG)}(h!pointer to the driver to registerh]h!pointer to the driver to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chM~hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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)}(hj?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(h0unregisters a PnP card driver from the PnP Layerh]h0unregisters a PnP card driver from the PnP Layer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(hU**Parameters** ``struct pnp_card_driver *drv`` pointer to the driver to unregisterh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhjubj)}(hhh]j)}(hC``struct pnp_card_driver *drv`` pointer to the driver to unregisterh](j)}(h``struct pnp_card_driver *drv``h]j)}(hjh]hstruct pnp_card_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhj ubj)}(hhh]jG)}(h#pointer to the driver to unregisterh]h#pointer to the driver to unregister}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh\/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:83: ./drivers/pnp/card.chMhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpnp_add_id (C function) c.pnp_add_idhNtauh1hhjhhhNhNubh)}(hhh](h)}(h@struct pnp_id * pnp_add_id (struct pnp_dev *dev, const char *id)h]h)}(h>struct pnp_id *pnp_add_id(struct pnp_dev *dev, const char *id)h](h)}(hhh]hstruct}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfhhh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM#ubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjwhM#ubh)}(hhh]j)}(hpnp_idh]hpnp_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5 pnp_add_idsb c.pnp_add_idasbuh1hhjfhhhjwhM#ubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjwhM#ubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjfhhhjwhM#ubj)}(h pnp_add_idh]j)}(hjh]h pnp_add_id}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjfhhhjwhM#ubj4)}(h%(struct pnp_dev *dev, const char *id)h](j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j c.pnp_add_idasbuh1hhjubh)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj.hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hconst char *idh](h)}(hj6h]hconst}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj4)}(hcharh]hchar}(hjohhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjPubh)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjPubj)}(hidh]hid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjfhhhjwhM#ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjbhhhjwhM#ubah}(h]j]ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjwhM#hj_hhubjB)}(hhh]jG)}(h'adds an EISA id to the specified deviceh]h'adds an EISA id to the specified device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM#hjhhubah}(h]h ]h"]h$]h&]uh1jAhj_hhhjwhM#ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(hz**Parameters** ``struct pnp_dev *dev`` pointer to the desired device ``const char *id`` pointer to an EISA id stringh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM'hjubj)}(hhh](j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM$hjubj)}(hhh]jG)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM$hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM$hjubj)}(h/``const char *id`` pointer to an EISA id stringh](j)}(h``const char *id``h]j)}(hj<h]hconst char *id}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ubah}(h]h ]h"]h$]h&]uh1jh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM&hj6ubj)}(hhh]jG)}(hpointer to an EISA id stringh]hpointer to an EISA id string}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh^/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:86: ./drivers/pnp/driver.chM%hjRubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhM&hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpnp_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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMLubj)}(h pnp_start_devh]j)}(h pnp_start_devh]h pnp_start_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMLubj4)}(h(struct pnp_dev *dev)h]j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.pnp_start_devasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMLubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMLubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMLhjhhubjB)}(hhh]jG)}(h!low-level start of the PnP deviceh]h!low-level start of the PnP device}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMLhjShhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMLubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjnjgjnjhjijjuh1hhhhjhNhNubjl)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** assumes that resources have already been allocatedh](jG)}(h**Parameters**h]jv)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjvubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMPhjrubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMMhjubj)}(hhh]jG)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jhjrubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMOhjrubjG)}(h2assumes that resources have already been allocatedh]h2assumes that resources have already been allocated}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMOhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpnp_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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMdubh)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj%hMdubj)}(h pnp_stop_devh]j)}(h pnp_stop_devh]h pnp_stop_dev}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj%hMdubj4)}(h(struct pnp_dev *dev)h]j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubh)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjtmodnameN classnameNj5j5)}j 5]j#5)}j5j:sbc.pnp_stop_devasbuh1hhjPubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjPubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjLubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj%hMdubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj%hMdubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj%hMdhj hhubjB)}(hhh]jG)}(h#low-level disable of the PnP deviceh]h#low-level disable of the PnP device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMdhjhhubah}(h]h ]h"]h$]h&]uh1jAhj hhhj%hMdubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(hq**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not free resourcesh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhhjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMehjubj)}(hhh]jG)}(hpointer to the desired deviceh]hpointer to the desired device}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj-hMehj.ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj-hMehjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjQubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMghjubjG)}(hdoes not free resourcesh]hdoes not free resources}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMghjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpnp_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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMzubj)}(hpnp_activate_devh]j)}(hpnp_activate_devh]hpnp_activate_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhMzubj4)}(h(struct pnp_dev *dev)h]j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.pnp_activate_devasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj!hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhMzubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMzubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMzhjhhubjB)}(hhh]jG)}(hactivates a PnP device for useh]hactivates a PnP device for use}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMzhjUhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMzubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjpjgjpjhjijjuh1hhhhjhNhNubjl)}(h**Parameters** ``struct pnp_dev *dev`` pointer to the desired device **Description** does not validate or set resources so be careful.h](jG)}(h**Parameters**h]jv)}(hjzh]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjxubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM~hjtubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM{hjubj)}(hhh]jG)}(hpointer to the desired deviceh]hpointer to the desired device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubah}(h]h ]h"]h$]h&]uh1jhjtubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM}hjtubjG)}(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&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chM}hjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpnp_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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMubh)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj'hMubj)}(hpnp_disable_devh]j)}(hpnp_disable_devh]hpnp_disable_dev}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhj'hMubj4)}(h(struct pnp_dev *dev)h]j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubh)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjvmodnameN classnameNj5j5)}j 5]j#5)}j5j<sbc.pnp_disable_devasbuh1hhjRubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjRubj)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjNubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhj'hMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj'hMubah}(h]j ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj'hMhjhhubjB)}(hhh]jG)}(hdisables deviceh]hdisables device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhj'hMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjubj)}(hhh]j)}(h6``struct pnp_dev *dev`` pointer to the desired device h](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjubj)}(hhh]jG)}(hpointer to the desired deviceh]hpointer to the desired device}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubah}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjSubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjubjG)}(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}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:89: ./drivers/pnp/manager.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌpnp_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](j4)}(hinth]hint}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(h pnp_is_activeh]j)}(h pnp_is_activeh]h pnp_is_active}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhjhKubj4)}(h(struct pnp_dev *dev)h]j4)}(hstruct pnp_dev *devh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hpnp_devh]hpnp_dev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.pnp_is_activeasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj#hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hdevh]hdev}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubah}(h]h ]h"]h$]h&]j+j,uh1j4hjhhhjhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhKhjhhubjB)}(hhh]jG)}(h?Determines if a device is active based on its current resourcesh]h?Determines if a device is active based on its current resources}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjWhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhKubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjrjgjrjhjijjuh1hhhhjhNhNubjl)}(hK**Parameters** ``struct pnp_dev *dev`` pointer to the desired PnP deviceh](jG)}(h**Parameters**h]jv)}(hj|h]h Parameters}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1juhjzubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjvubj)}(hhh]j)}(h9``struct pnp_dev *dev`` pointer to the desired PnP deviceh](j)}(h``struct pnp_dev *dev``h]j)}(hjh]hstruct pnp_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubj)}(hhh]jG)}(h!pointer to the desired PnP deviceh]h!pointer to the desired PnP device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh_/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:92: ./drivers/pnp/support.chKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubeh}(h]device-drivers-pnp-supportah ]h"]device drivers pnp supportah$]h&]uh1hhhhhhhhKNubh)}(hhh](h)}(hUserspace IO devicesh]hUserspace IO devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK`ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuio_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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMubj)}(huio_event_notifyh]j)}(huio_event_notifyh]huio_event_notify}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhjhMubj4)}(h(struct uio_info *info)h]j4)}(hstruct uio_info *infoh](h)}(hhh]hstruct}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGubh)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubh)}(hhh]j)}(huio_infoh]huio_info}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjkmodnameN classnameNj5j5)}j 5]j#5)}j5j1sbc.uio_event_notifyasbuh1hhjGubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjGubj)}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjCubah}(h]h ]h"]h$]h&]j+j,uh1j4hj hhhjhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMhjhhubjB)}(hhh]jG)}(htrigger an interrupt eventh]htrigger an interrupt event}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj ubj)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj%ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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](j4)}(hinth]hint}(hjihhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hjehhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjwhMubj)}(h__uio_register_deviceh]j)}(h__uio_register_deviceh]h__uio_register_device}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjehhhjwhMubj4)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j4)}(hstruct module *ownerh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5jsbc.__uio_register_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct device *parenth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj8modnameN classnameNj5j5)}j 5]jc.__uio_register_deviceasbuh1hhjubh)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjbhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hparenth]hparent}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubj4)}(hstruct uio_info *infoh](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(huio_infoh]huio_info}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]jc.__uio_register_deviceasbuh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjubeh}(h]h ]h"]h$]h&]j+j,uh1j4hjehhhjwhMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjahhhjwhMubah}(h]j\ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjwhMhj^hhubjB)}(hhh]jG)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjhhubah}(h]h ]h"]h$]h&]uh1jAhj^hhhjwhMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfj!jgj!jhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj)ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj%ubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hjJh]hstruct module *owner}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjDubj)}(hhh]jG)}(h"module that creates the new deviceh]h"module that creates the new device}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjAubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjh]hstruct device *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj}ubj)}(hhh]jG)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjAubj)}(h2``struct uio_info *info`` UIO device capabilities h](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhjubj)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjAubeh}(h]h ]h"]h$]h&]uh1jhj%ubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj%ubjG)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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](j4)}(hinth]hint}(hj<hhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj8hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM,ubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhjJhM,ubj)}(h__devm_uio_register_deviceh]j)}(h__devm_uio_register_deviceh]h__devm_uio_register_device}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj8hhhjJhM,ubj4)}(hD(struct module *owner, struct device *parent, struct uio_info *info)h](j4)}(hstruct module *ownerh](h)}(hhh]hstruct}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j)}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjmodnameN classnameNj5j5)}j 5]j#5)}j5j_sbc.__devm_uio_register_deviceasbuh1hhjuubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjuubj)}(hownerh]howner}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjqubj4)}(hstruct device *parenth](h)}(hhh]hstruct}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj modnameN classnameNj5j5)}j 5]jc.__devm_uio_register_deviceasbuh1hhjubh)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj75)}(hj:5h]h*}(hj5hhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjubj)}(hparenth]hparent}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjqubj4)}(hstruct uio_info *infoh](h)}(hhh]hstruct}(hj[hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjWubh)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubh)}(hhh]j)}(huio_infoh]huio_info}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetj{modnameN classnameNj5j5)}j 5]jc.__devm_uio_register_deviceasbuh1hhjWubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjWubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjWubj)}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjqubeh}(h]h ]h"]h$]h&]j+j,uh1j4hj8hhhjJhM,ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj4hhhjJhM,ubah}(h]j/ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjJhM,hj1hhubjB)}(hhh]jG)}(h&Resource managed uio_register_device()h]h&Resource managed uio_register_device()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM,hjhhubah}(h]h ]h"]h$]h&]uh1jAhj1hhhjJhM,ubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM0hjubj)}(hhh](j)}(h<``struct module *owner`` module that creates the new device h](j)}(h``struct module *owner``h]j)}(hjh]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM-hjubj)}(hhh]jG)}(h"module that creates the new deviceh]h"module that creates the new device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj2hM-hj3ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj2hM-hjubj)}(h(``struct device *parent`` parent device h](j)}(h``struct device *parent``h]j)}(hjVh]hstruct device *parent}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM.hjPubj)}(hhh]jG)}(h parent deviceh]h parent device}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjkhM.hjlubah}(h]h ]h"]h$]h&]uh1jhjPubeh}(h]h ]h"]h$]h&]uh1jhjkhM.hjubj)}(h2``struct uio_info *info`` UIO device capabilities h](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM/hjubj)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhM/hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM1hjubjG)}(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&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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](j4)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j4ah"]h$]h&]uh1j4hj hhh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMMubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhjhMMubj)}(huio_unregister_deviceh]j)}(huio_unregister_deviceh]huio_unregister_device}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj hhhjhMMubj4)}(h(struct uio_info *info)h]j4)}(hstruct uio_info *infoh](h)}(hhh]hstruct}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubh)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j)}(huio_infoh]huio_info}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&] refdomainj`reftypej5 reftargetjlmodnameN classnameNj5j5)}j 5]j#5)}j5j2sbc.uio_unregister_deviceasbuh1hhjHubh)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj75)}(hj:5h]h*}(hjhhhNhNubah}(h]h ]jC5ah"]h$]h&]uh1j65hjHubj)}(hinfoh]hinfo}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubeh}(h]h ]h"]h$]h&]noemphj+j,uh1j4hjDubah}(h]h ]h"]h$]h&]j+j,uh1j4hj hhhjhMMubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhjhMMubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjhMMhjhhubjB)}(hhh]jG)}(h!unregister a industrial IO deviceh]h!unregister a industrial IO device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jAhjhhhjhMMubeh}(h]h ](j`functioneh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(hC**Parameters** ``struct uio_info *info`` UIO device capabilitiesh](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMQhjubj)}(hhh]j)}(h1``struct uio_info *info`` UIO device capabilitiesh](j)}(h``struct uio_info *info``h]j)}(hjh]hstruct uio_info *info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMShj ubj)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:98: ./drivers/uio/uio.chMNhj&ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj%hMShjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuio_mem (C struct) c.uio_memhNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_memh]h)}(hstruct uio_memh](h)}(hhh]hstruct}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubh)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjwhKubj)}(huio_memh]j)}(hjdh]huio_mem}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjfhhhjwhKubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjbhhhjwhKubah}(h]j]ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjwhKhj_hhubjB)}(hhh]jG)}(h"description of a UIO memory regionh]h"description of a UIO memory region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jAhj_hhhjwhKubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hX)struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; };h]hX)struct uio_mem { const char *name; phys_addr_t addr; dma_addr_t dma_addr; unsigned long offs; resource_size_t size; int memtype; void __iomem *internal_addr; struct device *dma_device; struct uio_map *map; };}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK*hjubj)}(hhh](j)}(h6``name`` name of the memory region for identification h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]jG)}(h,name of the memory region for identificationh]h,name of the memory region for identification}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj.hKhj/ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj.hKhjubj)}(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)}(hjRh]haddr}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjLubj)}(hhh]jG)}(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)}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhubah}(h]h ]h"]h$]h&]uh1jhjLubeh}(h]h ]h"]h$]h&]uh1jhjghKhjubj)}(h``dma_addr`` DMA handle set by dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only (**addr** should be the void * returned from the same dma_alloc_coherent call) h](j)}(h ``dma_addr``h]j)}(hjh]hdma_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK"hjubj)}(hhh]jG)}(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 (}(hjhhhNhNubjv)}(h**addr**h]haddr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubhE should be the void * returned from the same dma_alloc_coherent call)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjubj)}(h1``offs`` offset of device memory within the page h](j)}(h``offs``h]j)}(hjh]hoffs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK#hjubj)}(hhh]jG)}(h'offset of device memory within the pageh]h'offset of device memory within the page}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK#hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjubj)}(h,``size`` size of IO (multiple of page size) h](j)}(h``size``h]j)}(hjh]hsize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK$hj ubj)}(hhh]jG)}(h"size of IO (multiple of page size)h]h"size of IO (multiple of page size)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj&hK$hj'ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj&hK$hjubj)}(h*``memtype`` type of memory addr points to h](j)}(h ``memtype``h]j)}(hjJh]hmemtype}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK%hjDubj)}(hhh]jG)}(htype of memory addr points toh]htype of memory addr points to}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj_hK%hj`ubah}(h]h ]h"]h$]h&]uh1jhjDubeh}(h]h ]h"]h$]h&]uh1jhj_hK%hjubj)}(hG``internal_addr`` ioremap-ped version of addr, for driver internal use h](j)}(h``internal_addr``h]j)}(hjh]h internal_addr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK&hj}ubj)}(hhh]jG)}(h4ioremap-ped version of addr, for driver internal useh]h4ioremap-ped version of addr, for driver internal use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK&hjubah}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ]h"]h$]h&]uh1jhjhK&hjubj)}(hh``dma_device`` device struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only h](j)}(h``dma_device``h]j)}(hjh]h dma_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK(hjubj)}(hhh]jG)}(hXdevice struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT onlyh]hXdevice struct that was passed to dma_alloc_coherent, used with UIO_MEM_DMA_COHERENT only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK'hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK(hjubj)}(h%``map`` for use by the UIO core only.h](j)}(h``map``h]j)}(hjh]hmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK(hjubj)}(hhh]jG)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK)hj ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hK(hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuio_port (C struct) c.uio_porthNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_porth]h)}(hstruct uio_porth](h)}(hhh]hstruct}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjLhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK/ubh)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhj]hK/ubj)}(huio_porth]j)}(hjJh]huio_port}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjLhhhj]hK/ubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjHhhhj]hK/ubah}(h]jCah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj]hK/hjEhhubjB)}(hhh]jG)}(h description of a UIO port regionh]h description of a UIO port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK;hjhhubah}(h]h ]h"]h$]h&]uh1jAhjEhhhj]hK/ubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hjubj)}(hstruct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; };h]hstruct uio_port { const char *name; unsigned long start; unsigned long size; int porttype; struct uio_portio *portio; };}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKAhjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKIhjubj)}(hhh](j)}(h4``name`` name of the port region for identification h](j)}(h``name``h]j)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK=hjubj)}(hhh]jG)}(h*name of the port region for identificationh]h*name of the port region for identification}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK=hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK=hjubj)}(h``start`` start of port region h](j)}(h ``start``h]j)}(hj8h]hstart}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK>hj2ubj)}(hhh]jG)}(hstart of port regionh]hstart of port region}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjMhK>hjNubah}(h]h ]h"]h$]h&]uh1jhj2ubeh}(h]h ]h"]h$]h&]uh1jhjMhK>hjubj)}(h``size`` size of port region h](j)}(h``size``h]j)}(hjqh]hsize}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK?hjkubj)}(hhh]jG)}(hsize of port regionh]hsize of port region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK?hjubah}(h]h ]h"]h$]h&]uh1jhjkubeh}(h]h ]h"]h$]h&]uh1jhjhK?hjubj)}(h1``porttype`` type of port (see UIO_PORT_* below) h](j)}(h ``porttype``h]j)}(hjh]hporttype}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK@hjubj)}(hhh]jG)}(h#type of port (see UIO_PORT_* below)h]h#type of port (see UIO_PORT_* below)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK@hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubj)}(h(``portio`` for use by the UIO core only.h](j)}(h ``portio``h]j)}(hjh]hportio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK@hjubj)}(hhh]jG)}(hfor use by the UIO core only.h]hfor use by the UIO core only.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKAhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK@hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuio_info (C struct) c.uio_infohNtauh1hhjhhhNhNubh)}(hhh](h)}(huio_infoh]h)}(hstruct uio_infoh](h)}(hhh]hstruct}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKGubh)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjJhKGubj)}(huio_infoh]j)}(hj7h]huio_info}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj9hhhjJhKGubeh}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj5hhhjJhKGubah}(h]j0ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjJhKGhj2hhubjB)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKZhj|hhubah}(h]h ]h"]h$]h&]uh1jAhj2hhhjJhKGubeh}(h]h ](j`structeh"]h$]h&]jej`jfjjgjjhjijjuh1hhhhjhNhNubjl)}(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)(struct uio_info *info, struct vm_area_struct *vma); 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`` mmap 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](jG)}(h**Definition**::h](jv)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hjubj)}(hXjstruct 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)(struct uio_info *info, struct vm_area_struct *vma); 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]hXjstruct 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)(struct uio_info *info, struct vm_area_struct *vma); int (*open)(struct uio_info *info, struct inode *inode); int (*release)(struct uio_info *info, struct inode *inode); int (*irqcontrol)(struct uio_info *info, s32 irq_on); };}hjsbah}(h]h ]h"]h$]h&]j+j,uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK`hjubjG)}(h **Members**h]jv)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKphjubj)}(hhh](j)}(h0``uio_dev`` the UIO device this info belongs to h](j)}(h ``uio_dev``h]j)}(hjh]huio_dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK\hjubj)}(hhh]jG)}(h#the UIO device this info belongs toh]h#the UIO device this info belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK\hjubj)}(h``name`` device name 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:101: ./include/linux/uio_driver.hhK]hjubj)}(hhh]jG)}(h device nameh]h device name}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj:hK]hj;ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj:hK]hjubj)}(h"``version`` device driver version h](j)}(h ``version``h]j)}(hj^h]hversion}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK^hjXubj)}(hhh]jG)}(hdevice driver versionh]hdevice driver version}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjshK^hjtubah}(h]h ]h"]h$]h&]uh1jhjXubeh}(h]h ]h"]h$]h&]uh1jhjshK^hjubj)}(hA``mem`` list of mappable memory regions, size==0 for end of list h](j)}(h``mem``h]j)}(hjh]hmem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK_hjubj)}(hhh]jG)}(h8list of mappable memory regions, size==0 for end of listh]h8list of mappable memory regions, size==0 for end of list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK_hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK_hjubj)}(h7``port`` list of port regions, size==0 for end of list h](j)}(h``port``h]j)}(hjh]hport}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhK`hjubj)}(hhh]jG)}(h-list of port regions, size==0 for end of listh]h-list of port regions, size==0 for end of list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhK`hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhK`hjubj)}(h+``irq`` interrupt number or UIO_IRQ_CUSTOM h](j)}(h``irq``h]j)}(hj h]hirq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKahjubj)}(hhh]jG)}(h"interrupt number or UIO_IRQ_CUSTOMh]h"interrupt number or UIO_IRQ_CUSTOM}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKahjubj)}(h&``irq_flags`` flags for request_irq() h](j)}(h ``irq_flags``h]j)}(hjBh]h irq_flags}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKbhj<ubj)}(hhh]jG)}(hflags for request_irq()h]hflags for request_irq()}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjWhKbhjXubah}(h]h ]h"]h$]h&]uh1jhj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhKbhjubj)}(h``priv`` optional private data h](j)}(h``priv``h]j)}(hj{h]hpriv}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKchjuubj)}(hhh]jG)}(hoptional private datah]hoptional private data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKchjubah}(h]h ]h"]h$]h&]uh1jhjuubeh}(h]h ]h"]h$]h&]uh1jhjhKchjubj)}(h%``handler`` the device's irq handler h](j)}(h ``handler``h]j)}(hjh]hhandler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKdhjubj)}(hhh]jG)}(hthe device's irq handlerh]hthe device’s irq handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKdhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKdhjubj)}(h,``mmap`` mmap operation for this uio device h](j)}(h``mmap``h]j)}(hjh]hmmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKehjubj)}(hhh]jG)}(h"mmap operation for this uio deviceh]h"mmap operation for this uio device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKehjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(h,``open`` open operation for this uio device h](j)}(h``open``h]j)}(hj&h]hopen}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKfhj ubj)}(hhh]jG)}(h"open operation for this uio deviceh]h"open operation for this uio device}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj;hKfhj<ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhj;hKfhjubj)}(h2``release`` release operation for this uio device h](j)}(h ``release``h]j)}(hj_h]hrelease}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKghjYubj)}(hhh]jG)}(h%release operation for this uio deviceh]h%release operation for this uio device}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjthKghjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ]h"]h$]h&]uh1jhjthKghjubj)}(hC``irqcontrol`` disable/enable irqs when 0/1 is written to /dev/uioXh](j)}(h``irqcontrol``h]j)}(hjh]h irqcontrol}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKghjubj)}(hhh]jG)}(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&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKghjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](hՌuio_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 ]jah"]h$]h&]uh1jhjubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hjhhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hjhhhj hKubah}(h]jah ](j9j:eh"]h$]h&]j>j?)j@huh1hhj hKhjhhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhjhhhj hKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfj"jgj"jhjijjuh1hhhhjhNhNubjG)}(h&``uio_register_device (parent, info)``h]j)}(hj(h]h"uio_register_device (parent, info)}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhhubj;)}(h#register a new userspace IO device h]jG)}(h"register a new userspace IO deviceh]h"register a new userspace IO device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhj>ubah}(h]h ]h"]h$]h&]uh1j:hjPhKhjhhubjl)}(h**Parameters** ``parent`` parent device ``info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](jG)}(h**Parameters**h]jv)}(hj]h]h Parameters}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj[ubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjWubj)}(hhh](j)}(h``parent`` parent device h](j)}(h ``parent``h]j)}(hj|h]hparent}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjvubj)}(hhh]jG)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hjh]hinfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjsubeh}(h]h ]h"]h$]h&]uh1jhjWubjG)}(h**Description**h]jv)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjWubjG)}(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&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjWubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubh)}(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}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubah}(h]h ](j&j'eh"]h$]h&]j+j,uh1j hj1hhhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKubah}(h]h ]h"]h$]h&]j+j,j3uh1hj4j5hj-hhhjLhKubah}(h]j(ah ](j9j:eh"]h$]h&]j>j?)j@huh1hhjLhKhj*hhubjB)}(hhh]h}(h]h ]h"]h$]h&]uh1jAhj*hhhjLhKubeh}(h]h ](j`macroeh"]h$]h&]jej`jfjejgjejhjijjuh1hhhhjhNhNubjG)}(h+``devm_uio_register_device (parent, info)``h]j)}(hjkh]h'devm_uio_register_device (parent, info)}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjhhubj;)}(h'Resource managed uio_register_device() h]jG)}(h&Resource managed uio_register_device()h]h&Resource managed uio_register_device()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j:hjhKhjhhubjl)}(h**Parameters** ``parent`` parent device ``info`` UIO device capabilities **Description** returns zero on success or a negative error code.h](jG)}(h**Parameters**h]jv)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1juhjubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh](j)}(h``parent`` parent device h](j)}(h ``parent``h]j)}(hjh]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]jG)}(h parent deviceh]h parent device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhjhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h!``info`` UIO device capabilities h](j)}(h``info``h]j)}(hjh]hinfo}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubj)}(hhh]jG)}(hUIO device capabilitiesh]hUIO device capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhj hKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubjG)}(h**Description**h]jv)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1juhj1ubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubjG)}(h1returns zero on success or a negative error code.h]h1returns zero on success or a negative error code.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jFhe/var/lib/git/docbuild/linux/Documentation/driver-api/infrastructure:101: ./include/linux/uio_driver.hhKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jkhjhhhNhNubeh}(h]userspace-io-devicesah ]h"]userspace io devicesah$]h&]uh1hhhhhhhhK`ubeh}(h]device-drivers-infrastructureah ]h"]device drivers infrastructureah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jljijSjSjjjjjjjdjau nametypes}(jljSjjjjduh}(jihjShhhj$j)jjjjjjj j j j j j j/ j4 jKjPjyj~j+j0jjjGjLjjj?jDjjjQjVjj jGjLjzjj j j"j"j$j $jN1jS1j4j4j5j6j7j7j9j9j<j<j=j=j9?j>?jC@jI@jEjEjHjHjFLjLLjMjMjjSj#Sj(SjKTjPTjVjVjYj Yja[jf[j]j]j`j `jajaj9cj>cjfjfjjj#jjmjmjpjpjJrjOrjsjsjLujQujNvjSvj]zjbzj{j{j}j}jjjjjjj0j5jtjyjjjjjÎjȎjj j7j<jjjjjjjjęj@jEjjjjjjjjj{jjjjjjjj2j7jjjLjQj&j+jjjjjjj jjdjijjjjj.j3jjjjjjj j%jjj jj<jAjjjjj7j<j:j?jjjjjzjjyj~j"j'j}jjjjjj/j5j`jejjjKjPjjjW j\ j j j j jkjpjjjjj j%jjj"j'jjj$j)jjj&j+jjj(!j-!j#j#j$j$jc&jh&j|'j'j-)j2)j+j+jD-jI-j /j/jR4jW4j7j7j<j<j>j>jAjAjCjCjFjFjdHjiHjJjJj5Lj:Lj"Pj'PjRjRjUjUjTWjYWjPYjUYjZjZj\j\j_j_jObjTbjcjcjcejhejfjfjwhj|hjqjjvjjuljzljmjmj!qj&qjvjvjyjzj0|j5|j~j~jzjjjjdjijjjjjejjj6j;jjjLjQjjjijnjj jjjj"jjjj jjjjjjjjjjjjj{jjj$jPjUjjj jjwj|jLjQjjjjj]jbjjj jjjj jjjjajjjj\jaj/j4jjj]jbjCjHj0j5jjj(j-u 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.