linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* get data to user space from kernel
@ 2001-05-15 13:30 sebastien person
  0 siblings, 0 replies; only message in thread
From: sebastien person @ 2001-05-15 13:30 UTC (permalink / raw)
  To: liste noyau linux

Hi,

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-15 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-15 13:30 get data to user space from kernel sebastien person

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).