MCPcopy Create free account
hub / github.com/f9micro/f9-kernel / ktimer_get_now

Function ktimer_get_now

kernel/ktimer.c:60–66  ·  view source on GitHub ↗

Get current kernel time in ticks since boot. * Returns 64-bit monotonically increasing tick count. * Used by SYS_SYSTEM_CLOCK syscall for userspace time queries. * * ATOMICITY: Disables interrupts to prevent torn reads on 32-bit ARM. * Without this, the timer ISR could update ktimer_now between reading * the low and high words, producing non-monotonic or corrupted values. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

sys_system_clockFunction · 0.85

Calls 2

irq_save_flagsFunction · 0.85
irq_restore_flagsFunction · 0.85

Tested by

no test coverage detected