@brief Read the last GPIO event directly from a file descriptor.
@param fd File descriptor.
@param event Buffer in which the event data will be stored.
@return 0 if the event was read correctly, -1 on error.
Users who directly poll the file descriptor for incoming events can also
directly read the event data from it using this routine. This function
translates the kernel representation of the event to the libgpiod format.
@brief Read the last GPIO event directly from a file descriptor. @param fd File descriptor. @param event Buffer in which the event data will be stored. @return 0 if the event was read correctly, -1 on error.
Users who directly poll the file descriptor for incoming events can also directly read the event data from it using this routine. This function translates the kernel representation of the event to the libgpiod format.