nft_data_hold(9)
π nft_data_hold(9) β Kernel API Manual π
πΈ NAME πΈ
nft_data_hold β hold a nft_data item
β¨ SYNOPSIS β¨
void nft_data_hold (const struct nft_data *data , enum nft_data_types
type );
π ARGUMENTS π
dataβ astruct nft_datato release. Yes, the original literally says βto releaseβ in a function called hold β we are just reporting the lore, bestie ππtypeβ type of data (enum nft_data_types, per the synopsis β¨)
π DESCRIPTION π
Okay so this function holds a nft_data item. For NFT_DATA_VALUE types, the hold can be silently discarded β silently, bestie, like it never even said anything π.
For NFT_DATA_VERDICT, it bumps the reference to chains in case of NFT_JUMP and NFT_GOTO verdicts. Those are the verdicts named in the manual, periodt π.
This function must be called on active data objects from the second phase of the commit protocol. That must is doing main character energy β do not ignore it, fr fr π«Ά.
π¦ SEE ALSO π¦
Kernel file ./net/netfilter/nf_tables_api.c β go peek if you want the whole vibe π
Also peep: nft_register_expr(9), nft_unregister_expr(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)
Signed off from ./net/netfilter π stamped October 2026 π page nft_data_hold(9) β bye bestie, slay 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