github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/fuchsia/timer.txt (about)

     1  # Copyright 2017 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  # See https://cs.opensource.google/fuchsia/fuchsia/+/main:zircon/vdso/timer.fidl
     5  
     6  include <zircon/syscalls.h>
     7  
     8  resource zx_timer[zx_handle]
     9  
    10  zx_timer_create(options flags[timer_options], clock_id const[ZX_CLOCK_MONOTONIC], out ptr[out, zx_timer])
    11  zx_timer_set(handle zx_timer, deadline zx_time, slack int64)
    12  zx_timer_cancel(handle zx_timer)
    13  
    14  timer_options = ZX_TIMER_SLACK_CENTER, ZX_TIMER_SLACK_EARLY, ZX_TIMER_SLACK_LATE