Kernel: Keep TTY names in character buffers instead of Strings

Just going over some little unnecessary little kmalloc allocations.
This commit is contained in:
Andreas Kling 2019-10-18 14:13:43 +02:00
commit 2f37fa487d
Notes: sideshowbarker 2024-07-19 11:39:14 +09:00
7 changed files with 27 additions and 31 deletions

View file

@ -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];
};