The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

kernacc (9)
  • >> kernacc (9) ( FreeBSD man: Ядро )

  • BSD mandoc
     

    NAME

    
    
    kernacc
    
     
    useracc
    
     - check memory regions for accessibility
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <sys/proc.h>
       #include <vm/vm.h>
       #include <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 Fa rw are permitted in the range of virtual addresses given by Fa addr and Fa len . The possible values of Fa 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 Fa 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 Fa rw is permitted. Otherwise boolean false is returned.  

    BUGS

    The process pointer should be passed in as an argument to useracc (.);


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    BUGS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру