fn sys_lock(id: u32) -> u32Expand description
SYSNO: 20, lock a specified memory pool.
Only the env which has been bind to the pool can lock it.
§Return
Ok(bool) means everything goes smooth.
Ok(true)orOk(1)means this pool is successfully locked.Ok(false)orOk(0)means this pool has been locked.
§Failure
This syscall will return a negated-KError if the pool does not exist or the current env cannot lock it.
See Also: MemoryPool::lock