mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
Kernel: Modernize use of pointers in VirtIO
Raw pointers were mostly replaced with smart pointers and references where appropriate based on kling and smartcomputer7's suggestions :) Co-authored-by: Sahan <sahan.h.fernando@gmail.com>
This commit is contained in:
parent
ea4c9efbb9
commit
4a467c553a
6 changed files with 146 additions and 156 deletions
|
@ -86,8 +86,7 @@ bool VirtIOQueue::supply_buffer(const u8* buffer, u32 len, BufferType buffer_typ
|
|||
full_memory_barrier();
|
||||
|
||||
auto device_flags = m_device->flags;
|
||||
dbgln("VirtIODevice: supplied buffer... should notify: {}", device_flags);
|
||||
return device_flags & 1;
|
||||
return !(device_flags & 1); // if bit 1 is enabled the device disabled interrupts
|
||||
}
|
||||
bool VirtIOQueue::new_data_available() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue