Fapi_GetPollHandles.3 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. .TH "Fapi_GetPollHandles" 3 "Fri Oct 7 2022" "Version 3.2.0" "tpm2-tss" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. Fapi_GetPollHandles
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .SS "Functions"
  10. .in +1c
  11. .ti -1c
  12. .RI "TSS2_RC \fBFapi_GetPollHandles\fP (\fBFAPI_CONTEXT\fP *context, FAPI_POLL_HANDLE **handles, size_t *num_handles)"
  13. .br
  14. .in -1c
  15. .SH "Detailed Description"
  16. .PP
  17. FAPI function to retrieve the poll handles currently used by the corresponding \fBFAPI_CONTEXT\fP\&.
  18. .SH "Function Documentation"
  19. .PP
  20. .SS "Fapi_GetPollHandles (\fBFAPI_CONTEXT\fP * context, FAPI_POLL_HANDLE ** handles, size_t * num_handles)"
  21. Retrieve handles for polling
  22. .PP
  23. Returns an array of handles that can be polled on to get notified when data from the TPM or from a disk operation is available\&.
  24. .PP
  25. The corresponding code should look similar to follows: do { r = Fapi_GetPollHandles(fc, &ph, &nph); if (r == TSS2_RC_SUCCESS) { poll(ph, nph, -1); Fapi_Free(ph); } r = Fapi_*_Finish(fc, \&.\&.\&.); } while (r == TSS2_FAPI_RC_TRY_AGAIN);
  26. .PP
  27. \fBParameters:\fP
  28. .RS 4
  29. \fIcontext\fP The \fBFAPI_CONTEXT\fP
  30. .br
  31. \fIhandles\fP An array of poll handle entries
  32. .br
  33. \fInum_handles\fP The size of the array in handles
  34. .RE
  35. .PP
  36. \fBReturn values:\fP
  37. .RS 4
  38. \fITSS2_RC_SUCCESS\fP if the function call was a success\&.
  39. .br
  40. \fITSS2_FAPI_RC_BAD_REFERENCE\fP if context or data is NULL\&.
  41. .br
  42. \fITSS2_FAPI_RC_BAD_CONTEXT\fP if context corruption is detected\&.
  43. .br
  44. \fITSS2_FAPI_RC_BAD_SEQUENCE\fP if the context has no asynchronous operation pending\&.
  45. .br
  46. \fITSS2_FAPI_RC_NO_HANDLE\fP if there are no handles to poll on
  47. .br
  48. \fITSS2_FAPI_RC_MEMORY\fP if the FAPI cannot allocate enough memory for internal operations or return parameters\&.
  49. .RE
  50. .PP
  51. .SH "Author"
  52. .PP
  53. Generated automatically by Doxygen for tpm2-tss from the source code\&.