uma.h (aabe13f1450bb4caba66ec2a7a41c0dfefff511d) | uma.h (a9d6f1fe0a2f852efe7a324f65d7142537b2c14e) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2002, 2003, 2004, 2005 Jeffrey Roberson <jeff@FreeBSD.org> 5 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 469 unchanged lines hidden (view full) --- 478/* 479 * Set a reserved number of items to hold for M_USE_RESERVE allocations. All 480 * other requests must allocate new backing pages. 481 */ 482void uma_zone_reserve(uma_zone_t zone, int nitems); 483 484/* 485 * Reserves the maximum KVA space required by the zone and configures the zone | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2002, 2003, 2004, 2005 Jeffrey Roberson <jeff@FreeBSD.org> 5 * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 469 unchanged lines hidden (view full) --- 478/* 479 * Set a reserved number of items to hold for M_USE_RESERVE allocations. All 480 * other requests must allocate new backing pages. 481 */ 482void uma_zone_reserve(uma_zone_t zone, int nitems); 483 484/* 485 * Reserves the maximum KVA space required by the zone and configures the zone |
486 * to use a VM_ALLOC_NOOBJ-based backend allocator. | 486 * to use a backend that allocates physical memory and maps it using the 487 * reserved KVA. |
487 * 488 * Arguments: 489 * zone The zone to update. 490 * nitems The upper limit on the number of items that can be allocated. 491 * 492 * Returns: 493 * 0 if KVA space can not be allocated 494 * 1 if successful --- 249 unchanged lines hidden --- | 488 * 489 * Arguments: 490 * zone The zone to update. 491 * nitems The upper limit on the number of items that can be allocated. 492 * 493 * Returns: 494 * 0 if KVA space can not be allocated 495 * 1 if successful --- 249 unchanged lines hidden --- |