switchdev_port_obj_del(9)
okay so bestie, welcome to the Kernel API Manual page for switchdev_port_obj_del(9) β yep, the delete-port-object one, and we're gonna make it make sense π
π NAME π
switchdev_port_obj_del β delete port object. That's the name, that's the job, it's giving very direct π
β¨ SYNOPSIS β¨
int switchdev_port_obj_del (struct net_device *dev , const struct switchdev_obj *obj );
π«Ά ARGUMENTS π«Ά
devβ port device. The port device, bestie, no cap.objβ object to delete. The object you're deleting, periodt.
π DESCRIPTION π
Okay so here's the actual vibe check: if the SWITCHDEV_F_DEFER flag is not set, then rtnl_lock must be held, and you must not be in an atomic section. That's the whole rule β don't skip it π
β οΈ Locking caveat, bestie:rtnl_lockmust be held and you must not be in an atomic section whenSWITCHDEV_F_DEFERis not set.
π₯ SEE ALSO π₯
Kernel file: ./net/switchdev/switchdev.c
switchdev_deferred_process(9)switchdev_port_attr_set(9)switchdev_port_obj_add(9)switchdev_port_obj_act_is_deferred(9)register_switchdev_notifier(9)unregister_switchdev_notifier(9)call_switchdev_notifiers(9)
mwah π this page comes from ./net/switchdev, dated October 2026, and it's serving switchdev_port_obj_del(9) energy πβ¨
π¦ 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