netdev: add a way to get it by name and show it in /dev

This commit is contained in:
Matheus
2024-04-07 16:33:42 -03:00
parent 12612218ad
commit ae1186c835
3 changed files with 52 additions and 7 deletions
+1
View File
@@ -14,6 +14,7 @@
#define DEV_MAJOR_BLOCK 7
#define DEV_MAJOR_E9 8
#define DEV_MAJOR_URANDOM 9
#define DEV_MAJOR_NET 10
typedef struct {
int (*open)(int minor, int flags);