This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Unlink the node
#include <sys/pmm.h> int pmm_node_unlink(pmm_node_t *node);
libc
This call unlinks the node specified by node.
If the policy provides a unlink() function, it is called to determine whether the policy allows that node to be unlinked. If the unlink() function refuses to allow the unlink operation, this call returns an error code (typically EBUSY) that was returned by the unlink() function.
The default unlink() policy is to allow the unlink to occur.
If the unlink is allowed, this call returns 0:
If any of these nodes have no client references, they are deleted. Otherwise, they are deleted when the last client reference is removed.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |