ice_devlink_create_vf_port(9)
π ice_devlink_create_vf_port(9) π
okay so bestie, welcome to the Kernel API Manual page for ice_devlink_create_vf_port(9) β yes that's the whole name, yes it's a mouthful, no we're not shortening it, iykyk π
πΈ NAME πΈ
ice_devlink_create_vf_port β literally just: create a devlink port for this VF. that's the whole vibe. short, sweet, slays π
β¨ SYNOPSIS β¨
int ice_devlink_create_vf_port (struct ice_vf *vf );
so it returns an int, takes one struct ice_vf * called vf, and honestly? that's it. that's the whole signature. no cap. π
π¦ ARGUMENTS π¦
vfβ the VF you wanna create a port for. that's the one. the main character. π
π₯ DESCRIPTION π₯
okay so here's the tea: this function creates and registers a devlink_port for this VF. that's it. that's the entire job description. no extra side quests, no secret features, it just makes the port and registers it and minds its own business. iconic behavior fr fr π«Ά
β RETURN β
- zero on success π
- an error code on failure π
like, zero means we ate, an error code means we did not eat. simple as that. π
π SEE ALSO π
okay this list is LONG and honestly kind of a flex. here are all the friends in the group chat, in order, exactly as they appear:
Kernel file ./drivers/net/ethernet/intel/ice/devlink/port.c 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_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_reserve_sf_num(9), ice_devlink_create_sf_port(9), ice_devlink_destroy_sf_port(9), ice_alloc_dynamic_port(9), ice_devlink_port_new(9)
also peep the kernel file up at the top of that list: ./drivers/net/ethernet/intel/ice/devlink/port.c β that's where the magic lives, bestie π
lowkey note: notice the symmetry??create_pf_port/destroy_pf_port,create_vf_port/destroy_vf_port,create_sf_port/destroy_sf_port... the way this codebase pairs things up is so satisfying, obsessed π
and that's the page!! mwah π
source/version: ./drivers/net/ethernet/intel/i... β and this whole thing is dated October 2026, so like, future vibes β¨ stay hydrated, read your manpages, and remember: zero on success, error code on failure, 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