Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Oct 2002 21:25:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Oct 2002 21:25:13 -0400 Received: from tone.orchestra.cse.unsw.EDU.AU ([129.94.242.28]:11452 "HELO tone.orchestra.cse.unsw.EDU.AU") by vger.kernel.org with SMTP id ; Wed, 16 Oct 2002 21:25:13 -0400 From: Neil Brown To: "David S. Miller" Date: Thu, 17 Oct 2002 11:30:43 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15790.4803.492885.687276@notabene.cse.unsw.edu.au> Cc: acme@conectiva.com.br, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipv4: make arp seq_file show method only produce one record per call In-Reply-To: message from David S. Miller on Wednesday October 16 References: <20021017010135.GR7541@conectiva.com.br> <20021016.175809.28811497.davem@redhat.com> <20021017011108.GT7541@conectiva.com.br> <20021016.181550.88499112.davem@redhat.com> X-Mailer: VM 7.07 under Emacs 20.7.2 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D From: Arnaldo Carvalho de Melo > Date: Wed, 16 Oct 2002 22:11:08 -0300 > > That would be nice, yes, bastardizing pos for this is, humm, ugly, and > it isn't accessible at show time (pun intended 8) ). > > Can you remind me what the original objection was to > just using seq->private? Is it used, or planned to > be used, by something else? I use seq->private for private state for /proc/fs/nfs/exports. It works nicely. You need to define an 'open' the sets it up, and a 'release' to tear it down, rather than doing it in start/stop. See fs/nfsd/fnsctl.c:exports_open NeilBrown - 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/