lkml.org 
[lkml]   [2008]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: new file in kernel.
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
>


\
 
 \ /
  Last update: 2008-01-19 15:23    [W:0.053 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site