dev_set_promiscuity(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ dev_set_promiscuity πŸ¦‹

okay bestie, welcome to the dev_set_promiscuity(9) page from the Kernel API Manual πŸ’– this one is literally about updating the promiscuity count on a device, and it’s giving very specific little gremlin energy in the best way.


✨ NAME ✨

dev_set_promiscuity β€” update promiscuity count on a device πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int dev_set_promiscuity (struct net_device *dev , int inc );

🌸 ARGUMENTS 🌸

  • dev β€” the device, aka the struct net_device * we’re messing with 🫢
  • inc β€” the modifier, aka the little number that nudges the promiscuity count up or down ✨

πŸ’… DESCRIPTION πŸ’…

okay so this function adds or removes promiscuity from a device. the way it works is: while the count in the device remains above zero, the interface remains promiscuous. once it hits zero, the device reverts back to normal filtering operation. periodt πŸ’€

a negative inc value is used to drop promiscuity on the device. and it returns 0 if successful or a negative errno code on error. no cap, that’s the whole vibe check πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file to peek at is ./net/core/dev_api.c, and the whole friend group is:


source/version: ./net/core β€’ date: October 2026 β€’ manual: dev_set_promiscuity(9) β€” xoxo, your kernel bestie πŸ’–πŸŽ€

πŸ“¦ where this page comes from