Re: How Can I develop a process monitor?

Alexander Viro (viro@math.psu.edu)
Tue, 3 Oct 2000 14:47:05 -0400 (EDT)


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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/