Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_attr_init.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_attr_init.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_attr_init.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_attr_init.html on line 8

iofunc_attr_init()

Initialize the per-name attribute structure associated with a device

Synopsis:

#include <sys/iofunc.h>

void iofunc_attr_init ( iofunc_attr_t *attr,
                        mode_t mode,
                        iofunc_attr_t *dattr,
                        struct _client_info *info );

Arguments:

attr
A pointer to the iofunc_attr_t structure that you want to initialize.
mode
The type and access permissions that you want to use for the resource. For more information, see Access permissions in the documentation for stat().
dattr
NULL, or a pointer to a iofunc_attr_t structure that you want to use to initialize the structure pointed to by attr.
info
NULL, or a pointer to a _client_info structure that contains the information about a client connection. For information about this structure, see ConnectClientInfo().

Library:

libc

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

Description:

The iofunc_attr_init() function initializes the per-name attributes that a resource manager associates with a device.

This function initializes the iofunc_attr_t structure pointed to by attr with the information derived from the optional dattr, the mode, and the user and group IDs from the optional info client information structure.

The count, rcount, wcount, rlocks and wlocks counters are reset to zero.

Classification:

QNX Neutrino

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

See also:

iofunc_attr_lock(), iofunc_attr_t, iofunc_attr_unlock(), iofunc_ocb_attach(), iofunc_ocb_detach(), resmgr_attach()

Writing a Resource Manager

Resource Managers chapter of Getting Started with QNX Neutrino


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_attr_init.html on line 149

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/i/iofunc_attr_init.html on line 149