switchdev_port_obj_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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_lock must be held and you must not be in an atomic section when SWITCHDEV_F_DEFER is not set.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./net/switchdev/switchdev.c


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