Deleted Added
full compact
uma_core.c (241825) uma_core.c (242152)
1/*-
2 * Copyright (c) 2002-2005, 2009 Jeffrey Roberson <jeff@FreeBSD.org>
3 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org>
4 * Copyright (c) 2004-2006 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

43
44/*
45 * TODO:
46 * - Improve memory usage for large allocations
47 * - Investigate cache size adjustments
48 */
49
50#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2002-2005, 2009 Jeffrey Roberson <jeff@FreeBSD.org>
3 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org>
4 * Copyright (c) 2004-2006 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

43
44/*
45 * TODO:
46 * - Improve memory usage for large allocations
47 * - Investigate cache size adjustments
48 */
49
50#include <sys/cdefs.h>
51__FBSDID("$FreeBSD: head/sys/vm/uma_core.c 241825 2012-10-22 02:11:57Z eadler $");
51__FBSDID("$FreeBSD: head/sys/vm/uma_core.c 242152 2012-10-26 17:51:05Z mdf $");
52
53/* I should really use ktr.. */
54/*
55#define UMA_DEBUG 1
56#define UMA_DEBUG_ALLOC 1
57#define UMA_DEBUG_ALLOC_1 1
58*/
59

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

153static struct callout uma_callout;
154#define UMA_TIMEOUT 20 /* Seconds for callout interval. */
155
156/*
157 * This structure is passed as the zone ctor arg so that I don't have to create
158 * a special allocation function just for zones.
159 */
160struct uma_zctor_args {
52
53/* I should really use ktr.. */
54/*
55#define UMA_DEBUG 1
56#define UMA_DEBUG_ALLOC 1
57#define UMA_DEBUG_ALLOC_1 1
58*/
59

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

153static struct callout uma_callout;
154#define UMA_TIMEOUT 20 /* Seconds for callout interval. */
155
156/*
157 * This structure is passed as the zone ctor arg so that I don't have to create
158 * a special allocation function just for zones.
159 */
160struct uma_zctor_args {
161 char *name;
161 const char *name;
162 size_t size;
163 uma_ctor ctor;
164 uma_dtor dtor;
165 uma_init uminit;
166 uma_fini fini;
167 uma_keg_t keg;
168 int align;
169 u_int32_t flags;

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

1823{
1824
1825 if (align != UMA_ALIGN_CACHE)
1826 uma_align_cache = align;
1827}
1828
1829/* See uma.h */
1830uma_zone_t
162 size_t size;
163 uma_ctor ctor;
164 uma_dtor dtor;
165 uma_init uminit;
166 uma_fini fini;
167 uma_keg_t keg;
168 int align;
169 u_int32_t flags;

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

1823{
1824
1825 if (align != UMA_ALIGN_CACHE)
1826 uma_align_cache = align;
1827}
1828
1829/* See uma.h */
1830uma_zone_t
1831uma_zcreate(char *name, size_t size, uma_ctor ctor, uma_dtor dtor,
1831uma_zcreate(const char *name, size_t size, uma_ctor ctor, uma_dtor dtor,
1832 uma_init uminit, uma_fini fini, int align, u_int32_t flags)
1833
1834{
1835 struct uma_zctor_args args;
1836
1837 /* This stuff is essential for the zone ctor */
1838 args.name = name;
1839 args.size = size;

--- 1553 unchanged lines hidden ---
1832 uma_init uminit, uma_fini fini, int align, u_int32_t flags)
1833
1834{
1835 struct uma_zctor_args args;
1836
1837 /* This stuff is essential for the zone ctor */
1838 args.name = name;
1839 args.size = size;

--- 1553 unchanged lines hidden ---