cdev_input_num_available()
Check how much space is available in a character device's input buffer
Synopsis:
#include <qvm/cdev.h>static unsigned cdev_input_num_available(const struct cdev_state *const cds)Arguments:
- cds
- A pointer to a structure with the character device state (see cdev_state).
Description:
Calling this function makes sense only if you are using the internal buffers (i.e., you specified a non-zero buffer size when calling cdev_setup()).
Returns:
If successful, the number of characters that may still be placed in the character device's input buffer; otherwise, a negative errno value.
Page updated:
