#include <sys/handle.h>
Go to the source code of this file.
◆ VFSUIO_Open()
int VFSUIO_Open |
( |
const char * |
path, |
|
|
Handle ** |
handle |
|
) |
| |
Definition at line 56 of file vfsuio.c.
57{
58 int status;
59
60 Handle *hdl = Handle_Alloc();
61 if (!hdl) {
63 }
64
66 if (!vn) {
67 Handle_Free(hdl);
69 }
70
72 if (status != 0) {
73
74 Handle_Free(hdl);
75 return status;
76 }
77
84
85 *handle = hdl;
86
87 return 0;
88}
int(* write)(Handle *, void *, uint64_t, uint64_t)
int(* read)(Handle *, void *, uint64_t, uint64_t)
VNode * VFS_Lookup(const char *path)
static int VFSUIO_Write(Handle *handle, void *buf, uint64_t len, uint64_t off)
static int VFSUIO_Read(Handle *handle, void *buf, uint64_t len, uint64_t off)
static int VFSUIO_Flush(Handle *handle)
static int VFSUIO_Close(Handle *handle)