mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael Sisto" <rafael.sisto@gmail.com>
To: "Arnaldo Carvalho de Melo" <acme@redhat.com>,
	"Rafael Sisto" <rafael.sisto@gmail.com>,
	"Linux kernel" <linux-kernel@vger.kernel.org>
Subject: Re: new file in kernel.
Date: Sat, 19 Jan 2008 11:21:11 -0300	[thread overview]
Message-ID: <ee3dc96c0801190621p1970086fj218178a7519fe4af@mail.gmail.com> (raw)
In-Reply-To: <20080119134837.GA15610@ghostprotocols.net>

Dear Arnaldo, I didnt see your mail before.
I read some of the code you suggested, but it seems so complicated! I
just need to create a file named "file" on the path /tmp/.. Isn't
there an easier way?

Or else, where can I find some more information about what the parameters mean?
(struct svc_rqst *rqstp, struct nfsd3_createargs *argp, struct
nfsd3_diropres   *resp)
It seems that with the "argp" parameter, I could pass all my
information, but I dont see what to put on the other parameters...

I would greatfuly thank some link where to find some information, please.
greetings,
Rafael Sisto.


On Jan 19, 2008 10:48 AM, Arnaldo Carvalho de Melo <acme@redhat.com> wrote:
> Em Sat, Jan 19, 2008 at 10:42:40AM -0300, Rafael Sisto escreveu:
> > 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.
>
> Look at how NFS does.
>
> fs/nfsd/nfs3proc.c
> nfsd3_proc_create
>
> - Arnaldo
>

  reply	other threads:[~2008-01-19 14:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 13:42 Rafael Sisto
2008-01-19 13:48 ` Arnaldo Carvalho de Melo
2008-01-19 14:21   ` Rafael Sisto [this message]
2008-01-19 14:30     ` Jan-Benedict Glaw
2008-01-19 14:57       ` Rafael Sisto
2008-01-19 15:26         ` Stefan Richter
2008-01-19 16:15           ` Rafael Sisto
2008-01-19 16:23             ` Arnaldo Carvalho de Melo
2008-01-19 17:57             ` Stefan Richter
2008-01-19 13:49 ` Jan Engelhardt
2008-01-19 14:08   ` Rafael Sisto
2008-01-19 14:30     ` Jan Engelhardt
2008-01-19 15:12       ` Rafael Sisto
2008-01-20  1:29         ` Jan-Benedict Glaw
2008-01-21 13:00           ` Rafael Sisto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ee3dc96c0801190621p1970086fj218178a7519fe4af@mail.gmail.com \
    --to=rafael.sisto@gmail.com \
    --cc=acme@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®