cxgb4_sgetim_to_hwtstamp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cxgb4_sgetim_to_hwtstamp β€” bestie edition ✨

okay so you found yourself in the kernel API manual (section 9, the fun one πŸŽ€) and the function is cxgb4_sgetim_to_hwtstamp. say it with me: sge-tim to hw-timstamp. iconic name, honestly. it converts an sge time stamp into a hw time stamp, and yes that's the whole personality πŸ’–


✨ SYNOPSIS ✨

void cxgb4_sgetim_to_hwtstamp (struct adapter *adap , struct
skb_shared_hwtstamps *hwtstamps , u64 sgetstamp );

like, that's it. void return, three args, no notes. she's simple, she's effective 🫢


🌸 ARGUMENTS 🌸

  • adap β€” the adapter. your whole card, your whole vibe. main character energy πŸ‘‘
  • hwtstamps β€” the time stamp structure to update. this is the one getting a glow-up in place, so bestie, it's being changed not copied πŸ’…
  • sgetstamp β€” the 60bit iqe timestamp. six-zero bits. no cap, that's a lot of bits πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

so every ingress queue entry has the 60-bit timestamp, right? literally every single one. this function takes that timestamp β€” which is in Core Clock ticks, important detail, don't forget it β€” converts it into ktime_t, and assigns it. that's the whole glow-up: Core Clock ticks in, ktime_t out, timestamp assigned ✨

not me being obsessed with a unit conversion. but fr fr, that's what she does 🧚


🌈 SEE ALSO 🌈

these all live in the Kernel file ./drivers/net/ethernet/chelsio/cxgb4/sge.c β€” same friend group, same source file, all of them repping the (9) section πŸ“

like, that is a whole friend group. read them all. i'm not skipping any, and neither should you πŸ’€


and that's the page, bestie 🫢 this one shipped out of ./drivers/net/ethernet/chelsio... back in October 2026, and the whole thing is filed under cxgb4_sgetim_to_hwtstamp(9). go convert some timestamps, you've got this πŸŒŸπŸ’œ

πŸ“¦ where this page comes from