Messages in this thread | | | Date | Thu, 03 Sep 1998 18:34:30 +0000 | From | Petko Manolov <> | Subject | Re: unresolved symbol open |
| |
Vasili Goutas wrote: > > I'm writing a device driver how needs to read a file during initialize. > I tried to use the functions open() read() seek() and close() and > included the asm/unistd.h, but I get unresolved symbols. > Then I tried to use the sys_* functions, and get also a lot of > unresolved symbols, only the sys_close() function was known. > A look at the symbol table of my 2.0.34 kernel by 'cat /proc/ksyms' > shows me that they realy are missing. > Why are the other functions missing? > Is there another way to access files from a driver?
I,m not very sure it this is possible. If your driver is linked in kernel it can't read anything from FS because there is not available during system init. If the driver is module, try to send contents of config file thru ioctl(you have to support ioctl sys_call). I think this is easier.
Petkan
-- Petko Manolov, http://www.varel.bg/~petkan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |