set_flags(9)
π set_flags(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a tiny little helper function and honestly it's giving "small but mighty" β¨
πΈ NAME πΈ
set_flags β sets/unssets the specified flags, but only if they're passed in new_flags π
π¦ SYNOPSIS π¦
void set_flags (u32 *cur_flags , u32 new_flags , u32 flags );
like, that's the whole thing. short king energy π
β¨ ARGUMENTS β¨
cur_flagsβ a pointer to the current flags π (yes, a pointer, so it can absolutely reach in and change them, periodt)new_flagsβ the new incoming flags π the fresh batch, the newcomers, the vibe checkflagsβ the set of flags to set/unset πΈ this is the little guest list of which flags get to be toggled
π«Ά SEE ALSO π«Ά
- Kernel file
./drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.cβ go read the source bestie, it's right there π from_fw_port_mod_type(9)speed_to_fw_caps(9)fw_caps_to_lmm(9)lmm_to_fw_caps(9)set_rx_intr_params(9)
ngl the whole friend group here is very "firmware port mode type" coded β iykyk π
and that's the page!! π this lil icon came to you from ./drivers/net/ethernet/chelsio... way back in October 2026 β mwah, go toggle some flags responsibly π
ππ¦
π¦ 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