fbnic_ts40_to_ns(9)
π fbnic_ts40_to_ns(9) β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, you're in the fbnic driver, and somebody hands you a truncated 40-bit timestamp straight out of a descriptor. girlypop, what do you even do with that?? you call this function. that's the whole vibe. β¨
πΈ NAME πΈ
fbnic_ts40_to_ns β literally converts a descriptor timestamp into PHC time, no cap ππ
π¦ SYNOPSIS π¦
u64 fbnic_ts40_to_ns(struct fbnic_net *fbn, u64 ts40);
π ARGUMENTS π
fbnβ the netdev priv of the FB NIC π that's your main character struct, she's got the contextts40β the timestamp read from a descriptor π the raw 40-bit girly in question
π₯ RETURN π₯
A u64 value of PHC time, in nanoseconds β±οΈβ¨ that's the glow-up, that's the whole point
π DESCRIPTION π
So here's the tea, bestie: this function takes that truncated 40-bit device timestamp you just read out of a descriptor and converts it into the full PHC time in nanoseconds. π§
like β the descriptor only gives you part of the picture, and this little icon turns it into the complete real-time clock situation. it's giving translator. it's giving full picture energy. periodt. π«Ά
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/meta/fbnic/fbnic_txrx.cπ β go read it, iykyk
π reminder for my fellow gremlins: this is kernel API territory, so keep those types exactly as they are βstruct fbnic_net *andu64in,u64out. don't get cute with it. π
and that's the page, bestie!! π source/version vibes: ./drivers/net/ethernet/meta/fbnic, dated October 2026 β mwah, slay, stan the FB NIC driver forever πβ
π¦ 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