kernel: scheduling fix for ARM
[minix.git] / lib / libminlib / mapdriver.c
blob34c674e64259e37ff1a119e6c429fca895d4e738
1 #include <lib.h>
2 #include <string.h>
3 #include <unistd.h>
6 int mapdriver(label, major, dev_style, flags)
7 char *label;
8 int major;
9 int dev_style;
10 int flags;
12 message m;
13 m.m2_p1 = label;
14 m.m2_l1 = strlen(label);
15 m.m2_i1 = major;
16 m.m2_i2 = dev_style;
17 m.m2_i3 = flags;
18 if (_syscall(VFS_PROC_NR, MAPDRIVER, &m) < 0) return(-1);
19 return(0);