kaio
[Top] [All Lists]

Re: kaio patch on linux 2.2.14 kernel

To: Rajagopal Ananthanarayanan <ananth@xxxxxxx>
Subject: Re: kaio patch on linux 2.2.14 kernel
From: Gabor Dolla <agdolla@xxxxxxxxx>
Date: Wed, 1 Mar 2000 09:57:31 +0100 (CET)
Cc: kaio@xxxxxxxxxxx
In-reply-to: <38BC7DC9.9E4D6340@xxxxxxx>
Sender: owner-kaio@xxxxxxxxxxx
> 
> Hmm. sd_raw_fops is defined by the following patch
> 
> ftp://oss.sgi.com/www/projects/rawio/download/sgi+straw2.2.13.patch
> 
> which is the one you should be using on a vanilla linux kernel.

well, the patch place kaio_is_raw function in sd.c at line 606
and sd_raw_fops struct defined at line 790...
that is why I needed the pre definition....

> > void *
> > kaio_raw_rw(int rw, struct file *filp, char *buf, size_t count, loff_t
> > *ppos,
> >         int *error, struct semaphore *semp, struct kiobuf *iobufp)
> > {
> >       return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp));
> > }
> > 
> > the compiler said that sd_raw_rw needs 9 parameters
> > 
> > so I changed it to:
> > return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp,
> > AS_USER));
> > 
> Yes this is the correct fix. Apparently the rawio patches
> have been upgraded since made the kaio patches.

there is another flag AS_KERNEL, maybe I should use that flag in the
kernel source ????

thanks

Gabor



<Prev in Thread] Current Thread [Next in Thread>