Fapi_Initialize.3 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .TH "Fapi_Initialize" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Fapi_Initialize
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "TSS2_RC \fBFapi_Initialize\fP (\fBFAPI_CONTEXT\fP **context, char const *uri)"
  13. .br
  14. .ti -1c
  15. .RI "TSS2_RC \fBFapi_Initialize_Async\fP (\fBFAPI_CONTEXT\fP **context, char const *uri)"
  16. .br
  17. .ti -1c
  18. .RI "TSS2_RC \fBFapi_Initialize_Finish\fP (\fBFAPI_CONTEXT\fP **context)"
  19. .br
  20. .in -1c
  21. .SH "Detailed Description"
  22. .PP
  23. FAPI functions to invoke Initialize either as one-call or in an asynchronous manner\&.
  24. .SH "Function Documentation"
  25. .PP
  26. .SS "Fapi_Initialize (\fBFAPI_CONTEXT\fP ** context, char const * uri)"
  27. One-Call function for Fapi_Initialize
  28. .PP
  29. Initializes a \fBFAPI_CONTEXT\fP that holds all the state and metadata information during an interaction with the TPM\&.
  30. .PP
  31. \fBParameters:\fP
  32. .RS 4
  33. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  34. .br
  35. \fIuri\fP Unused in this version of the FAPI\&. Must be NULL
  36. .RE
  37. .PP
  38. \fBReturn values:\fP
  39. .RS 4
  40. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  41. .br
  42. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context is NULL\&.
  43. .br
  44. \fITSS2_FAPI_RC_BAD_VALUE\fP if uri is not NULL\&.
  45. .br
  46. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  47. .br
  48. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  49. .br
  50. \fITSS2_FAPI_RC_TRY_AGAIN\fP if an I/O operation is not finished yet and this function needs to be called again\&.
  51. .br
  52. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  53. .br
  54. \fITSS2_FAPI_RC_GENERAL_FAILURE\fP if an internal error occurred\&.
  55. .br
  56. \fITSS2_FAPI_RC_BAD_PATH\fP if a path is used in inappropriate context or contains illegal characters\&.
  57. .br
  58. \fITSS2_ESYS_RC_*\fP possible error codes of ESAPI\&.
  59. .RE
  60. .PP
  61. .SS "Fapi_Initialize_Async (\fBFAPI_CONTEXT\fP ** context, char const * uri)"
  62. Asynchronous function for Fapi_Initialize
  63. .PP
  64. Initializes a \fBFAPI_CONTEXT\fP that holds all the state and metadata information during an interaction with the TPM\&.
  65. .PP
  66. Call Fapi_Initialize to finish the execution of this command\&.
  67. .PP
  68. \fBParameters:\fP
  69. .RS 4
  70. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  71. .br
  72. \fIuri\fP Unused in this version of the FAPI\&. Must be NULL
  73. .RE
  74. .PP
  75. \fBReturn values:\fP
  76. .RS 4
  77. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  78. .br
  79. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context is NULL\&.
  80. .br
  81. \fITSS2_FAPI_RC_BAD_VALUE\fP if uri is not NULL\&.
  82. .br
  83. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  84. .br
  85. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  86. .RE
  87. .PP
  88. .SS "Fapi_Initialize_Finish (\fBFAPI_CONTEXT\fP ** context)"
  89. Asynchronous finish function for Fapi_Initialize
  90. .PP
  91. This function should be called after a previous Fapi_Initialize_Async\&.
  92. .PP
  93. \fBParameters:\fP
  94. .RS 4
  95. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  96. .RE
  97. .PP
  98. \fBReturn values:\fP
  99. .RS 4
  100. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  101. .br
  102. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context is NULL\&.
  103. .br
  104. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  105. .br
  106. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has an asynchronous operation already pending\&.
  107. .br
  108. \fITSS2_FAPI_RC_IO_ERROR\fP if the data cannot be saved\&.
  109. .br
  110. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  111. .br
  112. \fITSS2_FAPI_RC_TRY_AGAIN\fP if the asynchronous operation is not yet complete\&. Call this function again later\&.
  113. .br
  114. \fITSS2_FAPI_RC_BAD_VALUE\fP if an invalid value was passed into the function\&.
  115. .br
  116. \fITSS2_FAPI_RC_GENERAL_FAILURE\fP if an internal error occurred\&.
  117. .br
  118. \fITSS2_FAPI_RC_BAD_PATH\fP if a path is used in inappropriate context or contains illegal characters\&.
  119. .br
  120. \fITSS2_ESYS_RC_*\fP possible error codes of ESAPI\&.
  121. .RE
  122. .PP
  123. .SH "Author"
  124. .PP
  125. Generated automatically by Doxygen for tpm2-tss from the source code\&.