ice_devlink_create_pf_port(9)
π ice_devlink_create_pf_port(9) π
okay so this is a page from the Kernel API Manual β yes, the Kernel API Manual, we're doing real kernel shit today bestie, put your hair up π
β¨ NAME β¨
ice_devlink_create_pf_port β literally just "Create a devlink port for this PF", that's the whole vibe π¦
πΈ SYNOPSIS πΈ
int ice_devlink_create_pf_port (struct ice_pf *pf );
like, it returns an int, and it takes exactly one (1) argument. that's it. that's the function π«Ά
π ARGUMENTS π
pfβ the PF you want to create a devlink port for. your main character struct, basically π
π₯ DESCRIPTION π₯
so what this does is: it creates and registers a devlink_port for this PF. two things. both of them. slay π
β οΈ but here's the thing bestie β this function has to be called underdevl_lock. like, not optional. no cap. if you're not holdingdevl_lockyou are Doing It Wrong π lock it up first, periodt π
β RETURN β
zero on success, or an error code if it fails. so like, 0 = ate, non-zero = something went off and you gotta go debug it π
π¦ SEE ALSO π¦
the kernel file this lives in:
./drivers/net/ethernet/intel/ice/devlink/port.c
and the whole friend group, in order, no skips, everybody's invited to the party π:
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_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_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)
okay that's the whole page, go forth and create ports responsibly π§ββοΈπ
π sign-off time: this icon of a manpage came from ./drivers/net/ethernet/intel/i... (source/version, yeah the path got cut off, that's literally how it ships, not my fault π) and it's dated October 2026 β futuristic queen behavior πβ¨ bye bestie!! π
π¦ 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