efx_ethtool_fill_self_tests(9)
π efx_ethtool_fill_self_tests(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a little kernel-side helper and honestly it's giving "one function to rule them all" energy π
πΈ NAME πΈ
efx_ethtool_fill_self_tests β get self-test details π§
β¨ SYNOPSIS β¨
int efx_ethtool_fill_self_tests (struct efx_nic *efx , struct
efx_self_tests *tests , u8 *strings , u64 *data );
π ARGUMENTS π
efxβ the efx NIC π₯οΈ like, the actual network interface card in question, no cap.testsβ the efx self-test results structure, orNULLif you're not about that life πstringsβ the ethtool strings, orNULL(same deal, optional bestie) π§΅dataβ the ethtool test results, orNULLβ you can absolutely pass nothing here and it's fine π
π₯ DESCRIPTION π₯
So what does it actually do? It gets the self-test number of strings, the strings, and/or the test results. Pick your fighter π You get back the number of strings β and lowkey the tea is that number is == the number of test results π
The reason for merging these three functions is to make sure that they can never be inconsistent. fr fr, that's the whole point β one function, zero chance of two of them drifting apart and lying to each other π iconic design honestly
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/ethernet/sfc/siena/ethtool_common.cβ go read it, iykyk π efx_fill_test(9)efx_fill_loopback_test(9)π
and that's the whole page bestie π«Ά signing off from ./drivers/net/ethernet/sfc/siena, October 2026 β brought to you by efx_ethtool_fill_self_tests(9) β¨ go fill some self-tests, slay π
π¦ 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