create a file in kernel mode. help please!

2008-01-18 Thread Rafael Sisto
ue?? It is very important because it is for a college projects. Greetings, and thanks in advance for the answers. Rafael Sisto - Uruguay.- -- 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://

new file in kernel.

2008-01-19 Thread Rafael Sisto
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. thanks in advance, Rafael Sisto. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

Re: new file in kernel.

2008-01-19 Thread Rafael Sisto
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

Re: new file in kernel.

2008-01-19 Thread Rafael Sisto
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

Re: new file in kernel.

2008-01-19 Thread Rafael Sisto
, and it seems they create a file in tmpfs, on the "get" system call, so my idea was to do something similar) I hope it is much clearer now, and would gratefuly accept any answer, with new ideas, or an approach to make me realise what I am doing wrong.. Thanks in advance, Greetings, R

Re: new file in kernel.

2008-01-19 Thread Rafael Sisto
o, right? asmlinkage long sys_my_shmget(int size) { long ret; ret = sys_open("/tmp/shmfile", O_CREAT | O_RDWR , 777); if (ret < 0) return ret; sys_close(fd); return 0; } what do you think?? Greetings, Rafael Sisto On Jan 19, 20

Re: new file in kernel.

2008-01-19 Thread Rafael Sisto
when it is about kernel development issues. And I think this is a kernel development issue. If you know a better mailing list, or forum that could help me with these issues, I would be thankfuly. I'm sorry if this is not the right ML to ask these questions concerning "linux kernel development&q

Re: create a file in kernel mode. help please!

2008-01-21 Thread Rafael Sisto
Thanks Joe for the answer! I will find another work around for my problem, then! greetings, Rafael Sisto. On Jan 21, 2008 5:21 AM, Joe <[EMAIL PROTECTED]> wrote: > Hi Rafael. > > Probably you haven't got any answers yet because you should NEVER EVER > (i repeat: NEVER EV

Re: new file in kernel.

2008-01-21 Thread Rafael Sisto
loose that much portability). Thanks for the book suggestion.. I will try to read it! Greetings, Rafael Sisto. On Jan 19, 2008 10:29 PM, Jan-Benedict Glaw <[EMAIL PROTECTED]> wrote: > On Sat, 2008-01-19 12:12:10 -0300, Rafael Sisto <[EMAIL PROTECTED]> wrote: > > Dear Jan,

shared memory

2007-12-16 Thread Rafael Sisto
eetings from Uruguay! Rafael Sisto -- 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/

Re: shared memory

2007-12-16 Thread Rafael Sisto
Thank you for the quick answer, but It's a college project, and I must share user level memory. I also must build my own system calls... But I can look what is already done and make something similar. Do you think shmget would do? Does it share user level memory? greetings! Rafael Sisto O

Re: shared memory

2007-12-16 Thread Rafael Sisto
thanks a lot!! On Dec 16, 2007 7:30 PM, Luciano Rocha <[EMAIL PROTECTED]> wrote: > On Sun, Dec 16, 2007 at 05:01:17PM -0300, Rafael Sisto wrote: > > Thank you for the quick answer, but It's a college project, and I must > > share user level memory. I also must