Re: pushing data via ioctl from kernel??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux