Skip to contentSkip to conversation

VFS buffer monitoring

DISCUSSION Vladimir Dergachev 2 participants 2 messages Aug 18, 1998 – Aug 19, 1998 Memory management

lore
Share & tools
lore
#0 lore raw

Hello all :)
I want to write a program that lists the blocks currently in VFS buffer.
I looked around and couldn't find anything similar, and, well, noone on IRC seems to know anything about it.
So here goes :
1) does anybody know of such a program ?
2) I looked around in the kernel source and it looks to me that this stuff isn't visible outside of kernel.. So should I just go and change kernel directly or can I still get by with writing a module ? (or maybe even better , just an ordinary program ? )

I would appreciate very much any pointers (and especially commentary) on the subject..

Vladimir Dergachev

http://www.math.upenn.edu/~vdergach
--
This is a majordomo managed list. To unsubscribe, send a message with the body 'unsubscribe linux-mm me@address' to: [email protected]

#1 lore raw

Hi,

Quoted 2 lines · Vladimir Dergachev

2) I looked around in the kernel source and it looks to me that this stuff isn't visible outside of kernel..

Yep.

Quoted 3 lines

So should I just go and change kernel directly or can I still get by with writing a module ? (or maybe even better , just an ordinary program ? )

You'll need to modify the kernel (linux/fs/buffer.c); the buffer lookup information is not exported to modules.

--Stephen
--
This is a majordomo managed list. To unsubscribe, send a message with the body 'unsubscribe linux-mm me@address' to: [email protected]