The OpenNET Project / Index page

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

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

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

mincore (2)
  • mincore (2) ( Solaris man: Системные вызовы )
  • >> mincore (2) ( FreeBSD man: Системные вызовы )
  • mincore (2) ( Русские man: Системные вызовы )
  • mincore (2) ( Linux man: Системные вызовы )

  • BSD mandoc
     

    NAME

    
    
    mincore
    
     - determine residency of memory pages
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <sys/mman.h>
    int mincore (const void *addr size_t len char *vec);
     

    DESCRIPTION

    The mincore ();
    system call determines whether each of the pages in the region beginning at Fa addr and continuing for Fa len bytes is resident. The status is returned in the Fa vec array, one character per page. Each character is either 0 if the page is not resident, or a combination of the following flags (defined in In sys/mman.h ) :

    MINCORE_INCORE
    Page is in core (resident).
    MINCORE_REFERENCED
    Page has been referenced by us.
    MINCORE_MODIFIED
    Page has been modified by us.
    MINCORE_REFERENCED_OTHER
    Page has been referenced.
    MINCORE_MODIFIED_OTHER
    Page has been modified.

    The information returned by mincore ();
    may be out of date by the time the system call returns. The only way to ensure that a page is resident is to lock it into memory with the mlock(2) system call.  

    RETURN VALUES

    Rv -std mincore  

    ERRORS

    The mincore ();
    system call will fail if:

    Bq Er ENOMEM
    The virtual address range specified by the Fa addr and Fa len arguments is not fully mapped.
    Bq Er EFAULT
    The Fa vec argument points to an illegal address.

     

    SEE ALSO

    madvise(2), mlock(2), mprotect(2), msync(2), munmap(2), getpagesize(3)  

    HISTORY

    The mincore ();
    system call first appeared in BSD 4.4


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    HISTORY


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




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

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