mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 09:37:34 +00:00
Kernel: Allow getting a Device from a FileDescription
Like we already do for other kinds of files.
This commit is contained in:
parent
35b0f10f20
commit
3393b78623
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue