1 .. SPDX-License-Identifier: GPL-2.0 2 3 .. _GPIO_GET_LINEINFO_IOCTL: 4 5 *********************** 6 GPIO_GET_LINEINFO_IOCTL 7 *********************** 8 9 .. warning:: 10 This ioctl is part of chardev_v1.rst and i 11 gpio-v2-get-lineinfo-ioctl.rst. 12 13 Name 14 ==== 15 16 GPIO_GET_LINEINFO_IOCTL - Get the publicly ava 17 18 Synopsis 19 ======== 20 21 .. c:macro:: GPIO_GET_LINEINFO_IOCTL 22 23 ``int ioctl(int chip_fd, GPIO_GET_LINEINFO_IOC 24 25 Arguments 26 ========= 27 28 ``chip_fd`` 29 The file descriptor of the GPIO character 30 31 ``info`` 32 The :c:type:`line_info<gpioline_info>` to 33 ``offset`` field set to indicate the line 34 35 Description 36 =========== 37 38 Get the publicly available information for a l 39 40 This information is available independent of w 41 42 .. note:: 43 The line info does not include the line va 44 45 The line must be requested using gpio-get- 46 gpio-get-lineevent-ioctl.rst to access its 47 48 Return Value 49 ============ 50 51 On success 0 and ``info`` is populated with th 52 53 On error -1 and the ``errno`` variable is set 54 Common error codes are described in error-code
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.