Detach a major and minor number
#include <sys/rsrcdbmgr.h>
#include <sys/rsrcdbmsg.h>
int rsrcdbmgr_devno_detach( dev_t devno,
int flags );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The rsrcdbmgr_devno_detach() function detaches a device number that was attached with rsrcdbmgr_devno_attach(). The process that's detaching the device number must be the process that attached it.
If you don't detach a device, it's released when the process that attached it terminates.
#include <sys/rsrcdbmgr.h> #include <sys/rsrcdbmsg.h> dev_t dev_num; int flags=0; … rsrcdbmgr_devno_detach( dev_num, flags );
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |