irq_create_affinity_masks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… irq_create_affinity_masks(9)

okay so bestie, welcome to the Kernel API Manual ✨ this one's a little function from the kernel's irq world and honestly? she's a baddie whose whole job is spreading things out so nothing gets too crowded. let's get into it 🫢


🌸 NAME 🌸

irq_create_affinity_masks β€” Create affinity masks for multiqueue spreading πŸ’…

like literally the name says it all: affinity masks, made by her, for multiqueue spreading. main character energy fr.


✨ SYNOPSIS ✨

struct irq_affinity_desc * irq_create_affinity_masks (unsigned int nvecs
, struct irq_affinity *affd );

she takes two things and hands you back a struct irq_affinity_desc * (or doesn't πŸ‘€ more on that below).


πŸŽ€ ARGUMENTS πŸŽ€

  • nvecs β€” The total number of vectors πŸ”’ like, the whole count, the full squad, the entire lineup.
  • affd β€” Description of the affinity requirements πŸ¦‹ this is where you spell out exactly what kind of affinity situation you're in, and she'll respect it.

πŸ’– DESCRIPTION πŸ’–

Returns the irq_affinity_desc pointer β€” or NULL if allocation failed 😭 that's it, that's the whole description, no cap. if it can't allocate, you get NULL and that's your vibe check failing. periodt.

ngl, if you see NULL come back, that's the allocation-failed scenario. don't ignore her πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./kernel/irq/affinity.c β€” literally where she lives, go read the source bestie iykyk πŸ“‚
  • irq_calc_affinity_vectors(9) β€” her bestie, the vector-calculating one 🀝

πŸ’€ reminder that irq_calc_affinity_vectors(9) and the file ./kernel/irq/affinity.c are the actual documented references here β€” go be nosy, it's giving research 🧚

and that's the whole page, bestie! πŸŽ€ this was the Kernel API Manual entry for irq_create_affinity_masks(9), coming at you from ./kernel/irq, dated October 2026 β€” slay, go forth and spread those queues evenly πŸ’œβœ¨

πŸ“¦ where this page comes from