€•17Œ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Œ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”auh1jhjhž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”…””}”(hj;hžhhŸNh Nubah}”(h]”h ]”Œn”ah"]”h$]”h&]”uh1j9hj5ubah}”(h]”h ]”(Œsig-name”Œdescname”eh"]”h$]”h&]”h±h²uh1j3hj/hžhhŸh³h Kubah}”(h]”h ]”h"]”h$]”h&]”h±h²Œ add_permalink”ˆuh1j-Œsphinx_line_type”Œ declarator”hj)hžhhŸh³h Kubah}”(h]”j ah ]”(Œsig”Œ sig-object”eh"]”h$]”h&]”Œ is_multiline”ˆŒ _toc_parts”)Œ _toc_name”huh1j'hŸh³h Khj$hžhubhŒ desc_content”“”)”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”uh1jehj$hžhhŸh³h Kubeh}”(h]”h ]”(Œc”Œmacro”eh"]”h$]”h&]”Œdomain”jsŒobjtype”jtŒdesctype”jtŒnoindex”‰Œ noindexentry”‰Œnocontentsentry”‰uh1j"hž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”jsŒc-type”eh"]”h$]”h&]”uh1j‚hjáubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ0userspace-api/gpio/gpio-v2-line-set-config-ioctl”Œ refdomain”jsŒ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‚hj%ubah}”(h]”h ]”h"]”h$]”h&]”uh1j»hŸh³h Khj!ubjÕ)”}”(hhh]”hé)”}”(hŒUThe new :c:type:`configuration` to apply to the requested lines.”h]”(hŒThe new ”…””}”(hj?hžhhŸNh Nubh)”}”(hŒ,:c:type:`configuration`”h]”jƒ)”}”(hjIh]”hŒ configuration”…””}”(hjKhžhhŸNh Nubah}”(h]”h ]”(jïjsŒc-type”eh"]”h$]”h&]”uh1j‚hjGubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”jûŒ refdomain”jsŒreftype”Œtype”Œ refexplicit”ˆŒrefwarn”‰jjj Œgpio_v2_line_config”uh1hhŸh³h Khj?ubhŒ! to apply to the requested lines.”…””}”(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²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”…””}”(hjhž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.”…””}”(hjhž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.”…””}”(hjhž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”…””}”(hj6hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÇhj3hžhhŸh³h K8ubhé)”}”(hŒ On success 0.”h]”hŒ On success 0.”…””}”(hjDhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K:hj3hž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 ”…””}”(hjRhžhhŸNh Nubjƒ)”}”(hŒ ``errno``”h]”hŒerrno”…””}”(hjZhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j‚hjRubhŒT variable is set appropriately. Common error codes are described in error-codes.rst.”…””}”(hjRhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hèhŸh³h K