STRUCT RNBD_MSG_OPEN_RSP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct rnbd_msg_open_rsp(9) πŸ’…

okay bestie, welcome to the Kernel API Manual page for struct rnbd_msg_open_rsp β€” it’s literally the response message to RNBD_MSG_OPEN, and it’s giving β€œkernel struct with main character energy” ✨.


✨ NAME ✨

struct rnbd_msg_open_rsp β€” response message to RNBD_MSG_OPEN

πŸŽ€ SYNOPSIS πŸŽ€

struct rnbd_msg_open_rsp {
    struct rnbd_msg_hdr     hdr;
    __le32 device_id;
    __le64 nsectors;
    __le32 max_hw_sectors;
    __le32 max_write_zeroes_sectors;
    __le32 max_discard_sectors;
    __le32 discard_granularity;
    __le32 discard_alignment;
    __le16 physical_block_size;
    __le16 logical_block_size;
    __le16 max_segments;
    __le16 secure_discard;
    u8 obsolete_rotational;
    u8 cache_policy;
 };

🌸 Members 🌸

  • hdr β€” the message header, obvi πŸ’Œ
  • device_id β€” device_id on the server side, used to identify the device πŸͺͺ
  • nsectors β€” number of sectors in the usual 512b unit πŸ”’
  • max_hw_sectors β€” max hardware sectors in the usual 512b unit πŸ› οΈ
  • max_write_zeroes_sectors β€” max sectors for WRITE ZEROES in the 512b unit ✍️
  • max_discard_sectors β€” max. sectors that can be discarded at once in 512b unit πŸ—‘οΈ
  • discard_granularity β€” size of the internal discard allocation unit in bytes πŸ“
  • discard_alignment β€” offset from internal allocation assignment in bytes πŸ“
  • physical_block_size β€” physical block size the device supports in bytes 🧱
  • logical_block_size β€” logical block size the device supports in bytes 🧠
  • max_segments β€” max segments the hardware supports in one transfer 🚚
  • secure_discard β€” supports secure discard πŸ”
  • obsolete_rotational β€” obsolete, not in used. πŸ’€
  • cache_policy β€” support write-back caching or FUA? πŸ€”

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/block/rnbd/rnbd-proto.h is the home base for this lore, and these are the linked pages you’re gonna wanna peek at:

  • 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_io(9)
  • enum rnbd_io_flags(9)

okay that’s the whole page, bestie! it’s filed under ./drivers/block/rnbd, dated October 2026, and the title is still struct rnbd_msg_open_rsp(9) β€” now go slay your kernel reading πŸ’–πŸ«Ά

πŸ“¦ where this page comes from