STRUCT NFT_PIPAPO_SCRATCH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a PREEMPT_RT local 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 🌈

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