netdev_increment_features(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– netdev_increment_features(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” yes, THE manual, and yes we're reading it for fun (iykyk). This one's about netdev feature sets and it's genuinely a little icon. Let's get into it 🫢


🌸 NAME 🌸

netdev_increment_features β€” increment feature set by one ✨


✨ SYNOPSIS ✨

netdev_features_t netdev_increment_features (netdev_features_t all ,
netdev_features_t one , netdev_features_t mask );

like, three netdev_features_ts walk into a function and come out as one new netdev_features_t. slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • all β€” the current feature set. this is the vibe we're starting from ✨
  • one β€” the new feature set. the incoming main character πŸŽ€
  • mask β€” the mask feature set. the bouncer at the door, fr fr πŸšͺ

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“ β€” this function computes a new feature set after adding a device with feature set one to the master device with current feature set all. like merging your playlist into your bestie's playlist but make it kernel.

and the important part, no cap: it will not enable anything that is off in mask. whatever mask says no to stays no. periodt. 🚫

it returns the new feature set πŸ’–


πŸ’… SEE ALSO πŸ’…

bestie there are SO many of these, buckle in. also: Kernel file ./net/core/dev.c πŸ“

like… that's the whole friend group 😭 every single one of them, we love to see it πŸ‘‘


ngl this one's short but it's giving "small function, big feelings". respect the mask, bestie 🌈

okay that's the page!! it lives in ./net/core and the version is October 2026 β€” ty for reading, mwah πŸ’œπŸ§šβ€β™€οΈ ⭐

πŸ“¦ where this page comes from