~ubuntu-branches/ubuntu/precise/trousers/precise-proposed

« back to all changes in this revision

Viewing changes to man/man3/Tspi_Context_GetTpmObject.3

  • Committer: Bazaar Package Importer
  • Author(s): William Lima
  • Date: 2007-04-18 16:39:38 UTC
  • Revision ID: james.westby@ubuntu.com-20070418163938-opscl2mvvi76jiec
Tags: upstream-0.2.9.1
ImportĀ upstreamĀ versionĀ 0.2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" Copyright (C) 2004 International Business Machines Corporation
 
2
.\" Written by Megan Schneider based on the Trusted Computing Group Software Stack Specification Version 1.1 Golden
 
3
.\"
 
4
.de Sh \" Subsection
 
5
.br
 
6
.if t .Sp
 
7
.ne 5
 
8
.PP
 
9
\fB\\$1\fR
 
10
.PP
 
11
..
 
12
.de Sp \" Vertical space (when we can't use .PP)
 
13
.if t .sp .5v
 
14
.if n .sp
 
15
..
 
16
.de Ip \" List item
 
17
.br
 
18
.ie \\n(.$>=3 .ne \\$3
 
19
.el .ne 3
 
20
.IP "\\$1" \\$2
 
21
..
 
22
.TH "Tspi_Context_GetTpmObject" 3 "2004-05-25" "TSS 1.1"
 
23
.ce 1
 
24
TCG Software Stack Developers Reference
 
25
.SH NAME
 
26
Context_GetTpmObject \- get the handle of the TPM object associated with a context.
 
27
.SH "SYNOPSIS"
 
28
.ad l
 
29
.hy 0
 
30
.nf
 
31
.B #include <tss/platform.h>
 
32
.B #include <tss/tcpa_defines.h>
 
33
.B #include <tss/tcpa_typedef.h>
 
34
.B #include <tss/tcpa_struct.h>
 
35
.B #include <tss/tss_typedef.h>
 
36
.B #include <tss/tss_structs.h>
 
37
.B #include <tss/tspi.h>
 
38
.br
 
39
.HP
 
40
.BI "TSS_RESULT Tspi_Context_GetTpmObject(TSS_HCONTEXT " hContext ", TSS_HTPM* " phTPM "); "
 
41
.fi
 
42
.sp
 
43
.ad
 
44
.hy
 
45
 
 
46
.SH "DESCRIPTION"
 
47
.PP
 
48
\fBTspi_Context_GetTpmObject\fR retrieves the TPM object of a context. Only one instance of this
 
49
object exists for a given context and implicitly represents a TPM owner. This function is normally called at the beginning of a program, right after the context is established. You must have a context established prior to calling this function.
 
50
 
 
51
.SH "PARAMETERS"
 
52
.PP
 
53
.SS hContext
 
54
The \fIhContext\fR parameter is the handle of the context object
 
55
(already existing).
 
56
.SS phTPM
 
57
The \fIphTPM\fR parameter is a pointer to where the handle of the
 
58
TPM will be placed.
 
59
 
 
60
.SH "RETURN CODES"
 
61
.PP
 
62
\fBTspi_Context_GetTpmObject\fR returns TSS_SUCCESS on success,
 
63
otherwise one of the following values is returned:
 
64
.TP
 
65
.SM TSS_E_INVALID_HANDLE
 
66
\fIhContext\fR is not a valid handle.
 
67
 
 
68
.TP
 
69
.SM TSS_E_INTERNAL_ERROR
 
70
An internal SW error has been detected.
 
71
 
 
72
.TP
 
73
.SM TSS_E_BAD_PARAMETER
 
74
One or more of the parameters is incorrect.
 
75
 
 
76
.SH "CONFORMING TO"
 
77
 
 
78
.PP
 
79
\fBTspi_Context_GetTpmObject\fR conforms to the Trusted Computing Group
 
80
Software Specification version 1.1 Golden
 
81
 
 
82
.SH "SEE ALSO"
 
83
 
 
84
.PP
 
85
\fBTspi_Context_Create\fR(3), \fBTspi_Context_Connect\fR(3), \fBTspi_Context_FreeMemory\fR(3), \fBTspi_Context_Close\fR(3).
 
86