pub fn sys_socket_send_handle(trapframe: &mut Trapframe) -> usizeExpand description
sys_socket_send_handle - Send a kernel object handle through a socket
Transfers a kernel object (like SharedMemoryObject) to another task through a connected socket, similar to Unix SCM_RIGHTS functionality. Uses dup() semantics - the handle is duplicated, not moved, so both sender and receiver will have independent references to the same object.
Arguments:
- socket_handle: Handle to the connected socket
- object_handle: Handle to the kernel object to send (remains valid after send)
Returns:
- 0 on success
- usize::MAX on error