cdev_write()

Write to the device in the hypervisor host

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 to a device in the hypervisor host.

Returns:

If successful, the number of bytes written; otherwise, a negative errno value.