uma_int.h (295451) | uma_int.h (296243) |
---|---|
1/*- 2 * Copyright (c) 2002-2005, 2009, 2013 Jeffrey Roberson <jeff@FreeBSD.org> 3 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2002-2005, 2009, 2013 Jeffrey Roberson <jeff@FreeBSD.org> 3 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/vm/uma_int.h 295451 2016-02-09 20:22:35Z glebius $ | 27 * $FreeBSD: head/sys/vm/uma_int.h 296243 2016-03-01 00:33:32Z glebius $ |
28 * 29 */ 30 31#include <sys/_task.h> 32 33/* 34 * This file includes definitions, structures, prototypes, and inlines that 35 * should not be used outside of the actual implementation of UMA. --- 209 unchanged lines hidden (view full) --- 245 uint16_t us_freecount; /* How many are free? */ 246 uint8_t us_flags; /* Page flags see uma.h */ 247 uint8_t us_pad; /* Pad to 32bits, unused. */ 248}; 249 250#define us_link us_type._us_link 251#define us_size us_type._us_size 252 | 28 * 29 */ 30 31#include <sys/_task.h> 32 33/* 34 * This file includes definitions, structures, prototypes, and inlines that 35 * should not be used outside of the actual implementation of UMA. --- 209 unchanged lines hidden (view full) --- 245 uint16_t us_freecount; /* How many are free? */ 246 uint8_t us_flags; /* Page flags see uma.h */ 247 uint8_t us_pad; /* Pad to 32bits, unused. */ 248}; 249 250#define us_link us_type._us_link 251#define us_size us_type._us_size 252 |
253/* 254 * The slab structure for UMA_ZONE_REFCNT zones for whose items we 255 * maintain reference counters in the slab for. 256 */ 257struct uma_slab_refcnt { 258 struct uma_slab us_head; /* slab header data */ 259 uint32_t us_refcnt[0]; /* Actually larger. */ 260}; 261 | |
262typedef struct uma_slab * uma_slab_t; | 253typedef struct uma_slab * uma_slab_t; |
263typedef struct uma_slab_refcnt * uma_slabrefcnt_t; | |
264typedef uma_slab_t (*uma_slaballoc)(uma_zone_t, uma_keg_t, int); 265 266struct uma_klink { 267 LIST_ENTRY(uma_klink) kl_link; 268 uma_keg_t kl_keg; 269}; 270typedef struct uma_klink *uma_klink_t; 271 --- 165 unchanged lines hidden --- | 254typedef uma_slab_t (*uma_slaballoc)(uma_zone_t, uma_keg_t, int); 255 256struct uma_klink { 257 LIST_ENTRY(uma_klink) kl_link; 258 uma_keg_t kl_keg; 259}; 260typedef struct uma_klink *uma_klink_t; 261 --- 165 unchanged lines hidden --- |