iofunc_mount_init()

Updated: April 19, 2023

Initialize the IOFUNC_MOUNT_T structure

Synopsis:

#include <sys/iofunc.h>

int iofunc_mount_init ( IOFUNC_MOUNT_T * mountp,
                        const size_t size );

Arguments:

mountp
A pointer to the mount structure (typically a iofunc_mount_t structure) that you want to initialize.
size
The size of the mount structure, in bytes.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The iofunc_mount_init() function initializes the IOFUNC_MOUNT_T structure to a default state. For more information about the structure, see iofunc_mount_t.

Because this function sets both the flags and conf fields, when you add it, ensure that any existing or additional code does not unintentionally overwrite the contents of these fields.

Returns:

0, or -1 if an error occurred (errno is set).

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes