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 );
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().
|In order to successfully use the rsrcdbmgr_*() functions to modify the resource database, your process must run as root.|
See the examples in rsrcdbmgr_attach().