pipapo_maybe_clone(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pipapo_maybe_clone β€” kernel API manual, but make it make sense 🫢

okay so bestie, you're reading the page for pipapo_maybe_clone, and it lives in the kernel API manual section 9 (that's the kernel-internals girlies, not your regular command-line girlies). sit down, hydrate, and let's get into it ✨


✨ NAME ✨

pipapo_maybe_clone β€” build a clone for pending data changes, if one doesn't already exist. that's it, that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

struct nft_pipapo_match * pipapo_maybe_clone (const struct nft_set *set);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • set β€” the nftables API set representation. yep, that's the whole argument, she's low-maintenance πŸ’…

⭐ RETURN ⭐

you get back the newly created clone or the existing clone, if there is any. and if allocation fails? you get NULL. no cap, that's the failure path, so check it πŸ‘‘

fr fr do not just assume you got a pointer back β€” NULL on allocation failure is real and she will not be gentle about it 😭

🧚 SEE ALSO 🧚

so many friends, she's very social πŸ’– first up, the lore itself:

  • Kernel file ./net/netfilter/nft_set_pipapo.c Theory of Operation(9)

and then the whole group chat, in order, no one left out:

  • pipapo_refill(9)
  • pipapo_get_slow(9)
  • pipapo_get(9)
  • nft_pipapo_lookup(9)
  • nft_pipapo_get(9)
  • pipapo_realloc_mt(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)
  • 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)

like, literally the entire pipapo extended universe 🌈


and that's the page, bestie 🫢 this icon is served from ./net/netfilter, dated October 2026, and she answers to the name pipapo_maybe_clone(9) β€” mwah, slay, go read the source πŸ’œ

πŸ“¦ where this page comes from