hpux man page for mvalid

Query: mvalid

OS: hpux

Section: 2

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

mvalid(2)							System Calls Manual							 mvalid(2)

NAME
mvalid() - check memory region for validity
SYNOPSIS
Parameters addr The address of the region whose validity is to be checked. len The length in bytes of the region specified by the addr parameter. prot The desired access protection for the region.
DESCRIPTION
The function checks the validity of a memory region. A region is considered to be valid if accesses of the requested type are allowed to all addresses in the region. The header file defines the following access options: The mapped region can be read. The mapped region can be written. The mapped region can be executed. The prot parameter can be any combination of and ORed together.
RETURN VALUES
The function returns: Success. Accesses requiring the specified protection are allowed to all addresses within the specified range of addresses. Failure. is set to indicate the error.
ERRORS
If the function fails, may be set to one of the following values: The range specified by (addr, addr+len) is invalid for the process's address space, or the range specifies one or more unmapped pages, or one or more pages of the range disallows accesses of the specified protection. The prot parameter is invalid, or the addr parameter is not a multiple of the page size as returned by The range specified by (addr, addr+len) is invalid for the process's address space, or the range specifies one or more unmapped pages.
AUTHOR
was developed by HP.
SEE ALSO
mmap(2), mprotect(2), sysconf(2). mvalid(2)
Related Man Pages
munmap(2) - hpux
mvalid(2) - hpux
mprotect(2) - osf1
munmap(2) - osf1
msync(2) - freebsd
Similar Topics in the Unix Linux Community
shell script
kcalarm utility
f prot
Mean score value by ID over a defined genomic region
IF statement with square brackets