xt_unregister_table_exit(9)
β¨ 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:
xt_check_proc_name(9)xt_check_entry_offsets(9)xt_alloc_entry_offsets(9)xt_find_jump_offset(9)xt_copy_counters(9)xt_unregister_table_pre_exit(9)xt_hook_ops_alloc(9)xt_percpu_counter_alloc(9)
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
- 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