[lkml]   [2001]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectget data to user space from kernel

I have a network driver that get specific informations from device
but I can't envisage the size of the informations. So I do a kmalloc
call when data come.

But my problem seems to come from the kmalloc because when I try to
send data to user space via an ioctl call I get a segmentation fault.

One solution would be to pass fixed size beetween the both but it
isn't the cleaner.

I've heard about copy_to_user method , is it the best way ?
Is there a way to create a struct in user space dynamicaly from kernel
space ?

thanks for any help ...

sebastien person
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:53    [W:0.025 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site