nft_data_hold(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” a struct nft_data to 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