[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ee3dc96c0801190608q33aee0aer133611a1fc392bb4@mail.gmail.com>
Date: Sat, 19 Jan 2008 11:08:32 -0300
From: "Rafael Sisto" <rafael.sisto@...il.com>
To: "Jan Engelhardt" <jengelh@...putergmbh.de>
Cc: "Linux kernel" <linux-kernel@...r.kernel.org>
Subject: Re: new file in kernel.
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 <jengelh@...putergmbh.de> 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 majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists