get_gnr_mdev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 literally 0 through max present MC# - 1. ✨
  • physical_idx β€” to store the corresponding physical index of logical_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 πŸ¦‹


mwah πŸ’‹ this page is from source/version ./drivers/edac, October 2026 β€” bye bestie, go get that PCI device 🫢

πŸ“¦ where this page comes from