pmap_mincore (9)
Leading comments
Copyright (c) 2003 Bruce M Simpson <bms@spc.org> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documenta...
NAME
pmap_mincore - determine if a virtual address is resident in physical memorySYNOPSIS
In sys/param.h In vm/vm.h In vm/pmap.h Ft int Fn pmap_mincore pmap_t pmap vm_offset_t addrDESCRIPTION
The Fn pmap_mincore function determines if the page at the virtual address Fa addr in the physical map Fa pmap is resident in physical memory. It is the machine-dependent interface used by the mincore(2) system call.RETURN VALUES
If the page is resident in physical memory, a mask of flags is returned, whose meaning is documented in mincore(2); otherwise, 0 is returned.The Fa pmap must exist and Fa addr must be mapped into the Fa pmap . If any error occurs, the machine-dependent implementation should return 0.