Annotation of OSKit-Mach/include/mach_debug/zone_info.h, revision 1.1.1.1

1.1       root        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  [email protected]
                     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: #ifndef        _MACH_DEBUG_ZONE_INFO_H_
                     28: #define _MACH_DEBUG_ZONE_INFO_H_
                     29: 
                     30: #include <mach/boolean.h>
                     31: #include <mach/machine/vm_types.h>
                     32: 
                     33: /*
                     34:  *     Remember to update the mig type definitions
                     35:  *     in mach_debug_types.defs when adding/removing fields.
                     36:  */
                     37: 
                     38: #define ZONE_NAME_MAX_LEN              80
                     39: 
                     40: typedef struct zone_name {
                     41:        char            zn_name[ZONE_NAME_MAX_LEN];
                     42: } zone_name_t;
                     43: 
                     44: typedef zone_name_t *zone_name_array_t;
                     45: 
                     46: 
                     47: typedef struct zone_info {
                     48:        integer_t       zi_count;       /* Number of elements used now */
                     49:        vm_size_t       zi_cur_size;    /* current memory utilization */
                     50:        vm_size_t       zi_max_size;    /* how large can this zone grow */
                     51:        vm_size_t       zi_elem_size;   /* size of an element */
                     52:        vm_size_t       zi_alloc_size;  /* size used for more memory */
                     53: /*boolean_t*/integer_t zi_pageable;    /* zone pageable? */
                     54: /*boolean_t*/integer_t zi_sleepable;   /* sleep if empty? */
                     55: /*boolean_t*/integer_t zi_exhaustible; /* merely return if empty? */
                     56: /*boolean_t*/integer_t zi_collectable; /* garbage collect elements? */
                     57: } zone_info_t;
                     58: 
                     59: typedef zone_info_t *zone_info_array_t;
                     60: 
                     61: #endif /* _MACH_DEBUG_ZONE_INFO_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.