switchdev_po..._is_deferred(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… switchdev_port_obj_act_is_deferred β€” is that object action still pending, bestie?

okay so first things first: this page is a kernel API manual page, section 9, and the function we're obsessing over is switchdev_port_obj_act_is_deferred. Yes the header truncates it to switchdev_po..._is_deferred(9) β€” that's just the man page being dramatic and running out of room, the real name is the long one. πŸŽ€


✨ NAME ✨

switchdev_port_obj_act_is_deferred β€” literally just: is this object action pending? that's the whole vibe check. πŸ’–


🌸 SYNOPSIS 🌸

bool switchdev_port_obj_act_is_deferred (struct net_device *dev , enum
       switchdev_notifier_type nt , const struct switchdev_obj *obj );

it returns a bool, bestie. no mystery there. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the port device. like, the actual net device we're asking about. 🫢
  • nt β€” the type of action; it's add or delete. pick your fighter. ⭐
  • obj β€” the object to test. this is the thing we're checking on. πŸ‘‘

πŸ’… DESCRIPTION πŸ’…

Returns true if a deferred item is pending β€” which is equivalent to the action nt on an object obj. so basically: "is this exact thing still queued up?"

🚨 ok important one, no cap: rtnl_lock must be held. this is not a suggestion, this is the law. hold the lock before you call this. periodt. πŸ”₯

🌈 SEE ALSO 🌈

the whole friend group, fr fr:


and that's the whole page, bestie πŸ’œ β€” huge shoutout to ./net/switchdev for hosting, the date stamp says October 2026, and the man page source/version footer is out here still calling it switchdev_po..._is_deferred(9) like it didn't just explain the entire function. iconic, honestly. πŸ™ˆβœ¨

πŸ“¦ where this page comes from