Skip to content

CreatePort

Creates a port: something callers Call() and a server receives on.

Number Selector Blocking Since
0x04 SVC_CREATE OBJECT_PORT (2) no 2.0
Handle CreatePort(void);

Registers: () -> r0 port handle or error

Returns

A port handle with all permissions, or a negative error code.

Errors

Error Condition
ERR_NOMEM Out of kernel memory, or the caller's handle table is full.