Communication between module

Hi, everyone, does anyone know how to implement a filter driver on the Linux platform, such as intercept the read/write operations to the floppy block device. I mean I want to hook all the read/write operations to the floppy block device in my kernel module. Maybe on Windows platform this can be implement by a filter driver. But how can I implement this on Linux platform?

I am so sorry to post this Linux problem on this NT mail list. But I really need your help. Thank you very much.

Michael


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

http://www.xml.com/ldd/chapter/book/

Read up on block devices.

Just modify the appropriate source code.
----- Original Message -----
From: Michael
To: File Systems Developers
Sent: Wednesday, December 12, 2001 10:35 PM
Subject: [ntfsd] Communication between module

Hi, everyone, does anyone know how to implement a filter driver on the Linux platform, such as intercept the read/write operations to the floppy block device. I mean I want to hook all the read/write operations to the floppy block device in my kernel module. Maybe on Windows platform this can be implement by a filter driver. But how can I implement this on Linux platform?

I am so sorry to post this Linux problem on this NT mail list. But I really need your help. Thank you very much.

Michael

You are currently subscribed to ntfsd as: xxxxx@figure8.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi,William, I’ve read that book. But it didn’t mention
how to write a filter driver.

I compiled a module which can hook the
system call a week ago. In that module I hooked the
sys_read and sys_write system call. Then I can get the
read/write operation to the floppy disk. And it works
just fine. But I think it is a high level solution
because my kernel module is located between the Linux
OS and the File System. Now I need a low level
solution or a block level solution. I hope that my
module can be located between the Linux File System
and the floppy block device driver or between the
floppy block device driver and the floppy disk device.
That is a filter driver.

I’ve read some books about Linux kernel and device
driver including Alessandro Rubini’s “Linux device
driver, 2nd Edition”. But no books mentioned the
filter driver.

Another queston, how can I find the floppy block
device’s entry point in Linux?

Thank you very much.

Michael

— William Chow wrote:
> http://www.xml.com/ldd/chapter/book/
>
> Read up on block devices.
>
> Just modify the appropriate source code.
> ----- Original Message -----
> From: Michael
> To: File Systems Developers
> Sent: Wednesday, December 12, 2001 10:35 PM
> Subject: [ntfsd] Communication between module
>
>
> Hi, everyone, does anyone know how to implement a
> filter driver on the Linux platform, such as
> intercept the read/write operations to the floppy
> block device. I mean I want to hook all the
> read/write operations to the floppy block device in
> my kernel module. Maybe on Windows platform this can
> be implement by a filter driver. But how can I
> implement this on Linux platform?
>
> I am so sorry to post this Linux problem on this
> NT mail list. But I really need your help. Thank you
> very much.
>
> Michael
> —
> You are currently subscribed to ntfsd as:
> xxxxx@figure8.com
> To unsubscribe send a blank email to
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.ca
> To unsubscribe send a blank email to
> leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>

______________________________________________________
Send your holiday cheer with http://greetings.yahoo.ca


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

These newsgroups are for NT. Not only do you insist upon non-germane posts,
you multi-post from a yahoo account.

----- Original Message -----
From: “Michael Uhz”
To: “File Systems Developers”
Sent: Thursday, December 13, 2001 9:57 AM
Subject: [ntfsd] Re: Communication between module

> Hi,William, I’ve read that book. But it didn’t mention
> how to write a filter driver.
>
> I compiled a module which can hook the
> system call a week ago. In that module I hooked the
> sys_read and sys_write system call. Then I can get the
> read/write operation to the floppy disk. And it works
> just fine. But I think it is a high level solution
> because my kernel module is located between the Linux
> OS and the File System. Now I need a low level
> solution or a block level solution. I hope that my
> module can be located between the Linux File System
> and the floppy block device driver or between the
> floppy block device driver and the floppy disk device.
> That is a filter driver.
>
> I’ve read some books about Linux kernel and device
> driver including Alessandro Rubini’s “Linux device
> driver, 2nd Edition”. But no books mentioned the
> filter driver.
>
> Another queston, how can I find the floppy block
> device’s entry point in Linux?
>
> Thank you very much.
>
> Michael
>
>
>
>
> — William Chow wrote:
> > http://www.xml.com/ldd/chapter/book/
> >
> > Read up on block devices.
> >
> > Just modify the appropriate source code.
> > ----- Original Message -----
> > From: Michael
> > To: File Systems Developers
> > Sent: Wednesday, December 12, 2001 10:35 PM
> > Subject: [ntfsd] Communication between module
> >
> >
> > Hi, everyone, does anyone know how to implement a
> > filter driver on the Linux platform, such as
> > intercept the read/write operations to the floppy
> > block device. I mean I want to hook all the
> > read/write operations to the floppy block device in
> > my kernel module. Maybe on Windows platform this can
> > be implement by a filter driver. But how can I
> > implement this on Linux platform?
> >
> > I am so sorry to post this Linux problem on this
> > NT mail list. But I really need your help. Thank you
> > very much.
> >
> > Michael
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@figure8.com
> > To unsubscribe send a blank email to
> > leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@yahoo.ca
> > To unsubscribe send a blank email to
> > leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> >
>
>
> ______________________________________________________
> Send your holiday cheer with http://greetings.yahoo.ca
>
> —
> You are currently subscribed to ntfsd as: xxxxx@yoshimuni.com
> To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Ask Linus on this :slight_smile: maybe the anwser will be “you does not need it really, as you does not need the kernel debugger”.

Max
----- Original Message -----
From: Michael
To: File Systems Developers
Sent: Thursday, December 13, 2001 9:35 AM
Subject: [ntfsd] Communication between module

Hi, everyone, does anyone know how to implement a filter driver on the Linux platform, such as intercept the read/write operations to the floppy block device. I mean I want to hook all the read/write operations to the floppy block device in my kernel module. Maybe on Windows platform this can be implement by a filter driver. But how can I implement this on Linux platform?

I am so sorry to post this Linux problem on this NT mail list. But I really need your help. Thank you very much.

Michael

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com