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
vm: merge i386 and arm pagetable code
[minix.git]
/
lib
/
libminlib
/
getnpid.c
blob
3f88cc196df8a78e81745c74c91381c198bf9c5d
1
#include <lib.h>
2
#include <unistd.h>
3
4
pid_t
getnpid
(
endpoint_t proc_ep
)
5
{
6
message m
;
7
m
.
m1_i1
=
proc_ep
;
/* search pid for this process */
8
return
_syscall
(
PM_PROC_NR
,
GETEPINFO
, &
m
);
9
}