STRUCT RNBD_MSG_OPEN_RSP(9)
π 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_idon the server side, used to identify the device πͺͺnsectorsβ number of sectors in the usual512bunit π’max_hw_sectorsβ max hardware sectors in the usual512bunit π οΈmax_write_zeroes_sectorsβ max sectors forWRITE ZEROESin the512bunit βοΈmax_discard_sectorsβ max. sectors that can be discarded at once in512bunit ποΈ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
- 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