STRUCT NFT_PIPAPO_SCRATCH(9)
π struct nft_pipapo_scratch(9) π
okay so bestie, welcome to the Kernel API Manual β this is the page for struct nft_pipapo_scratch(9) and honestly it's a little cutie. β¨
πΈ NAME πΈ
struct nft_pipapo_scratch β the percpu data used for lookup and matching, no cap π
π¦ SYNOPSIS π¦
struct nft_pipapo_scratch {
local_lock_t bh_lock;
u8 map_index;
unsigned long __map[];
};
like, that's the whole struct. three members. minimal. iconic. π
β¨ Members β¨
bh_lockβ aPREEMPT_RTlocal spinlock π like yes, it locks, but make it local and make it real-time-friendly.map_indexβ the current working bitmap index π toggled between field matches β it literally switches back and forth as the matching goes down the fields, iykyk.__mapβ where we store partial matching results during lookup ποΈ a flexible array, just vibing at the end of the struct, holding the in-progress receipts mid-search.
π SEE ALSO π
- the kernel file
./net/netfilter/nft_set_pipapo.h, plusunion nft_pipapo_map_bucket(9)π struct nft_pipapo_field(9)struct nft_pipapo_match(9)struct nft_pipapo(9)struct nft_pipapo_elem(9)pipapo_and_field_buckets_4bit(9)pipapo_and_field_buckets_8bit(9)pipapo_estimate_size(9)pipapo_resmap_init(9)
fr fr the whole pipapo family is right there, go read them, they slay π
mwah, that's a wrap π«Ά this one came straight out of ./net/netfilter and it's dated October 2026 β bestie, a whole future date, she's booked and busy π
π¦ 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