source:
trunk/minix/lib/other/_devctl.c@
10
| Last change on this file since 10 was 9, checked in by , 14 years ago | |
|---|---|
| File size: 297 bytes | |
| Rev | Line | |
|---|---|---|
| [9] | 1 | #include <lib.h> |
| 2 | #define devctl _devctl | |
| 3 | #include <unistd.h> | |
| 4 | ||
| 5 | ||
| 6 | PUBLIC int devctl(int ctl_req, int proc_nr, int dev_nr, int dev_style) | |
| 7 | { | |
| 8 | message m; | |
| 9 | m.m4_l1 = ctl_req; | |
| 10 | m.m4_l2 = proc_nr; | |
| 11 | m.m4_l3 = dev_nr; | |
| 12 | m.m4_l4 = dev_style; | |
| 13 | if (_syscall(FS, DEVCTL, &m) < 0) return(-1); | |
| 14 | return(0); | |
| 15 | } | |
| 16 |
Note:
See TracBrowser
for help on using the repository browser.