linux.hh (10290:b7715fb7cf9f) | linux.hh (11320:42ecb523c64a) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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 are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 111 unchanged lines hidden (view full) --- 120 static const unsigned TGT_RLIMIT_RSS = 7; 121 static const unsigned TGT_RLIMIT_NOFILE = 5; 122 static const unsigned TGT_RLIMIT_MEMLOCK = 9; 123 124 /// Offset used to make sure that processes don't 125 /// assign themselves to process IDs reserved for 126 /// the root users. 127 static const int NUM_ROOT_PROCS = 2; | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 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 are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 111 unchanged lines hidden (view full) --- 120 static const unsigned TGT_RLIMIT_RSS = 7; 121 static const unsigned TGT_RLIMIT_NOFILE = 5; 122 static const unsigned TGT_RLIMIT_MEMLOCK = 9; 123 124 /// Offset used to make sure that processes don't 125 /// assign themselves to process IDs reserved for 126 /// the root users. 127 static const int NUM_ROOT_PROCS = 2; |
128 | 128 |
129 typedef struct { 130 int32_t uptime; /* Seconds since boot */ 131 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */ 132 uint32_t totalram; /* Total usable main memory size */ 133 uint32_t freeram; /* Available memory size */ 134 uint32_t sharedram; /* Amount of shared memory */ 135 uint32_t bufferram; /* Memory used by buffers */ 136 uint32_t totalswap; /* Total swap space size */ 137 uint32_t freeswap; /* swap space still available */ 138 uint16_t procs; /* Number of current processes */ 139 uint32_t totalhigh; /* Total high memory size */ 140 uint32_t freehigh; /* Available high memory size */ 141 uint32_t mem_unit; /* Memory unit size in bytes */ 142 } tgt_sysinfo; | 129 typedef struct { 130 int32_t uptime; /* Seconds since boot */ 131 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */ 132 uint32_t totalram; /* Total usable main memory size */ 133 uint32_t freeram; /* Available memory size */ 134 uint32_t sharedram; /* Amount of shared memory */ 135 uint32_t bufferram; /* Memory used by buffers */ 136 uint32_t totalswap; /* Total swap space size */ 137 uint32_t freeswap; /* swap space still available */ 138 uint16_t procs; /* Number of current processes */ 139 uint32_t totalhigh; /* Total high memory size */ 140 uint32_t freehigh; /* Available high memory size */ 141 uint32_t mem_unit; /* Memory unit size in bytes */ 142 } tgt_sysinfo; |
143 | 143 |
144}; 145 146#endif | 144}; 145 146#endif |