STRUCT MPT3_IOCTL_PCI_INFO(9)
π struct mpt3_ioctl_pci_info(9) β¨
okay so bestie, welcome to the Kernel API Manual π β this one's a struct, and honestly? she's cute, she's compact, she's giving "little bitfield that could" energy. Let's get into it π
πΈ NAME πΈ
struct mpt3_ioctl_pci_info β pci device info π¦
and like, here's what all the little members are about, no cap:
@deviceβ pci device id@functionβ pci function id@busβ pci bus id@segment_idβ pci segment id
β¨ SYNOPSIS β¨
okay here's the actual shape of her, verbatim, don't touch, she's perfect π
struct mpt3_ioctl_pci_info {
union {
struct {
uint32_t device:5;
uint32_t function:3;
uint32_t bus:24;
} bits;
uint32_t word;
} u;
uint32_t segment_id;
};
like β look at that union. the way she packs device:5, function:3 and bus:24 into a single word?? main character bitfield behaviour fr fr π the segment_id gets her own whole uint32_t because she's special π
π§ Members π§
literally the members section. that's it. that's the section. (the deets live up in NAME, bestie β go look π)
π₯ SEE ALSO π₯
the whole friend group π«Ά go say hi:
Kernel file ./drivers/scsi/mpt3sas/mpt3sas_ctl.hstruct mpt3_ioctl_header(9)struct mpt3_ioctl_diag_reset(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_diag_read_buffer(9)struct mpt3_addnl_diag_query(9)struct mpt3_enable_diag_sbr_reload(9)struct mpt3_passthru_command(9)
iykyk π
ngl there's no EXAMPLES, no RETURN VALUE, no WARNINGS here β she's a header struct, she doesn't need all that drama π don't come for me, that's just what the page says.
okay that's the whole thing, you ate that π this one lives in ./drivers/scsi/mpt3sas, dated October 2026, and the page itself is struct mpt3_ioctl_pci_info(9) β mwah, love u, bye ππ
π¦ 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