Compare two node descriptor IDs
#include <sys/netmgr.h> #define ND_NODE_CMP(a,b) ...
libc
The ND_NODE_CMP() macro compares two node descriptors.
Any function that passes a node descriptor can use either the value 0 or the constant ND_LOCAL_NODE to refer to the local node.
#include <sys/neutrino.h>
uint32_t nd1, nd2;
if ( ND_NODE_CMP(nd1, nd2) == 0 ) {
/* Same node */
...
} else {
/* Different nodes */
...
}
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | Yes |
| Signal handler | Yes |
| Thread | Yes |