iofunc_ocb_free()

QNX SDP8.0C Library ReferenceAPIDeveloper

Deallocate an iofunc Open Control Block's memory

Synopsis:

#include <sys/iofunc.h>

void iofunc_ocb_free( iofunc_ocb_t * ocb );

Arguments:

ocb
A pointer to the iofunc_ocb_t structure for the Open Control Block that was created when the client opened the resource.

Library:

libc

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

Description:

The iofunc_ocb_free() function returns the memory allocated to an iofunc OCB to the free store pool. This function is the complement of iofunc_ocb_calloc().

If you've overridden iofunc_ocb_calloc() and there are resources allocated to your OCB that free(ocb) does not release, then you should also override iofunc_ocb_free().

Note:
You should fill in the attribute's mount structure (i.e., the attr->mount pointer) instead of replacing this function.

If you specify iofunc_ocb_free() and iofunc_ocb_calloc() callouts in the attribute's mount structure, then you should use the callouts instead of calling the standard iofunc_ocb_free() and iofunc_ocb_calloc() functions.

Examples:

See iofunc_ocb_calloc().

Classification:

QNX OS

Safety:
Cancellation pointNo
Signal handlerYes
ThreadYes
Page updated: