krishna prasad yalavarthi wrote: > I have a doubt regarding opening a log file in linux device > drivers. > > when i use > > int fp; > fp = open("//etc//osiwan.log",O_CREAT|O_RDWR); > > in my driver code and compile, i am able to get my > library(tp02.ld). By using this tp02.ld library i build streams.o, > a streams module using LiS(Linux streams). when i use > > insmod streams.o > > it is giving an error unresolved symbol open. > Is the above procedure correct? can any one please help me, what > the problem is. You can't use libc functions (e.g. open()) in the kernel. -- Glynn Clements <glynn.clements@virgin.net> - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html