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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
xen-devel-bounces@lists.xensource.com wrote on 09/08/2005 01:56:49 PM:> 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> > Thanks, > H > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel