mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
Kernel: Keep TTY names in character buffers instead of Strings
Just going over some little unnecessary little kmalloc allocations.
This commit is contained in:
parent
2305dee455
commit
2f37fa487d
Notes:
sideshowbarker
2024-07-19 11:39:14 +09:00
Author: https://github.com/awesomekling
Commit: 2f37fa487d
7 changed files with 27 additions and 31 deletions
|
@ -14,7 +14,7 @@ public:
|
|||
|
||||
private:
|
||||
// ^TTY
|
||||
virtual String tty_name() const override;
|
||||
virtual StringView tty_name() const override;
|
||||
virtual ssize_t on_tty_write(const u8*, ssize_t) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
|
@ -29,5 +29,5 @@ private:
|
|||
|
||||
RefPtr<MasterPTY> m_master;
|
||||
unsigned m_index;
|
||||
String m_tty_name;
|
||||
char m_tty_name[32];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue