From 7158c3535e2d82c5501979f88a8c7502900b1c15 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Thu, 28 Oct 2021 23:02:31 +0800 Subject: [PATCH] driver/filesystem: add Ioctl() --- driver/filesystem/filesystem.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/driver/filesystem/filesystem.hpp b/driver/filesystem/filesystem.hpp index 40567a5..3067a92 100644 --- a/driver/filesystem/filesystem.hpp +++ b/driver/filesystem/filesystem.hpp @@ -250,6 +250,9 @@ public: // Close an open directory. virtual int Closedir(const char *path, OpenFile *file) { return -ENOSYS; } + + // Ioctl (arbitrary action performed on the opened file) + virtual uintptr_t Ioctl(const char *path, uintptr_t cmd, void *arg, OpenFile *file) { return -ENOSYS; } };