get_ddr_munit(9)
π 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
- the kernel file
./drivers/edac/i10nm_base.c i10nm_get_imc_num(9)get_gnr_mdev(9)i10nm_imc_absent(9)
go read those next, fr fr πβ¨
π friendly reminder:offsetandsizeare 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
- 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