Return a system resource to the resource database
#include <sys/rsrcdbmgr.h> #include <sys/rsrcdbmsg.h> int rsrcdbmgr_detach( rsrc_request_t *list, int count );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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 were issued for the resource when it was allocated with rsrcdbmgr_attach().
See the examples in rsrcdbmgr_attach().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
rsrcdbmgr_attach(), rsrcdbmgr_destroy()