cdev_write()
Write data from a supplied buffer to a device
Synopsis:
#include <qvm/cdev.h>int cdev_write(struct cdev_state *cds,
const uint8_t *data,
unsigned len)Arguments:
- cds
- A pointer to a structure with the character device state (see cdev_state).
- data
- A pointer to the buffer of data to be written.
- len
- The number of bytes of data to be written.
Description:
Use this function to write data from your own buffer to the specified host device.
Returns:
If successful, the number of bytes actually written to the device; otherwise, a negative errno value.
Page updated:
