ice_reserve_sf_num(9)
π ice_reserve_sf_num β Kernel API Manual β¨
okay bestie, welcome to the group chat where we learn kernel APIs π you're in the Kernel API Manual section, and today's main character is ice_reserve_sf_num. she's the one who gets you a subfunction number for your port. no cap. π
β¨ NAME β¨
ice_reserve_sf_num β reserve a subfunction number for this port π¦
πΈ SYNOPSIS πΈ
int ice_reserve_sf_num (struct ice_pf *pf , const struct
devlink_port_new_attrs *new_attr , struct netlink_ext_ack *extack , u32
*sfnum );
π ARGUMENTS π
pfβ pointer to the pf structure π«Ά literally just a pointer to the pf, that's itnew_attrβ the devlink port attributes that got requested πextackβ the extack, and it's here for reporting error messages π so when things go sideways, this is who tells yousfnumβ on success, this is where the sf number that got reserved shows up β
π DESCRIPTION π
So the whole vibe: this function reserves a subfunction number for this port. That's the moment. β¨
and like, huge caveat incoming β it's only called for DEVLINK_PORT_FLAVOUR_PCI_SF ports. not the other flavours. just that one. iykyk π
π₯ RETURN π₯
zero on success, or an error code on failure π (zero is the slay outcome, an error code is the "we don't talk about it" outcome π)
π§ SEE ALSO π§
the kernel file herself lives at ./drivers/net/ethernet/intel/ice/devlink/port.c β go say hi π
and here's the whole friend group, no one gets left out π«Ά:
ice_devlink_port_opt_speed_str(9)ice_devlink_port_options_print(9)ice_devlink_aq_set_port_option(9)ice_devlink_port_split(9)ice_devlink_port_unsplit(9)ice_devlink_set_port_split_options(9)ice_devlink_set_switch_id(9)ice_devlink_create_pf_port(9)ice_devlink_destroy_pf_port(9)ice_devlink_port_get_vf_fn_mac(9)ice_devlink_port_set_vf_fn_mac(9)ice_devlink_create_vf_port(9)ice_devlink_destroy_vf_port(9)ice_devlink_create_sf_dev_port(9)ice_devlink_destroy_sf_dev_port(9)ice_activate_dynamic_port(9)ice_deactivate_dynamic_port(9)ice_dealloc_dynamic_port(9)ice_dealloc_all_dynamic_ports(9)ice_devlink_port_new_check_attr(9)ice_devlink_port_del(9)ice_devlink_port_fn_hw_addr_set(9)ice_devlink_port_fn_hw_addr_get(9)ice_devlink_port_fn_state_set(9)ice_devlink_port_fn_state_get(9)ice_devlink_create_sf_port(9)ice_devlink_destroy_sf_port(9)ice_alloc_dynamic_port(9)ice_devlink_port_new(9)
anyway that's the page π this one came from ./drivers/net/ethernet/intel/i... and she's dated October 2026, so jot that down bestie, it's giving archival queen πβ¨ 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