i40e_get_pf_count(9)
π i40e_get_pf_count(9) β from the Kernel API Manual, bestie β¨
okay so we're in the kernel API manual today and the star of the show is i40e_get_pf_count β yes the (9) means it's a kernel-internal function page, iykyk π«Ά
πΈ NAME πΈ
i40e_get_pf_count β literally just: get the PCI PF count. that's the whole vibe. π
β SYNOPSIS β
u32 i40e_get_pf_count (struct i40e_hw *hw );
returns a u32, takes one pointer, no cap. slay.
π¦ ARGUMENTS π¦
hwβ pointer to a hw. yep. that's it. just a pointer to astruct i40e_hw, hand it over and let the function cook π
β¨ DESCRIPTION β¨
so what does it actually do? it reports the function number of the highest PCI physical function plus 1 β key detail, don't forget the plus one bestie π β exactly as it is loaded from the NVM. that's the whole story. no plot twists, no side quests, it just reads it off the NVM and tells you. iconic honestly π
π RETURN π
returns the PCI PF count. that's the return value. periodt. π₯
π SEE ALSO π
kernel file right here in all its glory:
./drivers/net/ethernet/intel/i40e/i40e.h
and the whole friend group, in order, no one left out π«Ά:
__i40e_pf_next_vsi(9)__i40e_pf_next_veb(9)i40e_addr_to_hkey(9)i40e_info_nvm_ver(9)i40e_info_eetrack(9)i40e_info_civd_ver(9)i40e_nvm_version_str(9)i40e_netdev_to_pf(9)i40e_get_fd_cnt_all(9)i40e_read_fd_input_set(9)i40e_write_fd_input_set(9)i40e_find_vsi_by_type(9)i40e_irq_dynamic_enable(9)i40e_is_tc_mqprio_enabled(9)i40e_hw_to_pf(9)i40e_pf_get_vsi_by_seid(9)i40e_pf_get_main_vsi(9)i40e_pf_get_veb_by_seid(9)i40e_pf_get_main_veb(9)
ngl this page is short and sweet and that's exactly why we love her π go read the neighbours if you want the lore.
and that's the whole page bestie!! π sourced from ./drivers/net/ethernet/intel/i40e, dated October 2026 β mwah, go forth and count your PFs π
β¨π
π¦ 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