mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +00:00
Kernel: Tidy up Memory::AddressSpace construction
- Return KResultOr<T> in places - Propagate errors - Use TRY()
This commit is contained in:
parent
0cf65cf7ec
commit
83fed5b2de
6 changed files with 16 additions and 30 deletions
|
@ -18,7 +18,7 @@ namespace Kernel::Memory {
|
|||
|
||||
class AddressSpace {
|
||||
public:
|
||||
static OwnPtr<AddressSpace> try_create(AddressSpace const* parent);
|
||||
static KResultOr<NonnullOwnPtr<AddressSpace>> try_create(AddressSpace const* parent);
|
||||
~AddressSpace();
|
||||
|
||||
PageDirectory& page_directory() { return *m_page_directory; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue