/darwin-on-arm/xnu/osfmk/kern/ |
H A D | gzalloc.c | 32 * "Guard mode" zone allocator, used to trap use-after-free errors, 34 * zone element use, timing dependent races etc. 42 * gzalloc_fc_size=<size>: number of zone elements (effectively page 51 * element has a "header" (trailer in underflow detection mode), the zone 252 gzalloc_alloc(zone_t zone, boolean_t canblock) { argument 256 (((zone->elem_size >= gzalloc_min) && 257 (zone->elem_size <= gzalloc_max))) && 258 (zone->gzalloc_exempt == 0))) { 268 vm_offset_t rounded_size = round_page(zone->elem_size + GZHEADER_SIZE); 269 vm_offset_t residue = rounded_size - zone 336 gzalloc_free(zone_t zone, void *addr) argument [all...] |
H A D | zalloc.h | 90 * A zone is a collection of fixed size blocks for which there 92 * use zones to manage data structures dynamically, creating a zone 97 struct zone { struct 100 decl_lck_mtx_data(,lock) /* zone lock */ 102 lck_attr_t lock_attr; /* zone lock attribute */ 103 lck_grp_t lock_grp; /* zone lock group */ 104 lck_grp_attr_t lock_grp_attr; /* zone lock group attribute */ 106 vm_size_t max_size; /* how large can this zone grow */ 109 uint64_t sum_count; /* count of allocs (life of zone) */ 113 /* boolean_t */ expandable :1, /* (T) expand zone (wit [all...] |
H A D | zalloc.c | 62 * Zone-based memory allocator. A zone is a collection of fixed size 105 * We perform three methods to detect use of a zone element after it's been freed. These 106 * checks are enabled for every N'th element (counted per-zone) by specifying 130 * "zlog=<zone name to log> -zc". Search for "Zone corruption logging" later in this 153 * Frees the specified element, which is within the specified zone. If this 160 free_to_zone(zone_t zone, void *elem) { argument 166 zone->free_check_count++ % free_check_sample_factor == 0 && 167 zone->elem_size >= (2 * sizeof(vm_offset_t) + sizeof(uint32_t))) { 168 zone->free_check_count = 1; 170 for (i++; i < zone 190 alloc_from_zone(zone_t zone, void **ret) argument 1331 zcram( zone_t zone, vm_offset_t newmem, vm_size_t size) argument 1390 zfill( zone_t zone, int nelem) argument 1660 zalloc_canblock( register zone_t zone, boolean_t canblock) argument 1989 zalloc( register zone_t zone) argument 1996 zalloc_noblock( register zone_t zone) argument 2028 zget( register zone_t zone) argument 2091 zfree( register zone_t zone, void *addr) argument 2273 zone_change( zone_t zone, unsigned int item, boolean_t value) argument 2332 zone_free_count(zone_t zone) argument [all...] |
H A D | kern_types.h | 43 struct zone ; 53 typedef struct zone *zone_t;
|
H A D | debug.c | 570 struct zone zone_copy; 573 if(ml_nofault_copy((vm_offset_t)first_zone, (vm_offset_t)&zone_copy, sizeof(struct zone)) == sizeof(struct zone)) { 583 if(ml_nofault_copy((vm_offset_t)zone_copy.next_zone, (vm_offset_t)&zone_copy, sizeof(struct zone)) != sizeof(struct zone)) { 604 * Prints the backtrace most suspected of being a leaker, if we paniced in the zone allocator.
|
H A D | kalloc.c | 99 int kalloc_fake_zone_index = -1; /* index of our fake zone in statistics arrays */ 141 * next nearest sized zone. This allocator is built on top of 142 * the zone allocator. A zone is created for each potential size 148 * It represents the first power of two for which no zone exists. 150 * rounding, for which no zone exists. 241 #error missing zone size parameters for kalloc 258 * size normalized to the minimum alignment, finds the right zone index 285 * Max number of elements per zone. zinit rounds things up correctly 286 * Doing things this way permits each zone t [all...] |
/darwin-on-arm/xnu/security/ |
H A D | mac_alloc.c | 139 mac_zone_change(zone_t zone, unsigned int item, boolean_t value) argument 142 zone_change(zone, item, value); 146 mac_zalloc(zone_t zone, int how) argument 150 return zalloc(zone); 152 return zalloc_noblock(zone); 156 mac_zfree(zone_t zone, void *elem) argument 159 zfree(zone, elem);
|
H A D | mac_alloc.h | 65 void mac_zone_change (zone_t zone, unsigned int item, boolean_t value); 66 void * mac_zalloc (zone_t zone, int how); 67 void mac_zfree (zone_t zone, void *elem); 70 #define Z_EXHAUST 1 /* Make zone exhaustible */ 71 #define Z_COLLECT 2 /* Make zone collectable */ 72 #define Z_EXPAND 3 /* Make zone expandable */ 73 #define Z_FOREIGN 4 /* Allow collectable zone to contain foreign elements */
|
/darwin-on-arm/xnu/bsd/netat/ |
H A D | nbp.h | 114 #define DEFAULT_ZONE(zone) (!(zone)->len || ((zone)->len == 1 && (zone)->str[0] == '*')) 124 at_nvestr_t zone; member in struct:_nve_
|
H A D | ddp_nbp.c | 88 static u_int hzonehash=0; /* hash val of home zone */ 147 p += (*p +1); /* p -> zone */ 207 char zone[35],object[35],type[35]; local 208 strlcpy(zone,nbp_req.nve.zone.str, sizeof(zone)); 213 ("nbp_LKUP for:%s:%s@%s", object, type, zone)); 221 /* true if home zone == destination zone */ 282 /*### LD 01/18/94 Check if the dest is also the home zone 489 register at_nvestr_t *object, *type, *zone; local 622 char zone[35],object[35],type[35]; local 696 char zone[35],object[35],type[35]; local 776 char zone[35],object[35],type[35]; local 1361 at_nvestr_t *zone; local 1408 char zone[35],object[35],type[35]; local [all...] |
H A D | at_config.h | 63 at_nvestr_t zone_name; /* the zone name & len */ 64 unsigned zone_ifs[IF_TYPENO_CNT]; /* bitmapped I/F usage for zone */ 65 unsigned zone_home; /* TRUE for home zone */ 70 int zone; member in union:if_zone_nve 79 I/F in this zone */ 80 int index; /* zone index in ZT_table */
|
H A D | at.c | 82 /* 1. adds zone to table 83 2. looks up each route entry from zone list 84 3. sets zone bit in each route entry 119 /* if first zone for this I/F, 262 /* In routing mode the default zone is only set for the 272 /* check the zone name */ 286 at_nvestr_t *zone; local 288 for (i = 0, zone = getSPLocalZone(i); 289 zone; 290 i++, zone 315 at_nvestr_t *zone = (at_nvestr_t *)data; local 731 atalk_post_msg(struct ifnet *ifp, u_long event_code, struct at_addr *address, at_nvestr_t *zone) argument [all...] |
H A D | at_var.h | 111 at_nvestr_t zone_name; /* the zone name & len */ 115 this zone. */ 117 I/F in this zone) */ 211 /* zone multicast addr */ 250 /* in single-port, router, and multihome modes, set default zone */ 256 /* in single-port mode, register local zone in kernel table for 259 /* in router mode, set up each zone for interfaces being seeded */ 261 /* in router and multihome modes, given a zone index, report zone name 262 and interfaces corresponding to that zone */ 309 at_nvestr_t zone; member in union:kev_atalk_data::__anon344 [all...] |
H A D | ddp_rtmptable.c | 33 * of the RTMP routing table and ZIP zone table. 479 * zt_add_zone: add a zone name in the zone table. 494 * zt_add_zonename: add a zone name in the zone table. 508 dPrintf(D_M_RTMP, D_L_VERBOSE, ("zt_add_zonename: zone #%d %s len=%d\n", 518 /* Adjust zone counts for a removed network entry. 519 * If the ZoneCount of a zone reaches zero, delete the zone from the zone tabl [all...] |
H A D | appletalk.h | 244 at_nvestr_t zone; member in struct:at_entity 300 #define AT_ST_ZT_CHANGED 0x0800 /* zone table changed (for SNMP) */
|
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace_alloc.c | 54 struct zone *d_zone[16]; 97 * Allocate a zone for each size we are going to handle. 118 * If size is too large for a zone, then use kmem_alloc. 156 /* free to the appropriate zone */
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | ubc_internal.h | 59 extern struct zone *ubc_info_zone;
|
H A D | mcache.h | 203 struct zone *mc_slab_zone; /* backend zone allocator */
|
/darwin-on-arm/xnu/bsd/net/classq/ |
H A D | classq_blue.c | 130 #define BLUE_ZONE_MAX 32 /* maximum elements in zone */ 131 #define BLUE_ZONE_NAME "classq_blue" /* zone name */ 133 static unsigned int blue_size; /* size of zone element */ 134 static struct zone *blue_zone; /* zone for blue */
|
H A D | classq_red.c | 173 #define RED_ZONE_MAX 32 /* maximum elements in zone */ 174 #define RED_ZONE_NAME "classq_red" /* zone name */ 176 static unsigned int red_size; /* size of zone element */ 177 static struct zone *red_zone; /* zone for red */
|
H A D | classq_rio.c | 177 #define RIO_ZONE_MAX 32 /* maximum elements in zone */ 178 #define RIO_ZONE_NAME "classq_rio" /* zone name */ 180 static unsigned int rio_size; /* size of zone element */ 181 static struct zone *rio_zone; /* zone for rio */
|
/darwin-on-arm/xnu/osfmk/arm64/ |
H A D | pmap.c | 88 struct zone *pmap_zone; /* zone of pmap structures */
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | ip6_output.c | 210 static unsigned int im6o_size; /* size of zone element */ 211 static struct zone *im6o_zone; /* zone for ip6_moptions */ 213 #define IM6O_ZONE_MAX 64 /* maximum elements in zone */ 214 #define IM6O_ZONE_NAME "ip6_moptions" /* zone name */ 295 u_int32_t zone; local 745 * information about its scope zone; 981 * The outgoing interface must be in the zone of source and 998 if (in6_setscope(&src0, origifp, &zone)) 1004 if (sa6_recoverscope(&src_sa, TRUE) || zone ! [all...] |
H A D | nd6_prproxy.c | 180 static unsigned int ndprl_size; /* size of zone element */ 181 static struct zone *ndprl_zone; /* nd6_prproxy_prelist zone */ 183 #define NDPRL_ZONE_MAX 256 /* maximum elements in zone */ 184 #define NDPRL_ZONE_NAME "nd6_prproxy_prelist" /* name for zone */ 186 static unsigned int solsrc_size; /* size of zone element */ 187 static struct zone *solsrc_zone; /* nd6_prproxy_solsrc zone */ 189 #define SOLSRC_ZONE_MAX 256 /* maximum elements in zone */ 190 #define SOLSRC_ZONE_NAME "nd6_prproxy_solsrc" /* name for zone */ [all...] |
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | tcp_sack.c | 123 extern struct zone *sack_hole_zone;
|