]> mj.ucw.cz Git - libucw.git/blobdiff - lib/mempool.h
Implemented {mp,ep}_total_size().
[libucw.git] / lib / mempool.h
index c53423abc1130a1f8f4600c4535c3e543e4697cd..d8602410fd70b310ca61436672a3d7d3ce88dccb 100644 (file)
@@ -27,7 +27,7 @@ struct mempool {
 
 /* Statistics (see mp_stats()) */
 struct mempool_stats {
-  uns total_size;                      /* Real allocated size in bytes */
+  u64 total_size;                      /* Real allocated size in bytes */
   uns chain_count[3];                  /* Number of allocated chunks in small/big/unused chains */
   uns chain_size[3];                   /* Size of allocated chunks in small/big/unused chains */
 };
@@ -46,6 +46,7 @@ void mp_flush(struct mempool *pool);
 
 /* Compute some statistics for debug purposes. See the definition of the mempool_stats structure. */
 void mp_stats(struct mempool *pool, struct mempool_stats *stats);
+u64 mp_total_size(struct mempool *pool);
 
 
 /*** Allocation routines ***/