ice_devlink..._str_to_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is a page from the Kernel API Manual and it's about ice_devlink_local_fwd_str_to_mode β€” literally the function that takes a local_fwd mode as a string name and hands you back the actual mode. it's giving "translator era" πŸŽ€


🌸 SYNOPSIS 🌸

int ice_devlink_local_fwd_str_to_mode (const char *mode_str );

no cap, that's the whole signature. one string in, one int out πŸ¦‹


✨ ARGUMENTS ✨

  • mode_str β€” the local forwarding mode string, i.e. the name-type thing you're feeding in so it can get converted. that's it, that's the whole argument, she's lowkey simple πŸ’…

πŸ”₯ RETURN πŸ”₯

you get back the mode value β€” slay. but if the string is invalid you get a negative number instead 😭 so like, always vibe-check your return value before you trust it, fr fr. negative = not it.


πŸ‘‘ SEE ALSO πŸ‘‘

first up, the actual kernel file this lives in, because sourcing your info is main character energy:

  • Kernel file ./drivers/net/ethernet/intel/ice/devlink/devlink.c

and now the friend group, aka every function she's associated with β€” all of them, in order, no skipping, we don't do that here 🫢

like, that's the whole squad, every single one accounted for πŸ’–

note bestie: ice_devlink_local_fwd_mode_to_str(9) is literally the reverse of this one β€” she goes mode β†’ string, this page's girl goes string β†’ mode. complementary icons, yk? 🌈

and that's the page!! πŸŽ€ source file path is ./drivers/net/ethernet/intel/i... (yes it's truncated in the original, don't come for me πŸ™ˆ), dated October 2026, and it's the ice_devlink..._str_to_mode(9) page, Kernel API Manual. periodt. πŸ’œβœ¨

πŸ“¦ where this page comes from