MGMT_MakeFunctionVirtualFile

Defines a virtual file that uses functions to satisfy read and write operations for the default datastream.

Service:VFS

Syntax

#include <nssPubs.h>

STATUS MGMT_MakeFunctionVirtualFile (
   Key_t    key,
   utf8_t  *readRoutine,
   utf8_t  *readParm,
   utf8_t  *writeRoutine,
   utf8_t  *writeParm,
   BOOL     withCookie);

Parameters

key

Specifies the key returned from zCreate or zOpen in File System Services (64-Bit).

readRoutine

Points to the NULL-terminated name of the public symbol for the read function.

readParm

Points to the string that is passed as the parm parameter to the read function.

writeRoutine

Points to the NULL-terminated name of the public symbol for the write function.

writeParm

Points to the string that is passed as the parm parameter to the write function.

withCookie

Specifies if you want this function to be a cookie type read function. If set to TRUE, the virtual file system assumes that each read operation calls the read function and is never satisfied from the results buffer.

Return Values

The return status should either be zOK or a valid NSS error code.