[Previous] [Contents] [Next]

rsrcdbmgr_detach()

Return a system resource to the resource database

Synopsis:

#include <sys/rsrcdbmgr.h>
#include <sys/rsrcdbmsg.h>

int rsrcdbmgr_detach( rsrc_request_t *list,
                      int count );

Library:

libc

Description:

The rsrcdbmgr_detach() function returns count resources in list to the database of available system resources. You must return the resource with the same start, end, and flags (type) that was issued for the resource when it was allocated with rsrcdbmgr_attach().

Returns:

EOK
Success.
-1
An error occurred; errno is set.

Errors:

EINVAL
Invalid argument, or the resource is in use by a process, isn't found in the database, or can't be returned to the system.
ENOMEM
Insufficient memory to allocate internal data structures.

Examples:

See the examples in rsrcdbmgr_attach().

Classification:

QNX 6

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

See also:

rsrcdbmgr_attach(), rsrcdbmgr_destroy()


[Previous] [Contents] [Next]