acadia/sys/denali/lib/denali/denali.yunq
Drew Galbraith 41bf78cf98 [Denali] Update the read many request to take a sector count as well.
This greatly reduces the size of the message (we had surpassed the 1
page - 4KiB message limit with the previous method).
2023-11-22 12:17:58 -08:00

25 lines
428 B
Text

interface Denali {
method Read(ReadRequest) -> (ReadResponse);
method ReadMany(ReadManyRequest) -> (ReadResponse);
}
message ReadRequest {
u64 device_id;
u64 lba;
u64 size;
}
message ReadManyRequest {
u64 device_id;
// FIXME: Add repeated message fields.
// Must be the same length.
repeated u64 lba;
repeated u64 sector_cnt;
}
message ReadResponse {
u64 device_id;
u64 size;
capability memory;
}