darwin-xnu/osfmk/mach_debug/ipc_info.h
<<
>>
Prefs
   1/*
   2 * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
   3 *
   4 * @APPLE_LICENSE_HEADER_START@
   5 * 
   6 * The contents of this file constitute Original Code as defined in and
   7 * are subject to the Apple Public Source License Version 1.1 (the
   8 * "License").  You may not use this file except in compliance with the
   9 * License.  Please obtain a copy of the License at
  10 * http://www.apple.com/publicsource and read it before using this file.
  11 * 
  12 * This Original Code and all software distributed under the License are
  13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17 * License for the specific language governing rights and limitations
  18 * under the License.
  19 * 
  20 * @APPLE_LICENSE_HEADER_END@
  21 */
  22/*
  23 * @OSF_COPYRIGHT@
  24 */
  25/* 
  26 * Mach Operating System
  27 * Copyright (c) 1991,1990 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  Software.Distribution@CS.CMU.EDU
  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 */
  52/*
  53 *      File:   mach_debug/ipc_info.h
  54 *      Author: Rich Draves
  55 *      Date:   March, 1990
  56 *
  57 *      Definitions for the IPC debugging interface.
  58 */
  59
  60#ifndef _MACH_DEBUG_IPC_INFO_H_
  61#define _MACH_DEBUG_IPC_INFO_H_
  62
  63#include <mach/boolean.h>
  64#include <mach/port.h>
  65#include <mach/machine/vm_types.h>
  66
  67/*
  68 *      Remember to update the mig type definitions
  69 *      in mach_debug_types.defs when adding/removing fields.
  70 */
  71
  72
  73typedef struct ipc_info_space {
  74        natural_t iis_genno_mask;       /* generation number mask */
  75        natural_t iis_table_size;       /* size of table */
  76        natural_t iis_table_next;       /* next possible size of table */
  77        natural_t iis_tree_size;        /* size of tree */
  78        natural_t iis_tree_small;       /* # of small entries in tree */
  79        natural_t iis_tree_hash;        /* # of hashed entries in tree */
  80} ipc_info_space_t;
  81
  82
  83typedef struct ipc_info_name {
  84        mach_port_name_t iin_name;              /* port name, including gen number */
  85/*boolean_t*/integer_t iin_collision;   /* collision at this entry? */
  86        mach_port_type_t iin_type;      /* straight port type */
  87        mach_port_urefs_t iin_urefs;    /* user-references */
  88        natural_t iin_object;           /* object pointer/identifier */
  89        natural_t iin_next;             /* marequest/next in free list */
  90        natural_t iin_hash;             /* hash index */
  91} ipc_info_name_t;
  92
  93typedef ipc_info_name_t *ipc_info_name_array_t;
  94
  95
  96typedef struct ipc_info_tree_name {
  97        ipc_info_name_t iitn_name;
  98        mach_port_name_t iitn_lchild;   /* name of left child */
  99        mach_port_name_t iitn_rchild;   /* name of right child */
 100} ipc_info_tree_name_t;
 101
 102typedef ipc_info_tree_name_t *ipc_info_tree_name_array_t;
 103
 104#endif  /* _MACH_DEBUG_IPC_INFO_H_ */
 105
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.