rusty_mos::kernel::syscall_impl

Function sys_env_destroy

Source
fn sys_env_destroy(envid: u32) -> u32
Expand description

SYSNO: 4, destory a specified env with the id of envid.

Only the current env or the child of the current env can be destoried.

ยงFailure

This syscall will return a negated-KError returned by envid2env.