On 4/1/06, Vincenzo Mallozzi <vinjunior@xxxxxxxx> wrote:
Hi:
Taha has explained this point quite good
that depends on what you are doing, but you can handle it using "read" syscall if this array is always being created from kernel for the user space application
if this array is a shared data between user/kernel you can use sequence of read/write syscalls or you can use netlink sockets to transfer data in both directions
ioctl solution works either ways, choose the best for your situation
hope this helps
MHD.Tayseer
Hi all,
I've created an array with the kmalloc function in my
kernel module and I want to pass it in user space by
means of the ioctl commands but I don't know how can I
perform such an operation.
I've heard about copy_to_user function but I haven't
understood how I can use it in order to pass a whole
array.
Hi:
Taha has explained this point quite good
Can anyone help me? There are other solutions you can
suggest me?
that depends on what you are doing, but you can handle it using "read" syscall if this array is always being created from kernel for the user space application
if this array is a shared data between user/kernel you can use sequence of read/write syscalls or you can use netlink sockets to transfer data in both directions
ioctl solution works either ways, choose the best for your situation
hope this helps
MHD.Tayseer
Thanks.
Vincenzo Mallozzi
P.S. I've googled very much but I've not found nothing
of interest about this problem
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/