iofunc_fdinfo()

Обработать сообщение _IO_FDINFO

Прототип:

#include <sys/iofunc.h>
int iofunc_fdinfo( resmgr_context_t *ctp,
iofunc_ocb_t *ocb,
iofunc_attr_t *attr,
struct _fdinfo *info );

Аргументы:

ctp
A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
ocb
A pointer to the iofunc_ocb_t structure for the Open Control Block that was created when the client opened the resource.
attr
NULL, or a pointer to the iofunc_attr_t structure that describes the characteristics of the device that's associated with your resource manager.
info
A pointer to a struct _fdinfo that the function fills with the information. This structure is defined in <sys/iomgr.h>. The struct _fdinfo is included in the reply part of a io_fdinfo_t structure.

Библиотека:

libc

Описание:

The iofunc_fdinfo() helper function provides the implementation for the client's iofdinfo() call, which is received as an _IO_FDINFO message by the resource manager.

The iofunc_fdinfo() function transfers the appropriate fields from the ocb and attr structures to the info structure. If attr is NULL, then the attr information comes from the structure pointed to by ocb->attr.

Возвращаемое значение:

EOK
Успешное завершение.

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

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

Точка остановки потока
Нет
Обработчик прерываний
Нет
Обработчик сигналов
Да
В потоке
Да

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

struct _fdinfo, iofdinfo(), iofunc_attr_t, iofunc_fdinfo_default(), iofunc_ocb_t, resmgr_context_t, resmgr_pathname()




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