WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] PACKED in structure is xen.h - newbie (OT)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PACKED in structure is xen.h - newbie (OT)
From: "sting sting" <zstingx@xxxxxxxxxxx>
Date: Wed, 30 Mar 2005 14:20:08 +0300
Bcc:
Delivery-date: Wed, 30 Mar 2005 11:20:14 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hello ,

I am trying to learn a liitle about Xen by reading the source code.

I see that 'PACKED' appears in many structures;

for example :  in xen/include/public/xen.h:

typedef struct
{
   memory_t ptr;    /* Machine address of PTE. */
   memory_t val;    /* New contents of PTE.    */
} PACKED mmu_update_t;


What is this 'PACKED'? is it the __attribute__ ((__packed__)) of gcc (or something near)?

Is there somewhere a macro in Xen which defines it? (or is it a part of some gcc extension?)

Regards,
Sting

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>