lkml.org 
[lkml]   [2004]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Kernel / Userspace Data Transfer
    The best Userspace-kernelspace-Userspace transfer thing is soket.
    Unix or TCP/UDP sockets API is avaible from kernel space.
    You should use it...

    Pavel Mironchik


    On Sun, 28 Mar 2004 22:37:23 -0500
    Karim Yaghmour <karim@opersys.com> wrote:

    >
    > lml@beonline.com.au wrote:
    > > I have a set of counters in a Kernel module that i want to export to a
    > > userspace application. I originally decided to use a /proc entry and parse
    > > the output whenever the userspace application needed this data, however,
    > > i need more than the 4096 that is allowed in /proc and i'm not too keen
    > > on parsing large chunks of text anyway.
    > >
    > > What i would like to do is copy these slabs of text from the kernel to my
    > > userspace application (whenever the application requests it). I've seen the
    > > 'copy_to_user' function and it looks usefull, but have no idea where to start
    > > or how to use it :-/
    > >
    > > Can someone provide and example or point me in the right direction? Or is there
    > > a better place to ask this question?
    >
    > relayfs has been designed with this type of requirements in mind:
    > http://www.opersys.com/relayfs/index.html
    >
    > Karim
    > --
    > Author, Speaker, Developer, Consultant
    > Pushing Embedded and Real-Time Linux Systems Beyond the Limits
    > http://www.opersys.com || karim@opersys.com || 1-866-677-4546
    >
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    > the body of a message to majordomo@vger.kernel.org
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    > Please read the FAQ at http://www.tux.org/lkml/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:02    [W:0.021 / U:29.640 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site