Xen 
 
Home About Xen.org Xen Xen Summit Wiki Mailing List Bug Tracker Xen Downloads
 
   
 

xen-devel

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

To: "sting sting" <zstingx@xxxxxxxxxxx>
Subject: Re: [Xen-devel] PACKED in structure is xen.h - newbie (OT)
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 30 Mar 2005 14:01:12 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 30 Mar 2005 12:58:03 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BAY22-F12D1DC605FDD3AEDB7E7FDAA460@xxxxxxx>
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>
References: <BAY22-F12D1DC605FDD3AEDB7E7FDAA460@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 30 Mar 2005, at 12:20, sting sting wrote:

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?)

It means that the compiler will not add extra padding in between adjacent fields in teh struct. I've been convinced this is not the best way to define the interface structures, so all the PACKED declarations will be disappearing in the near future!

 -- Keir


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

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