Структура, характеризующая сообщения менеджера ресурсов типа _IO_FDINFO
#include <sys/iofunc.h>struct _io_fdinfo {uint16_t type;uint16_t combine_len;uint32_t flags;int32_t path_len;uint32_t reserved;};struct _io_fdinfo_reply {uint32_t zero[2];struct _fdinfo info;/* char path[path_len + 1]; */};typedef union {struct _io_fdinfo i;struct _io_fdinfo_reply o;} io_fdinfo_t;
Данная структура ассоциирована с сообщениями менеджера ресурсов типа _IO_FDINFO
. Поле i определяет входящие данные (поступающие в менеджер ресурсов), поле o исходящие (отправляемые обратно клиенту).
The i member is a structure of type _io_fdinfo
that contains the following members:
_IO_FDINFO
. _IO_COMBINE_FLAG
is set in this member. _FDINFO_FLAG_LOCALPATH
to return only the local path info (i.e. exclude the network path info). The o member is a structure of type _io_fdinfo_reply
that contains the following members:
<sys/iomgr.h>
. The commented-out declaration for path indicates that path_len + 1
bytes of data immediately follow the _io_fdinfo_reply
structure.
ЗОСРВ «Нейтрино»
struct _fdinfo, resmgr_io_funcs_t, iofunc_fdinfo_default(), iofunc_fdinfo()
Предыдущий раздел: Описание API системной библиотеки