cdev_output_busy()

Check if the character device output is busy

Synopsis:

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

Arguments:

cds
A pointer to a structure with the state of the character device.

Library:

Provided by qvm; no external library is required.

Description:

Calling this static inline function makes sense only if you are using the internal buffers (non-zero buffer size when calling cdev_setup()).

Returns:

If successful, flags; otherwise a negative errno value.