From: Keir Fraser Subject: Re: PACKED in structure is xen.h - newbie (OT) Date: Wed, 30 Mar 2005 14:01:12 +0100 Message-ID: <565be2d8b9d974e206e6d223b4db5a7f@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: sting sting Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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