pseudodevices: initial null, zero and full implementations

This commit is contained in:
Matheus
2022-09-24 00:45:51 -03:00
parent 951ecdffe6
commit ad768d0392
9 changed files with 115 additions and 5 deletions
+4
View File
@@ -3,6 +3,10 @@
#include <sys/stat.h>
#define MAJOR_CONSOLE 1
#define MAJOR_ZERO 2
#define MAJOR_NULL 3
#define MAJOR_FULL 4
typedef struct{
int (*read)(int* error, int minor, void* buff, size_t count, size_t offset);