netif_attr_test_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netif_attr_test_mask β€” from the Kernel API Manual, bestie

Okay so welcome to netif_attr_test_mask(9), straight out of the Kernel API Manual. It's the little helper function that answers one very specific question for you: is this CPU or Rx queue actually in the mask? And honestly? It ate. ✨


🌸 NAME 🌸

netif_attr_test_mask β€” test a CPU or Rx queue set in a mask πŸŽ€

Like, think of it as the vibe check for your bitmask: is index j in there or not?


πŸ¦‹ SYNOPSIS πŸ¦‹

bool netif_attr_test_mask (unsigned long j , const unsigned long *mask ,
       unsigned int nr_bits );

No cap, that's the whole signature. bool in, bool out, very demure, very mindful. πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

Okay bestie, here's who's invited to the function:

  • j β€” the CPU/Rx queue index πŸ‘‘ this is the one we're checking for, the main character of the operation
  • mask β€” bitmask of all cpus/rx queues 🌈 the whole guest list
  • nr_bits β€” number of bits in the bitmask ⭐ so we know how big the guest list actually is

✨ DESCRIPTION ✨

So here's the tea: this function tests whether a CPU or Rx queue index is actually set in a mask of all CPU/Rx queues. That's it. That's the whole job. 🫢

One index, one mask, one answer. It's giving "simple, iconic, does exactly what it says on the tin." πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

Right, so this part is a lot, and I mean a lot a lot β€” like the entire netdevice extended-universe cast list. Every single one of these is here, no skipping, we don't do that πŸ™ˆ


iykyk, netif_attr_test_online(9) is literally right above in that list and they're besties, so go read that one next if you're in a mask-testing mood 🧚

πŸ’œ the cute sign-off πŸ’œ

This page lives under ./include/linux, dated October 2026, and it's brought to you by the netif_attr_test_mask(9) girlies πŸ’…βœ¨ Go test a mask, bestie, you got this, periodt. πŸ“

πŸ“¦ where this page comes from