Thread (2 messages) read the whole thread 2 messages, 2 authors, 2001-03-16

RE: Accessing file from drivers (fwd)

From: Stefano Coluccini <hidden>
Date: 2001-03-16 08:28:00

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help