ice_get_vf_from_pfq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to ice_get_vf_from_pfq(9) from the Kernel API Manual β€” it’s literally the tiny lookup that tells you which VF owns the PF-space queue you passed in. πŸ’…βœ¨

πŸ’– NAME πŸ’–

ice_get_vf_from_pfq β€” get the VF who owns the PF space queue passed in. That’s the whole vibe: hand over a queue index, get the matching VF. πŸŽ€

✨ SYNOPSIS ✨

struct ice_vf * ice_get_vf_from_pfq (struct ice_pf *pf , u16 pfq );

🧚 ARGUMENTS 🧚

  • pf β€” the PF used to index all VFs. It’s giving β€œmain character list of VFs,” no cap. πŸ‘‘
  • pfq β€” queue index relative to the PF’s function space. Keep it exact bestie. 🌸

🌸 DESCRIPTION 🌸

so the tea is: if no VF is found who owns the pfq, then return NULL. Otherwise, return a pointer to the VF who owns the pfq. Slay. πŸ’…

⚠️ big important caveat, bestie: if this function returns non-NULL, it acquires a reference count of the VF structure. The caller is responsible for calling ice_put_vf to drop this reference. Do not forget the ice_put_vf, or that reference is gonna be living rent-free. 😭πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/net/ethernet/intel/ice/ice_sriov.c β€” yes, that’s the spot. πŸ“

the whole friend group is here: ice_free_vf_entries(9), ice_free_vf_res(9), ice_dis_vf_mappings(9), ice_free_vfs(9), ice_vf_vsi_setup(9), ice_ena_vf_msix_mappings(9), ice_ena_vf_q_mappings(9), ice_ena_vf_mappings(9), ice_calc_vf_reg_idx(9), ice_set_per_vf_res(9), ice_init_vf_vsi_res(9), ice_start_vfs(9), ice_sriov_free_vf(9), ice_sriov_clear_reset_state(9), ice_sriov_clear_mbx_register(9), ice_sriov_trigger_reset_register(9), ice_sriov_poll_reset_status(9), ice_sriov_clear_reset_trigger(9), ice_sriov_post_vsi_rebuild(9), ice_create_vf_entries(9), ice_ena_vfs(9), ice_pci_sriov_ena(9), ice_check_sriov_allowed(9), ice_sriov_get_vf_total_msix(9), ice_sriov_set_msix_vec_count(9), ice_sriov_configure(9), ice_process_vflr_event(9), ice_globalq_to_pfq(9), ice_vf_lan_overflow_event(9), ice_set_vf_spoofchk(9), ice_get_vf_cfg(9), __ice_set_vf_mac(9), ice_set_vf_mac(9), ice_setup_vf_trust(9), ice_set_vf_trust(9), ice_set_vf_link_state(9), ice_calc_all_vfs_min_tx_rate(9), ice_min_tx_rate_oversubscribed(9), ice_set_vf_bw(9), ice_get_vf_stats(9), ice_is_supported_port_vlan_proto(9), ice_set_vf_port_vlan(9), ice_print_vf_rx_mdd_event(9), ice_print_vf_tx_mdd_event(9), ice_print_vfs_mdd_events(9), ice_restore_all_vfs_msi_state(9).

xoxo bestie, this page is sourced from ./drivers/net/ethernet/intel/ice, October 2026 edition 🫢✨

πŸ“¦ where this page comes from