i10nm_get_imc_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– i10nm_get_imc_num(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ β€” this one's a little function from the kernel's EDAC corner and honestly? she's doing more than she looks like she's doing. let's get into it 🫢


🌸 NAME 🌸

i10nm_get_imc_num β€” get the number of present DDR memory controllers πŸ’…

✨ SYNOPSIS ✨

int i10nm_get_imc_num (struct res_config *cfg );

πŸŽ€ ARGUMENTS πŸŽ€

  • cfg β€” the pointer to the structure of EDAC resource configurations. that's it, that's the whole argument list, she travels light πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

ok so here's the tea, and it genuinely depends on which CPU you're running β˜•

  • For Granite Rapids CPUs: the number of present DDR memory controllers is read at runtime, and that runtime value overwrites the value statically configured in cfg->ddr_imc_num. so like, the static number gets gently pushed aside and the live one takes main character energy πŸ”₯
  • For other CPUs: the number of present DDR memory controllers is just the statically configured value in cfg->ddr_imc_num. no runtime reading, no drama, it is what it is πŸ’€

so basically: Granite Rapids gets the fresh dynamic count, everyone else keeps the one that was already written into the config. periodt 🌈

⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • < 0 on failure 😭

ngl, that's the entire return contract β€” no secret bonus values, no in-between, just success or a negative number telling you it went sideways.

πŸ¦‹ SEE ALSO πŸ¦‹

go read those too, they're the rest of the friend group πŸ’œ


and that's the whole page!! sign-off time: this cutie lives in ./drivers/edac, hails from October 2026, and answers to i10nm_get_imc_num(9) β€” mwah πŸ’‹πŸ§š

πŸ“¦ where this page comes from