iofunc_acl_default()

Updated: October 26, 2022

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: ACLs will be supported for a device if either the attr->mount pointer is NULL, or if the IOFUNC_PC_ACL bit is set in the conf member of the iofunc_mount_t pointed to by a non-NULL attr->mount pointer.

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

Returns:

EOK
Success.

Classification:

QNX Neutrino

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