185 const TInt KControlIoSimulateFileCacheWriteFailure=KMaxTInt-20; |
185 const TInt KControlIoSimulateFileCacheWriteFailure=KMaxTInt-20; |
186 |
186 |
187 const TInt KControlIoSessionCount=KMaxTInt-21; |
187 const TInt KControlIoSessionCount=KMaxTInt-21; |
188 const TInt KControlIoObjectCount=KMaxTInt-22; |
188 const TInt KControlIoObjectCount=KMaxTInt-22; |
189 |
189 |
|
190 const TInt KControlIoIsFileSequential=KMaxTInt-23; |
|
191 const TInt KControlIoGlobalCacheConfig=KMaxTInt-24; |
|
192 const TInt KControlIoGlobalCacheInfo=KMaxTInt-25; |
|
193 const TInt KControlIoDirCacheConfig=KMaxTInt-26; |
|
194 const TInt KControlIoDirCacheInfo=KMaxTInt-27; |
|
195 const TInt KControlIoSimulateMemoryLow=KMaxTInt-28; |
|
196 const TInt KControlIoStopSimulateMemoryLow=KMaxTInt-29; |
|
197 |
190 const TInt KNCDebugNotifierValue=-500000; // between 0 and 1 second |
198 const TInt KNCDebugNotifierValue=-500000; // between 0 and 1 second |
191 |
199 |
192 GLREF_D TInt DebugNCNotifier; |
200 GLREF_D TInt DebugNCNotifier; |
193 |
201 |
194 class TIOCacheValues |
202 class TIOCacheValues |
252 |
260 |
253 typedef TPckgBuf <TFsDebugCorruptLogRecord> TFsDebugCorruptLogRecordBuf; |
261 typedef TPckgBuf <TFsDebugCorruptLogRecord> TFsDebugCorruptLogRecordBuf; |
254 |
262 |
255 extern TBool EnableFatUtilityFunctions; |
263 extern TBool EnableFatUtilityFunctions; |
256 |
264 |
|
265 class TGlobalCacheConfig |
|
266 { |
|
267 public: |
|
268 TInt32 iGlobalCacheSizeInBytes; // in bytes |
|
269 TInt32 iGlobalLowMemoryThreshold; // in percentage |
|
270 }; |
|
271 |
|
272 class TGlobalCacheInfo |
|
273 { |
|
274 public: |
|
275 TInt32 iGlobalCacheSizeInBytes; // in bytes |
|
276 TInt32 iGlobalLowMemoryThreshold; // in percentage |
|
277 }; |
|
278 |
|
279 class TDirCacheConfig |
|
280 { |
|
281 public: |
|
282 TInt iDrive; |
|
283 |
|
284 TInt32 iLeafDirCacheSize; // in number of most recently visited leaf directories |
|
285 TInt32 iDirCacheSizeMin; // in bytes |
|
286 TInt32 iDirCacheSizeMax; // in bytes |
|
287 }; |
|
288 |
|
289 class TDirCacheInfo |
|
290 { |
|
291 public: |
|
292 TInt iDrive; |
|
293 |
|
294 /** |
|
295 Segment size in bytes. A memory segment is the smallest memory unit that Kernel manages through RChunk. |
|
296 */ |
|
297 TInt32 iMemorySegmentSize; |
|
298 |
|
299 /** |
|
300 Size of memory a page occupies, in bytes. |
|
301 Note: following restrictions may result a difference between page size in memory & page size in data: |
|
302 1. page size can not be smaller than segment size |
|
303 2. one page can not contain data from two different clusters |
|
304 */ |
|
305 TInt32 iPageSizeInMemory; |
|
306 |
|
307 /** |
|
308 Size of actual data a page contains, in bytes. |
|
309 Note: following restrictions may result a difference between page size in memory & page size in data: |
|
310 1. page size can not be smaller than segment size |
|
311 2. one page can not contain data from two different clusters |
|
312 */ |
|
313 TInt32 iPageSizeInData; |
|
314 |
|
315 /** |
|
316 The minimum number of pages that the cache can contain, even under low memory conditions. |
|
317 */ |
|
318 TInt32 iMinCacheSizeInPages; |
|
319 |
|
320 /** |
|
321 The maximum number of pages that the cache can contain, when there is enough free memory in the system. |
|
322 */ |
|
323 TInt32 iMaxCacheSizeInPages; |
|
324 |
|
325 /** |
|
326 The minimum cache size in memory. In bytes. |
|
327 */ |
|
328 TInt32 iMinCacheSizeInMemory; |
|
329 |
|
330 /** |
|
331 The maximum cache size in memroy. In bytes. |
|
332 */ |
|
333 TInt32 iMaxCacheSizeInMemory; |
|
334 |
|
335 /** |
|
336 Current count of the locked pages. |
|
337 */ |
|
338 TInt32 iLockedPageNumber; |
|
339 |
|
340 /** |
|
341 Current count of the unlocked pages. |
|
342 */ |
|
343 TInt32 iUnlockedPageNumber; |
|
344 |
|
345 }; |
|
346 |
257 #endif |
347 #endif |
258 |
348 |
259 enum TLoaderDebugFunction |
349 enum TLoaderDebugFunction |
260 { |
350 { |
261 ELoaderDebug_SetHeapFail, |
351 ELoaderDebug_SetHeapFail, |