Tspi_C...bility(3)
π Tspi_Context_GetCapability π
okay so bestie, welcome to the TCG Software Stack Developer's Reference, page Tspi_C...bility(3) β yes the title got cut off like a bad selfie crop, but it's Tspi_Context_GetCapability fr fr. sit down, hydrate, and let's get into it π«Ά
β¨ NAME β¨
Tspi_Context_GetCapability β the function that spills the tea on what a TSS Core Service, a TSS Service Provider, or a TPM can actually do. it's giving "so tell me everything about yourself" π
β¨ SYNOPSIS β¨
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_Context_GetCapability(TSS_HCONTEXT hContext, TSS_FLAG capArea,
UINT32 ulSubCapLength, BYTE* rgbSubCap,
UINT32* pulRespDataLength, BYTE** prgbRespData);
like yes, all seven includes, we don't skip a single one, no cap π
πΈ DESCRIPTION πΈ
TSS_Context_GetCapability provides the capabilities of the TSS Core Service or TSS Service Provider. that's it, that's the whole vibe β you ask, it tells you what it's working with π
π¦ PARAMETERS π¦
π hContext
the handle of the context object. your lil entry pass into the whole situation π
π capArea
a flag indicating the attribute to query. like, which thing are we asking about, bestie? π―
π ulSubCapLength
the length (in bytes) of the rgbSubCap parameter. yes, in bytes, noted and memorized π
π rgbSubCap
data indicating the attribute to query. the follow-up question to the question, iykyk π¬
π pulRespDataLength
receives the length (in bytes) of the prgbRespData parameter. it's the lil envelope telling you how big the answer is gonna be βοΈ
π prgbRespData
on successful completion of the command, this parameter points to a buffer containing the actual data of the specified capability. the main character reveal, literally π
π RETURN CODES π
Tspi_Context_GetCapability returns TSS_SUCCESS on success β slay β otherwise one of the following values gets returned:
TSS_E_INVALID_HANDLEβhContextis an invalid handle. that handle is not it πTSS_E_BAD_PARAMETERβ one of the parameters did not match. mismatch behavior, embarrassing πTSS_E_INTERNAL_ERRORβ an error occurred internal to the TSS. it's not you, it's the TSS having a moment π
π CONFORMING TO π
Tspi_Context_GetCapability conforms to the Trusted Computing Group Software Specification version 1.1 Golden. certified, official, iconic, periodt β
π§ SEE ALSO π§
(none).
nothing here bestie, you're on your own, but honestly you got this π«Ά
and that's the whole page!! this one's from TSS 1.1, dated 2004-05-26 β vintage, but she still ate πβ¨π
π¦ where this page comes from
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms