STRUCT MPI3MR_BUF_ENTRY(9)
π struct mpi3mr_buf_entry(9) β a Kernel API Manual moment
okay bestie, so this is a page from the Kernel API Manual and it's about struct mpi3mr_buf_entry β literally the tiny little descriptor that describes your userspace buffer when you're sending MPI Passthrough requests. it's giving "small struct, big responsibilities" and honestly? iconic. π
β¨ NAME β¨
struct mpi3mr_buf_entry β user buffer descriptor for MPI Passthrough requests. that's it, that's the whole job, and she does it slayfully. π
πΈ SYNOPSIS πΈ
here's the whole struct, laid out exactly as it lives, no cap:
struct mpi3mr_buf_entry {
__u8 buf_type;
__u8 rsvd1;
__u16 rsvd2;
__u32 buf_len;
};
look at her. four fields. zero drama. perfectly aligned (okay mostly aligned, the closing brace is doing its own thing and we respect it). β¨
π¦ Members π¦
buf_typeβ the buffer type π like, what kind of buffer are we even talking about here, y'know?rsvd1β reserved π nothing to see here, hands off, don't touch, it's not for you bestiersvd2β reserved π«Ά same energy, also off-limits, also not for youbuf_lenβ the buffer length π how long the thing is, so the kernel knows where the vibe ends
no but fr β those rsvd fields are reserved. you don't get to be creative with them. leave them exactly as they are, that's the whole assignment. π
π₯ SEE ALSO π₯
- the kernel file itself, right here:
./include/uapi/scsi/scsi_bsg_mpi3mr.hπ yes she's the source of truth, go read her struct mpi3_driver_info_layout(9)struct mpi3mr_bsg_in_adpinfo(9)struct mpi3mr_bsg_adp_reset(9)struct mpi3mr_change_count(9)struct mpi3mr_device_map_info(9)struct mpi3mr_all_tgt_info(9)struct mpi3mr_logdata_enable(9)struct mpi3mr_bsg_out_pel_enable(9)struct mpi3mr_logdata_entry(9)struct mpi3mr_bsg_in_log_data(9)struct mpi3mr_hdb_entry(9)struct mpi3mr_bsg_in_hdb_status(9)struct mpi3mr_bsg_out_repost_hdb(9)struct mpi3mr_bsg_out_upload_hdb(9)struct mpi3mr_bsg_out_refresh_hdb_triggers(9)struct mpi3mr_bsg_drv_cmd(9)struct mpi3mr_bsg_in_reply_buf(9)struct mpi3mr_buf_entry_list(9)struct mpi3mr_bsg_mptcmd(9)struct mpi3mr_bsg_packet(9)
like, the whole friend group is here π§ and yes they all ate. go say hi to each of them, they're all in ./include/uapi/scsi, same neighborhood, same vibe. π
okay that's the page!! π this beauty lives in ./include/uapi/scsi, dated October 2026, and that's the tea. mwah, go forth and describe your buffers correctly. π©·π
β¨
π¦ 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