Deleted Added
full compact
memstat.h (160695) memstat.h (167597)
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 160695 2006-07-26 07:46:32Z jb $
26 * $FreeBSD: head/lib/libmemstat/memstat.h 167597 2007-03-15 10:44:18Z 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.

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

59 * various allocators).
60 */
61#define MEMTYPE_MAXNAME 32
62
63/*
64 * Library error conditions, mostly from the underlying data sources. On
65 * failure, functions typically return (-1) or (NULL); on success, (0) or a
66 * valid data pointer. The error from the last operation is stored in
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.

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

59 * various allocators).
60 */
61#define MEMTYPE_MAXNAME 32
62
63/*
64 * Library error conditions, mostly from the underlying data sources. On
65 * failure, functions typically return (-1) or (NULL); on success, (0) or a
66 * valid data pointer. The error from the last operation is stored in
67 * struct memory_type, and accessed via memstat_get_error(mtp).
67 * struct memory_type_list, and accessed via memstat_get_error(list).
68 */
69#define MEMSTAT_ERROR_UNDEFINED 0 /* Initialization value. */
70#define MEMSTAT_ERROR_NOMEMORY 1 /* Out of memory. */
71#define MEMSTAT_ERROR_VERSION 2 /* Unsupported version. */
72#define MEMSTAT_ERROR_PERMISSION 3 /* Permission denied. */
73#define MEMSTAT_ERROR_TOOMANYCPUS 4 /* Too many CPUs. */
74#define MEMSTAT_ERROR_DATAERROR 5 /* Error in stat data. */
75#define MEMSTAT_ERROR_KVM 6 /* See kvm_geterr() for err. */

--- 99 unchanged lines hidden ---
68 */
69#define MEMSTAT_ERROR_UNDEFINED 0 /* Initialization value. */
70#define MEMSTAT_ERROR_NOMEMORY 1 /* Out of memory. */
71#define MEMSTAT_ERROR_VERSION 2 /* Unsupported version. */
72#define MEMSTAT_ERROR_PERMISSION 3 /* Permission denied. */
73#define MEMSTAT_ERROR_TOOMANYCPUS 4 /* Too many CPUs. */
74#define MEMSTAT_ERROR_DATAERROR 5 /* Error in stat data. */
75#define MEMSTAT_ERROR_KVM 6 /* See kvm_geterr() for err. */

--- 99 unchanged lines hidden ---