Function - Set node-specific special port.
kern_return_t norma_set_special_port (host_priv_t host_priv, int which_port, mach_port_t special_port);
#include<mach/norma_special_ports.h> kern_return_t norma_set_device_port (host_priv_t host_priv, mach_port_t special_port); kern_return_t norma_set_host_port (host_priv_t host_priv, mach_port_t special_port); kern_return_t norma_set_host_priv_port (host_priv_t host_priv, int node, mach_port_t special_port); kern_return_t norma_set_nameserver_port (host_priv_t host_priv, mach_port_t special_port);
The norma_set_special_port function sets the special port belonging to node on host_priv.
Each node maintains a (small) set of node specific ports. The device master port, host name, and host control ports are maintained by the kernel. The kernel also permits a small set of server specified node specific ports; the name server port is an example and is given (by convention) an assigned special port index.
Only generic errors apply.
Functions: mach_host_self, norma_get_special_port.