All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Dipankar Sarma <dipankar@in.ibm.com>
Cc: Ravikiran G Thirumalai <kiran@in.ibm.com>,
	Andrew Morton <akpm@zip.com.au>,
	linux-kernel@vger.kernel.org
Subject: Re: [patch 1 of 2] Scalable statistics counters
Date: Mon, 12 Aug 2002 21:09:52 +0100	[thread overview]
Message-ID: <20020812210952.A17329@infradead.org> (raw)
In-Reply-To: <20020813013546.A7819@in.ibm.com>; from dipankar@in.ibm.com on Tue, Aug 13, 2002 at 01:35:46AM +0530

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?


  reply	other threads:[~2002-08-12 20:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-12 13:05 [patch 1 of 2] Scalable statistics counters Ravikiran G Thirumalai
2002-08-12 13:46 ` Christoph Hellwig
2002-08-12 20:05   ` Dipankar Sarma
2002-08-12 20:09     ` Christoph Hellwig [this message]
2002-08-13  5:37       ` Dipankar Sarma
2002-08-13 13:29         ` Ravikiran G Thirumalai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020812210952.A17329@infradead.org \
    --to=hch@infradead.org \
    --cc=akpm@zip.com.au \
    --cc=dipankar@in.ibm.com \
    --cc=kiran@in.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.