mce_threshold_create_device(9)
π mce_threshold_create_device(9) π
okay so bestie, welcome to the Kernel API Manual entry for mce_threshold_create_device β yes that's a whole mouthful, no I will not be shortening it, it's iconic and we respect it. β¨
πΈ NAME πΈ
mce_threshold_create_device β literally creates the per-CPU MCE threshold device. that's the whole vibe. per-CPU. threshold. device. periodt. π
π¦ SYNOPSIS π¦
void mce_threshold_create_device (unsigned int cpu );
that's it, that's the signature. void, so it's not handing you anything back β it just does the thing and leaves. main character energy fr fr. π
π ARGUMENTS π
cpuβ the plugged in CPU. that's it, that's the one argument. it's the CPU that just got plugged in, and honestly? good for it. π«Ά
π§ DESCRIPTION π§
okay so what does this actually do: it creates directories and files for all valid threshold banks. all of them. every valid one. no half measures. π
now for the lore β this function gets invoked from the CPU hotplug callback which was installed in mcheck_init_device. iykyk. π₯
the invocation happens in context of the hotplug thread running on cpu. so like, that specific cpu's thread, not some random one. keep up bestie. π
and the callback itself is invoked on all CPUs which are online when the callback is installed, or during a real hotplug event. both scenarios, no cap. π
ngl this one's short but every word is doing its job. no filler, all slay. β
π SEE ALSO π
- Kernel file
./arch/x86/kernel/cpu/mce/amd.cβ go read it, it's giving source code realness. π¦
okay that's the whole page, you made it to the end, I'm so proud π₯Ήπ β this little masterpiece lives in ./arch/x86/kernel/cpu/mce, it's dated October 2026, and it's the mce_threshold_create_device(9) page. mwah. πβ¨π
π¦ 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