diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-29 13:58:40 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-29 13:58:40 +0200 |
commit | 8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11 (patch) | |
tree | 75257c71c207ff7910aafd89517c0e31aa970e32 /Kernel/Devices/BXVGADevice.h | |
parent | 3761bc3ed7bc245e5ba4119136e6e33698b30300 (diff) | |
download | serenity-8cbb7f101f1d7d8cf71a9347ddf3a6ca46a97b11.zip |
Kernel: Have File virtuals take a FileDescriptor& rather than a Process&.
This will allow us to implement different behaviors depending on the role
of the descriptor a File is being accessed through.
Diffstat (limited to 'Kernel/Devices/BXVGADevice.h')
-rw-r--r-- | Kernel/Devices/BXVGADevice.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/Devices/BXVGADevice.h b/Kernel/Devices/BXVGADevice.h index 4db38fc577..96207d400d 100644 --- a/Kernel/Devices/BXVGADevice.h +++ b/Kernel/Devices/BXVGADevice.h @@ -17,7 +17,7 @@ public: void set_resolution(int width, int height); void set_y_offset(int); - virtual int ioctl(Process&, unsigned request, unsigned arg) override; + virtual int ioctl(FileDescriptor&, unsigned request, unsigned arg) override; virtual KResultOr<Region*> mmap(Process&, LinearAddress preferred_laddr, size_t offset, size_t) override; size_t framebuffer_size_in_bytes() const { return m_framebuffer_size.area() * sizeof(dword) * 2; } @@ -25,10 +25,10 @@ public: private: virtual const char* class_name() const override { return "BXVGA"; } - virtual bool can_read(Process&) const override; - virtual bool can_write(Process&) const override; - virtual ssize_t read(Process&, byte*, ssize_t) override; - virtual ssize_t write(Process&, const byte*, ssize_t) override; + virtual bool can_read(FileDescriptor&) const override; + virtual bool can_write(FileDescriptor&) const override; + virtual ssize_t read(FileDescriptor&, byte*, ssize_t) override; + virtual ssize_t write(FileDescriptor&, const byte*, ssize_t) override; void set_register(word index, word value); dword find_framebuffer_address(); |