em_dev_update_perf_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is em_dev_update_perf_domain(9) from the Kernel API Manual, and it's literally the function that updates the runtime EM table for a device πŸ’… no cap.

✨ SYNOPSIS ✨

int em_dev_update_perf_domain (struct device *dev , struct em_perf_table
*new_table );

✨ ARGUMENTS ✨

  • dev β€” the device whose EM is getting updated πŸ› οΈ like, this is the main character of the operation.
  • new_table β€” the new EM table that's going to be used from now on, periodt ✨

✨ DESCRIPTION ✨

so the vibe is: this function updates the EM runtime modifiable table for the dev using the table you just handed it 🫢.

it uses a mutex to serialize writers, so it must NOT be called from a non-sleeping context β€” that's a hard no, bestie, do not try it 😭.

it returns 0 on success or an error code on failure. slay.

✨ SEE ALSO ✨

check out the kernel file ./kernel/power/energy_model.c and these iconic functions:


this page is brought to you by ./kernel/power, dated October 2026 β€” mwah πŸ’‹ go update those perf domains responsibly, bestie πŸŽ€

πŸ“¦ where this page comes from