Date: Wed, 17 Mar 1999 14:45:13 -0500 (EST) From: Chuck Robey <chuckr@mat.net> To: "Daniel C. Sobral" <dcs@newsguy.com> Cc: hackers@FreeBSD.ORG Subject: Re: volatile question Message-ID: <Pine.BSF.4.10.9903171444300.47550-100000@picnic.mat.net> In-Reply-To: <36EFF74A.F42597F4@newsguy.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Mar 1999, Daniel C. Sobral wrote:
> >From aio.h:
>
> typedef struct aiocb {
> int aio_fildes; /* File descriptor */
> 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
> */
> struct sigevent aio_sigevent; /* Signal to deliver */
> int aio_lio_opcode; /* LIO opcode */
> int aio_reqprio; /* Request priority --
> ignored */
> struct __aiocb_private _aiocb_private;
> } aiocb_t;
>
> Is the volatile keyword in the right position? Shouldn't it be void*
> volatile aio_buf?
H&S pages 74-75: that code is right.
----------------------------+-----------------------------------------------
Chuck Robey | Interests include any kind of voice or data
chuckr@glue.umd.edu | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1 |
Greenbelt, MD 20770 | I run picnic (FreeBSD-current)
(301) 220-2114 | and jaunt (Solaris7).
----------------------------+-----------------------------------------------
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?Pine.BSF.4.10.9903171444300.47550-100000>
