STRUCT LEAPRAID_IOCTL_PCI_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 single u32. 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 means u.bits and u.word are 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