The files under /proc are not regular files. They can be written and
read as text files; but they don't behave exactly as text files. The
contents of /proc/ide/hdc/settings (before my changes) are:

name                    value           min             max            
mode
----                    -----           ---             ---            
----
bios_cyl                0               0               1023           
rw
bios_head               0               0               255            
rw
bios_sect               0               0               63             
rw
current_speed           66              0               70             
rw
init_speed              12              0               70             
rw
io_32bit                1               0               3              
rw
keepsettings            1               0               1              
rw
log                     0               0               1              
rw
nice1                   1               0               1              
rw
number                  2               0               3              
rw
pio_mode                write-only      0               255            
w
slow                    0               0               1              
rw
transform               1               0               3              
rw
unmaskirq               1               0               1              
rw
using_dma               0               0               1              
rw

After doing 'echo "using_dma:1" > /proc/ide/hdc/settings', only the
"using_dma" line changes ('value' changes from 0 to 1). The files under
/proc are for direct communication with the kernel, to change parameters
on-the-fly.

Canek

On Thu, 2004-01-22 at 15:37, Krikket wrote:
> On Thu, 22 Jan 2004, Canek Peláez Valdés wrote:
> 
> > You can use the /proc filesystem for the DMA and other things; I use
> > this at the end of my /etc/conf.d/local.start:
> >
> > # Performance settings for DVD
> > echo "using_dma:1" > /proc/ide/hdc/settings
> > echo "io_32bit:1" > /proc/ide/hdc/settings
> > echo "unmaskirq:1" > /proc/ide/hdc/settings
> > echo "keepsettings:1" > /proc/ide/hdc/settings
> >
> > # Performance settings for CD/RW
> > echo "using_dma:1" > /proc/ide/hdd/settings
> > echo "io_32bit:1" > /proc/ide/hdd/settings
> > echo "unmaskirq:1" > /proc/ide/hdd/settings
> > echo "keepsettings:1" > /proc/ide/hdd/settings
> 
> Err, shouldn't most of those be >> and not > ?  (Otherwise, what's the
> point of the first three lines in each case, as it is immediately
> over-written...)
> 
> *Confused*
> 
> Krikket
> 
> 
> --
> [EMAIL PROTECTED] mailing list
--
Lunatic Asylum, n.:
        The place where optimism most flourishes.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to