Read available data from a host device write it into the internal input buffer
#include <qvm/cdev.h>
int cdev_input_available(struct cdev_state *cds)
If you aren't providing your own buffer (see cdev_setup()), then you must call this function when handling the CDEV_INPUT_AVAILABLE_PULSE_CODE pulse.
If the received data completely fills the buffer, 1 (one); if the data doesn't fill the buffer, 0 (zero); otherwise, a negative errno value.