Accessing file from drivers (fwd)
Stefano Coluccini
s.coluccini at caen.it
Fri Mar 16 19:28:00 EST 2001
> Hi Wolfgang,
>
> The exact problem that we're trying to solve, is to program
> an FPGA with a hex file
> which is in our file system. But the problem is general is to
> have a way to write a
> system call say 'sys_copy' which will copy one file to
> another. An user-mode
> application would read from one file and write back to another,
> which would result in
> copying the data from the file driver ( kernel space ) to the
> user-space, and again
> back to the kernel space. We were curious as to whether a way
> existed by which we can
> do the read and write, sitting in the kernel space itself.
I don't know if I well understand the problem, but it seems to me that you
can use the mmap system call ...
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-dev
mailing list