TSPI_CONTEXT_CREATE(3)
π Tspi_Context_Create β bestie, let's make a context π
okay so real talk, this is a page from the TCG Software Stack Developer's Reference, and it's a man page β section 3, if you were wondering β and it's lowkey one of the first things you'll ever call in the TSS world. Buckle up, it's short and sweet and honestly kind of iconic. β¨
πΈ NAME πΈ
Tspi_Context_Create β create a TSP context handle. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
first things first, you gotta include the whole little family of headers. yes, all of them. no skipping, bestie, they're a package deal π
#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_Create(TSS_HCONTEXT* phContext);
look at her. one function, one argument, returns a TSS_RESULT. main character energy fr fr π
π DESCRIPTION π
so like, Tspi_Context_Create creates a handle to a brand new context object. that's the moment. the birth of a context. π£
and then?? the context gets used by all the other API functions to track resources related to it. it's giving "everyone's favorite group chat that everything else gets posted in" β the context is the group chat, and every other function is just dropping messages in it. the way that one handle keeps everything organized is genuinely so satisfying ngl π«Ά
β¨ PARAMETERS β¨
π phContext
Receives the handle to the created context object. so you pass in a pointer, and she fills it in with the fresh new handle. she's handing you the keys to the group chat. take them. π
π RETURN CODES π
Tspi_Context_Create returns TSS_SUCCESS on success. obviously. slay. π
otherwise, one of the following values is returned:
TSS_E_INTERNAL_ERRORβ An internal error occurred in the TSS. π not her fault, something went sideways inside the TSS itself. happens to the best of us.
π CONFORMING TO π
Tspi_Context_Create conforms to the Trusted Computing Group Software Specification version 1.1 Golden. certified. approved. spec-compliant. we love a rule-follower who still eats π
πΈ SEE ALSO πΈ
ngl, Tspi_Context_Create is basically the "new chat" button of the TSS. you make the context, then you go connect it and eventually close it. the full arc. the character development. π±
okay that's the whole page, bestie, and it was brought to you by TSS 1.1 β dated 2004-05-26, which is literally vintage, a classic, a retro baddie that still runs π©· thanks for reading, mwah, go create some contexts πβ¨π¦π
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- 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
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2005 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms