From 8f8e97737c80744a96753678479592d8e80a4246 Mon Sep 17 00:00:00 2001 From: Talon Kettuso <105325988+TalonFloof@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:03:41 -0600 Subject: [PATCH] mrrr --- kobold/kernel/vfs.zig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/kobold/kernel/vfs.zig b/kobold/kernel/vfs.zig index e69de29..6999876 100644 --- a/kobold/kernel/vfs.zig +++ b/kobold/kernel/vfs.zig @@ -0,0 +1,16 @@ +const std = @import("std"); + +pub const VNode = extern struct { + name: [256]u8 = [_]u8{0} ** 256. + + unreferenced: ?*fn (*VNode) callconv(.C) c_int = null, + open: ?*fn(*VNode) callconv(.C) c_int = null, + close: ?*fn(*VNode) callconv(.C) c_int = null, + readDir: ?*fn(*VNode, u32, *DirEntry) callconv(.C) c_int = null, + findDir: ?*fn(*VNode, [*c]const u8, *?*VNode) callconv(.C) c_int = null, + truncate: ?*fn(*VNode, usize) callconv(.C) c_int = null, + create: ?*fn(*VNode, [*c]const u8, usize) callconv(.C) c_int = null, + unlink: ?*fn(*VNode, [*c]const u8) callconv(.C) c_int = null, + rename: ?*fn(*VNode, [*c]const u8, *VNode, [*c]const u8) callconv(.C) c_int = null, + ioctl: +}; \ No newline at end of file