StoreFBClockDataV2 stores the primary anchor section. fd param should be open file descriptor of that shared mem.
(fd uintptr, d DataV2)
| 258 | // StoreFBClockDataV2 stores the primary anchor section. |
| 259 | // fd param should be open file descriptor of that shared mem. |
| 260 | func 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 |
no test coverage detected
searching dependent graphs…