1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +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:
Andreas Kling 2019-10-18 14:13:43 +02:00
parent 2305dee455
commit 2f37fa487d
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];
};