| Updated: January 28, 2026 |
Transfer available data from the device's internal input buffer to a user-provided buffer
#include <qvm/cdev.h>
int cdev_read(struct cdev_state *cds,
uint8_t *data,
unsigned len)
Use this function to read data from a device's internal buffer and write it into your own buffer.
If successful, the number of bytes actually read; otherwise, a negative errno value.