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 129913 2004-06-01 01:36:26Z bmilekic $ |
27 * 28 */ 29 30/* 31 * uma.h - External definitions for the Universal Memory Allocator 32 * 33*/ 34 --- 145 unchanged lines hidden (view full) --- 180 * when creating a master zone. These zinit/zfini are called 181 * on the TRANSITION from keg to zone (and vice-versa). Once 182 * these are set, the primary zone may alter its init/fini 183 * (which are called when the object passes from VM to keg) 184 * using uma_zone_set_init/fini()) as well as its own 185 * zinit/zfini (unset by default for master zone) with 186 * uma_zone_set_zinit/zfini() (note subtle 'z' prefix). 187 * |
188 * master A reference to this zone's Master Zone (Primary Zone), 189 * which contains the backing Keg for the Secondary Zone 190 * being added. |
191 * 192 * Returns: 193 * A pointer to a structure which is intended to be opaque to users of 194 * the interface. The value may be null if the wait flag is not set. 195 */ 196uma_zone_t uma_zsecond_create(char *name, uma_ctor ctor, uma_dtor dtor, 197 uma_init zinit, uma_fini zfini, uma_zone_t master); 198 --- 308 unchanged lines hidden --- |