diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-23 13:17:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-23 15:25:43 +0200 |
commit | b3736c1b1e8c1cd0263515c79aa323de1aae07ed (patch) | |
tree | 861cfcf93fc5f8503c10ebcb1a0f3f55b6dabdb5 /Kernel/FileSystem | |
parent | b8af5cd8da74645945c8ab7b63846f051c185f50 (diff) | |
download | serenity-b3736c1b1e8c1cd0263515c79aa323de1aae07ed.zip |
Kernel: Use a FlatPtr for the "argument" to ioctl()
Since it's often used to pass pointers, it should really be a FlatPtr.
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/File.cpp | 2 | ||||
-rw-r--r-- | Kernel/FileSystem/File.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/File.cpp b/Kernel/FileSystem/File.cpp index 85d0de5a71..c12b80db5b 100644 --- a/Kernel/FileSystem/File.cpp +++ b/Kernel/FileSystem/File.cpp @@ -50,7 +50,7 @@ void File::close() { } -int File::ioctl(FileDescription&, unsigned, unsigned) +int File::ioctl(FileDescription&, unsigned, FlatPtr) { return -ENOTTY; } diff --git a/Kernel/FileSystem/File.h b/Kernel/FileSystem/File.h index bcb54f6251..0ba1fb239f 100644 --- a/Kernel/FileSystem/File.h +++ b/Kernel/FileSystem/File.h @@ -76,7 +76,7 @@ public: virtual ssize_t read(FileDescription&, size_t, u8*, ssize_t) = 0; virtual ssize_t write(FileDescription&, size_t, const u8*, ssize_t) = 0; - virtual int ioctl(FileDescription&, unsigned request, unsigned arg); + virtual int ioctl(FileDescription&, unsigned request, FlatPtr arg); virtual KResultOr<Region*> mmap(Process&, FileDescription&, VirtualAddress preferred_vaddr, size_t offset, size_t size, int prot, bool shared); virtual String absolute_path(const FileDescription&) const = 0; |