rsrcdbmgr_devno_detach()

Detach a major and minor number

Synopsis:

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

int rsrcdbmgr_devno_detach( dev_t devno,
                            int flags );

Arguments:

devno
A dev_t object that was returned by rsrcdbmgr_devno_attach().
flags
Presently, there are no flags; pass zero for this argument.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The function rsrcdbmgr_devno_detach() detaches device number that was attached with rsrcdbmgr_devno_attach().

Returns:

EOK
Success.
-1
An error occurred.

Examples:

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

dev_t   dev_num;
int     flags=0;

…

rsrcdbmgr_devno_detach( dev_num, flags );

Classification:

QNX Neutrino

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

See also:

rsrcdbmgr_attach(), rsrcdbmgr_devno_attach()