lkml.org 
[lkml]   [2002]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch 1 of 2] Scalable statistics counters
On Tue, Aug 13, 2002 at 11:07:25AM +0530, Dipankar Sarma wrote:
> ...
> Yes, that I learnt by looking at mounts_open(), the problem is how
> do I get the statctr_pentry (or statctr_group if you like) in
> the open method ? It seems to me that in order to do this, we
> need the following -
>
> 1. An exported wrapper create_statctr_entry() around
> create_seq_entry() code that sticks the statctr_group pointer into
> proc_entry->data.
> 2. Some way to get the proc entry from the inode in statctr_open()
> and stick it to seq_file->private for seq_file methods to use.
>
> Is this understanding correct or is there a better and simpler
> way to do this ?
>

Christoph,
I have used the above mentioned method now, alongwith the PDE macro to get
the proc_dir_entry from the inode. I'll post the patch after testing it..

Thanks,
Kiran
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.068 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site