Re: Read and write by a module

From: George Chang (h9916628@hkusua.hku.hk)
Date: Fri Mar 28 2003 - 14:04:58 EST


Hi all,

Thanks hemanshu. You are very nice

Could I copy the file /proc/ to harddisk? I hope I can directly write the
data to the harddisk as I am working on logging system. I am writing a
function performing like printk , but it directs the event messages to a
specific disk location e.g. /usr/log/sys.log.

Thanks

George

EEE HKU

----- Original Message -----
From: "Hemanshu Kanji Bhadra, Noida" <hemanshub@noida.hcltech.com>
To: "h9916628" <h9916628@hkusua.hku.hk>
Sent: Friday, March 28, 2003 8:01 PM
Subject: RE: Read and write by a module

> Hi,
>
> have you gone thr'u proc_fs guide..
>
> It may help as it contains some help regarding reading and writing in
> kernel.
>
> - hemanshu
>
> -----Original Message-----
> From: h9916628 [mailto:h9916628@hkusua.hku.hk]
> Sent: Thursday, March 27, 2003 7:14 PM
> To: linux-kernel@vger.kernel.org
> Subject: Read and write by a module
> Importance: High
>
>
> Dear all,
>
> 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
>
> I am working on the platform of Rad Hat 7.3 Kernel version 2.4-18
>
> Thanks
>
> George Chang Tak Yin
> EEE HKU
>
> -
> 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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:32 EST