group::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

defineDEVFIFO_VERSION


defineDEVFIFO_IOC_CHAR


defineI_DEVFIFO_GETVERSION


defineI_DEVFIFO_GETINFO

This request gets the size of the FIFO in bytes.

Example:

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

defineI_DEVFIFO_TOTAL



date: “2019-06-27” layout: post title: struct::devfifo_info_t katex: true

categories: struct

This structure defines the attributes used in a device fifo.

Methods

Details

public uint32_tsize


public uint32_tused


public uint32_toverflow



date: “2019-06-27” layout: post title: struct::devfifo_config_t katex: true

categories: struct

This is used for the configuration of the device.

Methods

Details

public const void *dev


public char *buffer


public intsize


public intreq_getbyte


public intreq_setaction


public intevent


X

Thanks for Coming!

Subscribe to news and updates