nft_register_obj(9)
π nft_register_obj(9) β like, the Kernel API Manual tea π
okay so bestie, welcome to nft_register_obj(9), straight out of the Kernel API Manual and honestly? it's giving "tiny function, big responsibilities" β¨
πΈ NAME πΈ
nft_register_obj β the girl whose whole job is registering a stateful object type for nf_tables π
β¨ SYNOPSIS β¨
int nft_register_obj (struct nft_object_type *obj_type );
π ARGUMENTS π
obj_typeβ the object type, periodt. that's the whole argument, she's not complicated π«Ά
π¦ DESCRIPTION π¦
So what she does is register the object type so it can be used with nf_tables π no cap, that's it.
She returns zero on success, or a negative errno code otherwise β so if you get a negative back, that's your vibe check failing, not a slay π
π SEE ALSO π
Kernel file ./net/netfilter/nf_tables_api.c β plus these icons, go give them a read:
nft_register_expr(9)nft_unregister_expr(9)nft_data_hold(9)nft_unregister_obj(9)nft_parse_u32_check(9)nft_dump_register(9)nft_data_init(9)nft_data_release(9)
and that's the whole page, bestie, hope it ate π
signing off from ./net/netfilter, dated October 2026 β mwah, go register something iconic ππ§
π¦ 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