ice_allocate_pf(9)
π¦ NAME (ice_allocate_pf(9)) π¦
okay bestie, welcome to the ice_allocate_pf(9) page from the Kernel API Manual! She does one iconic thing: Allocate devlink and return PF structure pointer. That's the whole name, no cap. π
β¨ SYNOPSIS β¨
struct ice_pf * ice_allocate_pf (struct device *dev );
Lowkey that's the entire signature. Slay. π«Ά
π ARGUMENTS π
devβ the device to allocate for. Yep, this is the device the allocation is happening for, main character energy only. β¨
π DESCRIPTION π
okay so picture this: ice_allocate_pf() allocates a devlink instance for this dev, and then returns the private area as the PF structure. The devlink memory is kept track of through devres β by adding an action to remove it when unwinding. That's the tea, fr fr. πΈ
no extra lore, no secret side quests: allocate devlink, hand back the private area as the PF structure, track the devlink memory with devres, and add an action to remove it when unwinding. iconic behavior only. π
π SEE ALSO π
The kernel file situation is right here, bestie:
- Kernel file:
./drivers/net/ethernet/intel/ice/devlink/devlink.c
and the whole devlink/ice function squad:
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_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)
xoxo, your kernel bestie π β this page's source/version footer is ./drivers/net/ethernet/intel/i... and the date is October 2026. byeee π«Ά slay
π¦ 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