free_irq_cpu_rmap(9)
π free_irq_cpu_rmap(9) β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual and it's literally about tidying up after yourself, which honestly? growth. β¨
πΈ NAME πΈ
free_irq_cpu_rmap β free a CPU affinity reverse-map used for IRQs
no cap, that's the whole vibe: you built a reverse-map so your IRQs know which CPUs are their faves, and now you're done, so you give it back. π«Ά
β¨ SYNOPSIS β¨
void free_irq_cpu_rmap (struct cpu_rmap *rmap );
that's it. one function, one pointer, zero drama. π
π¦ ARGUMENTS π¦
rmapβ the reverse-map you got fromalloc_irq_cpu_map, orNULL. yep,NULLis allowed, so you don't have to do a lilifdance before calling her. π
π DESCRIPTION π
so here's the tea β: this frees the reverse-map. that's the main character move.
but β and this is the important bit, bestie, don't skip it β it must be called in process context, and it must happen before freeing the IRQs. that's the rule. not me being dramatic, that's literally the requirement. π
π¨ rewind that: process context. before you free the IRQs. get the order wrong and that's a vibe check you do NOT want to fail.
π SEE ALSO π
the whole friend group, in the order they showed up:
- Kernel file
./lib/cpu_rmap.c alloc_cpu_rmap(9)cpu_rmap_release(9)cpu_rmap_get(9)cpu_rmap_put(9)cpu_rmap_add(9)cpu_rmap_update(9)irq_cpu_rmap_notify(9)irq_cpu_rmap_release(9)irq_cpu_rmap_remove(9)irq_cpu_rmap_add(9)
okay that's the page!! π§ββοΈ this lil legend lives in ./lib and it's dated October 2026, and the manual fairy stamped free_irq_cpu_rmap(9) right there on the bottom line so you always know who you're talking to. go free that rmap, queen ππ
π¦ 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