Re: Kernel / Userspace Data Transfer

From: Karim Yaghmour (karim_at_opersys.com)
Date: 03/29/04

  • Next message: Ivan Godard: "Re: Kernel support for peer-to-peer protection models..."
    Date:	Sun, 28 Mar 2004 22:37:23 -0500
    To: lml@beonline.com.au
    
    

    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/
    

  • Next message: Ivan Godard: "Re: Kernel support for peer-to-peer protection models..."

    Relevant Pages

    • Re: Net device byte statistics
      ... this is why I think that we should make the counters 64-bits right ... > counters don't wrap without detection and so that userspace ... but modular and in the kernel itself...I am impressed. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC on MODULE SUPPORT] hello, Rusty, Should we provide module information even if the kernel mo
      ... I encountered a problem when modules compiled built-in with bzImage: ... a userspace mani tooland a kernel module ... recently the kernel module has been accepted into the official kernel ... iscsid: ...
      (Linux-Kernel)
    • Re: Getting kernel CONFIG_* values in userspace
      ... tool needs to change to accomodate this, so I want to get access to the ... CONFIG variables either at runtime or when building the userspace tool. ... One idea is just to have the kernel module write the appropriate ...
      (comp.os.linux.development.system)
    • Re: Registering values at Proc area
      ... Hash: SHA1 ... write a kernel module, and give it the hooks to the /proc virtual file ... OK, so you want a userspace program to be able to arbitrarily create, ...
      (comp.os.linux.misc)
    • (no subject)
      ... I have a set of counters in a Kernel module that i want to export to a ... I originally decided to use a /proc entry and parse ... the output whenever the userspace application needed this data, however, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)