STRUCT LEAPRAID_IOCTL_PCI_INFO(9)
πΈ NAME πΈ
struct leapraid_ioctl_pci_info β PCI device information, bestie. that's it, that's the whole vibe: it's the struct that tells you all about a PCI device π
β¨ SYNOPSIS β¨
okay so here's the whole shape of it, no cap, copy it exactly:
struct leapraid_ioctl_pci_info {
union {
struct {
u32 dev:5;
u32 func:3;
u32 bus:24;
} bits;
u32 word;
} u;
u32 seg_id;
};
likeβ¦ look at her. bitfields. a union. a nested struct. she's iconic fr fr π
π Members π
uβ the union that holds all the PCI bus/device/function tea β it's the container, the moment, the main character.u.bits.devβ the PCI device number, literally.u.bits.funcβ the PCI function number. yes queen, give us that 3-bit field πu.bits.busβ the PCI bus number, 24 bits of it.u.wordβ the combined representation of PCI BDF (bus/device/function) as one singleu32. so you can peek at the bits or grab the whole word, whichever your heart desires π«Ά
seg_idβ the PCI segment identifier. don't forget her, she matters too π
ngl the union meansu.bitsandu.wordare the same memory β it's giving "two ways to look at the same lil guy" energy β¨
π SEE ALSO π
go read these next, i'm obsessed:
- Kernel file
./drivers/scsi/leapraid/leapraid_app.c struct leapraid_ioctl_header(9)struct leapraid_ioctl_diag_reset(9)struct leapraid_ioctl_adapter_info(9)struct leapraid_ioctl_command(9)
okay that's the whole page, you ate that π this was the Kernel API Manual entry for struct leapr...ctl_pci_info(9), coming at you from ./drivers/scsi/leapraid, dated October 2026 β mwah, go slay your PCI stuff bestie πππ
π¦ 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