Deleted Added
full compact
uma.h (94161) uma.h (95758)
1/*
2 * Copyright (c) 2002, Jeffrey Roberson <jroberson@chesapeake.net>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*
2 * Copyright (c) 2002, Jeffrey Roberson <jroberson@chesapeake.net>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/vm/uma.h 94161 2002-04-08 04:48:58Z jeff $
26 * $FreeBSD: head/sys/vm/uma.h 95758 2002-04-29 23:45:41Z jeff $
27 *
28 */
29
30/*
31 * uma.h - External definitions for the Universal Memory Allocator
32 *
33 * Jeff Roberson <jroberson@chesapeake.net>
34*/

--- 132 unchanged lines hidden (view full) ---

167#define UMA_ZONE_PAGEABLE 0x0001 /* Return items not fully backed by
168 physical memory XXX Not yet */
169#define UMA_ZONE_ZINIT 0x0002 /* Initialize with zeros */
170#define UMA_ZONE_STATIC 0x0004 /* Staticly sized zone */
171#define UMA_ZONE_OFFPAGE 0x0008 /* Force the slab structure allocation
172 off of the real memory */
173#define UMA_ZONE_MALLOC 0x0010 /* For use by malloc(9) only! */
174#define UMA_ZONE_NOFREE 0x0020 /* Do not free slabs of this type! */
27 *
28 */
29
30/*
31 * uma.h - External definitions for the Universal Memory Allocator
32 *
33 * Jeff Roberson <jroberson@chesapeake.net>
34*/

--- 132 unchanged lines hidden (view full) ---

167#define UMA_ZONE_PAGEABLE 0x0001 /* Return items not fully backed by
168 physical memory XXX Not yet */
169#define UMA_ZONE_ZINIT 0x0002 /* Initialize with zeros */
170#define UMA_ZONE_STATIC 0x0004 /* Staticly sized zone */
171#define UMA_ZONE_OFFPAGE 0x0008 /* Force the slab structure allocation
172 off of the real memory */
173#define UMA_ZONE_MALLOC 0x0010 /* For use by malloc(9) only! */
174#define UMA_ZONE_NOFREE 0x0020 /* Do not free slabs of this type! */
175#define UMA_ZONE_MTXCLASS 0x0040 /* Create a new lock class */
175
176/* Definitions for align */
177#define UMA_ALIGN_PTR (sizeof(void *) - 1) /* Alignment fit for ptr */
178#define UMA_ALIGN_LONG (sizeof(long) - 1) /* "" long */
179#define UMA_ALIGN_INT (sizeof(int) - 1) /* "" int */
180#define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */
181#define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */
182#define UMA_ALIGN_CACHE (16 - 1) /* Cache line size align */

--- 243 unchanged lines hidden ---
176
177/* Definitions for align */
178#define UMA_ALIGN_PTR (sizeof(void *) - 1) /* Alignment fit for ptr */
179#define UMA_ALIGN_LONG (sizeof(long) - 1) /* "" long */
180#define UMA_ALIGN_INT (sizeof(int) - 1) /* "" int */
181#define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */
182#define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */
183#define UMA_ALIGN_CACHE (16 - 1) /* Cache line size align */

--- 243 unchanged lines hidden ---