github.com/racerxdl/gonx@v0.0.0-20210103083128-c5afc43bcbd2/nx/nxtypes/kernel.go (about)

     1  package nxtypes
     2  
     3  type Handle uint32               // Resource handle
     4  type SharedMemoryHandle Handle   // Shared Memory handle
     5  type TransferMemoryHandle Handle // Transfer Memory handle
     6  type SessionHandle Handle        // Session handle
     7  type ReventHandle Handle         // Revent handle
     8  type ARUID uint64                // Applet resource user id
     9  
    10  // NativeHandle from Android native_handle.h
    11  type NativeHandle struct {
    12  	Version int32
    13  	NumFds  int32
    14  	NumInts int32
    15  }
    16  
    17  // Event is a Kernel-mode event structure
    18  type Event struct {
    19  	Revent    Handle
    20  	Wevent    Handle
    21  	AutoClear bool
    22  }