From: "George Chang" <h9916628@hkusua.hku.hk>
To: <linux-kernel@vger.kernel.org>
Subject: Re: Read and write by a module
Date: Fri, 28 Mar 2003 17:25:17 +0800 [thread overview]
Message-ID: <00d801c2f50b$f3f9e080$18f90893@george804> (raw)
In-Reply-To: 005001c2f46a$7618e950$f40101c1@mopcXP
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/
>
next prev parent reply other threads:[~2003-03-28 9:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-27 13:43 Read and write by a module h9916628
2003-03-27 14:09 ` Andre Heine
2003-03-28 9:25 ` George Chang [this message]
[not found] <E04CF3F88ACBD5119EFE00508BBB2121086322CA@exch-01.noida.hcltech.com>
2003-03-28 19:04 ` George Chang
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='00d801c2f50b$f3f9e080$18f90893@george804' \
--to=h9916628@hkusua.hku.hk \
--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