get_ddr_munit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_ddr_munit(9) β€” like, the whole vibe

okay so bestie, welcome to the Kernel API Manual ✨ this one's about get_ddr_munit, and honestly? it's a little sleeper hit. no cap.


🌸 NAME

get_ddr_munit β€” grab the resource of the i-th DDR memory controller. that's it. that's the whole job. she's focused, she's iconic πŸŽ€


πŸ¦‹ SYNOPSIS

struct pci_dev * get_ddr_munit (struct skx_dev *d , int i , u32 *offset
, unsigned long *size );

literally just look at her go πŸ’«


πŸ’– ARGUMENTS

  • d β€” the pointer to the structure of the CPU socket EDAC device. like, the whole socket's main character energy πŸ‘‘
  • i β€” the index of the CPU socket–relative DDR memory controller. which one are we talking about? this one. numbering starts from the socket, iykyk.
  • offset β€” where you store the MMIO offset of the i-th DDR memory controller. that's her little output slot 🫢
  • size β€” where you store the MMIO size of the i-th DDR memory controller. also an output, also important, don't forget her πŸ’œ

πŸ”₯ RETURN

the PCI device of the i-th DDR memory controller on success. and if it goes wrong? NULL on failure 😭 no device, no drama, just NULL. check it, bestie.


🌈 SEE ALSO

go read those next, fr fr πŸ“šβœ¨


πŸ’€ friendly reminder: offset and size are outputs β€” you're writing into them, not reading. don't get it twisted πŸ™ˆ

okay that's the whole page, you ate that πŸ“ so anyway this lil baby lives over in ./drivers/edac and the manual's dated October 2026 β€” mwah, periodt πŸ’…πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from