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

Function StoreFBClockDataV2

fbclock/shmem.go:260–267  ·  view source on GitHub ↗

StoreFBClockDataV2 stores the primary anchor section. fd param should be open file descriptor of that shared mem.

(fd uintptr, d DataV2)

Source from the content-addressed store, hash-verified

258// StoreFBClockDataV2 stores the primary anchor section.
259// fd param should be open file descriptor of that shared mem.
260func StoreFBClockDataV2(fd uintptr, d DataV2) error {
261 // fbclock_clockdata_store_data_v2 comes from fbclock.c
262 res := C.fbclock_clockdata_store_data_v2(C.uint(fd), clockDataV2ToC(d))
263 if res != 0 {
264 return fmt.Errorf("failed to store data: %s", strerror(res))
265 }
266 return nil
267}
268
269// StoreFBClockDataRealtime stores the realtime anchor section, used on hosts
270// whose primary is MONOTONIC_RAW. It's a separate call from StoreFBClockDataV2

Callers 1

StoreFBClockDataFunction · 0.70

Calls 2

clockDataV2ToCFunction · 0.85
strerrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…