Messages in this thread | | | From | "George Chang" <> | Subject | Re: Read and write by a module | Date | Fri, 28 Mar 2003 17:25:17 +0800 |
| |
Hi all,
I have read the book but it seems not useful for file operation in kernel mdoule. I have completed a read and write part for module. But dont know why the system will hang up when reading and writing the file for more than 3 times.
Could anyone tell me the procedures for file operation in kernel, e.g. do I need spin_locks() first ? I think another problem is the declaration of char array. I use char *temp= kmalloc(50, GFP_KERNEL), is it correct? I guess the hang-up problem may be due to the null pointer dereference .
Anyone knows about installation and configuration of SGI KDB kernel debugger?
Thanks
George
----- Original Message ----- From: "Andre Heine" <linux-experience@gmx.net> To: <linux-kernel@vger.kernel.org> Sent: Thursday, March 27, 2003 10:09 PM Subject: Re: Read and write by a module
> Hi, > > From: "h9916628" <h9916628@hkusua.hku.hk> > > Please help! I have to read and write cotents from a file by a module. Could > > anyone tell me the procedures or advise me? This is very urgent to me. Thanks > > On www.oreilly.com is an "free Book", called Linux Device Driver, Author A.Rubini. > > This book describe the basic about writing modules & systemcalls ... > > There also many tutorial in the web > > Bye > > Andre > > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |