SYS_DEVFIFO

This device driver is used to add a FIFO read buffer to a device. When writing the FIFO, the device is written directly. Any data that arrives asynchronously through the device is stored in the FIFO buffer. When reading the FIFO, the FIFO buffer is read.

Details

define DEVFIFO_VERSION

define DEVFIFO_IOC_CHAR

define I_DEVFIFO_GETVERSION

define I_DEVFIFO_GETINFO

This request gets the size of the FIFO in bytes.

Example:

devfifo_attr_t attr;
ioctl(fifo_fd, I_DEVFIFO_GETINFO, &attr);

define I_DEVFIFO_TOTAL

typedef devfifo_info_t devfifo_attr_t

struct::devfifo_info_t

This structure defines the attributes used in a device fifo.

uint32_t size

uint32_t used

uint32_t overflow

struct::devfifo_config_t

This is used for the configuration of the device.

const void * dev

char * buffer

int size

int req_getbyte

int req_setaction

int event

X

Thanks for Coming!

Subscribe to news and updates