cdev_control()
Handle process-container character device operations
Synopsis:
#include <qvm/cdev.h>int cdev_control(struct cdev_state *cds,
vdev_ctrl_options_t ctrl,
const char *arg)Arguments:
- cds
- A pointer to a structure with the character device state (see cdev_state).
- ctrl
- The operation to perform, specified as a vdev_ctrl_options_t value. This is the same value passed to your vdev's control callback because cdev_control() is called from this callback every time it runs.
- arg
- A pointer to parameters for the operation.
Description:
This function should be called by characters devices at the end of their factory control function to allow activities common to all such devices to be performed.
Returns:
EOK on success; otherwise, an error.
Page updated:
