linux.hh (5976:536125d85fa3) | linux.hh (6640:30d92d2b66a1) |
---|---|
1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 97 unchanged lines hidden (view full) --- 106 static const int NUM_OPEN_FLAGS; 107 108 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 109 110 typedef struct { 111 uint64_t iov_base; // void * 112 uint64_t iov_len; // size_t 113 } tgt_iovec; | 1/* 2 * Copyright (c) 2007 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * Redistribution and use of this software in source and binary forms, 6 * with or without modification, are permitted provided that the 7 * following conditions are met: 8 * --- 97 unchanged lines hidden (view full) --- 106 static const int NUM_OPEN_FLAGS; 107 108 static const unsigned TGT_MAP_ANONYMOUS = 0x20; 109 110 typedef struct { 111 uint64_t iov_base; // void * 112 uint64_t iov_len; // size_t 113 } tgt_iovec; |
114 115 typedef struct { 116 int64_t uptime; /* Seconds since boot */ 117 uint64_t loads[3]; /* 1, 5, and 15 minute load averages */ 118 uint64_t totalram; /* Total usable main memory size */ 119 uint64_t freeram; /* Available memory size */ 120 uint64_t sharedram; /* Amount of shared memory */ 121 uint64_t bufferram; /* Memory used by buffers */ 122 uint64_t totalswap; /* Total swap space size */ 123 uint64_t freeswap; /* swap space still available */ 124 uint16_t procs; /* Number of current processes */ 125 uint64_t totalhigh; /* Total high memory size */ 126 uint64_t freehigh; /* Available high memory size */ 127 uint64_t mem_unit; /* Memory unit size in bytes */ 128 } tgt_sysinfo; 129 |
|
114}; 115 116class X86Linux32 : public Linux 117{ 118 public: 119 120 typedef struct { 121 uint64_t st_dev; --- 33 unchanged lines hidden (view full) --- 155// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO 156// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE 157// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC 158// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC 159 160 static const int NUM_OPEN_FLAGS; 161 162 static const unsigned TGT_MAP_ANONYMOUS = 0x20; | 130}; 131 132class X86Linux32 : public Linux 133{ 134 public: 135 136 typedef struct { 137 uint64_t st_dev; --- 33 unchanged lines hidden (view full) --- 171// static const int TGT_O_DIRECTIO = 0x00020000; //!< O_DIRECTIO 172// static const int TGT_O_CACHE = 0x00002000; //!< O_CACHE 173// static const int TGT_O_DSYNC = 0x00008000; //!< O_DSYNC 174// static const int TGT_O_RSYNC = 0x00040000; //!< O_RSYNC 175 176 static const int NUM_OPEN_FLAGS; 177 178 static const unsigned TGT_MAP_ANONYMOUS = 0x20; |
179 180 typedef struct { 181 int32_t uptime; /* Seconds since boot */ 182 uint32_t loads[3]; /* 1, 5, and 15 minute load averages */ 183 uint32_t totalram; /* Total usable main memory size */ 184 uint32_t freeram; /* Available memory size */ 185 uint32_t sharedram; /* Amount of shared memory */ 186 uint32_t bufferram; /* Memory used by buffers */ 187 uint32_t totalswap; /* Total swap space size */ 188 uint32_t freeswap; /* swap space still available */ 189 uint16_t procs; /* Number of current processes */ 190 uint32_t totalhigh; /* Total high memory size */ 191 uint32_t freehigh; /* Available high memory size */ 192 uint32_t mem_unit; /* Memory unit size in bytes */ 193 } tgt_sysinfo; |
|
163}; 164 165#endif | 194}; 195 196#endif |