Skip to contentSkip to conversation

union in tpmif_tx_interface_t ?

DISCUSSION NAHieu 2 participants 2 messages Sep 8, 2005

lore
Share & tools
lore

NAHieu

author
#0 lore raw

Anybody knows why tpmif_tx_interface_t declares an union like below (union has only 1 item)?

typedef struct {
    union {
        tpmif_tx_request_t  req;
    } ring[TPMIF_TX_RING_SIZE];
} tpmif_tx_interface_t;

Thanks,
H

#1 lore raw

[email protected] wrote on 09/08/2005 01:56:49 PM:

Quoted 9 lines

Anybody knows why tpmif_tx_interface_t declares an union like below (union has only 1 item)?

typedef struct {
    union {
        tpmif_tx_request_t  req;
    } ring[TPMIF_TX_RING_SIZE];
} tpmif_tx_interface_t;

There used to be a tpmif_tx_response_t but that was removed. I might remove the union some time or also use the defines to create a ring.

Stefan

Quoted 8 lines

Thanks,
H

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel