cdev_output_full()

Check if a character device's output buffer is full

Synopsis:

#include <qvm/cdev.h>
static int cdev_output_full(const struct cdev_state *const cds)

Arguments:

cds
A pointer to a structure with the character device state (see cdev_state).

Description:

This function checks if the specified character device's output buffer is full and hence, can't store any more characters to output. 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:

One (1) if the output buffer is full, zero (0) if it's not, or a negative errno value.

Page updated: