repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kernel: scheduling fix for ARM
[minix.git]
/
lib
/
libminlib
/
mapdriver.c
blob
34c674e64259e37ff1a119e6c429fca895d4e738
1
#include <lib.h>
2
#include <string.h>
3
#include <unistd.h>
4
5
6
int
mapdriver
(
label
,
major
,
dev_style
,
flags
)
7
char
*
label
;
8
int
major
;
9
int
dev_style
;
10
int
flags
;
11
{
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
);
20
}
21