netif_attrmask_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie so this page is netif_attrmask_next(9), straight out of the Kernel API Manual (section 9, networking girlie territory), and it does exactly one iconic thing: it gets the next CPU/Rx queue in a cpu/Rx queues mask. that's it. that's the whole job. and it ate. πŸ’…


✨ SYNOPSIS ✨

unsigned int netif_attrmask_next (int n , const unsigned long *srcp ,
       unsigned int nr_bits );

🧚 ARGUMENTS 🧚

  • n β€” the CPU/Rx queue index you're starting from. your current spot, your little home base 🫢
  • srcp β€” pointer to the cpumask/Rx queue mask. the actual bitmask she's gonna look through, it's giving bouncer-at-the-club checking the list 🌈
  • nr_bits β€” how many bits are in that bitmask. the size of the whole vibe, fr fr.

πŸ”₯ RETURN πŸ”₯

she returns the next (after n) CPU/Rx queue index in the mask. and if there's literally nothing else set? she gives you something >= nr_bits β€” no cap, that's your signal that there are no further CPUs/Rx queues set. not a single one. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

okay so this list is long long, but it's all here because the kernel file ./include/linux/netdevice.h is a whole ecosystem and everyone's linked together. lowkey the netdev friend group:

like I said. the whole friend group. yw πŸ’œ


netif girlies stay winning β€” mask pointers are const unsigned long * and you should treat them with the respect they deserve πŸŽ€

anyway, that's the page! go forth and find your next set bit, bestie. πŸ¦‹βœ¨

sign-off szn: this one lives in ./include/linux and the vibe-check timestamp on it is October 2026 β€” mwah, periodt. πŸ‘‘πŸ’–

πŸ“¦ where this page comes from