From e452303c664c3facfebe39539da0d796029bc603 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 15 Jan 2019 09:17:22 +0100 Subject: Allow character devices to block write attempts until there is more space. --- Kernel/TTY.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Kernel/TTY.h') diff --git a/Kernel/TTY.h b/Kernel/TTY.h index 8d92f89391..b739d55e17 100644 --- a/Kernel/TTY.h +++ b/Kernel/TTY.h @@ -13,6 +13,7 @@ public: virtual ssize_t read(byte*, size_t) override; virtual ssize_t write(const byte*, size_t) override; virtual bool has_data_available_for_reading(Process&) const override; + virtual bool can_write(Process&) const override; virtual int ioctl(Process&, unsigned request, unsigned arg) override final; virtual String tty_name() const = 0; -- cgit v1.2.3