€•-8Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”ŒD/translations/zh_CN/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒD/translations/zh_TW/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒD/translations/it_IT/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒD/translations/ja_JP/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒD/translations/ko_KR/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒD/translations/pt_BR/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”ŒD/translations/sp_SP/userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ^/var/lib/git/docbuild/linux/Documentation/userspace-api/gpio/gpio-v2-line-set-config-ioctl.rst”h´KubhŒtarget”“”)”}”(hŒ".. _GPIO_V2_LINE_SET_CONFIG_IOCTL:”h]”h}”(h]”h ]”h"]”h$]”h&]”Œrefid”Œgpio-v2-line-set-config-ioctl”uh1hÈh´Khhh²hh³hÇubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒGPIO_V2_LINE_SET_CONFIG_IOCTL”h]”hŒGPIO_V2_LINE_SET_CONFIG_IOCTL”…””}”(hhÝh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒName”h]”hŒName”…””}”(hhîh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhhëh²hh³hÇh´K ubhŒ paragraph”“”)”}”(hŒWGPIO_V2_LINE_SET_CONFIG_IOCTL - Update the configuration of previously requested lines.”h]”hŒWGPIO_V2_LINE_SET_CONFIG_IOCTL - Update the configuration of previously requested lines.”…””}”(hhþh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K hhëh²hubeh}”(h]”Œname”ah ]”h"]”Œname”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K ubh×)”}”(hhh]”(hÜ)”}”(hŒSynopsis”h]”hŒSynopsis”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjh²hh³hÇh´KubhŒindex”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”Œentries”]”(Œsingle”Œ'GPIO_V2_LINE_SET_CONFIG_IOCTL (C macro)”Œc.GPIO_V2_LINE_SET_CONFIG_IOCTL”hNt”auh1j%hjh²hh³Nh´NubhŒdesc”“”)”}”(hhh]”(hŒdesc_signature”“”)”}”(hŒGPIO_V2_LINE_SET_CONFIG_IOCTL”h]”hŒdesc_signature_line”“”)”}”(hŒGPIO_V2_LINE_SET_CONFIG_IOCTL”h]”hŒ desc_name”“”)”}”(hŒGPIO_V2_LINE_SET_CONFIG_IOCTL”h]”hŒ desc_sig_name”“”)”}”(hj?h]”hŒGPIO_V2_LINE_SET_CONFIG_IOCTL”…””}”(hjOh²hh³Nh´Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1jMhjIubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”hÅhÆuh1jGhjCh²hh³hÇh´Kubah}”(h]”h ]”h"]”h$]”h&]”hÅhÆŒ add_permalink”ˆuh1jAŒsphinx_line_type”Œ declarator”hj=h²hh³hÇh´Kubah}”(h]”j4ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j;h³hÇh´Khj8h²hubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jyhj8h²hh³hÇh´Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”j‡Œobjtype”jˆŒdesctype”jˆŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j6h²hhjh³Nh´Nubhý)”}”(hŒ\``int ioctl(int req_fd, GPIO_V2_LINE_SET_CONFIG_IOCTL, struct gpio_v2_line_config *config)``”h]”hŒliteral”“”)”}”(hj”h]”hŒXint ioctl(int req_fd, GPIO_V2_LINE_SET_CONFIG_IOCTL, struct gpio_v2_line_config *config)”…””}”(hj˜h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj’ubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjh²hubeh}”(h]”Œsynopsis”ah ]”h"]”Œsynopsis”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒ Arguments”h]”hŒ Arguments”…””}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhj³h²hh³hÇh´KubhŒdefinition_list”“”)”}”(hhh]”(hŒdefinition_list_item”“”)”}”(hŒš``req_fd`` The file descriptor of the GPIO character device, as returned in the :c:type:`request.fd` by gpio-v2-get-line-ioctl.rst. ”h]”(hŒterm”“”)”}”(hŒ ``req_fd``”h]”j—)”}”(hjÓh]”hŒreq_fd”…””}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjÑubah}”(h]”h ]”h"]”h$]”h&]”uh1jÏh³hÇh´KhjËubhŒ definition”“”)”}”(hhh]”hý)”}”(hŒŽThe file descriptor of the GPIO character device, as returned in the :c:type:`request.fd` by gpio-v2-get-line-ioctl.rst.”h]”(hŒEThe file descriptor of the GPIO character device, as returned in the ”…””}”(hjíh²hh³Nh´Nubh)”}”(hŒ*:c:type:`request.fd`”h]”j—)”}”(hj÷h]”hŒ request.fd”…””}”(hjùh²hh³Nh´Nubah}”(h]”h ]”(Œxref”j‡Œc-type”eh"]”h$]”h&]”uh1j–hjõubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ0userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œ refdomain”j‡Œreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰Œ c:parent_key”Œsphinx.domains.c”Œ LookupKey”“”)”}”Œdata”]”sbŒ reftarget”Œgpio_v2_line_request”uh1hh³hÇh´KhjíubhŒ by gpio-v2-get-line-ioctl.rst.”…””}”(hjíh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´Khjêubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhjËubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÉh³hÇh´KhjÆubjÊ)”}”(hŒa``config`` The new :c:type:`configuration` to apply to the requested lines. ”h]”(jÐ)”}”(hŒ ``config``”h]”j—)”}”(hj;h]”hŒconfig”…””}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hj9ubah}”(h]”h ]”h"]”h$]”h&]”uh1jÏh³hÇh´Khj5ubjé)”}”(hhh]”hý)”}”(hŒUThe new :c:type:`configuration` to apply to the requested lines.”h]”(hŒThe new ”…””}”(hjSh²hh³Nh´Nubh)”}”(hŒ,:c:type:`configuration`”h]”j—)”}”(hj]h]”hŒ configuration”…””}”(hj_h²hh³Nh´Nubah}”(h]”h ]”(jj‡Œc-type”eh"]”h$]”h&]”uh1j–hj[ubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”j‡Œreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jjjŒgpio_v2_line_config”uh1hh³hÇh´KhjSubhŒ! to apply to the requested lines.”…””}”(hjSh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´KhjPubah}”(h]”h ]”h"]”h$]”h&]”uh1jèhj5ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÉh³hÇh´KhjÆh²hubeh}”(h]”h ]”h"]”h$]”h&]”uh1jÄhj³h²hh³hÇh´Nubeh}”(h]”Œ arguments”ah ]”h"]”Œ arguments”ah$]”h&]”uh1hÖhhØh²hh³hÇh´Kubh×)”}”(hhh]”(hÜ)”}”(hŒ Description”h]”hŒ Description”…””}”(hj¡h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjžh²hh³hÇh´K!ubhý)”}”(hŒuUpdate the configuration of previously requested lines, without releasing the line or introducing potential glitches.”h]”hŒuUpdate the configuration of previously requested lines, without releasing the line or introducing potential glitches.”…””}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K#hjžh²hubhý)”}”(hŒKThe new configuration must specify a configuration for all requested lines.”h]”hŒKThe new configuration must specify a configuration for all requested lines.”…””}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K&hjžh²hubhý)”}”(hX…The same :ref:`gpio-v2-get-line-config-rules` and :ref:`gpio-v2-get-line-config-support` that apply when requesting the lines also apply when updating the line configuration, with the additional restriction that a direction flag must be set to enable reconfiguration. If no direction flag is set in the configuration for a given line then the configuration for that line is left unchanged.”h]”(hŒ The same ”…””}”(hjËh²hh³Nh´Nubh)”}”(hŒ$:ref:`gpio-v2-get-line-config-rules`”h]”hŒinline”“”)”}”(hjÕh]”hŒgpio-v2-get-line-config-rules”…””}”(hjÙh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j×hjÓubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jãŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjŒgpio-v2-get-line-config-rules”uh1hh³hÇh´K(hjËubhŒ and ”…””}”(hjËh²hh³Nh´Nubh)”}”(hŒ&:ref:`gpio-v2-get-line-config-support`”h]”jØ)”}”(hjûh]”hŒgpio-v2-get-line-config-support”…””}”(hjýh²hh³Nh´Nubah}”(h]”h ]”(jŒstd”Œstd-ref”eh"]”h$]”h&]”uh1j×hjùubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jŒ refdomain”jŒreftype”Œref”Œ refexplicit”‰Œrefwarn”ˆjŒgpio-v2-get-line-config-support”uh1hh³hÇh´K(hjËubhX- that apply when requesting the lines also apply when updating the line configuration, with the additional restriction that a direction flag must be set to enable reconfiguration. If no direction flag is set in the configuration for a given line then the configuration for that line is left unchanged.”…””}”(hjËh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K(hjžh²hubhý)”}”(hXThe motivating use case for this command is changing direction of bi-directional lines between input and output, but it may also be used to dynamically control edge detection, or more generally move lines seamlessly from one configuration state to another.”h]”hXThe motivating use case for this command is changing direction of bi-directional lines between input and output, but it may also be used to dynamically control edge detection, or more generally move lines seamlessly from one configuration state to another.”…””}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K/hjžh²hubhý)”}”(hŒPTo only change the value of output lines, use gpio-v2-line-set-values-ioctl.rst.”h]”hŒPTo only change the value of output lines, use gpio-v2-line-set-values-ioctl.rst.”…””}”(hj1h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K4hjžh²hubeh}”(h]”Œ description”ah ]”h"]”Œ description”ah$]”h&]”uh1hÖhhØh²hh³hÇh´K!ubh×)”}”(hhh]”(hÜ)”}”(hŒ Return Value”h]”hŒ Return Value”…””}”(hjJh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÛhjGh²hh³hÇh´K8ubhý)”}”(hŒ On success 0.”h]”hŒ On success 0.”…””}”(hjXh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K:hjGh²hubhý)”}”(hŒqOn error -1 and the ``errno`` variable is set appropriately. Common error codes are described in error-codes.rst.”h]”(hŒOn error -1 and the ”…””}”(hjfh²hh³Nh´Nubj—)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjnh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j–hjfubhŒT variable is set appropriately. Common error codes are described in error-codes.rst.”…””}”(hjfh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hüh³hÇh´K