1 .. SPDX-License-Identifier: GPL-2.0 1 .. SPDX-License-Identifier: GPL-2.0 2 2 3 .. _GPIO_GET_CHIPINFO_IOCTL: 3 .. _GPIO_GET_CHIPINFO_IOCTL: 4 4 5 *********************** 5 *********************** 6 GPIO_GET_CHIPINFO_IOCTL 6 GPIO_GET_CHIPINFO_IOCTL 7 *********************** 7 *********************** 8 8 9 Name 9 Name 10 ==== 10 ==== 11 11 12 GPIO_GET_CHIPINFO_IOCTL - Get the publicly ava 12 GPIO_GET_CHIPINFO_IOCTL - Get the publicly available information for a chip. 13 13 14 Synopsis 14 Synopsis 15 ======== 15 ======== 16 16 17 .. c:macro:: GPIO_GET_CHIPINFO_IOCTL 17 .. c:macro:: GPIO_GET_CHIPINFO_IOCTL 18 18 19 ``int ioctl(int chip_fd, GPIO_GET_CHIPINFO_IOC 19 ``int ioctl(int chip_fd, GPIO_GET_CHIPINFO_IOCTL, struct gpiochip_info *info)`` 20 20 21 Arguments 21 Arguments 22 ========= 22 ========= 23 23 24 ``chip_fd`` 24 ``chip_fd`` 25 The file descriptor of the GPIO character 25 The file descriptor of the GPIO character device returned by `open()`. 26 26 27 ``info`` 27 ``info`` 28 The :c:type:`chip_info<gpiochip_info>` to 28 The :c:type:`chip_info<gpiochip_info>` to be populated. 29 29 30 Description 30 Description 31 =========== 31 =========== 32 32 33 Gets the publicly available information for a 33 Gets the publicly available information for a particular GPIO chip. 34 34 35 Return Value 35 Return Value 36 ============ 36 ============ 37 37 38 On success 0 and ``info`` is populated with th 38 On success 0 and ``info`` is populated with the chip info. 39 39 40 On error -1 and the ``errno`` variable is set 40 On error -1 and the ``errno`` variable is set appropriately. 41 Common error codes are described in error-code 41 Common error codes are described in error-codes.rst.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.