Skip to contentSkip to conversation

Relay Subsystem the 2nd.

DISCUSSION Bjo Breiskoll 3 participants 3 messages Aug 22, 2006 – Aug 26, 2006

lore
Share & tools
lore
#0 lore raw

Hello,
back to my question last week. I would like to implement a new kernel-modul with the ability to write data from kernelspace to userspace via the new relay subsystem. The less info from block/blktrace.c is insufficient unfortunately. The userspace-program should be able to "listen" to the kernel-modul if there is new data written. My first Implementation with data exchange over copy_to_user() and a char-device is insufficient. So i need an hint for something like blocked-IO for relay-files. Is this possible with the new relay-subsystem?

Thanx in advance
BJO

#1 lore raw
Quoted 9 lines · Bjo Breiskoll

back to my question last week. I would like to implement a new kernel-modul with the ability to write data from kernelspace to userspace via the new relay subsystem. The less info from block/blktrace.c is insufficient unfortunately. The userspace-program should be able to "listen" to the kernel-modul if there is new data written. My first Implementation with data exchange over copy_to_user() and a char-device is insufficient. So i need an hint for something like blocked-IO for relay-files. Is this possible with the new relay-subsystem?

Is there something insufficient with poll() on relay files?

#2 lore raw
Quoted 1 line

Is there something insufficient with poll() on relay files?

Sometimes the solution is easy like that.
Thanks .. It works :)

BJO