3
* Licensed Materials - Property of IBM
5
* trousers - An open source TCG Software Stack
7
* (C) Copyright International Business Machines Corp. 2004-2006
18
TCS_CONTEXT_HANDLE ctx;
22
* it appears that there's no way to query a v1.1 TPM for the
23
* max number of simultaneous auth sessions. We'll make the
24
* default relatively large and let the TPM return
25
* TCPA_RESOURCES to tell us when we cross the line.
27
#define AUTH_TABLE_SIZE (2 * tcsd_options.num_threads)
28
#define TSS_DEFAULT_OVERFLOW_AUTHS (AUTH_TABLE_SIZE - 2)
32
short max_auth_sessions;
33
short open_auth_sessions;
34
short sleeping_threads;
35
pthread_cond_t **overflow; /* queue of TCS contexts waiting for an
36
auth session to become available */
37
int of_head, of_tail; /* head and tail of the overflow queue */
38
struct auth_map *auth_mapper; /* table of currently loaded