Searched refs:zone (Results 1 - 25 of 38) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dzalloc.h84 * A zone is a collection of fixed size blocks for which there
86 * use zones to manage data structures dynamically, creating a zone
91 struct zone { struct
94 decl_lck_mtx_data(,lock) /* zone lock */
96 lck_attr_t lock_attr; /* zone lock attribute */
97 lck_grp_t lock_grp; /* zone lock group */
98 lck_grp_attr_t lock_grp_attr; /* zone lock group attribute */
100 vm_size_t max_size; /* how large can this zone grow */
106 /* boolean_t */ expandable :1, /* (T) expand zone (with message)? */
108 /* boolean_t */ doing_alloc :1, /* is zone expandin
[all...]
H A Dzalloc.c62 * Zone-based memory allocator. A zone is a collection of fixed size
100 /* for fake zone stat routines */
109 * We provide three methods to detect use of a zone element after it's been freed. These
114 * each other when re-using the zone element, to detect modifications.
130 #define ADD_TO_ZONE(zone, element) \
135 i < zone->elem_size/sizeof(uint32_t); \
139 *((vm_offset_t *)(element)) = (zone)->free_elements; \
141 if ((zone)->elem_size >= (2 * sizeof(vm_offset_t))) \
142 ((vm_offset_t *)(element))[((zone)->elem_size/sizeof(vm_offset_t))-1] = \
143 (zone)
600 zcram( register zone_t zone, void *newaddr, vm_size_t size) argument
733 zfill( zone_t zone, int nelem) argument
864 zalloc_canblock( register zone_t zone, boolean_t canblock) argument
1122 zalloc( register zone_t zone) argument
1129 zalloc_noblock( register zone_t zone) argument
1158 zget( register zone_t zone) argument
1188 zfree( register zone_t zone, void *addr) argument
1331 zone_change( zone_t zone, unsigned int item, boolean_t value) argument
1368 zone_free_count(zone_t zone) argument
1386 zprealloc( zone_t zone, vm_size_t size) argument
2173 db_zone_check_active( zone_t zone) argument
2206 db_zone_print_active( zone_t zone) argument
2247 db_zone_print_free( zone_t zone) argument
[all...]
H A Dkern_types.h43 struct zone ;
49 typedef struct zone *zone_t;
H A Ddebug.c443 struct zone zone_copy;
446 if(ml_nofault_copy((vm_offset_t)first_zone, (vm_offset_t)&zone_copy, sizeof(struct zone)) == sizeof(struct zone)) {
456 if(ml_nofault_copy((vm_offset_t)zone_copy.next_zone, (vm_offset_t)&zone_copy, sizeof(struct zone)) != sizeof(struct zone)) {
H A Dkalloc.c100 * the zone allocator. A zone is created for each potential size
107 * It represents the first power of two for which no zone exists.
109 * rounding, for which no zone exists.
115 struct zone *k_zone[16];
128 * Max number of elements per zone. zinit rounds things up correctly
129 * Doing things this way permits each zone to have a different maximum size
188 * 1/8th the total zone map size, or 128 MB.
217 * Allocate a zone for each size we are going to handle.
244 * If size is too large for a zone, the
[all...]
H A Dclock_oldops.c100 static struct zone *alarm_zone; /* zone for user alarms */
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_alloc.c139 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 Dmac_alloc.h65 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 */
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/
H A Dnbp.h114 #define DEFAULT_ZONE(zone) (!(zone)->len || ((zone)->len == 1 && (zone)->str[0] == '*'))
124 at_nvestr_t zone; member in struct:_nve_
H A Dddp_nbp.c88 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 Dat_config.h63 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 Dat.c82 /* 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,
247 /* In routing mode the default zone is only set for the
257 /* check the zone name */
271 at_nvestr_t *zone; local
273 for (i = 0, zone = getSPLocalZone(i);
274 zone;
275 i++, zone
300 at_nvestr_t *zone = (at_nvestr_t *)data; local
711 atalk_post_msg(struct ifnet *ifp, u_long event_code, struct at_addr *address, at_nvestr_t *zone) argument
[all...]
H A Dat_var.h111 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::__anon268
[all...]
H A Dddp_rtmptable.c33 * 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 Dappletalk.h244 at_nvestr_t zone; member in struct:at_entity
300 #define AT_ST_ZT_CHANGED 0x0800 /* zone table changed (for SNMP) */
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOCopyMapper.cpp188 // desired zone.
206 unsigned int zone, zoneSize, z, cnt; local
221 // Find the appropriate zone for this allocation
222 for (zone = 0, zoneSize = kMinZoneSize; pages > zoneSize; zone++)
229 for (z = zone; z < fNumZones; z++) {
243 if (zone != z)
245 DEBG("breakup %d, %d, 0x%x\n", zone, z, ret);
246 breakUp(zone, z, ret);
287 unsigned int zone, zoneSiz local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace_alloc.c54 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 */
H A Dfasttrap.c196 * unique zone. In example, dtrace_probe_t is 72 bytes in size,
201 struct zone *fasttrap_tracepoint_t_zone;
210 struct zone *fasttrap_probe_t_zones[FASTTRAP_PROBE_T_ZONE_MAX_TRACEPOINTS];
2537 * Allocate the fasttrap_tracepoint_t zone
/macosx-10.5.8/AppleMacRiscPCI-3.4/
H A DAppleDART.cpp392 // desired zone.
408 unsigned int zone, zoneSize, z, cnt; local
426 // Find the appropriate zone for this allocation
427 for (zone = 0, zoneSize = kMinZoneSize; pages > zoneSize; zone++)
434 for (z = zone; z < fNumZones; z++) {
448 if (zone != z)
449 breakUp(zone, z, ret);
523 unsigned int zone, zoneSize, z; local
537 // Find the appropriate zone fo
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dubc_internal.h59 extern struct zone *ubc_info_zone;
H A Dmcache.h163 struct zone *mc_slab_zone; /* backend zone allocator */
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dxsumas.s250 stw r13,-4(r1) ; save a few nonvolatile regs in red zone so we can use them
384 ; accumulators and restore the regs from the red zone.
394 lwz r13,-4(r1) ; start to restore nonvolatiles from red zone
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dtcp_sack.c123 extern struct zone *sack_hole_zone;
/macosx-10.5.8/xnu-1228.15.4/osfmk/vm/
H A Dvm_map.c277 * wire count; it's used for map splitting and zone changing in
388 static zone_t vm_map_zone; /* zone for vm_map structures */
389 static zone_t vm_map_entry_zone; /* zone for vm_map_entry structures */
390 static zone_t vm_map_kentry_zone; /* zone for kernel entry structures */
391 static zone_t vm_map_copy_zone; /* zone for vm_map_copy structures */
520 * The kernel allocates map entries from a special zone that is initially
522 * the kernel to allocate more memory to a entry zone when it became
650 register zone_t zone; local
654 zone = vm_map_entry_zone;
656 zone
691 register zone_t zone; local
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_fork.c860 printf("forkproc: M_PROC zone exhausted\n");
869 printf("forkproc: M_SUBPROC zone exhausted (p_stats)\n");
877 printf("forkproc: M_SUBPROC zone exhausted (p_sigacts)\n");
1093 struct zone *uthread_zone;

Completed in 93 milliseconds

12