STRUCT MPT3_DIAG_READ_BUFFER(9)
π NAME π
okay so bestie, welcome to the struct mpt3_diag_read_buffer page from the Kernel API Manual β¨ this little cutie is literally a request for copy of the diag buffer. The og NAME block is giving βgroup chat where everyone talks at once,β so hereβs the field-by-field breakdown, no cap:
struct mpt3_diag_read_bufferβ request for copy of the diag buffer@hdrβ generic header@statusβ the original doesnβt give an extra description here, bestie@reservedβ same vibe, no extra description in the original@flagsβ misc flags@starting_offsetβ starting offset within drivers buffer where to start reading data at into the specified application buffer@bytes_to_readβ number of bytes to copy from the drivers buffer into the application buffer starting atstarting_offset.@unique_idβ unique id associated with this buffer.@diagnostic_dataβ data payload
β¨ SYNOPSIS β¨
hereβs the struct in all its glory, copied exactly because we do not play with code around here π
struct mpt3_diag_read_buffer {
struct mpt3_ioctl_header hdr;
uint8_t status;
uint8_t reserved;
uint16_t flags;
uint32_t starting_offset;
uint32_t bytes_to_read;
uint32_t unique_id;
uint32_t diagnostic_data[1];
};
πΈ Members πΈ
the og page has a Members heading and then basically nothing β iconic, honestly. The members are the fields in the struct, and the descriptions are the same deets from NAME above. Hereβs the type lineup from the synopsis so you can match names to types:
struct mpt3_ioctl_header hdrβ generic headeruint8_t statusβ no extra description in the originaluint8_t reservedβ no extra description in the originaluint16_t flagsβ misc flagsuint32_t starting_offsetβ starting offset within drivers buffer where to start reading data at into the specified application bufferuint32_t bytes_to_readβ number of bytes to copy from the drivers buffer into the application buffer starting atstarting_offsetuint32_t unique_idβ unique id associated with this bufferuint32_t diagnostic_data[1]β data payload
π¦ SEE ALSO π¦
okay bestie, if you wanna fall down the rabbit hole, these are the related pages and the kernel file, all names exactly as the og page gives them:
- Kernel file
./drivers/scsi/mpt3sas/mpt3sas_ctl.h struct mpt3_ioctl_header(9)struct mpt3_ioctl_diag_reset(9)struct mpt3_ioctl_pci_info(9)struct mpt3_ioctl_iocinfo(9)struct mpt3_ioctl_eventquery(9)struct mpt3_ioctl_eventenable(9)struct MPT3_IOCTL_EVENTS(9)struct mpt3_ioctl_eventreport(9)struct mpt3_ioctl_command(9)struct mpt3_ioctl_btdh_mapping(9)struct mpt3_diag_register(9)struct mpt3_diag_unregister(9)struct mpt3_diag_query(9)struct mpt3_diag_release(9)struct mpt3_addnl_diag_query(9)struct mpt3_enable_diag_sbr_reload(9)struct mpt3_passthru_command(9)
mwah π β this cutie lives in the source/version ./drivers/scsi/mpt3sas, dated October 2026, and the page is struct mpt3_..._read_buffer(9). slay β¨
π¦ 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