Fapi_GetPollHandles(3)
πΈ NAME πΈ
Okay bestie, welcome to the Fapi_GetPollHandles(3) page from the Library Functions Manual β and yes, it's literally named Fapi_GetPollHandles - Fapi_GetPollHandles. Iconic naming, no notes. π
β¨ SYNOPSIS β¨
Functions
TSS2_RC Fapi_GetPollHandles (FAPI_CONTEXT *context, FAPI_POLL_HANDLE **handles, size_t *num_handles)
π¦ DETAILED DESCRIPTION π¦
This is the FAPI function for grabbing the poll handles that the corresponding FAPI_CONTEXT is currently using. Lowkey important, highkey useful. π«Ά
π FUNCTION DOCUMENTATION π
TSS2_RC Fapi_GetPollHandles (FAPI_CONTEXT * context, FAPI_POLL_HANDLE ** handles, size_t * num_handles)
Retrieve handles for polling
It returns an array of handles that you can poll on so you get notified when data from the TPM or from a disk operation is available. Slay. β¨
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);
Parameters
contextβ theFAPI_CONTEXThandlesβ an array of poll handle entriesnum_handlesβ the size of the array inhandles
Return values
TSS2_RC_SUCCESSβ if the function call was a success. πTSS2_FAPI_RC_BAD_REFERENCEβ ifcontextordataisNULL.TSS2_FAPI_RC_BAD_CONTEXTβ if context corruption is detected.TSS2_FAPI_RC_BAD_SEQUENCEβ if the context has no asynchronous operation pending.TSS2_FAPI_RC_NO_HANDLEβ if there are no handles to poll on.TSS2_FAPI_RC_MEMORYβ if the FAPI cannot allocate enough memory for internal operations or return parameters.
π AUTHOR π
Generated automatically by Doxygen for tpm2-tss from the source code.
Okay that's the whole page, mwah π β signed off with the tpm2-tss Version 4.1.5 footer energy and the Fapi_GetPollHandles(3) page tag. Periodt. π
π¦ where this page comes from
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- fedora 44: tpm2-tss-devel 4.1.5-1.fc44 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms