Kernel: Allow getting a Device from a FileDescription

Like we already do for other kinds of files.
This commit is contained in:
Sergey Bugaev 2020-01-12 18:28:23 +03:00 committed by Andreas Kling
commit 3393b78623
Notes: sideshowbarker 2024-07-19 10:07:36 +09:00
2 changed files with 16 additions and 0 deletions

View file

@ -71,6 +71,8 @@ public:
const File& file() const { return *m_file; }
bool is_device() const;
const Device* device() const;
Device* device();
bool is_tty() const;
const TTY* tty() const;