-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyscallargs.c
More file actions
executable file
·41 lines (33 loc) · 805 Bytes
/
Copy pathsyscallargs.c
File metadata and controls
executable file
·41 lines (33 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* System call argument lists.
*/
struct sys_mtxopen_args {
syscallarg(const char *) name;
};
struct sys_mtxclose_args {
syscallarg(int) d;
};
struct sys_mtxlock_args {
syscallarg(int) d;
};
struct sys_mtxunlock_args {
syscallarg(int) d;
};
struct sys_mtxlist_args {
syscallarg(int *) d;
syscallarg(pid_t *) pidlist;
syscallarg(size_t) nlist;
};
struct sys_mtxgrant_args {
syscallarg(int) d;
syscallarg(pid_t) selected;
};
/*
* System call prototypes.
*/
int sys_mtxopen(struct proc *, void *, register_t *);
int sys_mtxclose(struct proc *, void *, register_t *);
int sys_mtxlock(struct proc *, void *, register_t *);
int sys_mtxunlock(struct proc *, void *, register_t *);
int sys_mtxlist(struct proc *, void *, register_t *);
int sys_mtxgrant(struct proc *, void *, register_t *);