cdev.h

Functions to create virtual character devices for guests

Use these functions to create virtual devices through which a guest can output to a host character device, and can receive input from another or the same host character device.

The input host character device must be a TTY device. There are no restrictions on the output host character device.

Function safety

All functions that cdev.h provides are thread safe.

Function When used Notes
cdev_control() Startup, running (see notes) Used in character-like vdev control function as a base handler.
cdev_input_available() Running  
cdev_input_num_available() Running  
cdev_input_receive() Running  
cdev_output_busy() Running  
cdev_output_empty() Running  
cdev_output_full() Running  
cdev_output_num_pending() Running  
cdev_read() Running  
cdev_setup() Startup  
cdev_write() Running  
cdev_write_buffer() Running