pipapo_realloc_mt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pipapo_realloc_mt(9) β€” like, the whole glow-up

okay so bestie, welcome to the Kernel API Manual ✨ this one's a section 9 page, which means it's for the kernel crowd β€” the people writing the actual guts of the system, iykyk. And this particular function? It's called pipapo_realloc_mt, and it's the friend who shows up when the mapping table needs to grow up. πŸ¦‹


🌸 NAME 🌸

pipapo_realloc_mt β€” reallocate the mapping table if needed upon resize πŸ’–

Like, if needed. It's not out here reallocating for fun. It checks first. Respect.


✨ SYNOPSIS ✨

int pipapo_realloc_mt (struct nft_pipapo_field *f , unsigned int
       old_rules , unsigned int rules );

Yep. Returns an int, takes three things. She's simple, she's iconic. πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • f β€” the field that's holding the mapping table. This is the main character of the whole operation. 🫢
  • old_rules β€” how many rules are already mapped, like the before picture.
  • rules β€” how many rules you want to map now, the after picture. glow-up math. ✨

πŸ’… RETURN πŸ’…

0 on success β€” slay, we love a zero. πŸŽ‰

A negative error code on failure β€” not slay, but at least it tells you. 😭


πŸ”₯ SEE ALSO πŸ”₯

okay bestie this list is long, like the group chat when someone asks a simple question and everyone has opinions. But every single one of these is a real reference, no cap β€” don't skip a single one, some of them are literally the reason pipapo_realloc_mt works at all:

Kernel file ./net/netfilter/nft_set_pipapo.c Theory of Operation(9), pipapo_refill(9), pipapo_get_slow(9), pipapo_get(9), nft_pipapo_lookup(9), nft_pipapo_get(9), lt_calculate_size(9), pipapo_resize(9), pipapo_bucket_set(9), pipapo_lt_4b_to_8b(9), pipapo_lt_8b_to_4b(9), pipapo_lt_bits_adjust(9), pipapo_insert(9), pipapo_step_diff(9), pipapo_step_after_end(9), pipapo_base_sum(9), pipapo_expand(9), pipapo_map(9), pipapo_free_scratch(9), pipapo_realloc_scratch(9), pipapo_maybe_clone(9), nft_pipapo_insert(9), pipapo_clone(9), pipapo_rules_same_key(9), pipapo_unmap(9), pipapo_drop(9), pipapo_gc_scan(9), pipapo_gc_queue(9), pipapo_free_fields(9), pipapo_reclaim_match(9), nft_pipapo_commit(9), nft_pipapo_activate(9), nft_pipapo_deactivate(9), nft_pipapo_flush(9), pipapo_get_boundaries(9), pipapo_match_field(9), nft_pipapo_remove(9), nft_pipapo_do_walk(9), nft_pipapo_walk(9), nft_pipapo_privsize(9), nft_pipapo_estimate(9), nft_pipapo_init(9), nft_set_pipapo_match_destroy(9), nft_pipapo_destroy(9), nft_pipapo_gc_init(9).

ngl that's a whole friend group. every single one is in the original list, so every single one gets to stay. periodt. πŸ’œ

✿ and that's the page, bestie ✿ this little gem lives in ./net/netfilter, and it was dated October 2026 β€” so yeah, mark your calendar, she's from the future. πŸ’« πŸŽ€ bye bestie, go read the actual source, Theory of Operation(9) is right there waiting for you πŸ¦‹πŸ’–

πŸ“¦ where this page comes from