The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mach_debug/zone_info.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* 
    2  * Mach Operating System
    3  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
    4  * All Rights Reserved.
    5  * 
    6  * Permission to use, copy, modify and distribute this software and its
    7  * documentation is hereby granted, provided that both the copyright
    8  * notice and this permission notice appear in all copies of the
    9  * software, derivative works or modified versions, and any portions
   10  * thereof, and that both notices appear in supporting documentation.
   11  * 
   12  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   13  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   14  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   15  * 
   16  * Carnegie Mellon requests users of this software to return to
   17  * 
   18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   19  *  School of Computer Science
   20  *  Carnegie Mellon University
   21  *  Pittsburgh PA 15213-3890
   22  * 
   23  * any improvements or extensions that they make and grant Carnegie Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        zone_info.h,v $
   29  * Revision 2.6  93/01/14  17:49:42  danner
   30  *      64bit cleanup.
   31  *      [92/12/01            af]
   32  * 
   33  * Revision 2.5  91/05/14  17:04:15  mrt
   34  *      Correcting copyright
   35  * 
   36  * Revision 2.4  91/02/05  17:38:17  mrt
   37  *      Changed to new Mach copyright
   38  *      [91/02/01  17:29:40  mrt]
   39  * 
   40  * Revision 2.3  90/06/19  23:00:29  rpd
   41  *      Added zi_ prefix to zone_info field names.
   42  *      Added zi_collectable field to zone_info.
   43  *      Added zn_ prefix to zone_name field names.
   44  *      [90/06/05            rpd]
   45  * 
   46  * Revision 2.2  90/06/02  15:00:54  rpd
   47  *      Created.
   48  *      [90/03/26  23:53:57  rpd]
   49  * 
   50  * Revision 2.2  89/05/06  12:36:08  rpd
   51  *      Created.
   52  *      [89/05/06  12:35:19  rpd]
   53  * 
   54  */ 
   55 
   56 #ifndef _MACH_DEBUG_ZONE_INFO_H_
   57 #define _MACH_DEBUG_ZONE_INFO_H_
   58 
   59 #include <mach/boolean.h>
   60 #include <mach/machine/vm_types.h>
   61 
   62 /*
   63  *      Remember to update the mig type definitions
   64  *      in mach_debug_types.defs when adding/removing fields.
   65  */
   66 
   67 #define ZONE_NAME_MAX_LEN               80
   68 
   69 typedef struct zone_name {
   70         char            zn_name[ZONE_NAME_MAX_LEN];
   71 } zone_name_t;
   72 
   73 typedef zone_name_t *zone_name_array_t;
   74 
   75 
   76 typedef struct zone_info {
   77         integer_t       zi_count;       /* Number of elements used now */
   78         vm_size_t       zi_cur_size;    /* current memory utilization */
   79         vm_size_t       zi_max_size;    /* how large can this zone grow */
   80         vm_size_t       zi_elem_size;   /* size of an element */
   81         vm_size_t       zi_alloc_size;  /* size used for more memory */
   82 /*boolean_t*/integer_t  zi_pageable;    /* zone pageable? */
   83 /*boolean_t*/integer_t  zi_sleepable;   /* sleep if empty? */
   84 /*boolean_t*/integer_t  zi_exhaustible; /* merely return if empty? */
   85 /*boolean_t*/integer_t  zi_collectable; /* garbage collect elements? */
   86 } zone_info_t;
   87 
   88 typedef zone_info_t *zone_info_array_t;
   89 
   90 #endif  _MACH_DEBUG_ZONE_INFO_H_

Cache object: 4ff13bb337dd84e0b796f3d2f28712c7


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.