parse_numbered_handles

Function parse_numbered_handles 

Source
pub fn parse_numbered_handles(
    locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    numbered_handles: Option<Vec<HandleInfo>>,
    files: &FdTable,
) -> Result<(), Error>
Expand description

Adds the given startup handles to a CurrentTask.

The numbered_handles of type HandleType::FileDescriptor are used to create files, and the handles are required to be of type zx::Socket.

If there is a numbered_handles of type HandleType::User0, that is interpreted as the server end of the ShellController protocol.