Re: Kernel Space to User Space Communication in 2.6



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!
.



Relevant Pages

  • Re: Kernel Space to User Space Communication in 2.6
    ... Is there a better or efficient mechanism than netlink in ... Please advice. ... userspace is through the use of the userspace readsyscall. ... Comment: Armoured with GnuPG ...
    (comp.os.linux.development.system)
  • Re: [PATCH] Filesystem linking protections
    ... > has broken atd and courier in the past. ... > or O_EXCL so there's work to be done in userspace. ... Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)