1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 22:07:36 +00:00

Kernel: Add support for reading from VirtIOConsole

This allows two-way communication with the host through a VirtIOConsole.
This is necessary for features like clipboard sharing.
This commit is contained in:
x-yl 2021-06-20 17:46:04 +04:00 committed by Ali Mohammad Pur
parent 1c06d77262
commit 1492bb2fd6
5 changed files with 74 additions and 8 deletions

View file

@ -42,6 +42,8 @@ private:
virtual String device_name() const override { return String::formatted("hvc{}", minor()); }
virtual void handle_queue_update(u16 queue_index) override;
void init_receive_buffer();
OwnPtr<RingBuffer> m_receive_buffer;
OwnPtr<RingBuffer> m_transmit_buffer;