#include <ipc/chIpc.h>int grpPortInsert(KnCap * groupcap, KnUniqueId * portui);
grpPortInsert inserts the port, the name of which is given by portui into the port group, the capability of which is pointed to by groupcap.
grpPortRemove removes the port, the name of which is given by portui from the port group, the capability of which is pointed to by groupcap.
Upon successful completion a value of 0 is returned. Otherwise, a negative error code is returned. grpPortInsert returns 0 if the port was already in the port group.
groupcap is an invalid port group capability, or there was an attempt to remove a port from a port group to which it did not belong.
portui is an invalid port name.
Some of the provided data are outside the current actor's address space.
The system is out of resources.
The current thread is neither a supervisor thread nor a thread of a system actor, and attempts to insert a port or remove a port in a system static group.
The port and the current actor must be located on the same site.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|