Re: Kernel Space to User Space Communication in 2.6
- From: Janaka <janakas@xxxxxxxxxxxx>
- Date: Sun, 17 Feb 2008 18:32:41 -0800 (PST)
On Feb 15, 11:25 am, Lew Pitcher <lpitc...@xxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ramesh wrote:
To pass data from kernel space to user space we can use netlink
sockets. Is there a better or efficient mechanism than netlink in
2.6?? Please advice.
As far as I'm concerned, the best way to pass data from kernelspace to
userspace is through the use of the userspace read(2) syscall.
- --
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576http://pitcher.digitalfreehold.ca/ | GPG public key available by request
- ---------- Slackware - Because I know what I'm doing. ------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Armoured with GnuPG
iD8DBQFHtNviagVFX4UWr64RAmMjAKCPOTeyeJsLFUafm2GruXYvcVp7agCeKvvE
0vXba/tkOjbo+2lXl2hLAHg=
=8A/J
-----END PGP SIGNATURE-----
On the other hand if you want to use/access the kernel space data
without copying it to user space, you can use Mmap!
.
- References:
- Kernel Space to User Space Communication in 2.6
- From: Ramesh
- Re: Kernel Space to User Space Communication in 2.6
- From: Lew Pitcher
- Kernel Space to User Space Communication in 2.6
- Prev by Date: Re: USB device just moves
- Next by Date: Re: USB device just moves
- Previous by thread: Re: Kernel Space to User Space Communication in 2.6
- Next by thread: a question on an error of building 2.6.24.2
- Index(es):
Relevant Pages
|