Function sys_handle_duplicate
Source pub fn sys_handle_duplicate(trapframe: &mut Trapframe) -> usize
Expand description
Duplicate a handle (sys_handle_duplicate)
This system call creates a new handle that refers to the same kernel object
as the original handle.
§Arguments
- handle: The handle to duplicate
§Returns
- New handle number on success
- usize::MAX on error (invalid handle, handle table full)