Subject: Re: direct I/O
To: Chuck Silvers <chuq@chuq.com>
From: SODA Noriyuki <soda@sra.co.jp>
List: tech-kern
Date: 03/01/2005 20:30:03
>>>>> On Tue, 1 Mar 2005 03:15:58 -0800, Chuck Silvers <chuq@chuq.com> said:

> I did it per-fd.  solaris doesn't have O_DIRECT as far as I can tell.

Yeah.
It has directio(3C), though.

>> NAME
>>      directio - provide advice to file system
>> 
>> SYNOPSIS
>>      #include <sys/types.h>
>>      #include <sys/fcntl.h>
>> 
>>      int directio(int fildes, int advice);
>> 
>> DESCRIPTION
... SNIP ...
>>      The advice argument is kept per file;  the  last  caller  of
>>      directio()  sets  the  advice for all applications using the
>>      file associated with fildes.
>> 
>>      Values for advice are defined in <sys/fcntl.h>.
>> 
>>      DIRECTIO_OFF
... SNIP ...
>>      DIRECTIO_ON
--
soda