Searched refs:Handle (Results 1 – 8 of 8) sorted by relevance
| /sys/include/ |
| D | handle.h | 9 struct Handle; 10 typedef struct Handle Handle; typedef 15 typedef TAILQ_HEAD(HandleQueue, Handle) HandleQueue; 17 typedef struct Handle { struct 22 TAILQ_ENTRY(Handle) handleList; // Hash table argument 23 int (*read)(Handle *, void *, uint64_t, uint64_t); // Read argument 24 int (*write)(Handle *, void *, uint64_t, uint64_t); // Write argument 25 int (*flush)(Handle *); // Flush argument 26 int (*close)(Handle *); // Close argument 27 } Handle; typedef [all …]
|
| D | thread.h | 138 uint64_t Handle_Add(Process *proc, Handle *handle); 139 void Handle_Remove(Process *proc, Handle *handle); 140 Handle *Handle_Lookup(Process *proc, uint64_t fd);
|
| D | vfsuio.h | 7 int VFSUIO_Open(const char *path, Handle **handle);
|
| /sys/kern/ |
| D | handle.c | 17 Slab_Init(&handleSlab, "Handle Objects", sizeof(Handle), 16); in Handle_GlobalInit() 20 DEFINE_SLAB(Handle, &handleSlab); 36 Handle *handle, *handle_tmp; in Handle_Destroy() 47 Handle_Add(Process *proc, Handle *handle) in Handle_Add() 63 Handle_Remove(Process *proc, Handle *handle) in Handle_Remove() 70 Handle * 74 Handle *handle; in Handle_Lookup()
|
| D | vfsuio.c | 16 VFSUIO_Read(Handle *handle, void *buf, uint64_t len, uint64_t off) in VFSUIO_Read() 26 VFSUIO_Write(Handle *handle, void *buf, uint64_t len, uint64_t off) in VFSUIO_Write() 36 VFSUIO_Flush(Handle *handle) in VFSUIO_Flush() 43 VFSUIO_Close(Handle *handle) in VFSUIO_Close() 56 VFSUIO_Open(const char *path, Handle **handle) in VFSUIO_Open() 60 Handle *hdl = Handle_Alloc(); in VFSUIO_Open()
|
| D | syscall.c | 25 Handle *Console_OpenHandle(); 142 Handle *handle = Console_OpenHandle(); in Syscall_Spawn() 223 Handle *handle = Handle_Lookup(cur->proc, fd); in Syscall_Read() 241 Handle *handle = Handle_Lookup(cur->proc, fd); in Syscall_Write() 259 Handle *handle = Handle_Lookup(cur->proc, fd); in Syscall_Flush() 273 Handle *Console_OpenHandle(); 291 Handle *handle = Console_OpenHandle(); in Syscall_Open() 301 Handle *handle; in Syscall_Open() 318 Handle *handle = Handle_Lookup(cur->proc, fd); in Syscall_Close() 362 Handle *handle = Handle_Lookup(cur->proc, fd); in Syscall_ReadDir()
|
| D | loader.c | 26 extern Handle *Console_OpenHandle(); 208 Handle *handle = Console_OpenHandle(); in Loader_LoadInit()
|
| /sys/dev/ |
| D | console.c | 151 Console_Read(Handle *handle, void *buf, uint64_t off, uint64_t len) in Console_Read() 167 Console_Write(Handle *handle, void *buf, uint64_t off, uint64_t len) in Console_Write() 187 Console_Flush(Handle *handle) in Console_Flush() 193 Console_Close(Handle *handle) in Console_Close() 199 Handle * 202 Handle *handle = Handle_Alloc(); in Console_OpenHandle()
|