Remove an object from the power manager namespace
#include <sys/pm.h>
int pm_unlink(const char *name);
libpm
The pm_unlink() removes the specified name from the power manager namespace.
- 0
- Success.
- -1
- An error has occurred (errno is set).
- 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.
Neutrino
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
pm_create()