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 ๐