Dear Jan, I had already read that webpage, but I dont need to change the data on that file. I just want to create a new file and then close it, so I can use it later in another system call, to mmap it to a user space. Is it clearer now? Can you please give me some code snippet?
Thanks again in advance and greetings! Rafael Sisto. (Jan, Sorry for the last mail, I answered to your personal mail only) On Jan 19, 2008 10:49 AM, Jan Engelhardt <[EMAIL PROTECTED]> wrote: > > On Jan 19 2008 10:42, Rafael Sisto wrote: > >Dear forum, > >can anybody help me with this issue? > > > >How do I create a new file in kernel mode? > >I am trying to create a file in a system call I am building. > > http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad > > Even then, you are a bit too unspecific. A syscall could > very well call a filesystem's create function and create > a file that way, though it is a very different use-case. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

