pub fn sys_socket_send_handle_and_data(trapframe: &mut Trapframe) -> usizeExpand description
sys_socket_send_handle_and_data - Send a kernel object handle and data atomically
Sends a kernel object handle through a connected socket, along with data. This ensures both the handle and data are available before waking the peer, preventing race conditions in protocols like Wayland.
Arguments:
- socket_handle: Handle to the connected socket
- object_handle: Handle to the kernel object to send
- data_ptr: Pointer to the data buffer
- data_len: Length of the data buffer
Returns:
- 0 on success
- usize::MAX on error