fm10k_get_ho...tate_generic(9)
π fm10k_get_host_state_generic(9) β the Kernel API Manual glow-up π
okay bestie, so this is a page straight out of the Kernel API Manual (fm10k_get_host_state_generic(9), yes the whole title eats itself, slay), and it's literally just one little function that tells you whether the host is ready. tiny function, big main character energy. let's go β¨
πΈ NAME πΈ
fm10k_get_host_state_generic β returns the state of the host. that's it. that's the whole job. π
β¨ SYNOPSIS β¨
s32 fm10k_get_host_state_generic (struct fm10k_hw *hw , bool *host_ready );
literally just call it with your hardware struct and a bool pointer and it hands you back an s32. iconic. π«Ά
π¦ ARGUMENTS π¦
hwβ pointer to hardware structure. your actual hardware bestie, you gotta pass her in. π₯host_readyβ pointer to a boolean value that will record the host state. she gets written to, so don't hand her aNULL, i'm begging π
π DESCRIPTION π
so what does she actually do? this function checks the health of the mailbox and the health of Tx queue 0, and from those two vibes it decides whether we should report that the link is up β or not. that's the whole vibe check: mailbox + Tx queue 0 = is the link up or not. no cap. π
it's giving "small function, very important job", and honestly? obsessed. π
π SEE ALSO π
the source lives here, literally:
Kernel file ./drivers/net/ethernet/intel/fm10k/fm10k_common.c
and here's the rest of the fm10k friend group, all of them linked in the original, all of them kept, every single one, i do not skip the crew π«Ά:
fm10k_get_bus_info_generic(9)fm10k_get_invariants_generic(9)fm10k_start_hw_generic(9)fm10k_disable_queues_generic(9)fm10k_stop_hw_generic(9)fm10k_read_hw_stats_32b(9)fm10k_read_hw_stats_48b(9)fm10k_update_hw_base_48b(9)fm10k_update_hw_stats_tx_q(9)fm10k_update_hw_stats_rx_q(9)fm10k_update_hw_stats_q(9)fm10k_unbind_hw_stats_q(9)
quick reminder bestie: everything above is exactly what the page says, nothing extra, nothing guessed. i'm not out here inventing behaviour, that's not the vibe. π
okay so sign-off time π§ this page came from the Kernel API Manual, source path ./drivers/net/ethernet/intel/f... (yes it's truncated, that's how she was given to me, don't come for me π), dated October 2026, and the footer repeats fm10k_get_ho...tate_generic(9) because the kernel manual is nothing if not consistent. bye bestie, go check that mailbox health πβ¨π
π¦ 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