[Previous] [Contents] [Next]

Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

pm_unlink()

Remove an object from the power manager namespace

Synopsis:

#include <sys/pm.h>

int pm_unlink(const char *name);

Library:

libpm

Description:

The pm_unlink() removes the specified name from the power manager namespace.

Returns:

0
Success.
-1
An error has occurred (errno is set).

Errors:

ENOENT
There's no power manager running.
EINVAL
name begins with a "/" character.
ENOENT
A component of name doesn't exist.
ENOENT
name doesn't exist.
ENOTDIR
A component of name isn't a directory
EACCES
Search permission is denied in a component of name.
EACCES
Write permission is denied in the last directory component of name.
EBUSY
name is a non-empty directory.

Classification:

Neutrino

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

See also:

pm_create()


[Previous] [Contents] [Next]