Re: [patch 1 of 2] Scalable statistics counters

From: Christoph Hellwig (hch@infradead.org)
Date: Mon Aug 12 2002 - 15:09:52 EST


On Tue, Aug 13, 2002 at 01:35:46AM +0530, Dipankar Sarma wrote:
> Suppose I use seq_file interface and not put all statctrs in one /proc
> file, how do I associate the statctr data structure with the /proc
> inode ? IOW, how do I quickly get the statctr_pentry corresponding to the
> counter in statctr_open() ?

Stuff it into the ->private member of struct seq_file in your open method.
BTW, what about renaming statctr_pentry to statctr_group?

-
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 : Thu Aug 15 2002 - 22:00:29 EST