Annotation of kernel/mach_debug/zone_info.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
                      3:  *
                      4:  * @APPLE_LICENSE_HEADER_START@
                      5:  * 
                      6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
                      7:  * Reserved.  This file contains Original Code and/or Modifications of
                      8:  * Original Code as defined in and that are subject to the Apple Public
                      9:  * Source License Version 1.1 (the "License").  You may not use this file
                     10:  * except in compliance with the License.  Please obtain a copy of the
                     11:  * License at http://www.apple.com/publicsource and read it before using
                     12:  * this file.
                     13:  * 
                     14:  * The Original Code and all software distributed under the License are
                     15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
                     16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
                     17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
                     18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
                     19:  * License for the specific language governing rights and limitations
                     20:  * under the License.
                     21:  * 
                     22:  * @APPLE_LICENSE_HEADER_END@
                     23:  */
                     24: 
                     25: /* 
                     26:  * Mach Operating System
                     27:  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
                     28:  * All Rights Reserved.
                     29:  * 
                     30:  * Permission to use, copy, modify and distribute this software and its
                     31:  * documentation is hereby granted, provided that both the copyright
                     32:  * notice and this permission notice appear in all copies of the
                     33:  * software, derivative works or modified versions, and any portions
                     34:  * thereof, and that both notices appear in supporting documentation.
                     35:  * 
                     36:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     37:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     38:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     39:  * 
                     40:  * Carnegie Mellon requests users of this software to return to
                     41:  * 
                     42:  *  Software Distribution Coordinator  or  [email protected]
                     43:  *  School of Computer Science
                     44:  *  Carnegie Mellon University
                     45:  *  Pittsburgh PA 15213-3890
                     46:  * 
                     47:  * any improvements or extensions that they make and grant Carnegie Mellon
                     48:  * the rights to redistribute these changes.
                     49:  */
                     50: 
                     51: #ifndef        _MACH_DEBUG_ZONE_INFO_H_
                     52: #define _MACH_DEBUG_ZONE_INFO_H_
                     53: 
                     54: #include <mach/boolean.h>
                     55: #include <mach/machine/vm_types.h>
                     56: 
                     57: /*
                     58:  *     Remember to update the mig type definitions
                     59:  *     in mach_debug_types.defs when adding/removing fields.
                     60:  */
                     61: 
                     62: #define ZONE_NAME_MAX_LEN              80
                     63: 
                     64: typedef struct zone_name {
                     65:        char            zn_name[ZONE_NAME_MAX_LEN];
                     66: } zone_name_t;
                     67: 
                     68: typedef zone_name_t *zone_name_array_t;
                     69: 
                     70: 
                     71: typedef struct zone_info {
                     72:        integer_t       zi_count;       /* Number of elements used now */
                     73:        vm_size_t       zi_cur_size;    /* current memory utilization */
                     74:        vm_size_t       zi_max_size;    /* how large can this zone grow */
                     75:        vm_size_t       zi_elem_size;   /* size of an element */
                     76:        vm_size_t       zi_alloc_size;  /* size used for more memory */
                     77: /*boolean_t*/integer_t zi_pageable;    /* zone pageable? */
                     78: /*boolean_t*/integer_t zi_sleepable;   /* sleep if empty? */
                     79: /*boolean_t*/integer_t zi_exhaustible; /* merely return if empty? */
                     80: /*boolean_t*/integer_t zi_collectable; /* garbage collect elements? */
                     81: } zone_info_t;
                     82: 
                     83: typedef zone_info_t *zone_info_array_t;
                     84: 
                     85: typedef struct zone_free_space_info {
                     86:        vm_size_t       zf_alloc_unit;  /* unit size of alloc */
                     87:        vm_size_t       zf_alloc_max;   /* max size of alloc */
                     88:        integer_t       zf_num_chunks;  /* number of chunks */
                     89: } zone_free_space_info_t;
                     90: 
                     91: typedef zone_free_space_info_t *zone_free_space_info_array_t;
                     92: 
                     93: typedef struct zone_free_space_chunk {
                     94:        vm_offset_t     zf_address;     /* address of chunk */
                     95:        vm_size_t       zf_length;      /* length of chunk */
                     96: } zone_free_space_chunk_t;
                     97: 
                     98: typedef zone_free_space_chunk_t *zone_free_space_chunk_array_t;
                     99: 
                    100: #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.