[Previous] [Contents] [Next]

rsrcdbmgr_destroy()

Destroy a system resource

Synopsis:

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

int rsrcdbmgr_destroy( rsrc_alloc_t *item,
                       int count );

Library:

libc

Description:

The rsrcdbmgr_destroy() function removes count system resources that are defined in the array item.

Returns:

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

Errors:

EINVAL
Invalid argument, or the resource is in use.
ENOMEM
Insufficient memory to allocate internal data structures.

Examples:

See the example in rsrcdbmgr_create().

Classification:

QNX 6

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

See also:

rsrcdbmgr_attach(), rsrcdbmgr_create(), rsrcdbmgr_detach()


[Previous] [Contents] [Next]