get_gnr_mdev(9)
π NAME π
okay so bestie, welcome to the get_gnr_mdev(9) page in the Kernel API Manual π
this is literally the manual for get_gnr_mdev β Get the PCI device of the @logical_idx-th DDR memory controller. no cap, that's the whole name vibe. π¦
β¨ SYNOPSIS β¨
struct pci_dev * get_gnr_mdev (struct skx_dev *d , int logical_idx , int *physical_idx );
πΈ ARGUMENTS πΈ
dβ the pointer to the structure of CPU socket EDAC device. like, the CPU socket EDAC device struct pointer, periodt. πlogical_idxβ the logical index of the present memory controller (0 ~ max present MC# - 1). so it's the logical index of a present MC, and the range is literally0throughmax present MC# - 1. β¨physical_idxβ to store the corresponding physical index oflogical_idx. this is your spot to store the matching physical index, bestie. π
π₯ RETURN π₯
The PCI device of the logical_idx-th DDR memory controller, and NULL on failure. so if it works you get the PCI device; if it fails you get NULL β that's the whole return tea. π
π¦ SEE ALSO π¦
- Kernel file
./drivers/edac/i10nm_base.c i10nm_get_imc_num(9)get_ddr_munit(9)i10nm_imc_absent(9)
mwah π this page is from source/version ./drivers/edac, October 2026 β bye bestie, go get that PCI device π«Ά
π¦ 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