MCPcopy Create free account
hub / github.com/facebook/time / ReadTXtimestamp

Function ReadTXtimestamp

timestamp/timestamp_linux.go:403–410  ·  view source on GitHub ↗

ReadTXtimestamp returns HW TX timestamp

(connFd int)

Source from the content-addressed store, hash-verified

401 timeStart := time.Now()
402 attempts := 0
403 for ; attempts < AttemptsTXTS; attempts++ {
404 e1 := waitForHWTS(connFd)
405 if errors.Is(e1, unix.EINVAL) {
406 continue
407 }
408 tboob, err := recvoob(connFd, toob)
409 if err != nil {
410 continue
411 }
412
413 if timestamp, err := socketControlMessageSeqIDTimestamp(toob, tboob, seqID); err == nil {

Callers 5

WriteToWithTSMethod · 0.92
sendMsgTSMethod · 0.92
WriteToWithTSMethod · 0.92
Test_ReadTXtimestampFunction · 0.70

Calls 1

ReadTXtimestampBufFunction · 0.70

Tested by 2

Test_ReadTXtimestampFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…