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

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

447struct vm_object;
448int uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int size);
449
450/*
451 * Sets a high limit on the number of items allowed in a zone
452 *
453 * Arguments:
454 * zone The zone to limit
28 *
29 */
30
31/*
32 * uma.h - External definitions for the Universal Memory Allocator
33 *
34*/
35

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

447struct vm_object;
448int uma_zone_set_obj(uma_zone_t zone, struct vm_object *obj, int size);
449
450/*
451 * Sets a high limit on the number of items allowed in a zone
452 *
453 * Arguments:
454 * zone The zone to limit
455 * nitems The requested upper limit on the number of items allowed
455 *
456 * Returns:
456 *
457 * Returns:
457 * Nothing
458 * int The effective value of nitems after rounding up based on page size
458 */
459 */
459void uma_zone_set_max(uma_zone_t zone, int nitems);
460int uma_zone_set_max(uma_zone_t zone, int nitems);
460
461/*
462 * Obtains the effective limit on the number of items in a zone
463 *
464 * Arguments:
465 * zone The zone to obtain the effective limit from
466 *
467 * Return:

--- 170 unchanged lines hidden ---
461
462/*
463 * Obtains the effective limit on the number of items in a zone
464 *
465 * Arguments:
466 * zone The zone to obtain the effective limit from
467 *
468 * Return:

--- 170 unchanged lines hidden ---