ENUM NFT_SET_CLASS(9)
β¨ 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
- 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