STRUCT RNBD_MSG_IO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the device_id on the server side, used to find the right device πŸ” like a "you are here" map but for block devices.
  • sector β€” the bi_sector attribute from struct bio πŸ“ so we know where in the device we're poking.
  • rw β€” the read/write situation; valid values are defined in enum 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 __le16 and 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