ENUM NFT_SET_CLASS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum nft_set_class(9) ✨

okay bestie, so this is a page from the Kernel API Manual and it's literally all about enum nft_set_class β€” the ✨performance class✨ enum. it's short, it's sweet, it's giving minimal icon energy πŸ’…


🌸 NAME 🌸

enum nft_set_class β€” performance class, no cap 🏎️✨


πŸ¦‹ SYNOPSIS πŸ¦‹

enum nft_set_class {
    NFT_SET_CLASS_O_1 ,
    NFT_SET_CLASS_O_LOG_N ,
    NFT_SET_CLASS_O_N

};

like… that's the whole thing. three constants and a dream πŸŽ€


πŸ‘‘ Constants πŸ‘‘

  • NFT_SET_CLASS_O_1 β€” constant, O(1). the main character of complexity classes fr fr, it does not care how big your N gets πŸ’…πŸ”₯
  • NFT_SET_CLASS_O_LOG_N β€” logarithmic, O(log N). lowkey the sensible middle child πŸŒ€βœ¨
  • NFT_SET_CLASS_O_N β€” linear, O(N). it scales with N, bestie β€” every element gets its moment, no skipping 🫢😭

🌈 SEE ALSO 🌈

Kernel file ./include/net/netfilter/nf_tables.h β€” and then the whole friend group, in this exact order, not me listing all of them but yes I absolutely am:

  • struct nft_verdict(9)
  • struct nft_regs(9)
  • struct nft_ctx(9)
  • struct nft_userdata(9)
  • struct nft_set_elem(9)
  • enum nft_iter_type(9)
  • struct nft_set_desc(9)
  • struct nft_set_estimate(9)
  • struct nft_expr(9)
  • struct nft_set_ops(9)
  • struct nft_set_type(9)
  • struct nft_set(9)
  • struct nft_set_binding(9)
  • enum nft_set_extensions(9)
  • struct nft_set_ext_type(9)
  • struct nft_set_ext_tmpl(9)
  • struct nft_set_ext(9)
  • struct nft_expr_type(9)
  • struct nft_expr_ops(9)
  • struct nft_rule(9)
  • struct nft_chain_validate_state(9)
  • struct nft_chain(9)
  • struct nft_chain_type(9)
  • struct nft_base_chain(9)
  • struct nft_table(9)
  • struct nft_object_hash_key(9)
  • struct nft_object(9)
  • struct nft_object_type(9)
  • struct nft_object_ops(9)
  • struct nft_flowtable(9)
  • struct nft_traceinfo(9)
  • struct nft_trans(9)
  • struct nft_trans_hook(9)
  • struct nft_trans_binding(9)

that's the whole squad, go say hi πŸ§šπŸ’œ


signed, sealed, delivered πŸ’Œ this cutie came from ./include/net/netfilter (the source, iykyk), version-dated October 2026, and it's filed under enum nft_set_class(9). periodt. πŸ’…β­

πŸ“¦ where this page comes from