Deleted Added
full compact
procfs_map.c (43634) procfs_map.c (43748)
1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

--- 22 unchanged lines hidden (view full) ---

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_status.c 8.3 (Berkeley) 2/17/94
38 *
1/*
2 * Copyright (c) 1993 Jan-Simon Pendry
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

--- 22 unchanged lines hidden (view full) ---

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_status.c 8.3 (Berkeley) 2/17/94
38 *
39 * $Id: procfs_map.c,v 1.19 1999/01/21 08:29:06 dillon Exp $
39 * $Id: procfs_map.c,v 1.20 1999/02/05 06:18:54 jdp Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/proc.h>
45#include <sys/vnode.h>
46#include <miscfs/procfs/procfs.h>
47

--- 45 unchanged lines hidden (view full) ---

93 ((uio->uio_resid > 0) && (entry != &map->header));
94 entry = entry->next) {
95 vm_object_t obj, tobj, lobj;
96 int ref_count, shadow_count, flags;
97 vm_offset_t addr;
98 int resident, privateresident;
99 char *type;
100
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/proc.h>
45#include <sys/vnode.h>
46#include <miscfs/procfs/procfs.h>
47

--- 45 unchanged lines hidden (view full) ---

93 ((uio->uio_resid > 0) && (entry != &map->header));
94 entry = entry->next) {
95 vm_object_t obj, tobj, lobj;
96 int ref_count, shadow_count, flags;
97 vm_offset_t addr;
98 int resident, privateresident;
99 char *type;
100
101 if (entry->eflags & (MAP_ENTRY_IS_A_MAP|MAP_ENTRY_IS_SUB_MAP))
101 if (entry->eflags & MAP_ENTRY_IS_SUB_MAP)
102 continue;
103
104 obj = entry->object.vm_object;
105 if (obj && (obj->shadow_count == 1))
106 privateresident = obj->resident_page_count;
107 else
108 privateresident = 0;
109

--- 76 unchanged lines hidden ---
102 continue;
103
104 obj = entry->object.vm_object;
105 if (obj && (obj->shadow_count == 1))
106 privateresident = obj->resident_page_count;
107 else
108 privateresident = 0;
109

--- 76 unchanged lines hidden ---