Separate read function into blocking and async portions

This commit is contained in:
Justin C. Miller
2018-05-12 20:16:25 -07:00
parent 289104cde0
commit 0684fcf7e9
4 changed files with 73 additions and 18 deletions

10
src/kernel/block_device.h Normal file
View File

@@ -0,0 +1,10 @@
#pragma once
/// \file block_device.h
/// Interface definition for block devices
/// Interface for block devices
class block_device
{
public:
virtual size_t read(size_t offset, size_t length, void *buffer) = 0;
};