^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /dev/gpiochip[0-9]+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: November 2015
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 4.4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: linux-gpio@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) The character device files /dev/gpiochip* are the interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) between GPIO chips and userspace.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) The ioctl(2)-based ABI is defined and documented in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) [include/uapi]<linux/gpio.h>.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) The following file operations are supported:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) open(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Currently the only useful flags are O_RDWR.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) ioctl(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Initiate various actions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) See the inline documentation in [include/uapi]<linux/gpio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) for descriptions of all ioctls.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) close(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) Stops and free up the I/O contexts that was associated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) with the file descriptor.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) Users: TBD