Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2001 12:26:15 -0700
From:      "David O'Brien" <dev-null@NUXI.com>
To:        Warner Losh <imp@harmony.village.org>
Cc:        hackers@FreeBSD.ORG, Yar Tikhiy <yar@FreeBSD.ORG>, Mike Smith <msmith@FreeBSD.ORG>, msmith@mass.dis.org
Subject:   Re: Driver structures & alignment
Message-ID:  <20010915122615.A72222@dragon.nuxi.com>
In-Reply-To: <200109151813.f8FIDwW02011@harmony.village.org>; from imp@harmony.village.org on Sat, Sep 15, 2001 at 12:13:58PM -0600
References:  <20010915110337.B53569@dragon.nuxi.com> <yar@freebsd.org> <200109132309.f8DN9vX03967@mass.dis.org> <20010914122344.A38530@snark.rinet.ru> <20010915110337.B53569@dragon.nuxi.com> <200109151813.f8FIDwW02011@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 15, 2001 at 12:13:58PM -0600, Warner Losh wrote:
> In message <20010915110337.B53569@dragon.nuxi.com> "David O'Brien" writes:
> : It is best to order this from largest to smallest size if you are worried
> : about alignment holes, etc.
> : 
> :  	int64_t d; /* 8-byte boundary */
> :  	int32_t c; /* 4-byte boundary */
> :  	int32_t f; /* 4-byte boundary */
> :  	int16_t	a;
> :  	int16_t b;
> :  	int8_t  e[4];
> 
> unfortunately, there are many device structures that are passed around 
> via DMA and hte like that don't let you do this...

How come?  The struct represents some [semi-]physical organization?

-- 
-- David  (obrien@FreeBSD.org)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010915122615.A72222>