uma.h (292484) | uma.h (295222) |
---|---|
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 292484 2015-12-20 02:05:33Z jtl $ | 27 * $FreeBSD: head/sys/vm/uma.h 295222 2016-02-03 23:30:17Z glebius $ |
28 * 29 */ 30 31/* 32 * uma.h - External definitions for the Universal Memory Allocator 33 * 34*/ 35 --- 489 unchanged lines hidden (view full) --- 525 * 526 * Arguments: 527 * zone The zone to which this applies 528 * fx The function ro run 529 * 530 * Returns: 531 * Nothing 532 */ | 28 * 29 */ 30 31/* 32 * uma.h - External definitions for the Universal Memory Allocator 33 * 34*/ 35 --- 489 unchanged lines hidden (view full) --- 525 * 526 * Arguments: 527 * zone The zone to which this applies 528 * fx The function ro run 529 * 530 * Returns: 531 * Nothing 532 */ |
533typedef void (*uma_maxaction_t)(uma_zone_t); | 533typedef void (*uma_maxaction_t)(uma_zone_t, int); |
534void uma_zone_set_maxaction(uma_zone_t zone, uma_maxaction_t); 535 536/* 537 * Obtains the approximate current number of items allocated from a zone 538 * 539 * Arguments: 540 * zone The zone to obtain the current allocation count from 541 * --- 168 unchanged lines hidden --- | 534void uma_zone_set_maxaction(uma_zone_t zone, uma_maxaction_t); 535 536/* 537 * Obtains the approximate current number of items allocated from a zone 538 * 539 * Arguments: 540 * zone The zone to obtain the current allocation count from 541 * --- 168 unchanged lines hidden --- |