ice_allocate_sf(9)
π ice_allocate_sf(9) β like, the SF allocator, bestie β¨
okay so this is a page from the Kernel API Manual and it's literally about one tiny function that does one tiny job, and honestly? she ate. let's get into it π«Ά
πΈ NAME πΈ
ice_allocate_sf β allocate a devlink and hand back the SF structure pointer, no cap π
β¨ SYNOPSIS β¨
struct ice_sf_priv * ice_allocate_sf (struct device *dev , struct ice_pf
*pf );
that's the whole signature, copy it exactly bestie, don't get creative with it π
π ARGUMENTS π
devβ the device you're allocating for. that's her, that's the one πpfβ pointer to thePFstructure. yes it's a pointer. yes you need it. periodt.
π¦ DESCRIPTION π¦
Allocate a devlink instance for SF.
that's it. that's the whole description. short and iconic, main character energy, she doesn't need to over-explain herself π
β RETURN β
You get back an ice_sf_priv pointer to the allocated memory π β or, if things went sideways, an ERR_PTR in case of error π so like, vibe check your return value before you dereference it, fr fr.
π SEE ALSO π
the actual source, living right here in the kernel tree:
Kernel file ./drivers/net/ethernet/intel/ice/devlink/devlink.c
and the whole friend group of related pages, all of them, in order, because we don't skip anyone in this house:
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_str_to_mode(9)ice_devlink_local_fwd_get(9)ice_devlink_local_fwd_set(9)ice_devlink_local_fwd_validate(9)ice_allocate_pf(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, thirty-five whole besties. iykyk ππ
k bye, this page came from the path that starts ./drivers/net/ethernet/intel/i... and it's dated October 2026 β mwah, slay, see u in the group chat π§π
π
π¦ 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