ice_devlink_create_vf_port(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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