Skip to content

Commit

Permalink
mrrr
Browse files Browse the repository at this point in the history
  • Loading branch information
TalonFloof authored Nov 21, 2024
1 parent f780bb2 commit 8f8e977
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kobold/kernel/vfs.zig
Original file line number Diff line number Diff line change
@@ -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:
};

0 comments on commit 8f8e977

Please sign in to comment.