Re: How Can I develop a process monitor?

2000-10-03 Thread Alexander Viro



On Tue, 3 Oct 2000, [iso-8859-1] Abel Muñoz Alcaraz wrote:

> Hi everybody,
> 
>   I want to develop a process monitor (like TOP) in a kernel module.
>   I think I must get the '/proc' superblock and replace the
> inode_operations->mkdir,rmdir,create and open.

None of these exist.

>   Is this correct?

No.

>   Can I get the /proc superbloc with 'struct super_block * get_super(kdev_t
> dev' function?

No (for obvious reason: what device number would you use?)

It might help if you would
* describe what do you want to do
* tell which kernel branch you are dealing with

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



How Can I develop a process monitor?

2000-10-03 Thread Abel Muñoz Alcaraz

Hi everybody,

I want to develop a process monitor (like TOP) in a kernel module.
I think I must get the '/proc' superblock and replace the
inode_operations->mkdir,rmdir,create and open.

Is this correct?
Can I get the /proc superbloc with 'struct super_block * get_super(kdev_t
dev' function?

I am going to develop this module in C.

Thanks in advance.
-Abel.




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/