uma_int.h (147995) | uma_int.h (147996) |
---|---|
1/*- 2 * Copyright (c) 2004, 2005, 3 * Bosko Milekic <bmilekic@FreeBSD.org>. All rights reserved. 4 * Copyright (c) 2002, 2003, 2004, 2005, 5 * Jeffrey Roberson <jeff@FreeBSD.org>. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 2004, 2005, 3 * Bosko Milekic <bmilekic@FreeBSD.org>. All rights reserved. 4 * Copyright (c) 2002, 2003, 2004, 2005, 5 * Jeffrey Roberson <jeff@FreeBSD.org>. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/vm/uma_int.h 147995 2005-07-14 16:17:21Z rwatson $ | 28 * $FreeBSD: head/sys/vm/uma_int.h 147996 2005-07-14 16:35:13Z rwatson $ |
29 * 30 */ 31 32/* 33 * This file includes definitions, structures, prototypes, and inlines that 34 * should not be used outside of the actual implementation of UMA. 35 */ 36 --- 262 unchanged lines hidden (view full) --- 299 LIST_HEAD(,uma_bucket) uz_free_bucket; /* Buckets for frees */ 300 301 uma_ctor uz_ctor; /* Constructor for each allocation */ 302 uma_dtor uz_dtor; /* Destructor */ 303 uma_init uz_init; /* Initializer for each item */ 304 uma_fini uz_fini; /* Discards memory */ 305 306 u_int64_t uz_allocs; /* Total number of allocations */ | 29 * 30 */ 31 32/* 33 * This file includes definitions, structures, prototypes, and inlines that 34 * should not be used outside of the actual implementation of UMA. 35 */ 36 --- 262 unchanged lines hidden (view full) --- 299 LIST_HEAD(,uma_bucket) uz_free_bucket; /* Buckets for frees */ 300 301 uma_ctor uz_ctor; /* Constructor for each allocation */ 302 uma_dtor uz_dtor; /* Destructor */ 303 uma_init uz_init; /* Initializer for each item */ 304 uma_fini uz_fini; /* Discards memory */ 305 306 u_int64_t uz_allocs; /* Total number of allocations */ |
307 u_int64_t uz_frees; /* total number of frees */ | 307 u_int64_t uz_frees; /* Total number of frees */ |
308 uint16_t uz_fills; /* Outstanding bucket fills */ 309 uint16_t uz_count; /* Highest value ub_ptr can have */ 310 311 /* 312 * This HAS to be the last item because we adjust the zone size 313 * based on NCPU and then allocate the space for the zones. 314 */ 315 struct uma_cache uz_cpu[1]; /* Per cpu caches */ --- 101 unchanged lines hidden --- | 308 uint16_t uz_fills; /* Outstanding bucket fills */ 309 uint16_t uz_count; /* Highest value ub_ptr can have */ 310 311 /* 312 * This HAS to be the last item because we adjust the zone size 313 * based on NCPU and then allocate the space for the zones. 314 */ 315 struct uma_cache uz_cpu[1]; /* Per cpu caches */ --- 101 unchanged lines hidden --- |