|
@@ -20,19 +20,6 @@ constexpr dev_t make_device(uint32_t major, uint32_t minor) {
|
|
|
return ((major << 8) & 0xFF00U) | (minor & 0xFFU);
|
|
|
}
|
|
|
|
|
|
-// buf, buf_size, offset, cnt
|
|
|
-using blkdev_read =
|
|
|
- std::function<ssize_t(char*, std::size_t, std::size_t, std::size_t)>;
|
|
|
-
|
|
|
-// buf, offset, cnt
|
|
|
-using blkdev_write =
|
|
|
- std::function<ssize_t(const char*, std::size_t, std::size_t)>;
|
|
|
-
|
|
|
-struct blkdev_ops {
|
|
|
- blkdev_read read;
|
|
|
- blkdev_write write;
|
|
|
-};
|
|
|
-
|
|
|
// buf, buf_size, cnt
|
|
|
using chrdev_read = std::function<ssize_t(char*, std::size_t, std::size_t)>;
|
|
|
|