cdev_state

Callback states

Synopsis:

#include <qvm/cdev.h>
struct cdev_state {
    struct qvm_callback cb;
	struct vdev_s	*vdev;
	struct {
		const char 	*name;
		uint8_t		*buff;
		unsigned	size;
		unsigned	avail;
		unsigned	pos;
		int			fd;
	}		in;
	struct {
		const char	*name;
        uint8_t     *buff;
        unsigned    size;
        unsigned    begin;
		unsigned    pos;
		int			fd;
		timer_t		flush_timer;
		long		flush_timeout;
	}		out;
	struct termios	save_termio;
	unsigned		delayed_count;
	unsigned		flags;
	int				priority;
	struct sigevent	ev_in;
	struct sigevent	ev_out;
};

Data:

struct qvm_callback cb

Internal use

struct vdev_s* vdev

Internal use

const char* name

Internal use

uint8_t* buff

Internal use

unsigned size

Internal use

unsigned avail

Internal use

unsigned pos

Internal use

int fd

Internal use

struct cdev_state::@1 in

Internal use

unsigned begin

Internal use

timer_t flush_timer

Internal use

long flush_timeout

Internal use

struct cdev_state::@2 out

Internal use

struct termios save_termio

Internal use

unsigned delayed_count

Internal use

unsigned flags

Internal use

int priority

Internal use

struct sigevent ev_in

Internal use

struct sigevent ev_out

Internal use

Library:

Provided by qvm; no external library is required.

Description:

Callback structure for a qvm process instance. Content is for internal use only. You only need to provide the space for the structure.