flow_rule_i...ontrol_flags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… flow_rule_is_supp_control_flags β€” a Kernel API Manual moment ✨

okay so bestie, picture this: you're deep in the kernel, you've got a flow rule in front of you, and you just need to know if the control flags on it are, like, allowed. That's the whole gig of flow_rule_is_supp_control_flags. It's from the Kernel API Manual, section 9, and it is literally the vibe check for control flags πŸŽ€


✨ NAME ✨

flow_rule_is_supp_control_flags β€” check for supported control flags πŸ”

like, that's it. that's the function. it checks whether the control flags are supported. no cap.


🌸 SYNOPSIS 🌸

bool flow_rule_is_supp_control_flags (const u32 supp_flags , const u32
ctrl_flags , struct netlink_ext_ack *extack );

three args in, one bool out. iconic signature tbh πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • supp_flags β€” the control flags that the driver supports. this is the "what we're actually cool with" list 🫢
  • ctrl_flags β€” the control flags that are actually present in the rule. the "what showed up to the party" list πŸ™ˆ
  • extack β€” the netlink extended ACK, used for reporting errors. so when something goes wrong, this is the one that tells the story 😭

πŸ”₯ RETURN πŸ”₯

true if only supported control flags are set β€” like, every single one of them passed the check πŸ‘‘

false otherwise. something snuck in that shouldn't be there. not slay. πŸ’€


🌈 SEE ALSO 🌈

go read these next, fr fr β€” they're all in the kernel file ./include/net/flow_offload.h:


bestie note: this whole page lives under ./include/net, so that's where you go looking when you wanna read the real thing 🧚

and that's the page!! mwah πŸ’– sourced straight from the ./include/net corner of the kernel, dated October 2026, flow_rule_i...ontrol_flags(9) and all its truncated-title glory β€” she ate and left no crumbs πŸ“βœ¨

πŸ“¦ where this page comes from