X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Fvfs%2Ffs%2Fdevfs.c;h=b3f4a57917bf7cedd06b9f10df00d13b71cd080d;hb=5f2024e5977e0cca0993a20dad5ab794c94d5711;hp=be5a655abdac59b0a97c6f6ba03b71ae50428b7f;hpb=4e949acb1c98bc071af2d5d9038b4a3e703bf33d;p=tpg%2Facess2.git diff --git a/Kernel/vfs/fs/devfs.c b/Kernel/vfs/fs/devfs.c index be5a655a..b3f4a579 100644 --- a/Kernel/vfs/fs/devfs.c +++ b/Kernel/vfs/fs/devfs.c @@ -8,8 +8,10 @@ #include // === PROTOTYPES === +#if 0 int DevFS_AddDevice(tDevFS_Driver *Device); void DevFS_DelDevice(tDevFS_Driver *Device); +#endif tVFS_Node *DevFS_InitDevice(const char *Device, const char **Options); char *DevFS_ReadDir(tVFS_Node *Node, int Pos); tVFS_Node *DevFS_FindDir(tVFS_Node *Node, const char *Name); @@ -18,13 +20,17 @@ tVFS_Node *DevFS_FindDir(tVFS_Node *Node, const char *Name); tVFS_Driver gDevFS_Info = { "devfs", 0, DevFS_InitDevice, NULL, NULL }; +tVFS_NodeType gDevFS_DirType = { + .TypeName = "DevFS-Dir", + .ReadDir = DevFS_ReadDir, + .FindDir = DevFS_FindDir + }; tVFS_Node gDevFS_RootNode = { .Size = 0, .Flags = VFS_FFLAG_DIRECTORY, .NumACLs = 1, .ACLs = &gVFS_ACL_EveryoneRX, - .ReadDir = DevFS_ReadDir, - .FindDir = DevFS_FindDir + .Type = &gDevFS_DirType }; tDevFS_Driver *gDevFS_Drivers = NULL; int giDevFS_NextID = 1;