Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mincore(2) [opendarwin man page]

MINCORE(2)						      BSD System Calls Manual							MINCORE(2)

NAME
mincore -- determine residency of memory pages SYNOPSIS
#include <sys/types.h> #include <sys/mman.h> int mincore(caddr_t addr, size_t len, char *vec); DESCRIPTION
The mincore() system call allows a process to obtain information about whether pages are core resident. Here the current core residency of the pages is returned in the character array vec, with a value of 1 meaning that the page is in-core. RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO
madvise(2), minherit(2), mlock(2), mprotect(2), msync(2), munmap(2) HISTORY
The mincore() function first appeared in 4.4BSD. BSD
June 9, 1993 BSD

Check Out this Related Man Page

mincore(2)							   System Calls 							mincore(2)

NAME
mincore - determine residency of memory pages SYNOPSIS
#include <sys/types.h> int mincore(caddr_t addr, size_t len, char *vec); DESCRIPTION
The mincore() function determines the residency of the memory pages in the address space covered by mappings in the range [addr, addr + len]. The status is returned as a character-per-page in the character array referenced by *vec (which the system assumes to be large enough to encompass all the pages in the address range). The least significant bit of each character is set to 1 to indicate that the referenced page is in primary memory, and to 0 to indicate that it is not. The settings of other bits in each character are undefined and may contain other information in future implementations. Because the status of a page can change between the time mincore() checks and returns the information, returned information might be out- dated. Only locked pages are guaranteed to remain in memory; see mlock(3C). RETURN VALUES
Upon successful completion, mincore() returns 0. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The mincore() function will fail if: EFAULT The vec argument points to an illegal address. EINVAL The addr argument is not a multiple of the page size as returned by sysconf(3C), or the len argument has a value less than or equal to 0. ENOMEM Addresses in the range [addr, addr + len] are invalid for the address space of a process or specify one or more pages which are not mapped. SEE ALSO
mmap(2), mlock(3C), sysconf(3C) SunOS 5.10 12 Aug 1990 mincore(2)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: ␀␀Word Finder® Plus™. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word Finder® Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies