From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [rfc 3/4] fs, eventfd: Add procfs fdinfo helper Date: Thu, 17 May 2012 21:43:26 +0400 Message-ID: <20120517174326.GA28556@moon> References: <20120517160738.116113099@openvz.org> <20120517162534.755208902@openvz.org> <4FB528B3.8000406@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "linux-kernel@vger.kernel.org" , Andrew Morton , James Bottomley , "linux-fsdevel@vger.kernel.org" To: Pavel Emelyanov Return-path: Received: from mail-lb0-f174.google.com ([209.85.217.174]:35818 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758969Ab2EQRna (ORCPT ); Thu, 17 May 2012 13:43:30 -0400 Content-Disposition: inline In-Reply-To: <4FB528B3.8000406@parallels.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, May 17, 2012 at 08:34:59PM +0400, Pavel Emelyanov wrote: > > > > +static const struct seq_operations eventfd_fdinfo_ops = { > > + .start = seq_start, > > + .next = seq_next, > > + .stop = seq_stop, > > + .show = seq_show, > > I think, you can use the single_ part of the seq files engine. single_stop only, since for other cases this seq methods should provide data iif pos is 1. Cyrill