Re: "Streaming" data from kernel to userland



On 1/18/07, Daniel O'Connor <doconnor@xxxxxxxxxxxx> wrote:

On Friday 19 January 2007 08:52, Ivan Voras wrote:
> I'm thinking of doing something which would require streaming large
> amounts of pretty much real-time data from kernel to a userland
> application (for further processing). The first thing that comes to my
> mind while thinking of this is sockets, so is there a sockets-like
> interface which could be used to transfer large amounts of constantly
> generated data from kernel to a userland application? Any advice on its
> usage and/or examples?

What's wrong with read()?


Ivan, I'm basically doing something similar, and I have found that adding
kqueue support to your kernel module and making ioctl/read/write's is very
efficient. I'm a long time windows developer that has used I/O Completion
Ports, and I'm real impressed with kqueue api. It was a little daunting
figuring out the kernel module side though.

Kevin
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: "Streaming" data from kernel to userland
    ... amounts of pretty much real-time data from kernel to a userland ... interface which could be used to transfer large amounts of constantly ...
    (freebsd-hackers)
  • "Streaming" data from kernel to userland
    ... amounts of pretty much real-time data from kernel to a userland ... interface which could be used to transfer large amounts of constantly ...
    (freebsd-hackers)
  • Re: usb harddisk crashes system
    ... I can see my storage, ... that when I copy big amounts of data (20GB folder with a lot ... I suspect its a kernel bug that will have been fixed by now. ... Try a newer kernel from suse, or compile your own 2.4.22 kernel. ...
    (alt.os.linux)
  • Re: "Streaming" data from kernel to userland
    ... amounts of pretty much real-time data from kernel to a userland ... interface which could be used to transfer large amounts of constantly ...
    (freebsd-hackers)
  • Re: [9fans] sad commentary
    ... I have disabled swaping and let the kernel kill the biggest process ... skipping any critical server processes and it works well. ... no adding very large amounts of code... ...
    (comp.os.plan9)