iofunc_acl_default()

Default handler for the acl callout

Synopsis:

#include <sys/iofunc.h>

int iofunc_acl_default( 
        resmgr_context_t *ctp,
        io_acl_t *msg, 
        iofunc_ocb_t *ocb );

Arguments:

ctp
A pointer to a resmgr_context_t structure that the resource-manager library uses to pass context information between functions.
msg
A pointer to a io_acl_t structure that contains the message that the resource manager received; see the entry for iofunc_acl().
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_acl_default() function provides default handling of _IO_ACL (access control lists) messages.

You can place this function directly into the resmgr_io_funcs_t table passed as the io_funcs argument to resmgr_attach(), at the acl position, or you can call iofunc_func_init() to initialize all of the functions to their default values.

The iofunc_acl_default() function calls iofunc_acl_track() and iofunc_acl() to do the actual work.

Note: In order to support ACLs, the conf member of the resource manager's iofunc_mount_t structure needs to have the IOFUNC_PC_ACL bit set.

For more information about ACLs, see Working with Access Control Lists (ACLs) in the QNX Neutrino Programmer's Guide.

Returns:

EOK
Success.
EAGAIN
On the first use, all kernel mutex objects were in use.

Classification:

QNX Neutrino

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