ice_devlink..._str_to_mode(9)
π ice_devlink_local_fwd_str_to_mode β NAME β¨
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 π«Ά
ice_devlink_info_get(9)ice_devlink_reload_empr_start(9)ice_devlink_reinit_down(9)ice_devlink_reload_down(9)ice_devlink_reload_empr_finish(9)ice_get_tx_topo_user_sel(9)ice_update_tx_topo_user_sel(9)ice_devlink_tx_sched_layers_get(9)ice_devlink_tx_sched_layers_set(9)ice_devlink_tx_sched_layers_validate(9)ice_tear_down_devlink_rate_tree(9)ice_enable_custom_tx(9)ice_traverse_tx_tree(9)ice_devlink_rate_init_tx_topology(9)ice_devlink_rate_clear_tx_topology(9)ice_set_object_tx_share(9)ice_set_object_tx_max(9)ice_set_object_tx_priority(9)ice_set_object_tx_weight(9)ice_get_pi_from_dev_rate(9)ice_devlink_reinit_up(9)ice_devlink_reload_up(9)ice_devlink_local_fwd_mode_to_str(9)ice_devlink_local_fwd_get(9)ice_devlink_local_fwd_set(9)ice_devlink_local_fwd_validate(9)ice_allocate_pf(9)ice_allocate_sf(9)ice_devlink_register(9)ice_devlink_unregister(9)ice_devlink_nvm_snapshot(9)ice_devlink_nvm_read(9)ice_devlink_devcaps_snapshot(9)ice_devlink_init_regions(9)ice_devlink_destroy_regions(9)
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
- 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