<quote sender="Rupesh S"> > > Hi, > > >maybe you have an idea of how i could create a file from kernel space? > > This is not a good idea but if you really need it try doing this. > > filp = filp_open("foo", O_CREAT | O_WRONLY | O_APPEND, > S_IRUSR | S_IWUSR); > > > Why this is not a god idea ? You should leave this to a userspace auxiliary program or via a daemon through a systems interface. You can see this example in the BSD Accounting code. Eugene -- Eugene TEO - <eugeneteo%null!cc!uic!edu> <http://www.anomalistic.org/> 1024D/14A0DDE5 print D851 4574 E357 469C D308 A01E 7321 A38A 14A0 DDE5 main(i) { putchar(182623909 >> (i-1) * 5&31|!!(i<7)<<6) && main(++i); } -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/