summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2001-11-19 01:34:51 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2001-11-19 01:34:51 (GMT)
commit41783a5a205f5d21572e087af838135247ff9726 (patch)
tree93bdaeb36abc4c840711168435b7dde6ef7dda20
parent2e29697587a19b41aff44f40f5d2d7f16dbd64ad (diff)
downloadlpsm-41783a5a205f5d21572e087af838135247ff9726.zip
lpsm-41783a5a205f5d21572e087af838135247ff9726.tar.gz
lpsm-41783a5a205f5d21572e087af838135247ff9726.tar.bz2
lpsm-41783a5a205f5d21572e087af838135247ff9726.tar.xz
Add missing file lpsm_alloc_size.3.inlpsm-0.1.11origin
-rw-r--r--lpsm_alloc_size.3.in49
1 files changed, 49 insertions, 0 deletions
diff --git a/lpsm_alloc_size.3.in b/lpsm_alloc_size.3.in
new file mode 100644
index 0000000..2e7e07f
--- /dev/null
+++ b/lpsm_alloc_size.3.in
@@ -0,0 +1,49 @@
+.\" -*- nroff -*- ---------------------------------------------------------
+.\"
+.\" Copyright 2001 H. Peter Anvin - All Rights Reserved
+.\"
+.\" This program is free software; you can redistribute it and/or modify
+.\" it under the terms of the GNU Lesser General Public License as
+.\" published by the Free Software Foundation, Inc.,
+.\" 59 Temple Place Ste 330, Bostom MA 02111-1307, USA; version 2.1,
+.\" incorporated herein by reference.
+.\"
+.\" -----------------------------------------------------------------------
+.\" $Id$
+.TH LPSM_ALLOC_SIZE 3 "18 November 2001" "LPSM @@VERSION@@" "Linux Persistent Memory"
+.SH NAME
+lpsm_alloc_size \- Get true size of a persistent memory allocation
+.SH SYNOPSIS
+.nf
+.B #include <lpsm.h>
+.sp
+.BI "size_t lpsm_alloc_size(const void *" ptr ");"
+.nl
+.fi
+.SH DESCRIPTION
+.B lpsm_alloc_size()
+returns the actual, as opposed to requested, size of the persistent
+memory allocation specified by
+.BR ptr .
+This size is equal to or larger than the size passed to
+.BR lpsm_malloc() ,
+.BR lpsm_realloc() ,
+.BR lpsm_zalloc() ,
+or
+.BR lpsm_calloc() .
+.SH "RETURN VALUES"
+.B lpsm_alloc_size()
+returns the actual size of the indicated allocation, or 0 if
+.I ptr
+is
+.BR NULL .
+.SH "NOTES"
+This function is comparable in execution time to
+.B lpsm_realloc()
+or
+.BR lpsm_free() .
+.SH "SEE ALSO"
+.BR lpsm_realloc (3),
+.BR lpsm_free (3),
+.BR lpsm_alloc_stats (3),
+.BR lpsm (7).