Re: Kernel Space to User Space Communication in 2.6



-----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 #112576
http://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-----
.



Relevant Pages

  • Re: Kernel Space to User Space Communication in 2.6
    ... Please advice. ... userspace is through the use of the userspace readsyscall. ... Comment: Armoured with GnuPG ... On the other hand if you want to use/access the kernel space data ...
    (comp.os.linux.development.system)
  • Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
    ... just a reminder that this is inherently a netlink flow control issue...which was being exacerbated ... For statistics type usage of the genetlink/netlink, I would have thought that userspace, provided it is reliably informed ... What total exit rate would be a good upper bound? ... How much memory do these 1024 CPU machines ...
    (Linux-Kernel)
  • 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)
  • Re: [Patch][RFC] Disabling per-tgid stats on task exit in taskstats
    ... just a reminder that this is inherently a netlink flow control issue...which was being exacerbated ... For statistics type usage of the genetlink/netlink, I would have thought that userspace, provided it is reliably informed ... about the loss of data through ENOBUFS, could take measures to just account for the missing data and carry on? ... Yup...the per-cpu, high speed requirements are up relayfs' alley, unless Jamal or netlink folks ...
    (Linux-Kernel)
  • Re: [PATCH] Send quota messages via netlink
    ... I'm sending rediffed patch implementing sending of quota messages via netlink ... Userspace deamon reading the messages from the kernel and sending them to ... So it's a new kernel->userspace interface. ... Normally netlink payloads are represented as a struct. ...
    (Linux-Kernel)