Re: unresolved symbol open

Vasili Goutas (vgo@ratio.de)
Tue, 08 Sep 1998 12:17:59 +0200


Alan Cox wrote:
>
> > I'm writing a device driver how needs to read a file during initialize.
>
> You mean
>
> "I'm writing a device driver that needs a program to open it,
> issue an ioctl and upload firmware"
>
> ?
>
> > Is there another way to access files from a driver?
>
> Have a loader program open it and load the firmware
Ok, I wrote a loader Programm wich passes some information by ioctl()
functions.
When I want to pass data with a size of 120kB I have problems.
I use following code to retriev data:

for (i; i <= count; i++) {
to = get_user(from);
to++;
from++;
}

both pointer are unsiged char *. from represents the address in user
space, to in kernel space.
After the loop I dump the data I read for debuging with following:

for(i=0; i<count; ){
printk("%i: %X %X %X %X\n", i, to[i], to[i+1], to[i+2], to[i+3]);
i += 4;
}

The data I stored in kernel space are not the one I wanted to get from
userspace, like I can seen in var/messages.
Is there a limit of transfering data, or have I to use other functions?

TIA
Vasili

please CC to vgo@ratio.de
**********************************************************************
* Vasili Goutas RATIO Entwicklungen GmbH *
* P:+49-(0)40-369007-37 Admiralitätstr. 59 *
* F:+49-(0)40-369007-25 D-20459 Hamburg *
* Email: mailto:vgo@ratio.de *
**********************************************************************

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html