fm10k_get_host_state_pf(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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