pmap_resident_count (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_resident_count pmap_wired_count - return page resident and wiring statisticsSYNOPSIS
In sys/param.h In vm/vm.h In vm/pmap.h Ft long Fn pmap_resident_count pmap_t pmap Ft long Fn pmap_wired_count pmap_t pmapDESCRIPTION
The Fn pmap_resident_count and Fn pmap_wired_count macros allow pmap consumers to retrieve statistics from the pm_stats member of the machine-dependent structure Vt struct pmap .IMPLEMENTATION NOTES
Both functions are defined as in-line macros. The members which they access have type Vt long .RETURN VALUES
The Fn pmap_resident_count returns the number of pages in the physical map pmap which are currently resident in main memory.The Fn pmap_wired_count returns the number of pages in the physical map pmap which are currently wired into in main memory.