fm10k_get_host_state_pf(9)
π fm10k_get_host_state_pf(9) β aka the Kernel API Manual glow-up π
okay so bestie, welcome to the fm10k_get_host_state_pf page from the Kernel API Manual β¨ this one's a little function with a big job and honestly? she ate.
β¨ NAME β¨
fm10k_get_host_state_pf β literally returns the state of the switch and the mailbox π no cap, that's the whole vibe.
π¦ SYNOPSIS π¦
s32 fm10k_get_host_state_pf (struct fm10k_hw *hw , bool *switch_ready );
that's it, that's the signature, copy it exactly bestie π«Ά
πΈ ARGUMENTS πΈ
hwβ pointer to the hardware structure β¨ like, the hardware in question, she's the main character here.switch_readyβ pointer to a boolean value that will record the switch state π« so like, whatever she finds out about the switch gets written right here.
π DESCRIPTION π
so the way this works: fm10k_get_host_state_pf checks the DMA_CTRL2 register and the mailbox π¬ to figure out whether the switch is ready for the PF to start requesting addresses and mapping traffic to the local interface π¦
that's it. that's the whole mission. vibe check on the switch, report back, slay π
π SEE ALSO π
the kernel file she lives in:
./drivers/net/ethernet/intel/fm10k/fm10k_pf.c
and her whole friend group, fr fr β every single one of these icons:
fm10k_reset_hw_pf(9)fm10k_is_ari_hierarchy_pf(9)fm10k_init_hw_pf(9)fm10k_update_vlan_pf(9)fm10k_read_mac_addr_pf(9)fm10k_glort_valid_pf(9)fm10k_update_xc_addr_pf(9)fm10k_update_uc_addr_pf(9)fm10k_update_mc_addr_pf(9)fm10k_update_xcast_mode_pf(9)fm10k_update_int_moderator_pf(9)fm10k_update_lport_state_pf(9)fm10k_configure_dglort_map_pf(9)fm10k_iov_assign_resources_pf(9)fm10k_iov_configure_tc_pf(9)fm10k_iov_assign_int_moderator_pf(9)fm10k_iov_assign_default_mac_vlan_pf(9)fm10k_iov_reset_resources_pf(9)fm10k_iov_set_lport_pf(9)fm10k_iov_reset_lport_pf(9)fm10k_iov_update_stats_pf(9)fm10k_iov_msg_msix_pf(9)fm10k_iov_select_vid(9)fm10k_iov_supported_xcast_mode_pf(9)fm10k_iov_msg_lport_state_pf(9)fm10k_update_hw_stats_pf(9)fm10k_rebind_hw_stats_pf(9)fm10k_set_dma_mask_pf(9)fm10k_get_fault_pf(9)fm10k_request_lport_map_pf(9)fm10k_msg_lport_map_pf(9)fm10k_msg_update_pvid_pf(9)fm10k_record_global_table_data(9)fm10k_msg_err_pf(9)
go read them, iykyk ππ
π«Ά little sign-off from your girl: this page is from the source/version line ./drivers/net/ethernet/intel/f... and it's dated October 2026 β iconic, timeless, periodt. πβ¨π
π¦ 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