oa_1000bt1_get_tdr_distance(9)
π oa_1000bt1_get_tdr_distance(9) β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual, and honestly? it's giving "one tiny function, one big job." π Let's get into it.
πΈ NAME πΈ
oa_1000bt1_get_tdr_distance β get the distance to the main fault from a TDR register value. literally what it says on the tin, no cap π
β¨ SYNOPSIS β¨
int oa_1000bt1_get_tdr_distance (u16 reg_value );
π¦ ARGUMENTS π¦
reg_valueβ the value you read out of the TDR register. that's it, that's the whole input π«Ά
π DESCRIPTION π
So! This function takes a register value from the HDD.TDR register and extracts the distance to the main fault that the TDR feature detected. π΅οΈββοΈ It's basically the "how far away is the problem" machine.
The distance is measured in centimeters and ranges from 0 to 3100 centimeters. iconic range, honestly.
β οΈ but listen β if the distance is not available (0x3f), the function returns-ERANGE. so don't go reading that as a real distance, bestie, it's a "no answer, sorry" π
π RETURN π
- The distance to the main fault, in centimeters π
- or
-ERANGEif the resolution is not possible π
π SEE ALSO π
- Kernel file
./drivers/net/phy/open_alliance_helpers.c oa_1000bt1_get_ethtool_cable_result_code(9)
π SIGN-OFF π
that's the whole page, bestie! π
it lives under ./drivers/net/phy, dated October 2026, and this lovely little manpage is oa_1000bt1_get_tdr_distance(9) β go forth and measure some cable faults β¨π§π
π¦ 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