Open System Services System Calls Reference Manual (G06.25+, H06.03+)

spt_regFileIOHandler(2) OSS System Calls Reference Manual
NAME
spt_regFileIOHandler - Registers the le number
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
spt_error_t spt_regFileIOHandler(
const short lenum,
const spt_FileIOHandler_p
functionPtr);
PARAMETERS
filenum Species the Guardian le number for the le being registered
functionPtr Species user-supplied callback. This function must not block its invoking
thread; for example, it should not call the spt_awaitio() function
DESCRIPTION
This function registers the le number as one that the user will manage through a user-supplied
callback. This callback is invoked immediately after each I/O on lenum completes.
RETURN VALUES
SPT_SUCCESS
THe Guardian le number was successfully registered.
SPT_ERROR The value specied for lenum was less than 0 (zero).
SPT_ERROR lenum was already registered prior to this call.
SPT_ERROR The FILE_COMPLETE_SET_ procedure addition of lenum returned a nonzero
value.
SPT_ERROR functionPtr is NULL.
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. Interfaces documented on this
reference page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header le spthread.h is an HP exception to the POSIX standard.
7130 Hewlett-Packard Company 527186-003