kern_mbuf.c (09c817ba36db7c3a4ff5e25ac55816ca181a403d) kern_mbuf.c (3153e878dd4c552fb5c680742041a98dc3deb9ea)
1/*-
2 * Copyright (c) 2004, 2005,
3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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

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

351 */
352static void *
353mbuf_jumbo_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
354{
355
356 /* Inform UMA that this allocator uses kernel_map/object. */
357 *flags = UMA_SLAB_KERNEL;
358 return ((void *)kmem_alloc_contig(kernel_map, bytes, wait,
1/*-
2 * Copyright (c) 2004, 2005,
3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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

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

351 */
352static void *
353mbuf_jumbo_alloc(uma_zone_t zone, int bytes, u_int8_t *flags, int wait)
354{
355
356 /* Inform UMA that this allocator uses kernel_map/object. */
357 *flags = UMA_SLAB_KERNEL;
358 return ((void *)kmem_alloc_contig(kernel_map, bytes, wait,
359 (vm_paddr_t)0, ~(vm_paddr_t)0, 1, 0, VM_CACHE_DEFAULT));
359 (vm_paddr_t)0, ~(vm_paddr_t)0, 1, 0, VM_MEMATTR_DEFAULT));
360}
361
362/*
363 * Constructor for Mbuf master zone.
364 *
365 * The 'arg' pointer points to a mb_args structure which
366 * contains call-specific information required to support the
367 * mbuf allocation API. See mbuf.h.

--- 327 unchanged lines hidden ---
360}
361
362/*
363 * Constructor for Mbuf master zone.
364 *
365 * The 'arg' pointer points to a mb_args structure which
366 * contains call-specific information required to support the
367 * mbuf allocation API. See mbuf.h.

--- 327 unchanged lines hidden ---