switchdev_po..._is_deferred(9)
π 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'saddordelete. 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:
- Kernel file
./net/switchdev/switchdev.c switchdev_deferred_process(9)switchdev_port_attr_set(9)switchdev_port_obj_add(9)switchdev_port_obj_del(9)register_switchdev_notifier(9)unregister_switchdev_notifier(9)call_switchdev_notifiers(9)
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
- 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