pub fn sys_create_namespace(trapframe: &mut Trapframe) -> usizeExpand description
Create a new namespace for the current task (Scarlet-style smart syscall)
§Arguments
flags- Bitfield specifying which namespaces to create (NS_CREATE_*)name_ptr- Pointer to C string with namespace name (optional, can be null)
§Returns
0on successSYSCALL_ERROR(-1) on failure
§Example
// Create separate task and VFS namespaces
sys_create_namespace(NS_CREATE_TASK | NS_CREATE_VFS, "container1");