i40e_check_mask(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i40e_check_mask(9) πŸ’…

okay so welcome to the Kernel API Manual, bestie β€” this is the page for i40e_check_mask, and honestly it's a little icon of a function. we're gonna get you fluent in it in like, one scroll. 🫢


✨ NAME ✨

i40e_check_mask β€” check whether a mask field is set. that's it, that's the whole vibe check. πŸ”


🌸 SYNOPSIS 🌸

int i40e_check_mask (u64 mask , u64 field );

πŸŽ€ ARGUMENTS πŸŽ€

  • mask β€” the full mask value. the whole situation, the big picture, all the bits at once πŸ’–
  • field β€” mask of the field to check. like, the specific little patch of bits you're actually asking about πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea. 🍡

if the given mask is fully set, you get back a positive value. slay, everything's on, no notes. ✨

if the mask for the field is fully unset, you get back zero. nothing happening over there, respectfully. πŸ’€

otherwise β€” and this is the "it's giving mixed signals" case β€” you get back a negative error code. 😭

so basically it's a three-way answer and you gotta handle all three, no cap. don't just treat it like a boolean or it WILL humble you. πŸ™ˆ


🌈 SEE ALSO 🌈

the whole friend group, fr fr β€” go say hi:


and that's the page!! πŸ§šβ€β™€οΈ this little legend lives over in ./drivers/net/ethernet/intel/i40e, stamped October 2026, and it's part of the Kernel API Manual β€” so if you ever forget how the whole three-return-values thing goes, just come back here and reread the DESCRIPTION. mwah, love u, go write some correct bitmask checks. πŸ’œπŸŽ€πŸŒΈ

πŸ“¦ where this page comes from