netif_attr_test_mask(9)
π 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 operationmaskβ bitmask of all cpus/rx queues π the whole guest listnr_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 π
- Kernel file
./include/linux/netdevice.hstruct gro_node(9) napi_is_scheduled(9)napi_schedule(9)napi_schedule_irqoff(9)napi_complete_done(9)napi_synchronize(9)napi_if_scheduled_mark_missed(9)enum netdev_priv_flags(9)struct net_device(9)netdev_priv(9)netdev_from_priv(9)netif_napi_add(9)netif_napi_add_config(9)netif_napi_add_tx(9)__netif_napi_del(9)netif_napi_del(9)netif_start_queue(9)netif_wake_queue(9)netif_stop_queue(9)netif_queue_stopped(9)netdev_queue_set_dql_min_limit(9)netdev_txq_bql_enqueue_prefetchw(9)netdev_txq_bql_complete_prefetchw(9)netdev_tx_sent_queue(9)netdev_sent_queue(9)netdev_tx_completed_queue(9)netdev_completed_queue(9)netdev_tx_reset_subqueue(9)netdev_reset_queue(9)netdev_cap_txqueue(9)netif_running(9)netif_start_subqueue(9)netif_stop_subqueue(9)__netif_subqueue_stopped(9)netif_subqueue_stopped(9)netif_wake_subqueue(9)netif_attr_test_online(9)netif_attrmask_next(9)netif_attrmask_next_and(9)netif_is_multiqueue(9)dev_hold(9)dev_put(9)linkwatch_sync_dev(9)netif_carrier_ok(9)netif_dormant_on(9)netif_dormant_off(9)netif_dormant(9)netif_testing_on(9)netif_testing_off(9)netif_testing(9)netif_oper_up(9)netif_device_present(9)netif_tx_lock(9)__dev_uc_sync(9)__dev_uc_unsync(9)__dev_mc_sync(9)__dev_mc_unsync(9)
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
- 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