nft_register_expr(9)
πΈ nft_register_expr(9) πΈ
okay bestie, welcome to the Kernel API Manual page for nft_register_expr(9) β the little function with main-character energy for registering an nf_tables expr type. It's giving kernel API realness, and we're gonna read it together. π
β¨ NAME β¨
nft_register_expr β register nf_tables expr type. That's the whole vibe: you're registering an expr type for nf_tables. Slay. π
π¦ SYNOPSIS π¦
int nft_register_expr (struct nft_expr_type *type );
No cap, that's the exact signature. π«Ά
π ARGUMENTS π
typeβ the expr type. Like, thestruct nft_expr_type *you're handing over to get registered. Lowkey the whole point. π«Ά
π DESCRIPTION π
So nft_register_expr registers the expr type for use with nf_tables. That's the tea. β
It returns 0 on success, or a negative errno code otherwise. No in-between, bestie β zero means slay, negative errno means something went sideways. π
π SEE ALSO π
Kernel file: ./net/netfilter/nf_tables_api.c β that's the source file, iykyk. The squad of related manpages is:
nft_unregister_expr(9)nft_data_hold(9)nft_register_obj(9)nft_unregister_obj(9)nft_parse_u32_check(9)nft_dump_register(9)nft_data_init(9)nft_data_release(9)
p.s. cute sign-off time: this page's source is ./net/netfilter, its date is October 2026, and the manual name is nft_register_expr(9) from the Kernel API Manual. Bye bestie, go register that expr type! π«Άπβ¨
π¦ 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