From: "sting sting" Subject: PACKED in structure is xen.h - newbie (OT) Date: Wed, 30 Mar 2005 14:20:08 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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/