>
> 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
|