From: sebastien person <sebastien.person@sycomore.fr>
To: liste noyau linux <linux-kernel@vger.kernel.org>
Subject: get data to user space from kernel
Date: Tue, 15 May 2001 15:30:39 +0200 [thread overview]
Message-ID: <20010515153039.68bbd9e0.sebastien.person@sycomore.fr> (raw)
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
reply other threads:[~2001-05-15 13:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010515153039.68bbd9e0.sebastien.person@sycomore.fr \
--to=sebastien.person@sycomore.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).