mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
Kernel/Storage: Use StringView when allocating DMA buffer in NVMeQueue
This commit is contained in:
parent
e0aaac970c
commit
0536079ad8
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/supercomputer7
Commit: 0536079ad8
Pull-request: https://github.com/SerenityOS/serenity/pull/12096
Reviewed-by: https://github.com/IdanHo
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ UNMAP_AFTER_INIT NVMeQueue::NVMeQueue(u16 qid, u8 irq, u32 q_depth, OwnPtr<Memor
|
|||
UNMAP_AFTER_INIT ErrorOr<void> NVMeQueue::create()
|
||||
{
|
||||
// DMA region for RW operation. For now the requests don't exceed more than 4096 bytes(Storage device takes of it)
|
||||
auto buffer = TRY(MM.allocate_dma_buffer_page("Admin CQ queue", Memory::Region::Access::ReadWrite, m_rw_dma_page));
|
||||
auto buffer = TRY(MM.allocate_dma_buffer_page("Admin CQ queue"sv, Memory::Region::Access::ReadWrite, m_rw_dma_page));
|
||||
m_rw_dma_region = move(buffer);
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue