diff options
author | phk <phk@FreeBSD.org> | 1999-10-30 06:32:05 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-10-30 06:32:05 +0000 |
commit | 8d8f53dcdc1e1126b75d084478a6ff0d4664f39d (patch) | |
tree | 3c9df194f59066cf56f290cfea6886eefc551a5e /share/man | |
parent | ad79c6009cc16320a9a1ee513845cb84a567ec52 (diff) | |
download | FreeBSD-src-8d8f53dcdc1e1126b75d084478a6ff0d4664f39d.zip FreeBSD-src-8d8f53dcdc1e1126b75d084478a6ff0d4664f39d.tar.gz |
Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the
"rw" argument, rather than hijacking B_{READ|WRITE}.
Fix two bugs (physio & cam) resulting by the confusion caused by this.
Submitted by: Tor.Egge@fast.no
Reviewed by: alc, ken (partly)
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/kernacc.9 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/share/man/man9/kernacc.9 b/share/man/man9/kernacc.9 index feead90..06d412b 100644 --- a/share/man/man9/kernacc.9 +++ b/share/man/man9/kernacc.9 @@ -64,10 +64,11 @@ and .Fa len . The possible values of .Fa rw -are -.Dv B_READ +are any bitwise combination of +.Dv VM_PROT_READ , +.Dv VM_PROT_WRITE and -.Dv B_WRITE . +.Dv VM_PROT_EXECUTE . .Fn kernacc checks addresses in the kernel address space, while .Fn useracc @@ -78,9 +79,11 @@ operation is taken from the global variable .Va curproc . .Pp .Sh RETURN VALUES -Both functions return 1 if the type of access specified by +Both functions return boolean true if the type of access specified +by .Fa rw -is permitted. Otherwise 0 is returned. +is permitted. Otherwise boolean false is returned. .Pp .Sh BUGS -The process pointer should be passed in as an argument. +The process pointer should be passed in as an argument to +.Fn useracc . |