GPIO_GET_CHIPINFO_IOCTLÂķ
NameÂķ
GPIO_GET_CHIPINFO_IOCTL - Get the publicly available information for a chip.
SynopsisÂķ
-
GPIO_GET_CHIPINFO_IOCTLÂķ
int ioctl(int chip_fd, GPIO_GET_CHIPINFO_IOCTL, struct gpiochip_info *info)
ArgumentsÂķ
chip_fdThe file descriptor of the GPIO character device returned by open().
infoThe
chip_infoto be populated.
DescriptionÂķ
Gets the publicly available information for a particular GPIO chip.
Return ValueÂķ
On success 0 and info is populated with the chip info.
On error -1 and the errno variable is set appropriately.
Common error codes are described in GPIO Error Codes.