1 /* 2 * %CopyrightBegin% 3 * 4 * Copyright Ericsson AB 1998-2016. All Rights Reserved. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 * 18 * %CopyrightEnd% 19 */ 20 /* 21 * This header defines the protocol between the erlang 22 * memsup module and the C module. 23 */ 24 #ifndef _SYSMEM_H 25 #define _SYSMEM_H 26 27 /* Simple memory statistics */ 28 /*IG*/ #define SHOW_MEM 1 29 30 /* Extended memory statistics */ 31 /*IG*/ #define SHOW_SYSTEM_MEM 2 32 33 /* Tags for the extended statistics */ 34 /*IG*/ #define SHOW_SYSTEM_MEM_END 0 35 /*IG*/ #define MEM_SYSTEM_TOTAL 1 36 /*IG*/ #define MEM_TOTAL 2 37 /*IG*/ #define MEM_FREE 3 38 /*IG*/ #define MEM_LARGEST_FREE 4 39 /*IG*/ #define MEM_NUMBER_OF_FREE 5 40 /*Extension*/ 41 /*IG*/ #define MEM_BUFFERS 6 42 /*IG*/ #define MEM_CACHED 7 43 /*IG*/ #define MEM_SHARED 8 44 /*IG*/ #define SWAP_TOTAL 9 45 /*IG*/ #define SWAP_FREE 10 46 /*IG*/ #define MEM_CACHED_X 11 47 /*IG*/ #define MEM_AVAIL 12 48 49 #endif 50