Lines Matching refs:allocation

140  * never gets accessed.  When the slab layer is entered for allocation,
150 * composite object allocation }
207 * its bucket while it's adjusting to the allocation load. Deallocation
350 * mbuf specific mcache allocation request flags.
843 * The legacy structure holding all of the mbuf allocation statistics.
1914 * during an allocation request whenever there is no available element in the
1917 * retry the allocation.
2034 * during an allocation or free request. For the former, this is called
2081 * allocation requests.
2297 * during an allocation request whenever there is no available element in
2349 * Mark these allocation requests as coming from a composite cache.
2523 * during an allocation or free request. For the former, this is called
2686 * But doing so tremendously simplifies the allocation
3214 * Space allocation routines; these are also available as macros
3407 * Perform `fast' allocation mbuf clusters from a cache of recently-freed
5003 * Cluster freelist allocation check.
5715 * and clusters. If allocation fails and this cannot be completed, NULL will
5900 * Called during slab (blocking and non-blocking) allocation. If there
5923 * Called during blocking allocation. Returns TRUE if one or more objects
5924 * are available at the per-CPU caches layer and that allocation should be
6510 * This function records the allocation in the mleak_allocations table
6511 * and the backtrace in the mleak_traces table; if allocation slot is in use,
6512 * replace old allocation with new one if the trace slot is in use, return
6518 struct mallocation *allocation;
6528 allocation = &mleak_allocations[hashaddr((uintptr_t)addr,
6533 VERIFY(allocation <= &mleak_allocations[mleak_alloc_buckets - 1]);
6536 allocation->hitcount++;
6540 * If the allocation bucket we want is occupied
6543 if (allocation->element != NULL &&
6544 trace_index == allocation->trace_index) {
6577 /* Step 2: Store the allocation record in the allocations array */
6578 if (allocation->element != NULL) {
6580 * Replace an existing allocation. No need to preserve
6585 } else if (allocation->trace_index != 0) {
6588 allocation->element = addr;
6589 allocation->trace_index = trace_index;
6590 allocation->count = num;
6602 struct mallocation *allocation = &mleak_allocations
6605 if (allocation->element == addr &&
6606 allocation->trace_index < mleak_trace_buckets) {
6608 if (allocation->element == addr &&
6609 allocation->trace_index < mleak_trace_buckets) {
6611 trace = &mleak_traces[allocation->trace_index];
6618 allocation->element = NULL;