Deleted Added
full compact
uma.h (211396) uma.h (213910)
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 *
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 211396 2010-08-16 14:24:00Z andre $
27 * $FreeBSD: head/sys/vm/uma.h 213910 2010-10-16 04:14:45Z lstewart $
28 *
29 */
30
31/*
32 * uma.h - External definitions for the Universal Memory Allocator
33 *
34*/
35

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

466 *
467 * Return:
468 * 0 No limit
469 * int The effective limit of the zone
470 */
471int uma_zone_get_max(uma_zone_t zone);
472
473/*
28 *
29 */
30
31/*
32 * uma.h - External definitions for the Universal Memory Allocator
33 *
34*/
35

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

466 *
467 * Return:
468 * 0 No limit
469 * int The effective limit of the zone
470 */
471int uma_zone_get_max(uma_zone_t zone);
472
473/*
474 * Obtains the approximate current number of items allocated from a zone
475 *
476 * Arguments:
477 * zone The zone to obtain the current allocation count from
478 *
479 * Return:
480 * int The approximate current number of items allocated from the zone
481 */
482int uma_zone_get_cur(uma_zone_t zone);
483
484/*
474 * The following two routines (uma_zone_set_init/fini)
475 * are used to set the backend init/fini pair which acts on an
476 * object as it becomes allocated and is placed in a slab within
477 * the specified zone's backing keg. These should probably not
478 * be changed once allocations have already begun, but only be set
479 * immediately upon zone creation.
480 */
481void uma_zone_set_init(uma_zone_t zone, uma_init uminit);

--- 145 unchanged lines hidden ---
485 * The following two routines (uma_zone_set_init/fini)
486 * are used to set the backend init/fini pair which acts on an
487 * object as it becomes allocated and is placed in a slab within
488 * the specified zone's backing keg. These should probably not
489 * be changed once allocations have already begun, but only be set
490 * immediately upon zone creation.
491 */
492void uma_zone_set_init(uma_zone_t zone, uma_init uminit);

--- 145 unchanged lines hidden ---