$NetBSD: access.9,v 1.1 1996/06/16 10:38:35 pk Exp $
Copyright (c) 1996 The NetBSD Foundation, Inc.
All rights reserved.
This code is derived from software contributed to The NetBSD Foundation
by Paul Kranenburg.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaime...
(The comments found at the beginning of the groff file "man9/useracc.9freebsd".)
- check memory regions for accessibility
Fn kernacc void *addr int len int rw
Fn useracc void *addr int len int rw
functions check whether operations of the type specified in
are permitted in the range of virtual addresses given by
Fa len .
The possible values of
are any bitwise combination of
checks addresses in the kernel address space, while
to represent an user space address.
The process context to use for this
operation is taken from the global variable
Both functions return boolean true if the type of access specified
Otherwise boolean false is returned.
The process pointer should be passed in as an argument to
Fn useracc .