STRUCT DWC_PCIE_EVENT_COUNTER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct dwc_pcie_event_counter (9) β€” Kernel API Manual, bestie edition ✨

okay so this is the manual page for struct dwc_pcie_event_counter, from the Kernel API Manual, and it's genuinely so cute and small. it lives in ./drivers/pci/controller/dwc and we're gonna get through it together, no cap πŸ’…


✨ NAME ✨

struct dwc_pcie_event_counter β€” stores the deets about each event counter that's supported in DWC RAS DES. that's it, that's the whole job. she's a little info-holder and she's iconic for it πŸŽ€


🌸 SYNOPSIS 🌸

here's the whole struct, literally verbatim, don't come for me:

struct dwc_pcie_event_counter {
    const char *name;
    u32 group_no;
    u32 event_no;
 };

three fields. that's the whole girl. lowkey obsessed with how tidy this is 🫢


πŸ’– Members πŸ’–

okay now the actual members, one by one, and yes you need to know all of them:

  • name β€” the name of the error counter. like, what is this counter even called. her government name πŸ’€
  • group_no β€” the group number that the event belongs to. the value can range from 0 to 7. so eight groups, no more, no less, the range is the range bestie 🌈
  • event_no β€” the event number of that particular event. and here's where it gets spicy because the valid ranges are different for every group, so pay attention:
    • Group 0: 0 - 10
    • Group 1: 5 - 13
    • Group 2: 0 - 7
    • Group 3: 0 - 5
    • Group 4: 0 - 1
    • Group 5: 0 - 13
    • Group 6: 0 - 6
    • Group 7: 0 - 25
fr fr note the vibes here: Group 4 only goes 0 - 1 (tiny, minimalist, she said less is more) while Group 7 goes all the way to 25 (main character energy, absolutely ate). and Group 1 doesn't even start at 0, it starts at 5. so don't assume, check the group first, iykyk πŸ‘‘

🧚 SEE ALSO 🧚

go touch some related files and structs, bestie, they're all right here:

  • Kernel file ./drivers/pci/controller/dwc/pcie-designware-debugfs.c β€” the actual file, go read it πŸ¦‹
  • struct dwc_pcie_rasdes_info(9)
  • struct dwc_pcie_rasdes_priv(9)
  • struct dwc_pcie_err_inj(9)

all three are (9) sections so you know they're kernel-API coded πŸ’œ


that's the page!! short and sweet and honestly a slay 🌸 sign-off time: this one comes from ./drivers/pci/controller/dwc, dated October 2026, and it's struct dwc_...vent_counter(9) all the way down. mwah, go forth and count your events πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from