svn commit: r185874 - head/sys/sys
M. Warner Losh
imp at bsdimp.com
Wed Dec 10 15:30:57 PST 2008
In message: <200812101945.mBAJjwn2040853 at svn.freebsd.org>
John Baldwin <jhb at FreeBSD.org> writes:
: Author: jhb
: Date: Wed Dec 10 19:45:58 2008
: New Revision: 185874
: URL: http://svn.freebsd.org/changeset/base/185874
:
: Log:
: Rather than using a char array with explicit assumptions about the layout
: of 'struct osigevent' in 'struct aiocb', use int and void pointer spare
: members that are identical to 'struct osigevent'.
This is better from an alignment perspective for !intel architectures.
warner
: MFC after: 1 month
:
: Modified:
: head/sys/sys/aio.h
:
: Modified: head/sys/sys/aio.h
: ==============================================================================
: --- head/sys/sys/aio.h Wed Dec 10 19:33:10 2008 (r185873)
: +++ head/sys/sys/aio.h Wed Dec 10 19:45:58 2008 (r185874)
: @@ -69,7 +69,8 @@ typedef struct aiocb {
: off_t aio_offset; /* File offset for I/O */
: volatile void *aio_buf; /* I/O buffer in process space */
: size_t aio_nbytes; /* Number of bytes for I/O */
: - char __spare__[sizeof(int) * 2 + sizeof(void *)]; /* osigevent. */
: + int __spare__[2];
: + void *__spare2__;
: int aio_lio_opcode; /* LIO opcode */
: int aio_reqprio; /* Request priority -- ignored */
: struct __aiocb_private _aiocb_private;
:
More information about the svn-src-all
mailing list