Skip to content

CreateSpace

Creates an empty space.

Number Selector Blocking Since
0x04 SVC_CREATE OBJECT_SPACE (1) no 2.0
Handle CreateSpace(const char *name);

Registers: (name, len) -> r0 space handle or error

Fill it with MemInjectObj() / MemInjectBytes(), then add tasks with CreateTask(). Its maximum priority is the caller's.

Parameters

Name Direction Description
name in Name for diagnostics; truncated to 31 characters.

Returns

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

Errors

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