xt_unregiste...ble_pre_exit(9)
okay so bestie, welcome to the xt_unregiste...ble_pre_exit(9) page from the Kernel API Manual β yes, that truncated title is the whole vibe, iykyk π
π NAME π
xt_unregister_table_pre_exit β pre-shutdown unregister of a table. yup, that's the entire assignment: pre-shutdown unregister of a table, and it ate. π
β¨ SYNOPSIS β¨
here's the exact signature, no cap:
void xt_unregister_table_pre_exit (struct net *net , u8 af , const char
*name );
π ARGUMENTS π
three args, let's go:
netβ network namespace πafβ address family (e.g.,NFPROTO_IPV4,NFPROTO_IPV6) π§nameβ name of the table to unregister π
πΈ DESCRIPTION πΈ
okay so what does it actually do? It unregisters the specified netfilter table from the given network namespace, and it also unregisters the hooks from netfilter core: no new packets will be processed. literally no new packets, bestie ππ₯
This must be called prior to xt_unregister_table_exit from the pernet .pre_exit callback. After this call, the table is no longer visible to the get/setsockopt path. In case of rmmod, the module exit path must have called xt_unregister_template prior to unregistering pernet ops to prevent re-instantiation of the table. periodt. π
See also: xt_unregister_table_exit π
π¦ SEE ALSO π¦
Kernel file ./net/netfilter/x_tables.c plus these iconic little references:
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_exit(9)xt_hook_ops_alloc(9)xt_percpu_counter_alloc(9)
mwah π this page comes from ./net/netfilter, is dated October 2026, and answers to xt_unregiste...ble_pre_exit(9) β bye bestie, go unregister responsibly π«Άβ¨
π¦ 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