wq_node_nr_active(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ wq_node_nr_active(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this is the whole vibe for wq_node_nr_active, a little helper that tells you which wq_node_nr_active to use. lowkey iconic. no cap.


🌸 SYNOPSIS 🌸

struct wq_node_nr_active * wq_node_nr_active (struct workqueue_struct *wq , int node );

πŸŽ€ ARGUMENTS πŸŽ€

  • wq β€” the workqueue you're curious about, your main character struct
  • node β€” the NUMA node, and yes it can totally be NUMA_NO_NODE

πŸ’… DESCRIPTION πŸ’…

so we're determining the wq_node_nr_active to use for wq on node. the catch? wq must be unbound, periodt. not optional, not vibe-flexible.

  • when node is NUMA_NO_NODE, you get node_nr_active[nr_node_ids]
  • otherwise, bestie, it's node_nr_active[node] ✨

like, that's the whole thing. two paths, both slay.


πŸ¦‹ SEE ALSO πŸ¦‹

if you wanna fall down the workqueue rabbit hole (and honestly? obsessed), check the kernel file ./kernel/workqueue.c along with this whole extended universe:


okay that's the whole page, bestie 🫢 brought to you straight from the ./kernel directory, vintage October 2026, and it's giving kernel-core realness. go off, you got this πŸ’œπŸ¦‹

πŸ“¦ where this page comes from