Re: Accessing filesystem from a KLD

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 06/25/05

  • Next message: Dominique SA: "KMEM Problem With OIDENTD"
    Date: Sat, 25 Jun 2005 11:57:47 -0600 (MDT)
    To: ssouhlal@freebsd.org
    
    

    In message: <42F160E7-9B19-4A8A-8656-A86E0076EBB3@FreeBSD.org>
                Suleiman Souhlal <ssouhlal@freebsd.org> writes:
    : You can use vn_open() to open the file, and then read it using vn_rdwr
    : (), and finally, vn_close() to close it. Look at src/sys/kern/
    : link_elf_obj.c for an example.

    There's also a desire to provide an easier to use interface for
    drivers to load, for example, firmware.

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


  • Next message: Dominique SA: "KMEM Problem With OIDENTD"

    Relevant Pages

    • Re: X300 + USB DVD/CDRW + SD Card problem
      ... Load pccard.ko and cardbus.ko, or put them into the kernel and try ... Warner ... To unsubscribe, ...
      (freebsd-current)
    • Re: [2.6.10-rc1-mm2] Firmware loader gone bogus?
      ... Which script do you use to load the firmware? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Confused about netinst
      ... That has been my experience with the installer and a Intel Corporation ... However the one time I did try to load the firmware it failed. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in more drivers.
      ... This whole "working device" argument is total bullshit. ... If the driver was a module before, it needed a module load to become ... If you could load the module, you could load the firmware. ...
      (Linux-Kernel)
    • Re: FC2: Question about hotplugging
      ... >> loads the module and the firmware but when I boot the laptop the module ... >> gets loaded automatically but it can't find the firmware. ... >> and the module will load and it will find and load the firmware. ... Detected ipw2100 PCI devoce at 0000:02:04.0, dev: eth1, mem ...
      (Fedora)