Re: PCI device driver question



In article <1166736838.855581.113720@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
elliotng.ee@xxxxxxxxx <elliotng.ee@xxxxxxxxx> wrote:

Now instead of hard-coding what to write in the memory region, I want
to input a file, read the file, and write the appropriate contents to
the memory region. What are the appropriate steps to do that? It seems
as though that I cannot use the library stdio in pci device drivers. Is
there another library that contains file IO?

Look in the kernel source for examples of sys_open, sys_read, etc.

--
http://www.spinics.net/lists/
.