kernel: pseudodevices (null, full and zero)

This commit is contained in:
Matheus
2023-05-01 22:05:41 -03:00
parent c943023ffa
commit 768ee865a0
4 changed files with 58 additions and 0 deletions
+4
View File
@@ -3,6 +3,10 @@
#include <kernel/vfs.h>
#define DEV_MAJOR_NULL 1
#define DEV_MAJOR_FULL 2
#define DEV_MAJOR_ZERO 3
typedef struct {
int (*open)(int minor, int flags);
int (*close)(int minor, int flags);