memstat.h (148357) | memstat.h (148359) |
---|---|
1/*- 2 * Copyright (c) 2005 Robert N. M. Watson 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2005 Robert N. M. Watson 3 * 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/lib/libmemstat/memstat.h 148357 2005-07-24 01:28:54Z rwatson $ | 26 * $FreeBSD: head/lib/libmemstat/memstat.h 148359 2005-07-24 01:41:47Z rwatson $ |
27 */ 28 29#ifndef _MEMSTAT_H_ 30#define _MEMSTAT_H_ 31 32/* 33 * Number of CPU slots in library-internal data structures. This should be 34 * at least the value of MAXCPU from param.h. --- 50 unchanged lines hidden (view full) --- 85/* 86 * struct memory_type_list is the head of a list of memory types and 87 * statistics. 88 */ 89struct memory_type_list; 90 91__BEGIN_DECLS 92/* | 27 */ 28 29#ifndef _MEMSTAT_H_ 30#define _MEMSTAT_H_ 31 32/* 33 * Number of CPU slots in library-internal data structures. This should be 34 * at least the value of MAXCPU from param.h. --- 50 unchanged lines hidden (view full) --- 85/* 86 * struct memory_type_list is the head of a list of memory types and 87 * statistics. 88 */ 89struct memory_type_list; 90 91__BEGIN_DECLS 92/* |
93 * Functions that operate without memory type or memory type list context. 94 */ 95const char *memstat_strerror(int error); 96 97/* |
|
93 * Functions for managing memory type and statistics data. 94 */ 95struct memory_type_list *memstat_mtl_alloc(void); 96struct memory_type *memstat_mtl_first(struct memory_type_list *list); 97struct memory_type *memstat_mtl_next(struct memory_type *mtp); 98struct memory_type *memstat_mtl_find(struct memory_type_list *list, 99 int allocator, const char *name); 100void memstat_mtl_free(struct memory_type_list *list); --- 59 unchanged lines hidden --- | 98 * Functions for managing memory type and statistics data. 99 */ 100struct memory_type_list *memstat_mtl_alloc(void); 101struct memory_type *memstat_mtl_first(struct memory_type_list *list); 102struct memory_type *memstat_mtl_next(struct memory_type *mtp); 103struct memory_type *memstat_mtl_find(struct memory_type_list *list, 104 int allocator, const char *name); 105void memstat_mtl_free(struct memory_type_list *list); --- 59 unchanged lines hidden --- |