uma.h (111119) | uma.h (120223) |
---|---|
1/* 2 * Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org> 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 <jeff@freebsd.org> 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 111119 2003-02-19 05:47:46Z imp $ | 26 * $FreeBSD: head/sys/vm/uma.h 120223 2003-09-19 08:37:44Z jeff $ |
27 * 28 */ 29 30/* 31 * uma.h - External definitions for the Universal Memory Allocator 32 * 33*/ 34 --- 122 unchanged lines hidden (view full) --- 157 * A pointer to a structure which is intended to be opaque to users of 158 * the interface. The value may be null if the wait flag is not set. 159 */ 160 161uma_zone_t uma_zcreate(char *name, size_t size, uma_ctor ctor, uma_dtor dtor, 162 uma_init uminit, uma_fini fini, int align, 163 u_int16_t flags); 164 | 27 * 28 */ 29 30/* 31 * uma.h - External definitions for the Universal Memory Allocator 32 * 33*/ 34 --- 122 unchanged lines hidden (view full) --- 157 * A pointer to a structure which is intended to be opaque to users of 158 * the interface. The value may be null if the wait flag is not set. 159 */ 160 161uma_zone_t uma_zcreate(char *name, size_t size, uma_ctor ctor, uma_dtor dtor, 162 uma_init uminit, uma_fini fini, int align, 163 u_int16_t flags); 164 |
165/* Definitions for uma_zcreate flags */ | 165/* 166 * Definitions for uma_zcreate flags 167 * 168 * These flags share space with UMA_ZFLAGs in uma_int.h. Be careful not to 169 * overlap when adding new features. 0xf000 is in use by uma_int.h. 170 */ |
166#define UMA_ZONE_PAGEABLE 0x0001 /* Return items not fully backed by 167 physical memory XXX Not yet */ 168#define UMA_ZONE_ZINIT 0x0002 /* Initialize with zeros */ 169#define UMA_ZONE_STATIC 0x0004 /* Staticly sized zone */ 170#define UMA_ZONE_OFFPAGE 0x0008 /* Force the slab structure allocation 171 off of the real memory */ 172#define UMA_ZONE_MALLOC 0x0010 /* For use by malloc(9) only! */ 173#define UMA_ZONE_NOFREE 0x0020 /* Do not free slabs of this type! */ --- 256 unchanged lines hidden --- | 171#define UMA_ZONE_PAGEABLE 0x0001 /* Return items not fully backed by 172 physical memory XXX Not yet */ 173#define UMA_ZONE_ZINIT 0x0002 /* Initialize with zeros */ 174#define UMA_ZONE_STATIC 0x0004 /* Staticly sized zone */ 175#define UMA_ZONE_OFFPAGE 0x0008 /* Force the slab structure allocation 176 off of the real memory */ 177#define UMA_ZONE_MALLOC 0x0010 /* For use by malloc(9) only! */ 178#define UMA_ZONE_NOFREE 0x0020 /* Do not free slabs of this type! */ --- 256 unchanged lines hidden --- |