Kernel: Make Inode::register_watcher() OOM-fallible

This commit is contained in:
Idan Horowitz 2022-01-25 15:13:59 +02:00
commit a9cd8ca841
Notes: sideshowbarker 2024-07-17 20:12:21 +09:00
3 changed files with 14 additions and 7 deletions

View file

@ -91,7 +91,7 @@ public:
bool has_watchers() const { return !m_watchers.is_empty(); }
void register_watcher(Badge<InodeWatcher>, InodeWatcher&);
ErrorOr<void> register_watcher(Badge<InodeWatcher>, InodeWatcher&);
void unregister_watcher(Badge<InodeWatcher>, InodeWatcher&);
ErrorOr<NonnullRefPtr<FIFO>> fifo();