On Tue, Aug 20, 2002 at 02:59:45AM -0400, Jonathan Khoo wrote: > Is it possible for the kernel to push data to the userspace via ioctl > calls? What I have in mind is for a program in the userspace to open an > ioctl call to a module, the module is responsible for collecting data > and whenever there is new updates, the module will push the data to the > userspace. You can even do one better! You could provide a proc file, character device, block device, or your own filesystem, and implement the mmap(2) system call functionality for your file that maps data into the memory of your process. :) -- "A mouse can be just as dangerous as a bullet or a bomb." -- US Representative Lamar Smith (R-Texas)
Attachment:
pgp00147.pgp
Description: PGP signature