summaryrefslogtreecommitdiffstats
path: root/share/man/man9/kernacc.9
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-10-30 06:32:05 +0000
committerphk <phk@FreeBSD.org>1999-10-30 06:32:05 +0000
commit8d8f53dcdc1e1126b75d084478a6ff0d4664f39d (patch)
tree3c9df194f59066cf56f290cfea6886eefc551a5e /share/man/man9/kernacc.9
parentad79c6009cc16320a9a1ee513845cb84a567ec52 (diff)
downloadFreeBSD-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/man9/kernacc.9')
-rw-r--r--share/man/man9/kernacc.915
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 .
OpenPOWER on IntegriCloud