Deleted Added
full compact
uma.h (166213) uma.h (166654)
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 166213 2007-01-25 01:05:23Z mohans $
27 * $FreeBSD: head/sys/vm/uma.h 166654 2007-02-11 20:13:52Z rwatson $
28 *
29 */
30
31/*
32 * uma.h - External definitions for the Universal Memory Allocator
33 *
34*/
35

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

231#define UMA_ZONE_MAXBUCKET 0x0800 /* Use largest buckets */
232
233/* Definitions for align */
234#define UMA_ALIGN_PTR (sizeof(void *) - 1) /* Alignment fit for ptr */
235#define UMA_ALIGN_LONG (sizeof(long) - 1) /* "" long */
236#define UMA_ALIGN_INT (sizeof(int) - 1) /* "" int */
237#define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */
238#define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */
28 *
29 */
30
31/*
32 * uma.h - External definitions for the Universal Memory Allocator
33 *
34*/
35

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

231#define UMA_ZONE_MAXBUCKET 0x0800 /* Use largest buckets */
232
233/* Definitions for align */
234#define UMA_ALIGN_PTR (sizeof(void *) - 1) /* Alignment fit for ptr */
235#define UMA_ALIGN_LONG (sizeof(long) - 1) /* "" long */
236#define UMA_ALIGN_INT (sizeof(int) - 1) /* "" int */
237#define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */
238#define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */
239#define UMA_ALIGN_CACHE (16 - 1) /* Cache line size align */
239#define UMA_ALIGN_CACHE (0 - 1) /* Cache line size align */
240
241/*
242 * Destroys an empty uma zone. If the zone is not empty uma complains loudly.
243 *
244 * Arguments:
245 * zone The zone we want to destroy.
246 *
247 */

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

383 * None
384 *
385 * This should only be called by the page out daemon.
386 */
387
388void uma_reclaim(void);
389
390/*
240
241/*
242 * Destroys an empty uma zone. If the zone is not empty uma complains loudly.
243 *
244 * Arguments:
245 * zone The zone we want to destroy.
246 *
247 */

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

383 * None
384 *
385 * This should only be called by the page out daemon.
386 */
387
388void uma_reclaim(void);
389
390/*
391 * Sets the alignment mask to be used for all zones requesting cache
392 * alignment. Should be called by MD boot code prior to starting VM/UMA.
393 *
394 * Arguments:
395 * align The alignment mask
396 *
397 * Returns:
398 * Nothing
399 */
400void uma_set_align(int align);
401
402/*
391 * Switches the backing object of a zone
392 *
393 * Arguments:
394 * zone The zone to update
395 * obj The obj to use for future allocations
396 * size The size of the object to allocate
397 *
398 * Returns:

--- 175 unchanged lines hidden ---
403 * Switches the backing object of a zone
404 *
405 * Arguments:
406 * zone The zone to update
407 * obj The obj to use for future allocations
408 * size The size of the object to allocate
409 *
410 * Returns:

--- 175 unchanged lines hidden ---