Skip to main content

Module ipc

Module ipc 

Source
Expand description

Typed helpers to build and parse the VFS scheme wire protocol.

Every function here delegates to the typed ABI layer (strat9_abi::ipc_payload) instead of hand-rolled payload offsets, so the wire contract has a single source of truth.

Constantsยง

EINVAL ๐Ÿ”’
Errno value returned for malformed requests (EINVAL).
HANDLE_FLAG_CONTROL ๐Ÿ”’
HANDLE_FLAG_DATAGRAM ๐Ÿ”’
HANDLE_FLAG_INFO ๐Ÿ”’
HANDLE_FLAG_STREAM ๐Ÿ”’

Functionsยง

message_file_id ๐Ÿ”’
open_path ๐Ÿ”’
Extract the path from an OPEN request, with any leading / trimmed.
read_request ๐Ÿ”’
Parse a READ request payload into (file_id, offset, requested_count).
reply_ok ๐Ÿ”’
reply_open ๐Ÿ”’
reply_read ๐Ÿ”’
reply_write ๐Ÿ”’
reply_write_data_len ๐Ÿ”’
write_data ๐Ÿ”’