ef4_ethtool_fill_self_tests(9)
π ef4_ethtool_fill_self_tests(9) β Kernel API Manual β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is ef4_ethtool_fill_self_tests. she's giving driver-internals main character energy and honestly? she ate. π
πΈ NAME πΈ
ef4_ethtool_fill_self_tests β literally just get self-test details, that's it, that's the whole vibe π¦
β¨ SYNOPSIS β¨
int ef4_ethtool_fill_self_tests (struct ef4_nic *efx , struct
ef4_self_tests *tests , u8 *strings , u64 *data );
like, one function, four args, no drama (well, okay, some drama β see the DESCRIPTION) π
π«Ά ARGUMENTS π«Ά
efxβ the Efx NIC itself, your actual network card babe, the whole reason we're here πtestsβ the Efx self-test results structure, orNULL(yes,NULLis a valid choice here, we love a flexible queen) πstringsβ ethtool strings, orNULL(again,NULLis fine, no judgement) πΈdataβ ethtool test results, orNULL(third time's the charm,NULL-friendly fr fr) β
π DESCRIPTION π
so what she actually does: get the self-test number of strings, the strings themselves, and/or the test results. return value is the number of strings β and lowkey that's == the number of test results, so if you were wondering, yeah, they match. π
now here's the tea, the lore, the why β β the reason for merging these three functions is to make sure that they can never be inconsistent. like, ever. no cap. that's the whole design philosophy and honestly it's iconic. π₯
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/sfc/falcon/ethtool.c ef4_fill_test(9)ef4_fill_loopback_test(9)
go read those too, iykyk π§
okay that's the whole page bestie, you're officially educated π this lil slice of kernel API manual lives in ./drivers/net/ethernet/sfc/falcon and it's dated October 2026 β and the title, obviously, is ef4_ethtool_fill_self_tests(9). slay, go forth and fill those self-tests π
π¦ 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