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 state of the character device.
data
A pointer to the buffer of data to be written.
len
The number of bytes of data to be written.

Library:

Provided by qvm; no external library is required.

Description:

Use this function to write data to a device in the hyeprvisor host.

Returns:

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