STRUCT RNBD_MSG_IO(9)
π struct rnbd_msg_io(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for struct rnbd_msg_io, and it's literally the message for I/O read/write. no cap. it's giving "tiny struct, big job" and honestly? iconic. π
β¨ NAME β¨
struct rnbd_msg_io β the message for I/O read/write π«Ά like that's it, that's the whole vibe, it's the lil packet that carries your read/write asks across the wire.
πΈ SYNOPSIS πΈ
here's the whole glow-up, laid out exactly as the kernel gods wrote it:
struct rnbd_msg_io {
struct rnbd_msg_hdr hdr;
__le32 device_id;
__le64 sector;
__le32 rw;
__le32 bi_size;
__le16 prio;
};
look at her. six fields. perfectly accessorized. π
π¦ Members π¦
okay let's meet the cast, member by member, no skips:
hdrβ the message header π every message's gotta have one, it's the little name tag at the party.device_idβ thedevice_idon the server side, used to find the right device π like a "you are here" map but for block devices.sectorβ thebi_sectorattribute fromstruct bioπ so we know where in the device we're poking.rwβ the read/write situation; valid values are defined inenum rnbd_io_flagsπ₯ (iykyk).bi_sizeβ the number of bytes for the I/O read/write π like, how much data are we actually moving here.prioβ priority β that's it, that's the description, she's a__le16and she's prioritized.
π SEE ALSO π
go read these next, bestie, they're all in the kernel file ./drivers/block/rnbd/rnbd-proto.h π:
enum rnbd_msg_type(9)struct rnbd_msg_hdr(9)struct rnbd_msg_sess_info(9)struct rnbd_msg_sess_info_rsp(9)struct rnbd_msg_open(9)struct rnbd_msg_close(9)struct rnbd_msg_open_rsp(9)enum rnbd_io_flags(9)
π reminder that this whole crew lives in ./drivers/block/rnbd and they're a package deal β don't read one without at least peeking at the header file. fr fr.
and that's the page!! tysm for coming to my ted talk π§π this one's served fresh from ./drivers/block/rnbd, dated October 2026, and she's filed under struct rnbd_msg_io(9) β slay, bye! ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms