GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  KERNACC (9)

NAME

kernacc, useracc - check memory regions for accessibility

CONTENTS

Synopsis
Description
Return Values
Bugs

SYNOPSIS


.In sys/param.h
.In sys/proc.h
.In vm/vm.h
.In vm/vm_extern.h int kernacc void *addr int len int rw int useracc void *addr int len int rw

DESCRIPTION

The kernacc and useracc functions check whether operations of the type specified in rw are permitted in the range of virtual addresses given by addr and len. The possible values of rw are any bitwise combination of VM_PROT_READ, VM_PROT_WRITE and VM_PROT_EXECUTE. kernacc checks addresses in the kernel address space, while useracc considers addr to represent an user space address. The process context to use for this operation is taken from the global variable curproc.

RETURN VALUES

Both functions return boolean true if the type of access specified by rw is permitted. Otherwise boolean false is returned.

BUGS

The process pointer should be passed in as an argument to useracc.
Search for    or go to Top of page |  Section 9 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.