Handle process-container character device operations
Synopsis:
#include <qvm/cdev.h>
int cdev_control(struct cdev_state *cds,
unsigned ctrl,
const char *arg)
Arguments:
- cds
- A pointer to a structure with the character device state (see cdev_state).
- ctrl
- The operation to perform. This is the same value passed to your vdev's control callback, because cdev_control() is always called from this callback, every time it runs.
- arg
- A pointer to parameters for the operation.
Returns:
EOK on success; otherwise, an error.