Re: Accessing filesystem from a KLD

From: Daniel O'Connor (doconnor_at_gsoft.com.au)
Date: 06/25/05

  • Next message: Maslan: "Re: To C++ or not to C++"
    To: freebsd-hackers@freebsd.org
    Date: Sat, 25 Jun 2005 21:54:17 +0930
    
    
    

    On Sat, 25 Jun 2005 19:33, Seb wrote:
    > How can I access the filesystem from a kernel module ?
    > In fact, I want my device driver to retreive a firmware image stored on the
    > filesystem (instead of putting the firmware data in a static array at
    > compile-time) for memory usage and legal concerns. Blocking calls are OK.
    > I have searched the manpages and the web, but I haven't found anything
    > relevant.

    if_ndis does this (well ndis) to load firmware images from the file system for
    drivers.

    I wonder if it would make sense to generalise it - the ndis code covers things
    like building the firmware image into the kernel for cases where you are NFS
    mounting your disks (for example).

    -- 
    Daniel O'Connor software and network engineer
    for Genesis Software - http://www.gsoft.com.au
    "The nice thing about standards is that there
    are so many of them to choose from."
      -- Andrew Tanenbaum
    GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
    
    



  • Next message: Maslan: "Re: To C++ or not to C++"

    Relevant Pages

    • Re: Accessing filesystem from a KLD
      ... > How can I access the filesystem from a kernel module? ... I want my device driver to retreive a firmware image ...
      (freebsd-hackers)
    • Re: The find tool is failing for a missing fs driver
      ... Phillip Susi wrote: ... It's a bug in the kernel module for the proc ... filesystem. ...
      (Ubuntu)
    • A sort-of distributed filesystem
      ... This is a FUSE filesystem that propagates write requests to a remote daemon, while implementing read requests locally. ... FUSE libraries and kernel module are required for operation. ...
      (freebsd-current)
    • A sort-of distributed filesystem
      ... This is a FUSE filesystem that propagates write requests to a remote daemon, while implementing read requests locally. ... FUSE libraries and kernel module are required for operation. ...
      (freebsd-hackers)