Kernel: Rename various *VMObject::create*() => try_create()

try_*() implies that it can fail (and they all return RefPtr with
nullptr signalling failure.)
This commit is contained in:
Andreas Kling 2021-07-11 17:55:29 +02:00
commit 88d490566f
Notes: sideshowbarker 2024-07-18 09:19:22 +09:00
19 changed files with 35 additions and 35 deletions

View file

@ -11,7 +11,7 @@ namespace Kernel::USB {
RefPtr<Transfer> Transfer::try_create(Pipe& pipe, u16 len)
{
auto vmobject = ContiguousVMObject::create_with_size(PAGE_SIZE);
auto vmobject = ContiguousVMObject::try_create_with_size(PAGE_SIZE);
if (!vmobject)
return nullptr;