iofunc_mount_fini()

Updated: April 19, 2023

Clean up the IOFUNC_MOUNT_T structure

Synopsis:

#include <sys/iofunc.h>

int iofunc_mount_fini( IOFUNC_MOUNT_T * const mountp );

Arguments:

mountp
A pointer to the mount structure (typically a iofunc_mount_t structure) to clean up.

Library:

libc

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

Description:

The iofunc_mount_fini() function undoes the actions of iofunc_mount_init() and related functions (for example, iofunc_mount_set time()).

To avoid memory or other resource leaks, call this function if you call iofunc_mount_init().

This function does not release the memory used for the IOFUNC_MOUNT_T structure itself.

Returns:

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

Errors:

EINVAL
The provided buffer is not an IOFUNC_MOUNT_T structure initialized with iofunc_mount_init().

Classification:

QNX Neutrino

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