STRUCT DWC_PCIE_EVENT_COUNTER(9)
π¦ 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 from0to7. 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
- Group 0:
fr fr note the vibes here: Group 4 only goes0-1(tiny, minimalist, she said less is more) while Group 7 goes all the way to25(main character energy, absolutely ate). and Group 1 doesn't even start at0, it starts at5. 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
- 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