qed_iov_is_valid_vfid(9)
π qed_iov_is_valid_vfid(9) π
okay so this is from the Kernel API Manual, and it's literally the VF ID validity-checking bestie you didn't know you needed. no cap, it's giving "small function, big gatekeeping energy" π
β¨ NAME β¨
qed_iov_is_valid_vfid β check if the given VF ID @vfid is valid w.r.t. @b_enabled_only.
So the tea is: if b_enabled_only = true, only an enabled VF id is valid. otherwise, any VF id less than max_vfs is valid. that's the rule, periodt π
π¦ SYNOPSIS π¦
bool qed_iov_is_valid_vfid (struct qed_hwfn *p_hwfn , int rel_vf_id , bool b_enabled_only , bool b_non_malicious );
πΈ ARGUMENTS πΈ
p_hwfnβ HW device data. the hardware main-character struct, iykyk π«Άrel_vf_idβ Relative VF ID. literally the VF id we're checking, bestie.b_enabled_onlyβ consider only enabled VF. so if this is on, enabled-only is the vibe check.b_non_maliciousβtrueiff we want to validate vf isn't malicious. not me doing a lil security side-eye π
π₯ RETURN π₯
bool β true for valid VF ID. that's it, that's the answer, slay β¨
π SEE ALSO π
Kernel file ./drivers/net/ethernet/qlogic/qed/qed_sriov.h β go read it, bestie, it's right there π
qed_iov_get_next_active_vf(9)qed_iov_hw_info(9)qed_add_tlv(9)qed_dp_tlv_list(9)qed_sriov_vfpf_malicious(9)qed_sriov_eqe_event(9)qed_iov_alloc(9)qed_iov_setup(9)qed_iov_free(9)qed_iov_free_hw_info(9)qed_iov_mark_vf_flr(9)qed_iov_search_list_tlvs(9)
made with π from ./drivers/net/ethernet/qlogic/qed, dated October 2026 π
π¦ 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