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/r/resmgr_ocb.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/r/resmgr_ocb.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/r/resmgr_ocb.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/r/resmgr_ocb.html on line 8
Retrieve an Open Control Block
#include <sys/resmgr.h>
void * resmgr_ocb( resmgr_context_t * ctp);
- ctp
- A pointer to a
resmgr_context_t
structure that the resource-manager library uses to pass context information
between functions.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The resmgr_ocb() function queries the internal resource manager database,
which maps client connections to the server Open Control Block (OCB),
to retrieve the
OCB pointer that was previously bound using
resmgr_open_bind().
A pointer to the OCB for the matching binding, or NULL if the
binding can't be found or
an error occurred.
The OCB can be a structure that you define.
By default, it's of type
iofunc_ocb_t.
- ESRCH
- The connection can't be located in the resource manager table.
- ENOMEM
- There isn't enough memory available for the operation.
- EINVAL
- Invalid arguments were used.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
iofunc_ocb_t,
_msg_info,
MsgInfo(),
resmgr_iofuncs(),
resmgr_open_bind(),
resmgr_unbind()
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/r/resmgr_ocb.html on line 148
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/r/resmgr_ocb.html on line 148