summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/iobuf.h
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-17 23:12:37 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-17 23:12:37 +0530
commit1d6dfe94fb970b51d96653da6c3361533d697fc3 (patch)
tree6d90357c54aac0e1732d05a0ef853ab44a396c69 /libglusterfs/src/iobuf.h
parent7867577b346c7f003be67ad202f4085cf35fdf7c (diff)
added 2 APIs iobuf_size and iobref_size to return the system memory usage by an iobuf, and by all iobufs in an iobref respectively
Diffstat (limited to 'libglusterfs/src/iobuf.h')
-rw-r--r--libglusterfs/src/iobuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h
index 2ad640bbc..4c3477084 100644
--- a/libglusterfs/src/iobuf.h
+++ b/libglusterfs/src/iobuf.h
@@ -109,4 +109,8 @@ void iobref_unref (struct iobref *iobref);
int iobref_add (struct iobref *iobref, struct iobuf *iobuf);
int iobref_merge (struct iobref *to, struct iobref *from);
+
+size_t iobuf_size (struct iobuf *iobuf);
+size_t iobref_size (struct iobref *iobref);
+
#endif /* !_IOBUF_H_ */