xt_unregister_table_exit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is xt_unregister_table_exit from the Kernel API Manual β€” the little function that removes a table during namespace teardown πŸ’… not me learning kernel teardown and lowkey thriving.


🌸 SYNOPSIS 🌸

struct xt_table * xt_unregister_table_exit (struct net *net , u8 af ,
const char *name );

πŸŽ€ ARGUMENTS πŸŽ€

  • net β€” the network namespace from which to unregister the table. literally where the table is getting unregistered from, bestie.
  • af β€” address family (e.g., NFPROTO_IPV4, NFPROTO_IPV6). so you're telling it which family vibe we're on.
  • name β€” name of the table to unregister. the actual table's name, no cap.

πŸ¦‹ DESCRIPTION πŸ¦‹

This one completes the unregister process for a table, periodt. It must be called from the pernet ops .exit callback β€” like, this is not optional, okay? It's the second stage after xt_unregister_table_pre_exit, so think sequel energy: you pair it with xt_unregister_table_pre_exit during namespace shutdown. πŸ’–


🌈 RETURN 🌈

You get back the unregistered table, or NULL if the table was never instantiated. The caller needs to kfree the table after it has removed the family specific matches/targets. no cap, that cleanup step is on you. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/netfilter/x_tables.c and the whole bestie squad:


mwah πŸ’‹ source/version ./net/netfilter, dated October 2026 β€” that's the xt_unregister_table_exit(9) sign-off, bye bestie! 🫢

πŸ“¦ where this page comes from