io_notify_t

Структура, характеризующая сообщения менеджера ресурсов типа _IO_NOTIFY

Прототип:

#include <sys/iofunc.h>
struct _io_notify {
uint16_t type;
uint16_t combine_len;
int32_t action;
int32_t flags;
struct sigevent event;
};
struct _io_notify_reply {
uint32_t zero;
uint32_t flags;
};
typedef union {
struct _io_notify i;
struct _io_notify_reply o;
} io_notify_t;

Описание:

Данная структура ассоциирована с сообщениями менеджера ресурсов типа _IO_NOTIFY. Поле i определяет входящие данные (поступающие в менеджер ресурсов), поле o исходящие (отправляемые обратно клиенту).

The i member is a structure of type _io_notify that contains the following members:

type
_IO_NOTIFY
combine_len
If the message is a combine message, _IO_COMBINE_FLAG is set in this member.
action
_NOTIFY_ACTION_POLL, _NOTIFY_ACTION_POLLARM, or _NOTIFY_ACTION_TRANARM, as described above.
flags
One of the following:
_NOTIFY_COND_INPUT
this condition is met when there are one or more units of input data available (i.e. clients can now issue reads).
_NOTIFY_COND_OUTPUT
this condition is met when there's room in the output buffer for one or more units of data (i.e. clients can now issue writes).
_NOTIFY_COND_OBAND
the condition is met when one or more units of out-of-band data are available.
event
A pointer to a struct sigevent that defines the event that the resource manager is to deliver once a condition is met.

The o member is a structure of type _io_notify_reply that contains the following members:

flags
Which of the conditions were triggered; see the flags for _io_notify, above.

Классификация:

ЗОСРВ «Нейтрино»

Тематические ссылки:

resmgr_io_funcs_t, struct sigevent, iofunc_notify()




Предыдущий раздел: Описание API системной библиотеки