All of lore.kernel.org
 help / color / mirror / Atom feed
* union in tpmif_tx_interface_t ?
@ 2005-09-08 17:56 NAHieu
  2005-09-08 20:11 ` Stefan Berger
  0 siblings, 1 reply; 2+ messages in thread
From: NAHieu @ 2005-09-08 17:56 UTC (permalink / raw)
  To: xen-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: union in tpmif_tx_interface_t ?
  2005-09-08 17:56 union in tpmif_tx_interface_t ? NAHieu
@ 2005-09-08 20:11 ` Stefan Berger
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Berger @ 2005-09-08 20:11 UTC (permalink / raw)
  To: NAHieu; +Cc: xen-devel, xen-devel-bounces

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-08 20:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-08 17:56 union in tpmif_tx_interface_t ? NAHieu
2005-09-08 20:11 ` Stefan Berger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.