From 92cccad89d1c12b39165d5f0ed7ccd2d44965a1a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 23:41:43 +0200 Subject: Adding upstream version 0.9.2. Signed-off-by: Daniel Baumann --- man/man3/TPM_Malloc.pod | 72 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 man/man3/TPM_Malloc.pod (limited to 'man/man3/TPM_Malloc.pod') diff --git a/man/man3/TPM_Malloc.pod b/man/man3/TPM_Malloc.pod new file mode 100644 index 0000000..60446cc --- /dev/null +++ b/man/man3/TPM_Malloc.pod @@ -0,0 +1,72 @@ +=head1 NAME + +TPM_Malloc - Allocate memory + +TPM_Realloc - Reallocate memory + +TPM_Free - Free memory + +=head1 SYNOPSIS + +B<#include > + +B<#include > + +B<#include > + +B **IB<, + uint32_t> IB<);> + +B **IB<, + uint32_t> IB<);> + +B *IB<);> + +=head1 DESCRIPTION + +The B function is used to allocate a buffer of the given size. +The allocated buffer will be returned in the I parameter. + +The B function is used to resize a buffer. The new size of +the buffer is given in the I parameter. The reallocated buffer will +contain the data from the original buffer. + +Both functions have the restriction that the buffer they can allocate +is limited to B (64k) bytes. This size is sufficient +for all buffers needed by the TPM. + +Upon successful completion, the functions return B. In case the +requested buffer exceeds the limit, B will be returned. See further +possible error codes below. + +The B function frees the memory previously allocated using +either B or B. + +=head1 ERRORS + +=over 4 + +=item B + +The function completed successfully. + +=item B + +The size of the requested buffer exceeds the limit or the +system is out of memory. + +=item B + +Requested buffer is of size 0. + +=back + +For a complete list of TPM error codes please consult the include file +B + +=head1 SEE ALSO + +B(3), B(3) +B(3), B(3), B(3) + +=cut -- cgit v1.2.3