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
commit 1492bb2fd6
Notes: sideshowbarker 2024-07-18 10:02:01 +09:00
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;