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/w1modnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/zh_TW/driver-api/w1modnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/it_IT/driver-api/w1modnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ja_JP/driver-api/w1modnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/ko_KR/driver-api/w1modnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget!/translations/sp_SP/driver-api/w1modnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hW1: Dallas' 1-wire bush]hW1: Dallas’ 1-wire bus}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh;/var/lib/git/docbuild/linux/Documentation/driver-api/w1.rsthKubh field_list)}(hhh]hfield)}(hhh](h field_name)}(hAuthorh]hAuthor}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhKubh field_body)}(h David Fries h]h paragraph)}(h David Friesh]h David Fries}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hW1 API internal to the kernelh]hW1 API internal to the kernel}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hinclude/linux/w1.hh]hinclude/linux/w1.h}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK ubh)}(hW1 kernel API functions.h]hW1 kernel API functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hj hhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlew1_reg_num (C struct) c.w1_reg_numhNtauh1j)hj hhhNhNubhdesc)}(hhh](hdesc_signature)}(h w1_reg_numh]hdesc_signature_line)}(hstruct w1_reg_numh](hdesc_sig_keyword)}(hstructh]hstruct}(hjMhhhNhNubah}(h]h ]kah"]h$]h&]uh1jKhjGhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKubhdesc_sig_space)}(h h]h }(hj_hhhNhNubah}(h]h ]wah"]h$]h&]uh1j]hjGhhhj\hKubh desc_name)}(h w1_reg_numh]h desc_sig_name)}(hjCh]h w1_reg_num}(hjvhhhNhNubah}(h]h ]nah"]h$]h&]uh1jthjpubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jnhjGhhhj\hKubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1jEsphinx_line_type declaratorhjAhhhj\hKubah}(h]j8ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j?hj\hKhj<hhubh desc_content)}(hhh]h)}(hbroken out slave device idh]hbroken out slave device id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj\hKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j:hhhj hNhNubh container)}(hX**Definition**:: struct w1_reg_num { #if defined(__LITTLE_ENDIAN_BITFIELD); __u64 family:8,id:48, crc:8; #elif defined(__BIG_ENDIAN_BITFIELD); __u64 crc:8,id:48, family:8; #else; #error "Please fix "; #endif; }; **Members** ``family`` identifies the type of device ``id`` along with family is the unique device id ``crc`` checksum of the other bytes ``crc`` checksum of the other bytes ``id`` along with family is the unique device id ``family`` identifies the type of deviceh](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubh literal_block)}(hstruct w1_reg_num { #if defined(__LITTLE_ENDIAN_BITFIELD); __u64 family:8,id:48, crc:8; #elif defined(__BIG_ENDIAN_BITFIELD); __u64 crc:8,id:48, family:8; #else; #error "Please fix "; #endif; };h]hstruct w1_reg_num { #if defined(__LITTLE_ENDIAN_BITFIELD); __u64 family:8,id:48, crc:8; #elif defined(__BIG_ENDIAN_BITFIELD); __u64 crc:8,id:48, family:8; #else; #error "Please fix "; #endif; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubhdefinition_list)}(hhh](hdefinition_list_item)}(h)``family`` identifies the type of device h](hterm)}(h ``family``h]hliteral)}(hj'h]hfamily}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj%ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubh definition)}(hhh]h)}(hidentifies the type of deviceh]hidentifies the type of device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhjAubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhj>hKhjubj)}(h1``id`` along with family is the unique device id h](j$)}(h``id``h]j*)}(hjdh]hid}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjbubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj^ubj@)}(hhh]h)}(h)along with family is the unique device idh]h)along with family is the unique device id}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1j?hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhjubj)}(h$``crc`` checksum of the other bytes h](j$)}(h``crc``h]j*)}(hjh]hcrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hchecksum of the other bytesh]hchecksum of the other bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h$``crc`` checksum of the other bytes h](j$)}(h``crc``h]j*)}(hjh]hcrc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hchecksum of the other bytesh]hchecksum of the other bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h1``id`` along with family is the unique device id h](j$)}(h``id``h]j*)}(hjh]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj@)}(hhh]h)}(h)along with family is the unique device idh]h)along with family is the unique device id}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj%ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjubj)}(h(``family`` identifies the type of deviceh](j$)}(h ``family``h]j*)}(hjHh]hfamily}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjFubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjBubj@)}(hhh]h)}(hidentifies the type of deviceh]hidentifies the type of device}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj^ubah}(h]h ]h"]h$]h&]uh1j?hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_slave (C struct) c.w1_slavehNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(hw1_slaveh]jF)}(hstruct w1_slaveh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjhhhjhKubjo)}(hw1_slaveh]ju)}(hjh]hw1_slave}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hjhKhjhhubj)}(hhh]h)}(h&holds a single slave device on the bush]h&holds a single slave device on the bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j:hhhj hNhNubj)}(hX**Definition**:: struct w1_slave { struct module *owner; unsigned char name[W1_MAXNAMELEN]; struct list_head w1_slave_entry; struct w1_reg_num reg_num; atomic_t refcnt; int ttl; unsigned long flags; struct w1_master *master; struct w1_family *family; void *family_data; struct device dev; struct device *hwmon; }; **Members** ``owner`` Points to the one wire "wire" kernel module. ``name`` Device id is ascii. ``w1_slave_entry`` data for the linked list ``reg_num`` the slave id in binary ``refcnt`` reference count, delete when 0 ``ttl`` decrement per search this slave isn't found, deatch at 0 ``flags`` bit flags for W1_SLAVE_ACTIVE W1_SLAVE_DETACH ``master`` bus which this slave is on ``family`` module for device family type ``family_data`` pointer for use by the family module ``dev`` kernel device identifier ``hwmon`` pointer to hwmon deviceh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK5hjubj)}(hXstruct w1_slave { struct module *owner; unsigned char name[W1_MAXNAMELEN]; struct list_head w1_slave_entry; struct w1_reg_num reg_num; atomic_t refcnt; int ttl; unsigned long flags; struct w1_master *master; struct w1_family *family; void *family_data; struct device dev; struct device *hwmon; };h]hXstruct w1_slave { struct module *owner; unsigned char name[W1_MAXNAMELEN]; struct list_head w1_slave_entry; struct w1_reg_num reg_num; atomic_t refcnt; int ttl; unsigned long flags; struct w1_master *master; struct w1_family *family; void *family_data; struct device dev; struct device *hwmon; };}hj!sbah}(h]h ]h"]h$]h&]jjuh1jhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK7hjubh)}(h **Members**h]j)}(hj2h]hMembers}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKFhjubj)}(hhh](j)}(h7``owner`` Points to the one wire "wire" kernel module. h](j$)}(h ``owner``h]j*)}(hjQh]howner}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjOubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK4hjKubj@)}(hhh]h)}(h,Points to the one wire "wire" kernel module.h]h0Points to the one wire “wire” kernel module.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhK4hjgubah}(h]h ]h"]h$]h&]uh1j?hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhK4hjHubj)}(h``name`` Device id is ascii. h](j$)}(h``name``h]j*)}(hjh]hname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK5hjubj@)}(hhh]h)}(hDevice id is ascii.h]hDevice id is ascii.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK5hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK5hjHubj)}(h,``w1_slave_entry`` data for the linked list h](j$)}(h``w1_slave_entry``h]j*)}(hjh]hw1_slave_entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK6hjubj@)}(hhh]h)}(hdata for the linked listh]hdata for the linked list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK6hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK6hjHubj)}(h#``reg_num`` the slave id in binary h](j$)}(h ``reg_num``h]j*)}(hjh]hreg_num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK7hjubj@)}(hhh]h)}(hthe slave id in binaryh]hthe slave id in binary}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK7hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK7hjHubj)}(h*``refcnt`` reference count, delete when 0 h](j$)}(h ``refcnt``h]j*)}(hj5h]hrefcnt}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj3ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK8hj/ubj@)}(hhh]h)}(hreference count, delete when 0h]hreference count, delete when 0}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhK8hjKubah}(h]h ]h"]h$]h&]uh1j?hj/ubeh}(h]h ]h"]h$]h&]uh1jhjJhK8hjHubj)}(hA``ttl`` decrement per search this slave isn't found, deatch at 0 h](j$)}(h``ttl``h]j*)}(hjnh]httl}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjlubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK:hjhubj@)}(hhh]h)}(h8decrement per search this slave isn't found, deatch at 0h]h:decrement per search this slave isn’t found, deatch at 0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK:hjubah}(h]h ]h"]h$]h&]uh1j?hjhubeh}(h]h ]h"]h$]h&]uh1jhjhK:hjHubj)}(h8``flags`` bit flags for W1_SLAVE_ACTIVE W1_SLAVE_DETACH h](j$)}(h ``flags``h]j*)}(hjh]hflags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK9hjubj@)}(hhh]h)}(h-bit flags for W1_SLAVE_ACTIVE W1_SLAVE_DETACHh]h-bit flags for W1_SLAVE_ACTIVE W1_SLAVE_DETACH}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK9hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjHubj)}(h&``master`` bus which this slave is on h](j$)}(h ``master``h]j*)}(hjh]hmaster}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK;hjubj@)}(hhh]h)}(hbus which this slave is onh]hbus which this slave is on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjHubj)}(h)``family`` module for device family type h](j$)}(h ``family``h]j*)}(hjh]hfamily}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hkernel device identifierh]hkernel device identifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK>hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjHubj)}(h!``hwmon`` pointer to hwmon deviceh](j$)}(h ``hwmon``h]j*)}(hjh]hhwmon}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK>hjubj@)}(hhh]h)}(hpointer to hwmon deviceh]hpointer to hwmon device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK?hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK>hjHubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_bus_master (C struct)c.w1_bus_masterhNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(h w1_bus_masterh]jF)}(hstruct w1_bus_masterh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKEubj^)}(h h]h }(hj,hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjhhhj+hKEubjo)}(h w1_bus_masterh]ju)}(hjh]h w1_bus_master}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhj+hKEubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhj+hKEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hj+hKEhjhhubj)}(hhh]h)}(h$operations available on a bus masterh]h$operations available on a bus master}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKThj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj+hKEubeh}(h]h ](jstructeh"]h$]h&]jjjjxjjxjjjuh1j:hhhj hNhNubj)}(hXn**Definition**:: struct w1_bus_master { void *data; u8 (*read_bit)(void *); void (*write_bit)(void *, u8); u8 (*touch_bit)(void *, u8); u8 (*read_byte)(void *); void (*write_byte)(void *, u8); u8 (*read_block)(void *, u8 *, int); void (*write_block)(void *, const u8 *, int); u8 (*triplet)(void *, u8); u8 (*reset_bus)(void *); u8 (*set_pullup)(void *, int); void (*search)(void *, struct w1_master *, u8, w1_slave_found_callback); char *dev_id; }; **Members** ``data`` the first parameter in all the functions below ``read_bit`` Sample the line level **return** the level read (0 or 1) ``write_bit`` Sets the line level ``touch_bit`` the lowest-level function for devices that really support the 1-wire protocol. touch_bit(0) = write-0 cycle touch_bit(1) = write-1 / read cycle **return** the bit read (0 or 1) ``read_byte`` Reads a byte. Same as 8 touch_bit(1) calls. **return** the byte read ``write_byte`` Writes a byte. Same as 8 touch_bit(x) calls. ``read_block`` Same as a series of read_byte() calls **return** the number of bytes read ``write_block`` Same as a series of write_byte() calls ``triplet`` Combines two reads and a smart write for ROM searches **return** bit0=Id bit1=comp_id bit2=dir_taken ``reset_bus`` long write-0 with a read for the presence pulse detection **return** -1=Error, 0=Device present, 1=No device present ``set_pullup`` Put out a strong pull-up pulse of the specified duration. **return** -1=Error, 0=completed ``search`` Really nice hardware can handle the different types of ROM search w1_master* is passed to the slave found callback. u8 is search_type, W1_SEARCH or W1_ALARM_SEARCH ``dev_id`` Optional device id string, which w1 slaves could use for creating names, which then give a connection to the w1 masterh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKXhj|ubj)}(hXstruct w1_bus_master { void *data; u8 (*read_bit)(void *); void (*write_bit)(void *, u8); u8 (*touch_bit)(void *, u8); u8 (*read_byte)(void *); void (*write_byte)(void *, u8); u8 (*read_block)(void *, u8 *, int); void (*write_block)(void *, const u8 *, int); u8 (*triplet)(void *, u8); u8 (*reset_bus)(void *); u8 (*set_pullup)(void *, int); void (*search)(void *, struct w1_master *, u8, w1_slave_found_callback); char *dev_id; };h]hXstruct w1_bus_master { void *data; u8 (*read_bit)(void *); void (*write_bit)(void *, u8); u8 (*touch_bit)(void *, u8); u8 (*read_byte)(void *); void (*write_byte)(void *, u8); u8 (*read_block)(void *, u8 *, int); void (*write_block)(void *, const u8 *, int); u8 (*triplet)(void *, u8); u8 (*reset_bus)(void *); u8 (*set_pullup)(void *, int); void (*search)(void *, struct w1_master *, u8, w1_slave_found_callback); char *dev_id; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKZhj|ubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKjhj|ubj)}(hhh](j)}(h8``data`` the first parameter in all the functions below h](j$)}(h``data``h]j*)}(hjh]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKWhjubj@)}(hhh]h)}(h.the first parameter in all the functions belowh]h.the first parameter in all the functions below}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKWhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKWhjubj)}(hF``read_bit`` Sample the line level **return** the level read (0 or 1) h](j$)}(h ``read_bit``h]j*)}(hjh]hread_bit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKZhjubj@)}(hhh]h)}(h8Sample the line level **return** the level read (0 or 1)h](hSample the line level }(hjhhhNhNubj)}(h **return**h]hreturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh the level read (0 or 1)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKYhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKZhjubj)}(h"``write_bit`` Sets the line level h](j$)}(h ``write_bit``h]j*)}(hjRh]h write_bit}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjPubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK\hjLubj@)}(hhh]h)}(hSets the line levelh]hSets the line level}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghK\hjhubah}(h]h ]h"]h$]h&]uh1j?hjLubeh}(h]h ]h"]h$]h&]uh1jhjghK\hjubj)}(h``touch_bit`` the lowest-level function for devices that really support the 1-wire protocol. touch_bit(0) = write-0 cycle touch_bit(1) = write-1 / read cycle **return** the bit read (0 or 1) h](j$)}(h ``touch_bit``h]j*)}(hjh]h touch_bit}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKbhjubj@)}(hhh]h)}(hthe lowest-level function for devices that really support the 1-wire protocol. touch_bit(0) = write-0 cycle touch_bit(1) = write-1 / read cycle **return** the bit read (0 or 1)h](hthe lowest-level function for devices that really support the 1-wire protocol. touch_bit(0) = write-0 cycle touch_bit(1) = write-1 / read cycle }(hjhhhNhNubj)}(h **return**h]hreturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh the bit read (0 or 1)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK^hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKbhjubj)}(hS``read_byte`` Reads a byte. Same as 8 touch_bit(1) calls. **return** the byte read h](j$)}(h ``read_byte``h]j*)}(hjh]h read_byte}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKehjubj@)}(hhh]h)}(hDReads a byte. Same as 8 touch_bit(1) calls. **return** the byte readh](h,Reads a byte. Same as 8 touch_bit(1) calls. }(hjhhhNhNubj)}(h **return**h]hreturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh the byte read}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKdhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKehjubj)}(h<``write_byte`` Writes a byte. Same as 8 touch_bit(x) calls. h](j$)}(h``write_byte``h]j*)}(hj# h]h write_byte}(hj% hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj! ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKghj ubj@)}(hhh]h)}(h,Writes a byte. Same as 8 touch_bit(x) calls.h]h,Writes a byte. Same as 8 touch_bit(x) calls.}(hj< hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8 hKghj9 ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj8 hKghjubj)}(hY``read_block`` Same as a series of read_byte() calls **return** the number of bytes read h](j$)}(h``read_block``h]j*)}(hj\ h]h read_block}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjZ ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKjhjV ubj@)}(hhh]h)}(hISame as a series of read_byte() calls **return** the number of bytes readh](h&Same as a series of read_byte() calls }(hju hhhNhNubj)}(h **return**h]hreturn}(hj} hhhNhNubah}(h]h ]h"]h$]h&]uh1jhju ubh the number of bytes read}(hju hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKihjr ubah}(h]h ]h"]h$]h&]uh1j?hjV ubeh}(h]h ]h"]h$]h&]uh1jhjq hKjhjubj)}(h7``write_block`` Same as a series of write_byte() calls h](j$)}(h``write_block``h]j*)}(hj h]h write_block}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKlhj ubj@)}(hhh]h)}(h&Same as a series of write_byte() callsh]h&Same as a series of write_byte() calls}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKlhj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKlhjubj)}(hq``triplet`` Combines two reads and a smart write for ROM searches **return** bit0=Id bit1=comp_id bit2=dir_taken h](j$)}(h ``triplet``h]j*)}(hj h]htriplet}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKohj ubj@)}(hhh]h)}(hdCombines two reads and a smart write for ROM searches **return** bit0=Id bit1=comp_id bit2=dir_takenh](h6Combines two reads and a smart write for ROM searches }(hj hhhNhNubj)}(h **return**h]hreturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh$ bit0=Id bit1=comp_id bit2=dir_taken}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKnhj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKohjubj)}(h``reset_bus`` long write-0 with a read for the presence pulse detection **return** -1=Error, 0=Device present, 1=No device present h](j$)}(h ``reset_bus``h]j*)}(hj- h]h reset_bus}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj+ ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKrhj' ubj@)}(hhh]h)}(htlong write-0 with a read for the presence pulse detection **return** -1=Error, 0=Device present, 1=No device presenth](h:long write-0 with a read for the presence pulse detection }(hjF hhhNhNubj)}(h **return**h]hreturn}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjF ubh0 -1=Error, 0=Device present, 1=No device present}(hjF hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKqhjC ubah}(h]h ]h"]h$]h&]uh1j?hj' ubeh}(h]h ]h"]h$]h&]uh1jhjB hKrhjubj)}(hj``set_pullup`` Put out a strong pull-up pulse of the specified duration. **return** -1=Error, 0=completed h](j$)}(h``set_pullup``h]j*)}(hjy h]h set_pullup}(hj{ hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjw ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKuhjs ubj@)}(hhh]h)}(hZPut out a strong pull-up pulse of the specified duration. **return** -1=Error, 0=completedh](h:Put out a strong pull-up pulse of the specified duration. }(hj hhhNhNubj)}(h **return**h]hreturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh -1=Error, 0=completed}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKthj ubah}(h]h ]h"]h$]h&]uh1j?hjs ubeh}(h]h ]h"]h$]h&]uh1jhj hKuhjubj)}(h``search`` Really nice hardware can handle the different types of ROM search w1_master* is passed to the slave found callback. u8 is search_type, W1_SEARCH or W1_ALARM_SEARCH h](j$)}(h ``search``h]j*)}(hj h]hsearch}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKyhj ubj@)}(hhh]h)}(hReally nice hardware can handle the different types of ROM search w1_master* is passed to the slave found callback. u8 is search_type, W1_SEARCH or W1_ALARM_SEARCHh]hReally nice hardware can handle the different types of ROM search w1_master* is passed to the slave found callback. u8 is search_type, W1_SEARCH or W1_ALARM_SEARCH}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKwhj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKyhjubj)}(h``dev_id`` Optional device id string, which w1 slaves could use for creating names, which then give a connection to the w1 masterh](j$)}(h ``dev_id``h]j*)}(hj h]hdev_id}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK{hj ubj@)}(hhh]h)}(hvOptional device id string, which w1 slaves could use for creating names, which then give a connection to the w1 masterh]hvOptional device id string, which w1 slaves could use for creating names, which then give a connection to the w1 master}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hK{hj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hK{hjubeh}(h]h ]h"]h$]h&]uh1jhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubh)}(h**Note**h]j)}(hjA h]hNote}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj? ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj hhubh)}(hread_bit and write_bit are very low level functions and should only be used with hardware that doesn't really support 1-wire operations, like a parallel/serial port. Either define read_bit and write_bit OR define, at minimum, touch_bit and reset_bus.h]hread_bit and write_bit are very low level functions and should only be used with hardware that doesn’t really support 1-wire operations, like a parallel/serial port. Either define read_bit and write_bit OR define, at minimum, touch_bit and reset_bus.}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhK}hj hhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_master_flags (C enum)c.w1_master_flagshNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(hw1_master_flagsh]jF)}(henum w1_master_flagsh](jL)}(henumh]henum}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj{ hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKubj^)}(h h]h }(hj hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj{ hhhj hKubjo)}(hw1_master_flagsh]ju)}(hjy h]hw1_master_flags}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj{ hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjw hhhj hKubah}(h]jr ah ](jjeh"]h$]h&]jj)jhuh1j?hj hKhjt hhubj)}(hhh]h)}(h!bitfields used in w1_master.flagsh]h!bitfields used in w1_master.flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhjt hhhj hKubeh}(h]h ](jenumeh"]h$]h&]jjjj jj jjjuh1j:hhhj hNhNubj)}(h**Constants** ``W1_ABORT_SEARCH`` abort searching early on shutdown ``W1_WARN_MAX_COUNT`` limit warning when the maximum count is reachedh](h)}(h **Constants**h]j)}(hj h]h Constants}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj)}(hhh](j)}(h6``W1_ABORT_SEARCH`` abort searching early on shutdown h](j$)}(h``W1_ABORT_SEARCH``h]j*)}(hj h]hW1_ABORT_SEARCH}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj@)}(hhh]h)}(h!abort searching early on shutdownh]h!abort searching early on shutdown}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubj)}(hE``W1_WARN_MAX_COUNT`` limit warning when the maximum count is reachedh](j$)}(h``W1_WARN_MAX_COUNT``h]j*)}(hj< h]hW1_WARN_MAX_COUNT}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj: ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj6 ubj@)}(hhh]h)}(h/limit warning when the maximum count is reachedh]h/limit warning when the maximum count is reached}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjR ubah}(h]h ]h"]h$]h&]uh1j?hj6 ubeh}(h]h ]h"]h$]h&]uh1jhjQ hKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_master (C struct) c.w1_masterhNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(h w1_masterh]jF)}(hstruct w1_masterh](jL)}(hjOh]hstruct}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKubj^)}(h h]h }(hj hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj hhhj hKubjo)}(h w1_masterh]ju)}(hj h]h w1_master}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj hhhj hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj hhhj hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j?hj hKhj hhubj)}(hhh]h)}(hone per bus masterh]hone per bus master}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1j:hhhj hNhNubj)}(hX**Definition**:: struct w1_master { struct list_head w1_master_entry; struct module *owner; unsigned char name[W1_MAXNAMELEN]; struct mutex list_mutex; struct list_head slist; struct list_head async_list; int max_slave_count, slave_count; unsigned long attempts; int slave_ttl; int initialized; u32 id; int search_count; u64 search_id; atomic_t refcnt; void *priv; int enable_pullup; int pullup_duration; long flags; struct task_struct *thread; struct mutex mutex; struct mutex bus_mutex; struct device_driver *driver; struct device dev; struct w1_bus_master *bus_master; u32 seq; }; **Members** ``w1_master_entry`` master linked list ``owner`` module owner ``name`` dynamically allocate bus name ``list_mutex`` protect slist and async_list ``slist`` linked list of slaves ``async_list`` linked list of netlink commands to execute ``max_slave_count`` maximum number of slaves to search for at a time ``slave_count`` current number of slaves known ``attempts`` number of searches ran ``slave_ttl`` number of searches before a slave is timed out ``initialized`` prevent init/removal race conditions ``id`` w1 bus number ``search_count`` number of automatic searches to run, -1 unlimited ``search_id`` allows continuing a search ``refcnt`` reference count ``priv`` private data storage ``enable_pullup`` allows a strong pullup ``pullup_duration`` time for the next strong pullup ``flags`` one of w1_master_flags ``thread`` thread for bus search and netlink commands ``mutex`` protect most of w1_master ``bus_mutex`` pretect concurrent bus access ``driver`` sysfs driver ``dev`` sysfs device ``bus_master`` io operations available ``seq`` sequence number used for netlink broadcastsh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj)}(hXstruct w1_master { struct list_head w1_master_entry; struct module *owner; unsigned char name[W1_MAXNAMELEN]; struct mutex list_mutex; struct list_head slist; struct list_head async_list; int max_slave_count, slave_count; unsigned long attempts; int slave_ttl; int initialized; u32 id; int search_count; u64 search_id; atomic_t refcnt; void *priv; int enable_pullup; int pullup_duration; long flags; struct task_struct *thread; struct mutex mutex; struct mutex bus_mutex; struct device_driver *driver; struct device dev; struct w1_bus_master *bus_master; u32 seq; };h]hXstruct w1_master { struct list_head w1_master_entry; struct module *owner; unsigned char name[W1_MAXNAMELEN]; struct mutex list_mutex; struct list_head slist; struct list_head async_list; int max_slave_count, slave_count; unsigned long attempts; int slave_ttl; int initialized; u32 id; int search_count; u64 search_id; atomic_t refcnt; void *priv; int enable_pullup; int pullup_duration; long flags; struct task_struct *thread; struct mutex mutex; struct mutex bus_mutex; struct device_driver *driver; struct device dev; struct w1_bus_master *bus_master; u32 seq; };}hj sbah}(h]h ]h"]h$]h&]jjuh1jhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubh)}(h **Members**h]j)}(hj& h]hMembers}(hj( hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj)}(hhh](j)}(h'``w1_master_entry`` master linked list h](j$)}(h``w1_master_entry``h]j*)}(hjE h]hw1_master_entry}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjC ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj? ubj@)}(hhh]h)}(hmaster linked listh]hmaster linked list}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZ hKhj[ ubah}(h]h ]h"]h$]h&]uh1j?hj? ubeh}(h]h ]h"]h$]h&]uh1jhjZ hKhj< ubj)}(h``owner`` module owner h](j$)}(h ``owner``h]j*)}(hj~ h]howner}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj| ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjx ubj@)}(hhh]h)}(h module ownerh]h module owner}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j?hjx ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj< ubj)}(h'``name`` dynamically allocate bus name h](j$)}(h``name``h]j*)}(hj h]hname}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj@)}(hhh]h)}(hdynamically allocate bus nameh]hdynamically allocate bus name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj< ubj)}(h,``list_mutex`` protect slist and async_list h](j$)}(h``list_mutex``h]j*)}(hj h]h list_mutex}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj ubj@)}(hhh]h)}(hprotect slist and async_listh]hprotect slist and async_list}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h ``slist`` linked list of slaves h](j$)}(h ``slist``h]j*)}(hj)h]hslist}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj'ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj#ubj@)}(hhh]h)}(hlinked list of slavesh]hlinked list of slaves}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1j?hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hKhj< ubj)}(h:``async_list`` linked list of netlink commands to execute h](j$)}(h``async_list``h]j*)}(hjbh]h async_list}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj`ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj\ubj@)}(hhh]h)}(h*linked list of netlink commands to executeh]h*linked list of netlink commands to execute}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhKhjxubah}(h]h ]h"]h$]h&]uh1j?hj\ubeh}(h]h ]h"]h$]h&]uh1jhjwhKhj< ubj)}(hE``max_slave_count`` maximum number of slaves to search for at a time h](j$)}(h``max_slave_count``h]j*)}(hjh]hmax_slave_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h0maximum number of slaves to search for at a timeh]h0maximum number of slaves to search for at a time}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h/``slave_count`` current number of slaves known h](j$)}(h``slave_count``h]j*)}(hjh]h slave_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hcurrent number of slaves knownh]hcurrent number of slaves known}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h$``attempts`` number of searches ran h](j$)}(h ``attempts``h]j*)}(hj h]hattempts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hnumber of searches ranh]hnumber of searches ran}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj#ubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj< ubj)}(h=``slave_ttl`` number of searches before a slave is timed out h](j$)}(h ``slave_ttl``h]j*)}(hjFh]h slave_ttl}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjDubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj@ubj@)}(hhh]h)}(h.number of searches before a slave is timed outh]h.number of searches before a slave is timed out}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKhj\ubah}(h]h ]h"]h$]h&]uh1j?hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhj< ubj)}(h5``initialized`` prevent init/removal race conditions h](j$)}(h``initialized``h]j*)}(hjh]h initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj}ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjyubj@)}(hhh]h)}(h$prevent init/removal race conditionsh]h$prevent init/removal race conditions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjyubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h``id`` w1 bus number h](j$)}(h``id``h]j*)}(hjh]hid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h w1 bus numberh]h w1 bus number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(hC``search_count`` number of automatic searches to run, -1 unlimited h](j$)}(h``search_count``h]j*)}(hjh]h search_count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h1number of automatic searches to run, -1 unlimitedh]h1number of automatic searches to run, -1 unlimited}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h)``search_id`` allows continuing a search h](j$)}(h ``search_id``h]j*)}(hj*h]h search_id}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj(ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj$ubj@)}(hhh]h)}(hallows continuing a searchh]hallows continuing a search}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1j?hj$ubeh}(h]h ]h"]h$]h&]uh1jhj?hKhj< ubj)}(h``refcnt`` reference count h](j$)}(h ``refcnt``h]j*)}(hjch]hrefcnt}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjaubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj]ubj@)}(hhh]h)}(hreference counth]hreference count}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhKhjyubah}(h]h ]h"]h$]h&]uh1j?hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKhj< ubj)}(h``priv`` private data storage h](j$)}(h``priv``h]j*)}(hjh]hpriv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hprivate data storageh]hprivate data storage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h)``enable_pullup`` allows a strong pullup h](j$)}(h``enable_pullup``h]j*)}(hjh]h enable_pullup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hallows a strong pulluph]hallows a strong pullup}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h4``pullup_duration`` time for the next strong pullup h](j$)}(h``pullup_duration``h]j*)}(hjh]hpullup_duration}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(htime for the next strong pulluph]htime for the next strong pullup}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhj< ubj)}(h!``flags`` one of w1_master_flags h](j$)}(h ``flags``h]j*)}(hjGh]hflags}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjEubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjAubj@)}(hhh]h)}(hone of w1_master_flagsh]hone of w1_master_flags}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j?hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhj< ubj)}(h6``thread`` thread for bus search and netlink commands h](j$)}(h ``thread``h]j*)}(hjh]hthread}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj~ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjzubj@)}(hhh]h)}(h*thread for bus search and netlink commandsh]h*thread for bus search and netlink commands}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h$``mutex`` protect most of w1_master h](j$)}(h ``mutex``h]j*)}(hjh]hmutex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hprotect most of w1_masterh]hprotect most of w1_master}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h,``bus_mutex`` pretect concurrent bus access h](j$)}(h ``bus_mutex``h]j*)}(hjh]h bus_mutex}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hpretect concurrent bus accessh]hpretect concurrent bus access}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h``driver`` sysfs driver h](j$)}(h ``driver``h]j*)}(hj+h]hdriver}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj)ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj%ubj@)}(hhh]h)}(h sysfs driverh]h sysfs driver}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hKhjAubah}(h]h ]h"]h$]h&]uh1j?hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hKhj< ubj)}(h``dev`` sysfs device h](j$)}(h``dev``h]j*)}(hjdh]hdev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjbubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhj^ubj@)}(hhh]h)}(h sysfs deviceh]h sysfs device}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhKhjzubah}(h]h ]h"]h$]h&]uh1j?hj^ubeh}(h]h ]h"]h$]h&]uh1jhjyhKhj< ubj)}(h'``bus_master`` io operations available h](j$)}(h``bus_master``h]j*)}(hjh]h bus_master}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(hio operations availableh]hio operations available}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubj)}(h3``seq`` sequence number used for netlink broadcastsh](j$)}(h``seq``h]j*)}(hjh]hseq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h+sequence number used for netlink broadcastsh]h+sequence number used for netlink broadcasts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj< ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_family_ops (C struct)c.w1_family_opshNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(h w1_family_opsh]jF)}(hstruct w1_family_opsh](jL)}(hjOh]hstruct}(hj0hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj,hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKubj^)}(h h]h }(hj>hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj,hhhj=hKubjo)}(h w1_family_opsh]ju)}(hj*h]h w1_family_ops}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjLubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj,hhhj=hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj(hhhj=hKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1j?hj=hKhj%hhubj)}(hhh]h)}(hoperations for a family typeh]hoperations for a family type}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjohhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj=hKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j:hhhj hNhNubj)}(hX**Definition**:: struct w1_family_ops { int (*add_slave)(struct w1_slave *sl); void (*remove_slave)(struct w1_slave *sl); const struct attribute_group **groups; const struct hwmon_chip_info *chip_info; }; **Members** ``add_slave`` add_slave ``remove_slave`` remove_slave ``groups`` sysfs group ``chip_info`` pointer to struct hwmon_chip_infoh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj)}(hstruct w1_family_ops { int (*add_slave)(struct w1_slave *sl); void (*remove_slave)(struct w1_slave *sl); const struct attribute_group **groups; const struct hwmon_chip_info *chip_info; };h]hstruct w1_family_ops { int (*add_slave)(struct w1_slave *sl); void (*remove_slave)(struct w1_slave *sl); const struct attribute_group **groups; const struct hwmon_chip_info *chip_info; };}hjsbah}(h]h ]h"]h$]h&]jjuh1jhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhjubj)}(hhh](j)}(h``add_slave`` add_slave h](j$)}(h ``add_slave``h]j*)}(hjh]h add_slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h add_slaveh]h add_slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``remove_slave`` remove_slave h](j$)}(h``remove_slave``h]j*)}(hjh]h remove_slave}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h remove_slaveh]h remove_slave}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKhj.ubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubj)}(h``groups`` sysfs group h](j$)}(h ``groups``h]j*)}(hjQh]hgroups}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjOubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjKubj@)}(hhh]h)}(h sysfs grouph]h sysfs group}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfhKhjgubah}(h]h ]h"]h$]h&]uh1j?hjKubeh}(h]h ]h"]h$]h&]uh1jhjfhKhjubj)}(h/``chip_info`` pointer to struct hwmon_chip_infoh](j$)}(h ``chip_info``h]j*)}(hjh]h chip_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubj@)}(hhh]h)}(h!pointer to struct hwmon_chip_infoh]h!pointer to struct hwmon_chip_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhKhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_family (C struct) c.w1_familyhNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(h w1_familyh]jF)}(hstruct w1_familyh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjhhhjhMubjo)}(h w1_familyh]ju)}(hjh]h w1_family}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hjhMhjhhubj)}(hhh]h)}(h#reference counted family structure.h]h#reference counted family structure.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhj#hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jstructeh"]h$]h&]jjjj>jj>jjjuh1j:hhhj hNhNubj)}(hX**Definition**:: struct w1_family { struct list_head family_entry; u8 fid; const struct w1_family_ops *fops; const struct of_device_id *of_match_table; atomic_t refcnt; }; **Members** ``family_entry`` family linked list ``fid`` 8 bit family identifier ``fops`` operations for this family ``of_match_table`` open firmware match table ``refcnt`` reference counterh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubh:}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hjBubj)}(hstruct w1_family { struct list_head family_entry; u8 fid; const struct w1_family_ops *fops; const struct of_device_id *of_match_table; atomic_t refcnt; };h]hstruct w1_family { struct list_head family_entry; u8 fid; const struct w1_family_ops *fops; const struct of_device_id *of_match_table; atomic_t refcnt; };}hjcsbah}(h]h ]h"]h$]h&]jjuh1jhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hjBubh)}(h **Members**h]j)}(hjth]hMembers}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhjBubj)}(hhh](j)}(h$``family_entry`` family linked list h](j$)}(h``family_entry``h]j*)}(hjh]h family_entry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhjubj@)}(hhh]h)}(hfamily linked listh]hfamily linked list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h ``fid`` 8 bit family identifier h](j$)}(h``fid``h]j*)}(hjh]hfid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hjubj@)}(hhh]h)}(h8 bit family identifierh]h8 bit family identifier}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h$``fops`` operations for this family h](j$)}(h``fops``h]j*)}(hjh]hfops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hjubj@)}(hhh]h)}(hoperations for this familyh]hoperations for this family}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubj)}(h-``of_match_table`` open firmware match table h](j$)}(h``of_match_table``h]j*)}(hj>h]hof_match_table}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj<ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hj8ubj@)}(hhh]h)}(hopen firmware match tableh]hopen firmware match table}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM hjTubah}(h]h ]h"]h$]h&]uh1j?hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM hjubj)}(h``refcnt`` reference counterh](j$)}(h ``refcnt``h]j*)}(hjwh]hrefcnt}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjuubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hjqubj@)}(hhh]h)}(hreference counterh]hreference counter}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hjubah}(h]h ]h"]h$]h&]uh1j?hjqubeh}(h]h ]h"]h$]h&]uh1jhjhM hjubeh}(h]h ]h"]h$]h&]uh1jhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6module_w1_family (C macro)c.module_w1_familyhNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(hmodule_w1_familyh]jF)}(hmodule_w1_familyh]jo)}(hmodule_w1_familyh]ju)}(hjh]hmodule_w1_family}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM#ubah}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhjhM#ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hjhM#hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j:hhhj hNhNubh)}(h"``module_w1_family (__w1_family)``h]j*)}(hjh]hmodule_w1_family (__w1_family)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM%hj hhubh block_quote)}(h/Helper macro for registering a 1-Wire families h]h)}(h.Helper macro for registering a 1-Wire familiesh]h.Helper macro for registering a 1-Wire families}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhjubah}(h]h ]h"]h$]h&]uh1jhj1hMhj hhubj)}(hX#**Parameters** ``__w1_family`` w1_family struct **Description** Helper macro for 1-Wire families which do not 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](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhM hj8ubj)}(hhh]j)}(h!``__w1_family`` w1_family struct h](j$)}(h``__w1_family``h]j*)}(hj]h]h __w1_family}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj[ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhjWubj@)}(hhh]h)}(hw1_family structh]hw1_family struct}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1j?hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMhjTubah}(h]h ]h"]h$]h&]uh1jhj8ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhj8ubh)}(hHelper macro for 1-Wire families which do not 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 1-Wire families which do not 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()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:15: ./include/linux/w1.hhMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]include-linux-w1-hah ]h"]include/linux/w1.hah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hdrivers/w1/w1.ch]hdrivers/w1/w1.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hW1 core functions.h]hW1 core functions.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_search (C function) c.w1_searchhNtauh1j)hjhhhNhNubj;)}(hhh](j@)}(hRvoid w1_search (struct w1_master *dev, u8 search_type, w1_slave_found_callback cb)h]jF)}(hQvoid w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjhhhjhMubjo)}(h w1_searchh]ju)}(h w1_searchh]h w1_search}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhjhMubhdesc_parameterlist)}(hC(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb)h](hdesc_parameter)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hjHhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjDubj^)}(h h]h }(hjUhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjDubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjcubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjhmodnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)}j|j*sb c.w1_searchasbuh1hhjDubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjDubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjDubju)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj>ubjC)}(hu8 search_typeh](h)}(hhh]ju)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjmodnameN classnameNjj)}j]j c.w1_searchasbuh1hhjubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjubju)}(h search_typeh]h search_type}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj>ubjC)}(hw1_slave_found_callback cbh](h)}(hhh]ju)}(hw1_slave_found_callbackh]hw1_slave_found_callback}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjmodnameN classnameNjj)}j]j c.w1_searchasbuh1hhj ubj^)}(h h]h }(hj/hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj ubju)}(hcbh]hcb}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj>ubeh}(h]h ]h"]h$]h&]jjuh1j<hjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hjhMhjhhubj)}(hhh]h)}(h4Performs a ROM Search & registers any devices found.h]h4Performs a ROM Search & registers any devices found.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j:hhhjhNhNubj)}(hX**Parameters** ``struct w1_master *dev`` The master device to search ``u8 search_type`` W1_SEARCH to search all devices, or W1_ALARM_SEARCH to return only devices in the alarmed state ``w1_slave_found_callback cb`` Function to call when a device is found **Description** The 1-wire search is a simple binary tree search. For each bit of the address, we read two bits and write one bit. The bit written will put to sleep all devies that don't match that bit. When the two reads differ, the direction choice is obvious. When both bits are 0, we must choose a path to take. When we can scan all 64 bits without having to choose a path, we are done. See "Application note 187 1-wire search algorithm" at www.maxim-ic.comh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubj)}(hhh](j)}(h6``struct w1_master *dev`` The master device to search h](j$)}(h``struct w1_master *dev``h]j*)}(hjh]hstruct w1_master *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubj@)}(hhh]h)}(hThe master device to searchh]hThe master device to search}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hs``u8 search_type`` W1_SEARCH to search all devices, or W1_ALARM_SEARCH to return only devices in the alarmed state h](j$)}(h``u8 search_type``h]j*)}(hjh]hu8 search_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubj@)}(hhh]h)}(h_W1_SEARCH to search all devices, or W1_ALARM_SEARCH to return only devices in the alarmed stateh]h_W1_SEARCH to search all devices, or W1_ALARM_SEARCH to return only devices in the alarmed state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``w1_slave_found_callback cb`` Function to call when a device is found h](j$)}(h``w1_slave_found_callback cb``h]j*)}(hjh]hw1_slave_found_callback cb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubj@)}(hhh]h)}(h'Function to call when a device is foundh]h'Function to call when a device is found}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhj0hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubh)}(hXvThe 1-wire search is a simple binary tree search. For each bit of the address, we read two bits and write one bit. The bit written will put to sleep all devies that don't match that bit. When the two reads differ, the direction choice is obvious. When both bits are 0, we must choose a path to take. When we can scan all 64 bits without having to choose a path, we are done.h]hXxThe 1-wire search is a simple binary tree search. For each bit of the address, we read two bits and write one bit. The bit written will put to sleep all devies that don’t match that bit. When the two reads differ, the direction choice is obvious. When both bits are 0, we must choose a path to take. When we can scan all 64 bits without having to choose a path, we are done.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubh)}(hFSee "Application note 187 1-wire search algorithm" at www.maxim-ic.comh]hJSee “Application note 187 1-wire search algorithm” at www.maxim-ic.com}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6!w1_process_callbacks (C function)c.w1_process_callbackshNtauh1j)hjhhhNhNubj;)}(hhh](j@)}(h0int w1_process_callbacks (struct w1_master *dev)h]jF)}(h/int w1_process_callbacks(struct w1_master *dev)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMgubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjhhhjhMgubjo)}(hw1_process_callbacksh]ju)}(hw1_process_callbacksh]hw1_process_callbacks}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhjhMgubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjmodnameN classnameNjj)}j]j)}j|jsbc.w1_process_callbacksasbuh1hhjubj^)}(h h]h }(hj%hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubju)}(hdevh]hdev}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjubah}(h]h ]h"]h$]h&]jjuh1j<hjhhhjhMgubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhjhMgubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hjhMghjhhubj)}(hhh]h)}(h+execute each dev->async_list callback entryh]h+execute each dev->async_list callback entry}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chM`hjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j:hhhjhNhNubj)}(h**Parameters** ``struct w1_master *dev`` w1_master device **Description** The w1 master list_mutex must be held. **Return** 1 if there were commands to executed 0 otherwiseh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMdhjubj)}(hhh]j)}(h+``struct w1_master *dev`` w1_master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjh]hstruct w1_master *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMahjubj@)}(hhh]h)}(hw1_master deviceh]hw1_master device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhMahjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMchjubh)}(h&The w1 master list_mutex must be held.h]h&The w1 master list_mutex must be held.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMchjubh)}(h **Return**h]j)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMehjubh)}(h01 if there were commands to executed 0 otherwiseh]h01 if there were commands to executed 0 otherwise}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhM/var/lib/git/docbuild/linux/Documentation/driver-api/w1:23: ./drivers/w1/w1.chMehjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]drivers-w1-w1-cah ]h"]drivers/w1/w1.cah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hdrivers/w1/w1_family.ch]hdrivers/w1/w1_family.c}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhhhhhKubh)}(h,Allows registering device family operations.h]h,Allows registering device family operations.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjAhhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_register_family (C function)c.w1_register_familyhNtauh1j)hjAhhhNhNubj;)}(hhh](j@)}(h/int w1_register_family (struct w1_family *newf)h]jF)}(h.int w1_register_family(struct w1_family *newf)h](j)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chKubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjuhhhjhKubjo)}(hw1_register_familyh]ju)}(hw1_register_familyh]hw1_register_family}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjuhhhjhKubj=)}(h(struct w1_family *newf)h]jC)}(hstruct w1_family *newfh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjubh)}(hhh]ju)}(h w1_familyh]h w1_family}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjmodnameN classnameNjj)}j]j)}j|jsbc.w1_register_familyasbuh1hhjubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubju)}(hnewfh]hnewf}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjubah}(h]h ]h"]h$]h&]jjuh1j<hjuhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1j?hjhKhjnhhubj)}(hhh]h)}(hregister a device family driverh]hregister a device family driver}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1j:hhhjAhNhNubj)}(h?**Parameters** ``struct w1_family *newf`` family to registerh](h)}(h**Parameters**h]j)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chKhjUubj)}(hhh]j)}(h-``struct w1_family *newf`` family to registerh](j$)}(h``struct w1_family *newf``h]j*)}(hjzh]hstruct w1_family *newf}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjxubah}(h]h ]h"]h$]h&]uh1j#hT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chKhjtubj@)}(hhh]h)}(hfamily to registerh]hfamily to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chKhjubah}(h]h ]h"]h$]h&]uh1j?hjtubeh}(h]h ]h"]h$]h&]uh1jhjhKhjqubah}(h]h ]h"]h$]h&]uh1jhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjAhhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6!w1_unregister_family (C function)c.w1_unregister_familyhNtauh1j)hjAhhhNhNubj;)}(hhh](j@)}(h2void w1_unregister_family (struct w1_family *fent)h]jF)}(h1void w1_unregister_family(struct w1_family *fent)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chK6ubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjhhhjhK6ubjo)}(hw1_unregister_familyh]ju)}(hw1_unregister_familyh]hw1_unregister_family}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjhhhjhK6ubj=)}(h(struct w1_family *fent)h]jC)}(hstruct w1_family *fenth](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubj^)}(h h]h }(hjhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj ubh)}(hhh]ju)}(h w1_familyh]h w1_family}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj1modnameN classnameNjj)}j]j)}j|jsbc.w1_unregister_familyasbuh1hhj ubj^)}(h h]h }(hjOhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubju)}(hfenth]hfent}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj ubah}(h]h ]h"]h$]h&]jjuh1j<hjhhhjhK6ubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjhhhjhK6ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j?hjhK6hjhhubj)}(hhh]h)}(h!unregister a device family driverh]h!unregister a device family driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chK3hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK6ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j:hhhjAhNhNubj)}(hA**Parameters** ``struct w1_family *fent`` family to unregisterh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chK7hjubj)}(hhh]j)}(h/``struct w1_family *fent`` family to unregisterh](j$)}(h``struct w1_family *fent``h]j*)}(hjh]hstruct w1_family *fent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubah}(h]h ]h"]h$]h&]uh1j#hT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chK9hjubj@)}(hhh]h)}(hfamily to unregisterh]hfamily to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhT/var/lib/git/docbuild/linux/Documentation/driver-api/w1:31: ./drivers/w1/w1_family.chK4hjubah}(h]h ]h"]h$]h&]uh1j?hjubeh}(h]h ]h"]h$]h&]uh1jhjhK9hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjAhhhNhNubeh}(h]drivers-w1-w1-family-cah ]h"]drivers/w1/w1_family.cah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hdrivers/w1/w1_internal.hh]hdrivers/w1/w1_internal.h}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK#ubh)}(h.W1 internal initialization for master devices.h]h.W1 internal initialization for master devices.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK%hjhhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_async_cmd (C struct)c.w1_async_cmdhNtauh1j)hjhhhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhNubj;)}(hhh](j@)}(h w1_async_cmdh]jF)}(hstruct w1_async_cmdh](jL)}(hjOh]hstruct}(hjWhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjShhhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKubj^)}(h h]h }(hjehhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjShhhjdhKubjo)}(h w1_async_cmdh]ju)}(hjQh]h w1_async_cmd}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjsubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjShhhjdhKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjOhhhjdhKubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1j?hjdhKhjLhhubj)}(hhh]h)}(h,execute callback from the w1_process kthreadh]h,execute callback from the w1_process kthread}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhjhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjdhKubeh}(h]h ](jstructeh"]h$]h&]jjjjjjjjjuh1j:hhhjhjKhNubj)}(hX!**Definition**:: struct w1_async_cmd { struct list_head async_entry; void (*cb)(struct w1_master *dev, struct w1_async_cmd *async_cmd); }; **Members** ``async_entry`` link entry ``cb`` callback function, must list_del and destroy this list before returningh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhjubj)}(hstruct w1_async_cmd { struct list_head async_entry; void (*cb)(struct w1_master *dev, struct w1_async_cmd *async_cmd); };h]hstruct w1_async_cmd { struct list_head async_entry; void (*cb)(struct w1_master *dev, struct w1_async_cmd *async_cmd); };}hjsbah}(h]h ]h"]h$]h&]jjuh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhjubj)}(hhh](j)}(h``async_entry`` link entry h](j$)}(h``async_entry``h]j*)}(hj h]h async_entry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj ubah}(h]h ]h"]h$]h&]uh1j#hV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhj ubj@)}(hhh]h)}(h link entryh]h link entry}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j?hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhjubj)}(hN``cb`` callback function, must list_del and destroy this list before returningh](j$)}(h``cb``h]j*)}(hj? h]hcb}(hjA hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj= ubah}(h]h ]h"]h$]h&]uh1j#hV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhj9 ubj@)}(hhh]h)}(hGcallback function, must list_del and destroy this list before returningh]hGcallback function, must list_del and destroy this list before returning}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT hKhjU ubah}(h]h ]h"]h$]h&]uh1j?hj9 ubeh}(h]h ]h"]h$]h&]uh1jhjT hKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhjKhNubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhjhhubh)}(hWhen inserted into the w1_master async_list, w1_process will execute the callback. Embed this into the structure with the command details.h]hWhen inserted into the w1_master async_list, w1_process will execute the callback. Embed this into the structure with the command details.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhV/var/lib/git/docbuild/linux/Documentation/driver-api/w1:39: ./drivers/w1/w1_internal.hhKhjhhubeh}(h]drivers-w1-w1-internal-hah ]h"]drivers/w1/w1_internal.hah$]h&]uh1hhhhhhhhK#ubh)}(hhh](h)}(hdrivers/w1/w1_int.ch]hdrivers/w1/w1_int.c}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hhhhhK+ubh)}(h.W1 internal initialization for master devices.h]h.W1 internal initialization for master devices.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hj hhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6!w1_add_master_device (C function)c.w1_add_master_devicehNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(h7int w1_add_master_device (struct w1_bus_master *master)h]jF)}(h6int w1_add_master_device(struct w1_bus_master *master)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKXubj^)}(h h]h }(hj hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj hhhj hKXubjo)}(hw1_add_master_deviceh]ju)}(hw1_add_master_deviceh]hw1_add_master_device}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj hhhj hKXubj=)}(h(struct w1_bus_master *master)h]jC)}(hstruct w1_bus_master *masterh](jL)}(hjOh]hstruct}(hj#!hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj!ubj^)}(h h]h }(hj0!hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj!ubh)}(hhh]ju)}(h w1_bus_masterh]h w1_bus_master}(hjA!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj>!ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjC!modnameN classnameNjj)}j]j)}j|j !sbc.w1_add_master_deviceasbuh1hhj!ubj^)}(h h]h }(hja!hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj!ubj)}(hjh]h*}(hjo!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubju)}(hmasterh]hmaster}(hj|!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj!ubah}(h]h ]h"]h$]h&]jjuh1j<hj hhhj hKXubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj hhhj hKXubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j?hj hKXhj hhubj)}(hhh]h)}(hregisters a new master deviceh]hregisters a new master device}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKUhj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hKXubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1j:hhhj hNhNubj)}(hP**Parameters** ``struct w1_bus_master *master`` master bus device to registerh](h)}(h**Parameters**h]j)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKYhj!ubj)}(hhh]j)}(h>``struct w1_bus_master *master`` master bus device to registerh](j$)}(h ``struct w1_bus_master *master``h]j*)}(hj!h]hstruct w1_bus_master *master}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj!ubah}(h]h ]h"]h$]h&]uh1j#hQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chK[hj!ubj@)}(hhh]h)}(hmaster bus device to registerh]hmaster bus device to register}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKVhj!ubah}(h]h ]h"]h$]h&]uh1j?hj!ubeh}(h]h ]h"]h$]h&]uh1jhj!hK[hj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6$w1_remove_master_device (C function)c.w1_remove_master_devicehNtauh1j)hj hhhNhNubj;)}(hhh](j@)}(h7void w1_remove_master_device (struct w1_bus_master *bm)h]jF)}(h6void w1_remove_master_device(struct w1_bus_master *bm)h](j)}(hvoidh]hvoid}(hjA"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj="hhhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKubj^)}(h h]h }(hjP"hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj="hhhjO"hKubjo)}(hw1_remove_master_deviceh]ju)}(hw1_remove_master_deviceh]hw1_remove_master_device}(hjb"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj^"ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj="hhhjO"hKubj=)}(h(struct w1_bus_master *bm)h]jC)}(hstruct w1_bus_master *bmh](jL)}(hjOh]hstruct}(hj~"hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjz"ubj^)}(h h]h }(hj"hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjz"ubh)}(hhh]ju)}(h w1_bus_masterh]h w1_bus_master}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj"modnameN classnameNjj)}j]j)}j|jd"sbc.w1_remove_master_deviceasbuh1hhjz"ubj^)}(h h]h }(hj"hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjz"ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz"ubju)}(hbmh]hbm}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjz"ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjv"ubah}(h]h ]h"]h$]h&]jjuh1j<hj="hhhjO"hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj9"hhhjO"hKubah}(h]j4"ah ](jjeh"]h$]h&]jj)jhuh1j?hjO"hKhj6"hhubj)}(hhh]h)}(hunregister a master deviceh]hunregister a master device}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKhj"hhubah}(h]h ]h"]h$]h&]uh1jhj6"hhhjO"hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1j:hhhj hNhNubj)}(hJ**Parameters** ``struct w1_bus_master *bm`` master bus device to removeh](h)}(h**Parameters**h]j)}(hj##h]h Parameters}(hj%#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!#ubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKhj#ubj)}(hhh]j)}(h8``struct w1_bus_master *bm`` master bus device to removeh](j$)}(h``struct w1_bus_master *bm``h]j*)}(hjB#h]hstruct w1_bus_master *bm}(hjD#hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj@#ubah}(h]h ]h"]h$]h&]uh1j#hQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKhj<#ubj@)}(hhh]h)}(hmaster bus device to removeh]hmaster bus device to remove}(hj[#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhQ/var/lib/git/docbuild/linux/Documentation/driver-api/w1:47: ./drivers/w1/w1_int.chKhjX#ubah}(h]h ]h"]h$]h&]uh1j?hj<#ubeh}(h]h ]h"]h$]h&]uh1jhjW#hKhj9#ubah}(h]h ]h"]h$]h&]uh1jhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj hhhNhNubeh}(h]drivers-w1-w1-int-cah ]h"]drivers/w1/w1_int.cah$]h&]uh1hhhhhhhhK+ubh)}(hhh](h)}(hdrivers/w1/w1_netlink.hh]hdrivers/w1/w1_netlink.h}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hhhhhK3ubh)}(h0W1 external netlink API structures and commands.h]h0W1 external netlink API structures and commands.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hj#hhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_cn_msg_flags (C enum)c.w1_cn_msg_flagshNtauh1j)hj#hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhNubj;)}(hhh](j@)}(hw1_cn_msg_flagsh]jF)}(henum w1_cn_msg_flagsh](jL)}(hj h]henum}(hj#hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj#hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKubj^)}(h h]h }(hj#hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj#hhhj#hKubjo)}(hw1_cn_msg_flagsh]ju)}(hj#h]hw1_cn_msg_flags}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj#hhhj#hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj#hhhj#hKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1j?hj#hKhj#hhubj)}(hhh]h)}(h&bitfield flags for struct cn_msg.flagsh]h&bitfield flags for struct cn_msg.flags}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKhj$hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj#hKubeh}(h]h ](jenumeh"]h$]h&]jjjj$jj$jjjuh1j:hhhj#hj#hNubj)}(h**Constants** ``W1_CN_BUNDLE`` Request bundling replies into fewer messagse. Be prepared to handle multiple struct cn_msg, struct w1_netlink_msg, and struct w1_netlink_cmd in one packet.h](h)}(h **Constants**h]j)}(hj($h]h Constants}(hj*$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&$ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKhj"$ubj)}(hhh]j)}(h``W1_CN_BUNDLE`` Request bundling replies into fewer messagse. Be prepared to handle multiple struct cn_msg, struct w1_netlink_msg, and struct w1_netlink_cmd in one packet.h](j$)}(h``W1_CN_BUNDLE``h]j*)}(hjG$h]h W1_CN_BUNDLE}(hjI$hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjE$ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKhjA$ubj@)}(hhh]h)}(hRequest bundling replies into fewer messagse. Be prepared to handle multiple struct cn_msg, struct w1_netlink_msg, and struct w1_netlink_cmd in one packet.h]hRequest bundling replies into fewer messagse. Be prepared to handle multiple struct cn_msg, struct w1_netlink_msg, and struct w1_netlink_cmd in one packet.}(hj`$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKhj]$ubah}(h]h ]h"]h$]h&]uh1j?hjA$ubeh}(h]h ]h"]h$]h&]uh1jhj\$hKhj>$ubah}(h]h ]h"]h$]h&]uh1jhj"$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhj#hNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6!w1_netlink_message_types (C enum)c.w1_netlink_message_typeshNtauh1j)hj#hhhj#hNubj;)}(hhh](j@)}(hw1_netlink_message_typesh]jF)}(henum w1_netlink_message_typesh](jL)}(hj h]henum}(hj$hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj$hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKubj^)}(h h]h }(hj$hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj$hhhj$hKubjo)}(hw1_netlink_message_typesh]ju)}(hj$h]hw1_netlink_message_types}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj$ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj$hhhj$hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj$hhhj$hKubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1j?hj$hKhj$hhubj)}(hhh]h)}(h message typeh]h message type}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKhj$hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hKubeh}(h]h ](jenumeh"]h$]h&]jjjj$jj$jjjuh1j:hhhj#hj#hNubj)}(hX**Constants** ``W1_SLAVE_ADD`` notification that a slave device was added ``W1_SLAVE_REMOVE`` notification that a slave device was removed ``W1_MASTER_ADD`` notification that a new bus master was added ``W1_MASTER_REMOVE`` notification that a bus masterwas removed ``W1_MASTER_CMD`` initiate operations on a specific master ``W1_SLAVE_CMD`` sends reset, selects the slave, then does a read/write/touch operation ``W1_LIST_MASTERS`` used to determine the bus master identifiersh](h)}(h **Constants**h]j)}(hj%h]h Constants}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKhj$ubj)}(hhh](j)}(h<``W1_SLAVE_ADD`` notification that a slave device was added h](j$)}(h``W1_SLAVE_ADD``h]j*)}(hj$%h]h W1_SLAVE_ADD}(hj&%hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj"%ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK!hj%ubj@)}(hhh]h)}(h*notification that a slave device was addedh]h*notification that a slave device was added}(hj=%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9%hK!hj:%ubah}(h]h ]h"]h$]h&]uh1j?hj%ubeh}(h]h ]h"]h$]h&]uh1jhj9%hK!hj%ubj)}(hA``W1_SLAVE_REMOVE`` notification that a slave device was removed h](j$)}(h``W1_SLAVE_REMOVE``h]j*)}(hj]%h]hW1_SLAVE_REMOVE}(hj_%hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj[%ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK$hjW%ubj@)}(hhh]h)}(h,notification that a slave device was removedh]h,notification that a slave device was removed}(hjv%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr%hK$hjs%ubah}(h]h ]h"]h$]h&]uh1j?hjW%ubeh}(h]h ]h"]h$]h&]uh1jhjr%hK$hj%ubj)}(h?``W1_MASTER_ADD`` notification that a new bus master was added h](j$)}(h``W1_MASTER_ADD``h]j*)}(hj%h]h W1_MASTER_ADD}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj%ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK'hj%ubj@)}(hhh]h)}(h,notification that a new bus master was addedh]h,notification that a new bus master was added}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hK'hj%ubah}(h]h ]h"]h$]h&]uh1j?hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hK'hj%ubj)}(h?``W1_MASTER_REMOVE`` notification that a bus masterwas removed h](j$)}(h``W1_MASTER_REMOVE``h]j*)}(hj%h]hW1_MASTER_REMOVE}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj%ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK*hj%ubj@)}(hhh]h)}(h)notification that a bus masterwas removedh]h)notification that a bus masterwas removed}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hK*hj%ubah}(h]h ]h"]h$]h&]uh1j?hj%ubeh}(h]h ]h"]h$]h&]uh1jhj%hK*hj%ubj)}(h;``W1_MASTER_CMD`` initiate operations on a specific master h](j$)}(h``W1_MASTER_CMD``h]j*)}(hj&h]h W1_MASTER_CMD}(hj &hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj&ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK-hj&ubj@)}(hhh]h)}(h(initiate operations on a specific masterh]h(initiate operations on a specific master}(hj!&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hK-hj&ubah}(h]h ]h"]h$]h&]uh1j?hj&ubeh}(h]h ]h"]h$]h&]uh1jhj&hK-hj%ubj)}(hX``W1_SLAVE_CMD`` sends reset, selects the slave, then does a read/write/touch operation h](j$)}(h``W1_SLAVE_CMD``h]j*)}(hjA&h]h W1_SLAVE_CMD}(hjC&hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj?&ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK1hj;&ubj@)}(hhh]h)}(hFsends reset, selects the slave, then does a read/write/touch operationh]hFsends reset, selects the slave, then does a read/write/touch operation}(hjZ&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK0hjW&ubah}(h]h ]h"]h$]h&]uh1j?hj;&ubeh}(h]h ]h"]h$]h&]uh1jhjV&hK1hj%ubj)}(h@``W1_LIST_MASTERS`` used to determine the bus master identifiersh](j$)}(h``W1_LIST_MASTERS``h]j*)}(hj{&h]hW1_LIST_MASTERS}(hj}&hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjy&ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK3hju&ubj@)}(hhh]h)}(h,used to determine the bus master identifiersh]h,used to determine the bus master identifiers}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK4hj&ubah}(h]h ]h"]h$]h&]uh1j?hju&ubeh}(h]h ]h"]h$]h&]uh1jhj&hK3hj%ubeh}(h]h ]h"]h$]h&]uh1jhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhj#hNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_netlink_msg (C struct)c.w1_netlink_msghNtauh1j)hj#hhhj#hNubj;)}(hhh](j@)}(hw1_netlink_msgh]jF)}(hstruct w1_netlink_msgh](jL)}(hjOh]hstruct}(hj&hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj&hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK:ubj^)}(h h]h }(hj&hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj&hhhj&hK:ubjo)}(hw1_netlink_msgh]ju)}(hj&h]hw1_netlink_msg}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj&hhhj&hK:ubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj&hhhj&hK:ubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1j?hj&hK:hj&hhubj)}(hhh]h)}(h%holds w1 message type, id, and resulth]h%holds w1 message type, id, and result}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK0hj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hK:ubeh}(h]h ](jstructeh"]h$]h&]jjjj/'jj/'jjjuh1j:hhhj#hj#hNubj)}(hX**Definition**:: struct w1_netlink_msg { __u8 type; __u8 status; __u16 len; union { __u8 id[8]; struct w1_mst { __u32 id; __u32 res; } mst; } id; __u8 data[]; }; **Members** ``type`` one of enum w1_netlink_message_types ``status`` kernel feedback for success 0 or errno failure value ``len`` length of data following w1_netlink_msg ``id`` union holding bus master id (msg.id) and slave device id (id[8]). ``id.id`` Slave ID (8 bytes) ``id.mst`` bus master identification ``id.mst.id`` bus master ID ``id.mst.res`` bus master reserved ``data`` start address of any following datah](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj;'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7'ubh:}(hj7'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK4hj3'ubj)}(hstruct w1_netlink_msg { __u8 type; __u8 status; __u16 len; union { __u8 id[8]; struct w1_mst { __u32 id; __u32 res; } mst; } id; __u8 data[]; };h]hstruct w1_netlink_msg { __u8 type; __u8 status; __u16 len; union { __u8 id[8]; struct w1_mst { __u32 id; __u32 res; } mst; } id; __u8 data[]; };}hjT'sbah}(h]h ]h"]h$]h&]jjuh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK6hj3'ubh)}(h **Members**h]j)}(hje'h]hMembers}(hjg'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc'ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKDhj3'ubj)}(hhh](j)}(h.``type`` one of enum w1_netlink_message_types h](j$)}(h``type``h]j*)}(hj'h]htype}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj'ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK3hj~'ubj@)}(hhh]h)}(h$one of enum w1_netlink_message_typesh]h$one of enum w1_netlink_message_types}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hK3hj'ubah}(h]h ]h"]h$]h&]uh1j?hj~'ubeh}(h]h ]h"]h$]h&]uh1jhj'hK3hj{'ubj)}(h@``status`` kernel feedback for success 0 or errno failure value h](j$)}(h ``status``h]j*)}(hj'h]hstatus}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj'ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK4hj'ubj@)}(hhh]h)}(h4kernel feedback for success 0 or errno failure valueh]h4kernel feedback for success 0 or errno failure value}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hK4hj'ubah}(h]h ]h"]h$]h&]uh1j?hj'ubeh}(h]h ]h"]h$]h&]uh1jhj'hK4hj{'ubj)}(h0``len`` length of data following w1_netlink_msg h](j$)}(h``len``h]j*)}(hj'h]hlen}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj'uba h}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK5hj'ubj@)}(hhh]h)}(h'length of data following w1_netlink_msgh]h'length of data following w1_netlink_msg}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj (hK5hj (ubah}(h]h ]h"]h$]h&]uh1j?hj'ubeh}(h]h ]h"]h$]h&]uh1jhj (hK5hj{'ubj)}(hI``id`` union holding bus master id (msg.id) and slave device id (id[8]). h](j$)}(h``id``h]j*)}(hj/(h]hid}(hj1(hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj-(ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK6hj)(ubj@)}(hhh]h)}(hAunion holding bus master id (msg.id) and slave device id (id[8]).h]hAunion holding bus master id (msg.id) and slave device id (id[8]).}(hjH(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD(hK6hjE(ubah}(h]h ]h"]h$]h&]uh1j?hj)(ubeh}(h]h ]h"]h$]h&]uh1jhjD(hK6hj{'ubj)}(h``id.id`` Slave ID (8 bytes) h](j$)}(h ``id.id``h]j*)}(hjh(h]hid.id}(hjj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjf(ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK7hjb(ubj@)}(hhh]h)}(hSlave ID (8 bytes)h]hSlave ID (8 bytes)}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}(hK7hj~(ubah}(h]h ]h"]h$]h&]uh1j?hjb(ubeh}(h]h ]h"]h$]h&]uh1jhj}(hK7hj{'ubj)}(h%``id.mst`` bus master identification h](j$)}(h ``id.mst``h]j*)}(hj(h]hid.mst}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj(ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK8hj(ubj@)}(hhh]h)}(hbus master identificationh]hbus master identification}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hK8hj(ubah}(h]h ]h"]h$]h&]uh1j?hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hK8hj{'ubj)}(h``id.mst.id`` bus master ID h](j$)}(h ``id.mst.id``h]j*)}(hj(h]h id.mst.id}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj(ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK9hj(ubj@)}(hhh]h)}(h bus master IDh]h bus master ID}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hK9hj(ubah}(h]h ]h"]h$]h&]uh1j?hj(ubeh}(h]h ]h"]h$]h&]uh1jhj(hK9hj{'ubj)}(h#``id.mst.res`` bus master reserved h](j$)}(h``id.mst.res``h]j*)}(hj)h]h id.mst.res}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj)ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK:hj )ubj@)}(hhh]h)}(hbus master reservedh]hbus master reserved}(hj,)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj()hK:hj))ubah}(h]h ]h"]h$]h&]uh1j?hj )ubeh}(h]h ]h"]h$]h&]uh1jhj()hK:hj{'ubj)}(h,``data`` start address of any following datah](j$)}(h``data``h]j*)}(hjL)h]hdata}(hjN)hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjJ)ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK:hjF)ubj@)}(hhh]h)}(h#start address of any following datah]h#start address of any following data}(hje)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK;hjb)ubah}(h]h ]h"]h$]h&]uh1j?hjF)ubeh}(h]h ]h"]h$]h&]uh1jhja)hK:hj{'ubeh}(h]h ]h"]h$]h&]uh1jhj3'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhj#hNubh)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK>hj#hhubh)}(hThe base message structure for w1 messages over netlink. The netlink connector data sequence is, struct nlmsghdr, struct cn_msg, then one or more struct w1_netlink_msg (each with optional data).h]hThe base message structure for w1 messages over netlink. The netlink connector data sequence is, struct nlmsghdr, struct cn_msg, then one or more struct w1_netlink_msg (each with optional data).}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK-h]hMembers}(hj@-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<-ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhK{hj -ubj)}(hhh](j)}(h ``cmd`` one of enum w1_commands h](j$)}(h``cmd``h]j*)}(hj]-h]hcmd}(hj_-hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj[-ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKqhjW-ubj@)}(hhh]h)}(hone of enum w1_commandsh]hone of enum w1_commands}(hjv-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr-hKqhjs-ubah}(h]h ]h"]h$]h&]uh1j?hjW-ubeh}(h]h ]h"]h$]h&]uh1jhjr-hKqhjT-ubj)}(h``res`` reserved h](j$)}(h``res``h]j*)}(hj-h]hres}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj-ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKrhj-ubj@)}(hhh]h)}(hreservedh]hreserved}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKrhj-ubah}(h]h ]h"]h$]h&]uh1j?hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hKrhjT-ubj)}(h0``len`` length of data following w1_netlink_cmd h](j$)}(h``len``h]j*)}(hj-h]hlen}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj-ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKshj-ubj@)}(hhh]h)}(h'length of data following w1_netlink_cmdh]h'length of data following w1_netlink_cmd}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hKshj-ubah}(h]h ]h"]h$]h&]uh1j?hj-ubeh}(h]h ]h"]h$]h&]uh1jhj-hKshjT-ubj)}(h,``data`` start address of any following datah](j$)}(h``data``h]j*)}(hj.h]hdata}(hj .hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj.ubah}(h]h ]h"]h$]h&]uh1j#hU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKshj.ubj@)}(hhh]h)}(h#start address of any following datah]h#start address of any following data}(hj!.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKthj.ubah}(h]h ]h"]h$]h&]uh1j?hj.ubeh}(h]h ]h"]h$]h&]uh1jhj.hKshjT-ubeh}(h]h ]h"]h$]h&]uh1jhj -ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj#hhhj#hNubh)}(h**Description**h]j)}(hjK.h]h Description}(hjM.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjI.ubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKwhj#hhubh)}(hdOne or more struct w1_netlink_cmd is placed starting at w1_netlink_msg.data each with optional data.h]hdOne or more struct w1_netlink_cmd is placed starting at w1_netlink_msg.data each with optional data.}(hja.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/w1:55: ./drivers/w1/w1_netlink.hhKuhj#hhubeh}(h]drivers-w1-w1-netlink-hah ]h"]drivers/w1/w1_netlink.hah$]h&]uh1hhhhhhhhK3ubh)}(hhh](h)}(hdrivers/w1/w1_io.ch]hdrivers/w1/w1_io.c}(hj{.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx.hhhhhK;ubh)}(hW1 input/output.h]hW1 input/output.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjx.hhubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_touch_bit (C function)c.w1_touch_bithNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h0u8 w1_touch_bit (struct w1_master *dev, int bit)h]jF)}(h/u8 w1_touch_bit(struct w1_master *dev, int bit)h](h)}(hhh]ju)}(hu8h]hu8}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj.modnameN classnameNjj)}j]j)}j| w1_touch_bitsbc.w1_touch_bitasbuh1hhj.hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chK4ubj^)}(h h]h }(hj.hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj.hhhj.hK4ubjo)}(h w1_touch_bith]ju)}(hj.h]h w1_touch_bit}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj.hhhj.hK4ubj=)}(h (struct w1_master *dev, int bit)h](jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj/hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj.ubj^)}(h h]h }(hj/hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj.ubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hj /hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj"/modnameN classnameNjj)}j]j.c.w1_touch_bitasbuh1hhj.ubj^)}(h h]h }(hj>/hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj.ubj)}(hjh]h*}(hjL/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubju)}(hdevh]hdev}(hjY/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj.ubjC)}(hint bith](j)}(hinth]hint}(hjr/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjn/ubj^)}(h h]h }(hj/hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjn/ubju)}(hbith]hbit}(hj/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjn/ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj.ubeh}(h]h ]h"]h$]h&]jjuh1j<hj.hhhj.hK4ubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj.hhhj.hK4ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1j?hj.hK4hj.hhubj)}(hhh]h)}(h;Generates a write-0 or write-1 cycle and samples the level.h]h;Generates a write-0 or write-1 cycle and samples the level.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chK0hj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hK4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1j:hhhjx.hNhNubj)}(hx**Parameters** ``struct w1_master *dev`` the master device ``int bit`` 0 - write a 0, 1 - write a 0 read the levelh](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chK4hj/ubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj/h]hstruct w1_master *dev}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj/ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chK1hj/ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hK1hj0ubah}(h]h ]h"]h$]h&]uh1j?hj/ubeh}(h]h ]h"]h$]h&]uh1jhj0hK1hj/ubj)}(h7``int bit`` 0 - write a 0, 1 - write a 0 read the levelh](j$)}(h ``int bit``h]j*)}(hj20h]hint bit}(hj40hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj00ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chK3hj,0ubj@)}(hhh]h)}(h+0 - write a 0, 1 - write a 0 read the levelh]h+0 - write a 0, 1 - write a 0 read the level}(hjK0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chK2hjH0ubah}(h]h ]h"]h$]h&]uh1j?hj,0ubeh}(h]h ]h"]h$]h&]uh1jhjG0hK3hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_write_8 (C function) c.w1_write_8hNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h0void w1_write_8 (struct w1_master *dev, u8 byte)h]jF)}(h/void w1_write_8(struct w1_master *dev, u8 byte)h](j)}(hvoidh]hvoid}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKubj^)}(h h]h }(hj0hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj0hhhj0hKubjo)}(h w1_write_8h]ju)}(h w1_write_8h]h w1_write_8}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj0hhhj0hKubj=)}(h (struct w1_master *dev, u8 byte)h](jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj0hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj0ubj^)}(h h]h }(hj0hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj0ubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj0modnameN classnameNjj)}j]j)}j|j0sb c.w1_write_8asbuh1hhj0ubj^)}(h h]h }(hj1hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubju)}(hdevh]hdev}(hj"1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj0ubjC)}(hu8 byteh](h)}(hhh]ju)}(hu8h]hu8}(hj>1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj;1ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj@1modnameN classnameNjj)}j]j1 c.w1_write_8asbuh1hhj71ubj^)}(h h]h }(hj\1hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj71ubju)}(hbyteh]hbyte}(hjj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj71ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj0ubeh}(h]h ]h"]h$]h&]jjuh1j<hj0hhhj0hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj0hhhj0hKubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1j?hj0hKhj0hhubj)}(hhh]h)}(hWrites 8 bits.h]hWrites 8 bits.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1j:hhhjx.hNhNubj)}(h^**Parameters** ``struct w1_master *dev`` the master device ``u8 byte`` the byte to writeh](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj1ubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj1h]hstruct w1_master *dev}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj1ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj1ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hKhj1ubah}(h]h ]h"]h$]h&]uh1j?hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hKhj1ubj)}(h``u8 byte`` the byte to writeh](j$)}(h ``u8 byte``h]j*)}(hj2h]hu8 byte}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj 2ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj2ubj@)}(hhh]h)}(hthe byte to writeh]hthe byte to write}(hj'2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj$2ubah}(h]h ]h"]h$]h&]uh1j?hj2ubeh}(h]h ]h"]h$]h&]uh1jhj#2hKhj1ubeh}(h]h ]h"]h$]h&]uh1jhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_triplet (C function) c.w1_triplethNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h/u8 w1_triplet (struct w1_master *dev, int bdir)h]jF)}(h.u8 w1_triplet(struct w1_master *dev, int bdir)h](h)}(hhh]ju)}(hu8h]hu8}(hjk2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjh2ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjm2modnameN classnameNjj)}j]j)}j| w1_tripletsb c.w1_tripletasbuh1hhjd2hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKubj^)}(h h]h }(hj2hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjd2hhhj2hKubjo)}(h w1_tripleth]ju)}(hj2h]h w1_triplet}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjd2hhhj2hKubj=)}(h!(struct w1_master *dev, int bdir)h](jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj2hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj2ubj^)}(h h]h }(hj2hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj2ubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj2modnameN classnameNjj)}j]j2 c.w1_tripletasbuh1hhj2ubj^)}(h h]h }(hj2hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj2ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubju)}(hdevh]hdev}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj2ubjC)}(hint bdirh](j)}(hinth]hint}(hj*3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&3ubj^)}(h h]h }(hj83hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj&3ubju)}(hbdirh]hbdir}(hjF3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj&3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj2ubeh}(h]h ]h"]h$]h&]jjuh1j<hjd2hhhj2hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj`2hhhj2hKubah}(h]j[2ah ](jjeh"]h$]h&]jj)jhuh1j?hj2hKhj]2hhubj)}(hhh]h bullet_list)}(hhh]h list_item)}(h2Does a triplet - used for searching ROM addresses.h]h)}(hjy3h]h2Does a triplet - used for searching ROM addresses.}(hj{3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhjw3ubah}(h]h ]h"]h$]h&]uh1ju3hjr3hhhj3hNubah}(h]h ]h"]h$]h&]bulletjuh1jp3hj3hKhjm3hhubah}(h]h ]h"]h$]h&]uh1jhj]2hhhj2hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1j:hhhjx.hNhNubj)}(hX5**Parameters** ``struct w1_master *dev`` the master device ``int bdir`` the bit to write if both id_bit and comp_bit are 0 **Description** Return bits: bit 0 = id_bit bit 1 = comp_bit bit 2 = dir_taken If both bits 0 & 1 are set, the search should be restarted. **Return** bit fields - see aboveh](h)}(h**Parameters**h]j)}(hj3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj3h]hstruct w1_master *dev}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj3ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1j?hj3ubeh}(h]h ]h"]h$]h&]uh1jhj3hKhj3ubj)}(h@``int bdir`` the bit to write if both id_bit and comp_bit are 0 h](j$)}(h ``int bdir``h]j*)}(hj4h]hint bdir}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj3ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubj@)}(hhh]h)}(h2the bit to write if both id_bit and comp_bit are 0h]h2the bit to write if both id_bit and comp_bit are 0}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj4ubah}(h]h ]h"]h$]h&]uh1j?hj3ubeh}(h]h ]h"]h$]h&]uh1jhj4hKhj3ubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hj<4h]h Description}(hj>4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:4ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubj)}(hhh]j)}(h?Return bits: bit 0 = id_bit bit 1 = comp_bit bit 2 = dir_taken h](j$)}(h Return bits:h]h Return bits:}(hjY4hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhjU4ubj@)}(hhh]h)}(h1bit 0 = id_bit bit 1 = comp_bit bit 2 = dir_takenh]h1bit 0 = id_bit bit 1 = comp_bit bit 2 = dir_taken}(hjk4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhjh4ubah}(h]h ]h"]h$]h&]uh1j?hjU4ubeh}(h]h ]h"]h$]h&]uh1jhjg4hKhjR4ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h;If both bits 0 & 1 are set, the search should be restarted.h]h;If both bits 0 & 1 are set, the search should be restarted.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubh)}(h **Return**h]j)}(hj4h]hReturn}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubh)}(hbit fields - see aboveh]hbit fields - see above}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_read_8 (C function) c.w1_read_8hNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h$u8 w1_read_8 (struct w1_master *dev)h]jF)}(h#u8 w1_read_8(struct w1_master *dev)h](h)}(hhh]ju)}(hu8h]hu8}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj4modnameN classnameNjj)}j]j)}j| w1_read_8sb c.w1_read_8asbuh1hhj4hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKubj^)}(h h]h }(hj5hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj4hhhj5hKubjo)}(h w1_read_8h]ju)}(hj5h]h w1_read_8}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj4hhhj5hKubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj45hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj05ubj^)}(h h]h }(hjA5hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj05ubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjR5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjO5ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjT5modnameN classnameNjj)}j]j5 c.w1_read_8asbuh1hhj05ubj^)}(h h]h }(hjp5hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj05ubj)}(hjh]h*}(hj~5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj05ubju)}(hdevh]hdev}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj05ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj,5ubah}(h]h ]h"]h$]h&]jjuh1j<hj4hhhj5hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj4hhhj5hKubah}(h]j4ah ](jjeh"]h$]h&]jj)jhuh1j?hj5hKhj4hhubj)}(hhh]h)}(h Reads 8 bits.h]h Reads 8 bits.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj5hhubah}(h]h ]h"]h$]h&]uh1jhj4hhhj5hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1j:hhhjx.hNhNubj)}(hX**Parameters** ``struct w1_master *dev`` the master device **Return** the byte readh](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj5ubj)}(hhh]j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj5h]hstruct w1_master *dev}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj5ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj5ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 6hKhj 6ubah}(h]h ]h"]h$]h&]uh1j?hj5ubeh}(h]h ]h"]h$]h&]uh1jhj 6hKhj5ubah}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h **Return**h]j)}(hj16h]hReturn}(hj36hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/6ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj5ubh)}(h the byte readh]h the byte read}(hjG6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_write_block (C function)c.w1_write_blockhNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(hCvoid w1_write_block (struct w1_master *dev, const u8 *buf, int len)h]jF)}(hBvoid w1_write_block(struct w1_master *dev, const u8 *buf, int len)h](j)}(hvoidh]hvoid}(hjv6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjr6hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKubj^)}(h h]h }(hj6hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjr6hhhj6hKubjo)}(hw1_write_blockh]ju)}(hw1_write_blockh]hw1_write_block}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj6ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjr6hhhj6hKubj=)}(h/(struct w1_master *dev, const u8 *buf, int len)h](jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj6hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj6ubj^)}(h h]h }(hj6hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj6ubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj6modnameN classnameNjj)}j]j)}j|j6sbc.w1_write_blockasbuh1hhj6ubj^)}(h h]h }(hj6hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubju)}(hdevh]hdev}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj6ubjC)}(h const u8 *bufh](jL)}(hconsth]hconst}(hj%7hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj!7ubj^)}(h h]h }(hj37hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj!7ubh)}(hhh]ju)}(hu8h]hu8}(hjD7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjA7ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjF7modnameN classnameNjj)}j]j6c.w1_write_blockasbuh1hhj!7ubj^)}(h h]h }(hjb7hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj!7ubj)}(hjh]h*}(hjp7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!7ubju)}(hbufh]hbuf}(hj}7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj!7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj6ubjC)}(hint lenh](j)}(hinth]hint}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj^)}(h h]h }(hj7hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj7ubju)}(hlenh]hlen}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj7ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj6ubeh}(h]h ]h"]h$]h&]jjuh1j<hjr6hhhj6hKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjn6hhhj6hKubah}(h]ji6ah ](jjeh"]h$]h&]jj)jhuh1j?hj6hKhjk6hhubj)}(hhh]h)}(hWrites a series of bytes.h]hWrites a series of bytes.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj7hhubah}(h]h ]h"]h$]h&]uh1jhjk6hhhj6hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1j:hhhjx.hNhNubj)}(h**Parameters** ``struct w1_master *dev`` the master device ``const u8 *buf`` pointer to the data to write ``int len`` the number of bytes to writeh](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj7ubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj8h]hstruct w1_master *dev}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj8ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj8ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj68hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj28hKhj38ubah}(h]h ]h"]h$]h&]uh1j?hj8ubeh}(h]h ]h"]h$]h&]uh1jhj28hKhj8ubj)}(h/``const u8 *buf`` pointer to the data to write h](j$)}(h``const u8 *buf``h]j*)}(hjV8h]h const u8 *buf}(hjX8hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjT8ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhjP8ubj@)}(hhh]h)}(hpointer to the data to writeh]hpointer to the data to write}(hjo8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk8hKhjl8ubah}(h]h ]h"]h$]h&]uh1j?hjP8ubeh}(h]h ]h"]h$]h&]uh1jhjk8hKhj8ubj)}(h(``int len`` the number of bytes to writeh](j$)}(h ``int len``h]j*)}(hj8h]hint len}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj8ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj8ubj@)}(hhh]h)}(hthe number of bytes to writeh]hthe number of bytes to write}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chKhj8ubah}(h]h ]h"]h$]h&]uh1j?hj8ubeh}(h]h ]h"]h$]h&]uh1jhj8hKhj8ubeh}(h]h ]h"]h$]h&]uh1jhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_touch_block (C function)c.w1_touch_blockhNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h=void w1_touch_block (struct w1_master *dev, u8 *buf, int len)h]jF)}(h<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj;ubjC)}(hint lenh](j)}(hinth]hint}(hjW<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS<ubj^)}(h h]h }(hje<hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjS<ubju)}(hlenh]hlen}(hjs<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjS<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj;ubeh}(h]h ]h"]h$]h&]jjuh1j<hj<;hhhjd;hM(ubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj8;hhhjd;hM(ubah}(h]j3;ah ](jjeh"]h$]h&]jj)jhuh1j?hjd;hM(hj5;hhubj)}(hhh]h)}(hReads a series of bytes.h]hReads a series of bytes.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM"hj<hhubah}(h]h ]h"]h$]h&]uh1jhj5;hhhjd;hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<jj<jjjuh1j:hhhjx.hNhNubj)}(h**Parameters** ``struct w1_master *dev`` the master device ``u8 *buf`` pointer to the buffer to fill ``int len`` the number of bytes to read **Return** the number of bytes readh](h)}(h**Parameters**h]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM&hj<ubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj<h]hstruct w1_master *dev}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj<ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM#hj<ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM#hj<ubah}(h]h ]h"]h$]h&]uh1j?hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<hM#hj<ubj)}(h*``u8 *buf`` pointer to the buffer to fill h](j$)}(h ``u8 *buf``h]j*)}(hj=h]hu8 *buf}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj=ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM$hj=ubj@)}(hhh]h)}(hpointer to the buffer to fillh]hpointer to the buffer to fill}(hj0=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,=hM$hj-=ubah}(h]h ]h"]h$]h&]uh1j?hj=ubeh}(h]h ]h"]h$]h&]uh1jhj,=hM$hj<ubj)}(h(``int len`` the number of bytes to read h](j$)}(h ``int len``h]j*)}(hjP=h]hint len}(hjR=hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjN=ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM%hjJ=ubj@)}(hhh]h)}(hthe number of bytes to readh]hthe number of bytes to read}(hji=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhje=hM%hjf=ubah}(h]h ]h"]h$]h&]uh1j?hjJ=ubeh}(h]h ]h"]h$]h&]uh1jhje=hM%hj<ubeh}(h]h ]h"]h$]h&]uh1jhj<ubh)}(h **Return**h]j)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM'hj<ubh)}(hthe number of bytes readh]hthe number of bytes read}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM&hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_reset_bus (C function)c.w1_reset_bushNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h(int w1_reset_bus (struct w1_master *dev)h]jF)}(h'int w1_reset_bus(struct w1_master *dev)h](j)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM>ubj^)}(h h]h }(hj=hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj=hhhj=hM>ubjo)}(h w1_reset_bush]ju)}(h w1_reset_bush]h w1_reset_bus}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj=ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj=hhhj=hM>ubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj >hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj >ubj^)}(h h]h }(hj>hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj >ubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hj+>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj(>ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj->modnameN classnameNjj)}j]j)}j|j=sbc.w1_reset_busasbuh1hhj >ubj^)}(h h]h }(hjK>hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj >ubj)}(hjh]h*}(hjY>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj >ubju)}(hdevh]hdev}(hjf>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj >ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj>ubah}(h]h ]h"]h$]h&]jjuh1j<hj=hhhj=hM>ubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj=hhhj=hM>ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1j?hj=hM>hj=hhubj)}(hhh]h)}(hIssues a reset bus sequence.h]hIssues a reset bus sequence.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM:hj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1j:hhhjx.hNhNubj)}(hy**Parameters** ``struct w1_master *dev`` the master device **Return** 0=Device present, 1=No device present or errorh](h)}(h**Parameters**h]j)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM>hj>ubj)}(hhh]j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hj>h]hstruct w1_master *dev}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj>ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM;hj>ubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hM;hj>ubah}(h]h ]h"]h$]h&]uh1j?hj>ubeh}(h]h ]h"]h$]h&]uh1jhj>hM;hj>ubah}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h **Return**h]j)}(hj ?h]hReturn}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ?ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM=hj>ubh)}(h.0=Device present, 1=No device present or errorh]h.0=Device present, 1=No device present or error}(hj"?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM<hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6"w1_reset_select_slave (C function)~c.w1_reset_select_slavehNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h/int w1_reset_select_slave (struct w1_slave *sl)h]jF)}(h.int w1_reset_select_slave(struct w1_slave *sl)h](j)}(hinth]hint}(hjQ?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM?hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMubj^)}(h h]h }(hj`?hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjM?hhhj_?hMubjo)}(hw1_reset_select_slaveh]ju)}(hw1_reset_select_slaveh]hw1_reset_select_slave}(hjr?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjn?ubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjM?hhhj_?hMubj=)}(h(struct w1_slave *sl)h]jC)}(hstruct w1_slave *slh](jL)}(hjOh]hstruct}(hj?hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj?ubj^)}(h h]h }(hj?hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj?ubh)}(hhh]ju)}(hw1_slaveh]hw1_slave}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj?modnameN classnameNjj)}j]j)}j|jt?sbc.w1_reset_select_slaveasbuh1hhj?ubj^)}(h h]h }(hj?hhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj?ubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubju)}(hslh]hsl}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj?ubah}(h]h ]h"]h$]h&]jjuh1j<hjM?hhhj_?hMubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjI?hhhj_?hMubah}(h]jD?ah ](jjeh"]h$]h&]jj)jhuh1j?hj_?hMhjF?hhubj)}(hhh]h)}(hreset and select a slaveh]hreset and select a slave}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMyhj@hhubah}(h]h ]h"]h$]h&]uh1jhjF?hhhj_?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)@jj)@jjjuh1j:hhhjx.hNhNubj)}(hX<**Parameters** ``struct w1_slave *sl`` the slave to select **Description** Resets the bus and then selects the slave by sending either a skip rom or a rom match. A skip rom is issued if there is only one device registered on the bus. The w1 master lock must be held. **Return** 0=success, anything else=errorh](h)}(h**Parameters**h]j)}(hj3@h]h Parameters}(hj5@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1@ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM}hj-@ubj)}(hhh]j)}(h,``struct w1_slave *sl`` the slave to select h](j$)}(h``struct w1_slave *sl``h]j*)}(hjR@h]hstruct w1_slave *sl}(hjT@hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjP@ubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMzhjL@ubj@)}(hhh]h)}(hthe slave to selecth]hthe slave to select}(hjk@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg@hMzhjh@ubah}(h]h ]h"]h$]h&]uh1j?hjL@ubeh}(h]h ]h"]h$]h&]uh1jhjg@hMzhjI@ubah}(h]h ]h"]h$]h&]uh1jhj-@ubh)}(h**Description**h]j)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM|hj-@ubh)}(hResets the bus and then selects the slave by sending either a skip rom or a rom match. A skip rom is issued if there is only one device registered on the bus. The w1 master lock must be held.h]hResets the bus and then selects the slave by sending either a skip rom or a rom match. A skip rom is issued if there is only one device registered on the bus. The w1 master lock must be held.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chM|hj-@ubh)}(h **Return**h]j)}(hj@h]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhj-@ubh)}(h0=success, anything else=errorh]h0=success, anything else=error}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhj-@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6$w1_reset_resume_command (C function)c.w1_reset_resume_commandhNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h3int w1_reset_resume_command (struct w1_master *dev)h]jF)}(h2int w1_reset_resume_command(struct w1_master *dev)h](j)}(hinth]hint}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@hhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMubj^)}(h h]h }(hjAhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj@hhhjAhMubjo)}(hw1_reset_resume_commandh]ju)}(hw1_reset_resume_commandh]hw1_reset_resume_command}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjAubah}(h]h ](jjeh"]h$]h&]jjuh1jnhj@hhhjAhMubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj6AhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj2Aubj^)}(h h]h }(hjCAhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj2Aubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjTAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjQAubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjVAmodnameN classnameNjj)}j]j)}j|jAsbc.w1_reset_resume_commandasbuh1hhj2Aubj^)}(h h]h }(hjtAhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hj2Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2Aubju)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj2Aubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhj.Aubah}(h]h ]h"]h$]h&]jjuh1j<hj@hhhjAhMubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhj@hhhjAhMubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1j?hjAhMhj@hhubj)}(hhh]h)}(h#resume instead of another match ROMh]h#resume instead of another match ROM}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1j:hhhjx.hNhNubj)}(hX**Parameters** ``struct w1_master *dev`` the master device **Description** When the workflow with a slave amongst many requires several successive commands a reset between each, this function is similar to doing a reset then a match ROM for the last matched ROM. The advantage being that the matched ROM step is skipped in favor of the resume command. The slave must support the command of course. If the bus has only one slave, traditionnaly the match ROM is skipped and a "SKIP ROM" is done for efficiency. On multi-slave busses, this doesn't work of course, but the resume command is the next best thing. The w1 master lock must be held.h](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAubj)}(hhh]j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjAh]hstruct w1_master *dev}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjAubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjBubah}(h]h ]h"]h$]h&]uh1j?hjAubeh}(h]h ]h"]h$]h&]uh1jhjBhMhjAubah}(h]h ]h"]h$]h&]uh1jhjAubh)}(h**Description**h]j)}(hj5Bh]h Description}(hj7BhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3Bubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAubh)}(hXBWhen the workflow with a slave amongst many requires several successive commands a reset between each, this function is similar to doing a reset then a match ROM for the last matched ROM. The advantage being that the matched ROM step is skipped in favor of the resume command. The slave must support the command of course.h]hXBWhen the workflow with a slave amongst many requires several successive commands a reset between each, this function is similar to doing a reset then a match ROM for the last matched ROM. The advantage being that the matched ROM step is skipped in favor of the resume command. The slave must support the command of course.}(hjKBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAubh)}(hIf the bus has only one slave, traditionnaly the match ROM is skipped and a "SKIP ROM" is done for efficiency. On multi-slave busses, this doesn't work of course, but the resume command is the next best thing.h]hIf the bus has only one slave, traditionnaly the match ROM is skipped and a “SKIP ROM” is done for efficiency. On multi-slave busses, this doesn’t work of course, but the resume command is the next best thing.}(hjZBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAubh)}(h The w1 master lock must be held.h]h The w1 master lock must be held.}(hjiBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_next_pullup (C function)c.w1_next_pulluphNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h6void w1_next_pullup (struct w1_master *dev, int delay)h]jF)}(h5void w1_next_pullup(struct w1_master *dev, int delay)h](j)}(hvoidh]hvoid}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMubj^)}(h h]h }(hjBhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjBhhhjBhMubjo)}(hw1_next_pulluph]ju)}(hw1_next_pulluph]hw1_next_pullup}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjBhhhjBhMubj=)}(h"(struct w1_master *dev, int delay)h](jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hjBhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjBubj^)}(h h]h }(hjBhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjBubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjBmodnameN classnameNjj)}j]j)}j|jBsbc.w1_next_pullupasbuh1hhjBubj^)}(h h]h }(hjChhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjBubj)}(hjh]h*}(hj!ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubju)}(hdevh]hdev}(hj.ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjBubjC)}(h int delayh](j)}(hinth]hint}(hjGChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCCubj^)}(h h]h }(hjUChhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjCCubju)}(hdelayh]hdelay}(hjcChhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjCCubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjBubeh}(h]h ]h"]h$]h&]jjuh1j<hjBhhhjBhMubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjBhhhjBhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j?hjBhMhjBhhubj)}(hhh]h)}(hregister for a strong pulluph]hregister for a strong pullup}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1j:hhhjx.hNhNubj)}(hX**Parameters** ``struct w1_master *dev`` the master device ``int delay`` time in milliseconds **Description** Put out a strong pull-up of the specified duration after the next write operation. Not all hardware supports strong pullups. Hardware that doesn't support strong pullups will sleep for the given time after the write operation without a strong pullup. This is a one shot request for the next write, specifying zero will clear a previous request. The w1 master lock must be held. **Return** 0=success, anything else=errorh](h)}(h**Parameters**h]j)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjCubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjCh]hstruct w1_master *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjCubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjCubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1j?hjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjCubj)}(h#``int delay`` time in milliseconds h](j$)}(h ``int delay``h]j*)}(hjDh]h int delay}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjDubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjDubj@)}(hhh]h)}(htime in millisecondsh]htime in milliseconds}(hj DhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjDubah}(h]h ]h"]h$]h&]uh1j?hjDubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjCubeh}(h]h ]h"]h$]h&]uh1jhjCubh)}(h**Description**h]j)}(hjBDh]h Description}(hjDDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Dubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjCubh)}(hX|Put out a strong pull-up of the specified duration after the next write operation. Not all hardware supports strong pullups. Hardware that doesn't support strong pullups will sleep for the given time after the write operation without a strong pullup. This is a one shot request for the next write, specifying zero will clear a previous request. The w1 master lock must be held.h]hX~Put out a strong pull-up of the specified duration after the next write operation. Not all hardware supports strong pullups. Hardware that doesn’t support strong pullups will sleep for the given time after the write operation without a strong pullup. This is a one shot request for the next write, specifying zero will clear a previous request. The w1 master lock must be held.}(hjXDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjCubh)}(h **Return**h]j)}(hjiDh]hReturn}(hjkDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgDubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjCubh)}(h0=success, anything else=errorh]h0=success, anything else=error}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:63: ./drivers/w1/w1_io.chMhjCubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_write_bit (C function)c.w1_write_bithNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h2void w1_write_bit (struct w1_master *dev, int bit)h]jF)}(h1void w1_write_bit(struct w1_master *dev, int bit)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKHubj^)}(h h]h }(hjDhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjDhhhjDhKHubjo)}(h w1_write_bith]ju)}(h w1_write_bith]h w1_write_bit}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjDubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjDhhhjDhKHubj=)}(h (struct w1_master *dev, int bit)h](jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hjDhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjDubj^)}(h h]h }(hjDhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjDubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hj EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjEubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj EmodnameN classnameNjj)}j]j)}j|jDsbc.w1_write_bitasbuh1hhjDubj^)}(h h]h }(hj)EhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjDubj)}(hjh]h*}(hj7EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubju)}(hdevh]hdev}(hjDEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjDubjC)}(hint bith](j)}(hinth]hint}(hj]EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYEubj^)}(h h]h }(hjkEhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjYEubju)}(hbith]hbit}(hjyEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjYEubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjDubeh}(h]h ]h"]h$]h&]jjuh1j<hjDhhhjDhKHubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjDhhhjDhKHubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1j?hjDhKHhjDhhubj)}(hhh]h)}(h%Generates a write-0 or write-1 cycle.h]h%Generates a write-0 or write-1 cycle.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKBhjEhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjDhKHubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1j:hhhjx.hNhNubj)}(h**Parameters** ``struct w1_master *dev`` the master device ``int bit`` bit to write **Description** Only call if dev->bus_master->touch_bit is NULLh](h)}(h**Parameters**h]j)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKFhjEubj)}(hhh](j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjEh]hstruct w1_master *dev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjEubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKChjEubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhKChjEubah}(h]h ]h"]h$]h&]uh1j?hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhKChjEubj)}(h``int bit`` bit to write h](j$)}(h ``int bit``h]j*)}(hjFh]hint bit}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjFubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKDhjFubj@)}(hhh]h)}(h bit to writeh]h bit to write}(hj6FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2FhKDhj3Fubah}(h]h ]h"]h$]h&]uh1j?hjFubeh}(h]h ]h"]h$]h&]uh1jhj2FhKDhjEubeh}(h]h ]h"]h$]h&]uh1jhjEubh)}(h**Description**h]j)}(hjXFh]h Description}(hjZFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVFubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKFhjEubh)}(h/Only call if dev->bus_master->touch_bit is NULLh]h/Only call if dev->bus_master->touch_bit is NULL}(hjnFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKFhjEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_pre_write (C function)c.w1_pre_writehNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h)void w1_pre_write (struct w1_master *dev)h]jF)}(h(void w1_pre_write(struct w1_master *dev)h](j)}(hvoidh]hvoid}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKeubj^)}(h h]h }(hjFhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjFhhhjFhKeubjo)}(h w1_pre_writeh]ju)}(h w1_pre_writeh]h w1_pre_write}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjFubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjFhhhjFhKeubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hjFhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjFubj^)}(h h]h }(hjFhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjFubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjFubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjFmodnameN classnameNjj)}j]j)}j|jFsbc.w1_pre_writeasbuh1hhjFubj^)}(h h]h }(hjGhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjFubj)}(hjh]h*}(hj&GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubju)}(hdevh]hdev}(hj3GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjFubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjFubah}(h]h ]h"]h$]h&]jjuh1j<hjFhhhjFhKeubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjFhhhjFhKeubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j?hjFhKehjFhhubj)}(hhh]h)}(hpre-write operationsh]hpre-write operations}(hj]GhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chK^hjZGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhKeubeh}(h]h ](jfunctioneh"]h$]h&]jjjjuGjjuGjjjuh1j:hhhjx.hNhNubj)}(h**Parameters** ``struct w1_master *dev`` the master device **Description** Pre-write operation, currently only supporting strong pullups. Program the hardware for a strong pullup, if one has been requested and the hardware supports it.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}Gubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKbhjyGubj)}(hhh]j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjGh]hstruct w1_master *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjGubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chK_hjGubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhK_hjGubah}(h]h ]h"]h$]h&]uh1j?hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhK_hjGubah}(h]h ]h"]h$]h&]uh1jhjyGubh)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKahjyGubh)}(hPre-write operation, currently only supporting strong pullups. Program the hardware for a strong pullup, if one has been requested and the hardware supports it.h]hPre-write operation, currently only supporting strong pullups. Program the hardware for a strong pullup, if one has been requested and the hardware supports it.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKahjyGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_post_write (C function)c.w1_post_writehNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h*void w1_post_write (struct w1_master *dev)h]jF)}(h)void w1_post_write(struct w1_master *dev)h](j)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKvubj^)}(h h]h }(hj-HhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjHhhhj,HhKvubjo)}(h w1_post_writeh]ju)}(h w1_post_writeh]h w1_post_write}(hj?HhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj;Hubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjHhhhj,HhKvubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hj[HhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjWHubj^)}(h h]h }(hjhHhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjWHubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjyHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjvHubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetj{HmodnameN classnameNjj)}j]j)}j|jAHsbc.w1_post_writeasbuh1hhjWHubj^)}(h h]h }(hjHhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjWHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWHubju)}(hdevh]hdev}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjWHubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjSHubah}(h]h ]h"]h$]h&]jjuh1j<hjHhhhj,HhKvubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjHhhhj,HhKvubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1j?hj,HhKvhjHhhubj)}(hhh]h)}(hpost-write optionsh]hpost-write options}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKohjHhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhj,HhKvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1j:hhhjx.hNhNubj)}(hX**Parameters** ``struct w1_master *dev`` the master device **Description** Post-write operation, currently only supporting strong pullups. If a strong pullup was requested, clear it if the hardware supports them, or execute the delay otherwise, in either case clear the request.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKshjHubj)}(hhh]j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjIh]hstruct w1_master *dev}(hj!IhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjIubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKphjIubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hj8IhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4IhKphj5Iubah}(h]h ]h"]h$]h&]uh1j?hjIubeh}(h]h ]h"]h$]h&]uh1jhj4IhKphjIubah}(h]h ]h"]h$]h&]uh1jhjHubh)}(h**Description**h]j)}(hjZIh]h Description}(hj\IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXIubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKrhjHubh)}(hPost-write operation, currently only supporting strong pullups. If a strong pullup was requested, clear it if the hardware supports them, or execute the delay otherwise, in either case clear the request.h]hPost-write operation, currently only supporting strong pullups. If a strong pullup was requested, clear it if the hardware supports them, or execute the delay otherwise, in either case clear the request.}(hjpIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKrhjHubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubj*)}(hhh]h}(h]h ]h"]h$]h&]entries](j6w1_read_bit (C function) c.w1_read_bithNtauh1j)hjx.hhhNhNubj;)}(hhh](j@)}(h&u8 w1_read_bit (struct w1_master *dev)h]jF)}(h%u8 w1_read_bit(struct w1_master *dev)h](h)}(hhh]ju)}(hu8h]hu8}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjIubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjImodnameN classnameNjj)}j]j)}j| w1_read_bitsb c.w1_read_bitasbuh1hhjIhhhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKubj^)}(h h]h }(hjIhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjIhhhjIhKubjo)}(h w1_read_bith]ju)}(hjIh]h w1_read_bit}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjIubah}(h]h ](jjeh"]h$]h&]jjuh1jnhjIhhhjIhKubj=)}(h(struct w1_master *dev)h]jC)}(hstruct w1_master *devh](jL)}(hjOh]hstruct}(hjIhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjIubj^)}(h h]h }(hjIhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjIubh)}(hhh]ju)}(h w1_masterh]h w1_master}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthj Jubah}(h]h ]h"]h$]h&] refdomainjreftypej| reftargetjJmodnameN classnameNjj)}j]jI c.w1_read_bitasbuh1hhjIubj^)}(h h]h }(hj-JhhhNhNubah}(h]h ]jjah"]h$]h&]uh1j]hjIubj)}(hjh]h*}(hj;JhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubju)}(hdevh]hdev}(hjHJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jthjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jBhjIubah}(h]h ]h"]h$]h&]jjuh1j<hjIhhhjIhKubeh}(h]h ]h"]h$]h&]jjjuh1jEjjhjIhhhjIhKubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1j?hjIhKhjIhhubj)}(hhh]h)}(h0Generates a write-1 cycle and samples the level.h]h0Generates a write-1 cycle and samples the level.}(hjrJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKhjoJhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjIhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1j:hhhjx.hNhNubj)}(h**Parameters** ``struct w1_master *dev`` the master device **Description** Only call if dev->bus_master->touch_bit is NULLh](h)}(h**Parameters**h]j)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKhjJubj)}(hhh]j)}(h,``struct w1_master *dev`` the master device h](j$)}(h``struct w1_master *dev``h]j*)}(hjJh]hstruct w1_master *dev}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjJubah}(h]h ]h"]h$]h&]uh1j#hP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKhjJubj@)}(hhh]h)}(hthe master deviceh]hthe master device}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhKhjJubah}(h]h ]h"]h$]h&]uh1j?hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhKhjJubah}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjJh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKhjJubh)}(h/Only call if dev->bus_master->touch_bit is NULLh]h/Only call if dev->bus_master->touch_bit is NULL}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhP/var/lib/git/docbuild/linux/Documentation/driver-api/w1:66: ./drivers/w1/w1_io.chKhjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjx.hhhNhNubeh}(h]drivers-w1-w1-io-cah ]h"]drivers/w1/w1_io.cah$]h&]uh1hhhhhhhhK;ubeh}(h]w1-api-internal-to-the-kernelah ]h"]w1 api internal to the kernelah$]h&]uh1hhhhhhhhKubeh}(h]w1-dallas-1-wire-busah ]h"]w1: dallas' 1-wire busah$]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_handlerjUKerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j/Kj,Kj'Kj$Kjjj>j;jjj j j#j#ju.jr.jKjKu nametypes}(j/Kj'Kjj>jj j#ju.jKuh}(j,Khj$Khjj j8jAjjjjjr jw j j j#j(jjjjj;jjjjjjjAjljqjjj jjIjOj#j j j j4"j9"jr.j#j#j#j$j$j&j&j)j)j,j,jKjx.j.j.j0j0j[2j`2j4j4ji6jn6j8j8j3;j8;j=j=jD?jI?j@j@jBjBjDjDjFjFjHjHjIjIu 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.