proc_thermal...ntr_callback(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… proc_thermal_power_floor_intr_callback(9)

okay so this is a page from the Kernel API Manual, and bestie, it's a short one β€” but it's kind of a big deal if you're into thermal stuff. it's called proc_thermal_power_floor_intr_callback, and yes the header up top is truncated as proc_thermal...ntr_callback(9) because apparently even kernel docs need a little ✨mystery✨. anyway. let's get into it 🫢


🌸 NAME 🌸

proc_thermal_power_floor_intr_callback β€” process power floor notification. that's it, that's the whole vibe. it's the function that handles the power floor interrupt notification, and ngl the name is a whole mouthful so maybe just call it "the power floor callback" in your head πŸ’œ


✨ SYNOPSIS ✨

void proc_thermal_power_floor_intr_callback (struct pci_dev *pdev ,
       struct proc_thermal_device *proc_priv );

it returns void, so like... no return value, no drama, no receipts. it just does the thing and leaves πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev β€” the PCI device instance. like, which device are we even talking about, you know? that's this one, bestie πŸ’…
  • proc_priv β€” the Processor thermal device instance. the actual thermal-device business object, the main character of this whole operation πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's what it does, and honestly it's giving "quietly competent":

it checks if the power floor interrupt is active. and if it is active β€” this is the important part β€” it sends a notification to user space for the attribute "power_limits". so then the user can read that attribute and take action. periodt. that's the whole flow 🧚

like, the kernel isn't gonna make decisions for you, it's just gonna be like "hey bestie, go look at power_limits, something's up" and then it's your turn ✨


🌈 CONTEXT 🌈

called from interrupt thread context. so keep it quick and don't block, iykyk 😭


⭐ RETURN ⭐

None. literally nothing. void energy. it does its job and dips πŸ’€


πŸ’– SEE ALSO πŸ’–

  • Kernel file: ./drivers/thermal/intel/int340x_thermal/processor_thermal_power_floor.c β€” go read the source, it's right there πŸ“
  • proc_thermal_check_power_floor_intr(9) β€” the sibling function, go say hi πŸ‘‹

lowkey a reminder: this is the power floor callback, not the power ceiling one, so don't mix them up bestie πŸ™ˆ

and that's the page! πŸ’« it lives at ./drivers/thermal/intel/int340... (yes, truncated like the header, we love consistency), dated October 2026, and it's proc_thermal...ntr_callback(9) all the way down β€” slay, go read your kernel source, mwah πŸŽ€πŸ’œ

πŸ“¦ where this page comes from