Karg  v0.2.0
The kernel of CargOS
driver.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <types.h>
4 
5 typedef struct {
6  isize (*read)(u32 num, u8 *buf, usize size);
7  isize (*write)(u32 num, const u8 *buf, usize size);
8 } driver_t;
Definition: driver.h:5
__INTPTR_TYPE__ isize
Definition: types.h:29
__UINTPTR_TYPE__ usize
Definition: types.h:28
__UINT8_TYPE__ u8
Definition: types.h:3
__UINT32_TYPE__ u32
Definition: types.h:5