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 95925 2002-05-02 07:36:30Z arr $ |
27 * 28 */ 29 30/* 31 * uma.h - External definitions for the Universal Memory Allocator 32 * 33 * Jeff Roberson <jroberson@chesapeake.net> 34*/ --- 119 unchanged lines hidden (view full) --- 154 * eg 4 would be 0x3 155 * flags A set of parameters that control the behavior of the zone 156 * 157 * Returns: 158 * A pointer to a structure which is intended to be opaque to users of 159 * the interface. The value may be null if the wait flag is not set. 160 */ 161 |
162uma_zone_t uma_zcreate(char *name, size_t size, uma_ctor ctor, uma_dtor dtor, |
163 uma_init uminit, uma_fini fini, int align, 164 u_int16_t flags); 165 166/* Definitions for uma_zcreate flags */ 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 */ --- 255 unchanged lines hidden --- |