Kernel: Make Kernel::VMObject allocation functions return KResultOr

This makes for nicer handling of errors compared to checking whether a
RefPtr is null. Additionally, this will give way to return different
types of errors in the future.
This commit is contained in:
sin-ack 2021-08-15 09:07:59 +00:00 committed by Andreas Kling
commit 4bfd6e41b9
Notes: sideshowbarker 2024-07-18 05:39:32 +09:00
26 changed files with 194 additions and 122 deletions

View file

@ -34,7 +34,7 @@ public:
size_t framebuffer_size_in_bytes() const;
virtual ~FramebufferDevice() {};
void initialize();
KResult initialize();
private:
// ^File