STRUCT MPT3_DIAG_QUERY(9)
π struct mpt3_diag_query(9) π
okay so bestie, welcome to the kernel API manual β this one is struct mpt3_diag_query, and its whole job is querying relevant info associated with diag buffers. that's the vibe. now let me introduce you to the whole friend group:
@hdrβ the generic header π@reservedβ (literally nothing else to say about it, it's reserved, leave it alone π)@buffer_typeβ specifies eitherTRACE,SNAPSHOT, orEXTENDEDβ¨@application_flagsβ misc flags@diagnostic_flagsβ specifies flags affecting command processing@product_specificβ product specific information@total_buffer_sizeβ diag buffer size in bytes@driver_added_buffer_sizeβ size of extra space appended to end of buffer@unique_idβ unique id associated with this buffer
β¨ SYNOPSIS β¨
struct mpt3_diag_query {
struct mpt3_ioctl_header hdr;
uint8_t reserved;
uint8_t buffer_type;
uint16_t application_flags;
uint32_t diagnostic_flags;
uint32_t product_specific[MPT3_PRODUCT_SPECIFIC_DWORDS];
uint32_t total_buffer_size;
uint32_t driver_added_buffer_size;
uint32_t unique_id;
};
π«Ά Members π«Ά
like, the members!! the cast!! see the roster up top in the NAME section, they're all there π
πΈ Description πΈ
so here's the tea, bestie β β the application will send only buffer_type and unique_id. that's it, that's the whole ask.
then the driver does its little investigation: it inspects unique_id first, and if that's valid, it fills in all the info. slay π
but if unique_id is 0x00? then the driver will return info specified by Buffer Type instead. iconic behaviour, no cap β¨
π SEE ALSO π
Kernel file ./drivers/scsi/mpt3sas/mpt3sas_ctl.h, plus the whole entourage:
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_release(9)struct mpt3_diag_read_buffer(9)struct mpt3_addnl_diag_query(9)struct mpt3_enable_diag_sbr_reload(9)struct mpt3_passthru_command(9)
π fr fr bestie, don't forget: unique_id gets checked before anything else. that's the main character of this struct, periodt.
okay that's the whole page!! mwah π«Ά this came from ./drivers/scsi/mpt3sas, dated October 2026, and it's filed under struct mpt3_diag_query(9) β go be iconic with it πβ¨π
π¦ 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