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

     1  # Copyright 2022 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/interrupt.fidl
     5  
     6  include <zircon/syscalls.h>
     7  include <zircon/types.h>
     8  
     9  resource zx_interrupt[zx_handle]
    10  
    11  zx_interrupt_create(src_obj zx_resource, src_num int32, options flags[zx_interrupts_create], out_handle ptr[out, zx_interrupt])
    12  
    13  zx_interrupt_bind(handle zx_interrupt, port_handle zx_port, key int64, options flags[zx_interrupts_bind])
    14  
    15  zx_interrupt_wait(handle zx_interrupt, out_timestamp ptr[out, zx_time])
    16  
    17  zx_interrupt_trigger(handle zx_interrupt, options const[0], timestamp zx_time)
    18  
    19  zx_interrupts_create = ZX_INTERRUPT_REMAP_IRQ, ZX_INTERRUPT_MODE_DEFAULT, ZX_INTERRUPT_MODE_EDGE_LOW, ZX_INTERRUPT_MODE_EDGE_HIGH, ZX_INTERRUPT_MODE_LEVEL_LOW, ZX_INTERRUPT_MODE_LEVEL_HIGH, ZX_INTERRUPT_MODE_EDGE_BOTH, ZX_INTERRUPT_VIRTUAL
    20  zx_interrupts_bind = ZX_INTERRUPT_BIND, ZX_INTERRUPT_UNBIND