STRUCT XILINX_CPM_VARIANT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct xilinx_cpm_variant β€” CPM variant information πŸ’–

okay so bestie, this is a page from the Kernel API Manual (section 9, the fun one) and it's all about struct xilinx_cpm_variant. it's giving "small struct, big responsibilities" and honestly? we stan. 🌸


✨ SYNOPSIS ✨

struct xilinx_cpm_variant {
    enum xilinx_cpm_version version;
    u32 ir_status;
    u32 ir_enable;
    u32 ir_misc_value;
 };

like, that's it. four fields. no cap. tiny little icon but she's doing the most for the Xilinx CPM PCIe controller. πŸŽ€


πŸ¦‹ Members πŸ¦‹

  • version β€” the CPM version, literally. it's an enum xilinx_cpm_version, so it knows what flavour of CPM it's dealing with πŸ‘‘
  • ir_status β€” the offset for the error interrupt status register. it's a u32, it's a register offset, it's that girl. πŸ”₯
  • ir_enable β€” the offset for the CPM5 local error interrupt enable register. yes specifically CPM5, yes specifically the local error interrupt enable one, don't get it twisted bestie πŸ’…
  • ir_misc_value β€” a bitmask for the miscellaneous interrupt status. bitmask!! we love a bitmask 🫢

🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/pci/controller/pcie-xilinx-cpm.c β€” that's the main character energy right there, go read it.

and the whole squad, in no particular order (okay fine, this order):

fr fr, if you're touching this struct you're gonna want all of those. it's a whole ecosystem πŸ’œ


ngl there are no options, no exit statuses, and literally zero signals on this page β€” it's a struct page, so the only vibe check here is "did you set your fields right". keep every offset exact or it will absolutely not slay. 😭

mwah, that's the whole page πŸŽ€ β€” brought to you by ./drivers/pci/controller, dated October 2026, and signed off with a cheeky little struct xilinx_cpm_variant(9) in the corner. go be iconic with your PCIe controller, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from