mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:47:44 +00:00
Kernel: Add a method to determine the desired permissions of a Device
This method will be used later in DevFS, to set the appropriate permissions for each device node.
This commit is contained in:
parent
092a13211a
commit
18e77aa285
17 changed files with 50 additions and 0 deletions
|
@ -67,6 +67,9 @@ public:
|
|||
void set_default_termios();
|
||||
void hang_up();
|
||||
|
||||
// ^Device
|
||||
virtual mode_t required_mode() const override { return 0620; }
|
||||
|
||||
protected:
|
||||
virtual ssize_t on_tty_write(const UserOrKernelBuffer&, ssize_t) = 0;
|
||||
void set_size(unsigned short columns, unsigned short rows);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue