From 902ee97d7171ec3476649202631a5fb7d08144a7 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..fc7faab 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 int Ioctl(const char *path, uintptr_t cmd, void *arg, OpenFile *file) { return -ENOSYS; } };