1/*- 2 * Copyright (c) 2002, 2003, 2004, 2005 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.h 242152 2012-10-26 17:51:05Z mdf $ |
28 * 29 */ 30 31/* 32 * uma.h - External definitions for the Universal Memory Allocator 33 * 34*/ 35 --- 124 unchanged lines hidden (view full) --- 160 * align A bitmask that corresponds to the requested alignment 161 * eg 4 would be 0x3 162 * flags A set of parameters that control the behavior of the zone. 163 * 164 * Returns: 165 * A pointer to a structure which is intended to be opaque to users of 166 * the interface. The value may be null if the wait flag is not set. 167 */ |
168uma_zone_t uma_zcreate(const char *name, size_t size, uma_ctor ctor, 169 uma_dtor dtor, uma_init uminit, uma_fini fini, 170 int align, u_int32_t flags); |
171 172/* 173 * Create a secondary uma zone 174 * 175 * Arguments: 176 * name The text name of the zone for debugging and stats. This memory 177 * should not be freed until the zone has been deallocated. 178 * ctor The constructor that is called when the object is allocated. --- 464 unchanged lines hidden --- |