Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261347AbTIXTvh (ORCPT ); Wed, 24 Sep 2003 15:51:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261448AbTIXTvh (ORCPT ); Wed, 24 Sep 2003 15:51:37 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:37339 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S261347AbTIXTvg (ORCPT ); Wed, 24 Sep 2003 15:51:36 -0400 Date: Wed, 24 Sep 2003 20:51:33 +0100 From: viro@parcelfarce.linux.theplanet.co.uk To: olof@austin.ibm.com Cc: Marcelo Tosatti , lkml Subject: Re: [PATCH] [2.4] Re: /proc/ioports overrun patch Message-ID: <20030924195133.GY7665@parcelfarce.linux.theplanet.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1122 Lines: 27 On Wed, Sep 24, 2003 at 02:42:44PM -0500, olof@austin.ibm.com wrote: > Marcelo, > > On Fri, 29 Aug 2003, Marcelo Tosatti wrote: > > > Your change to do_resource_list() will avoid copying out of bound by > > truncating the resource output. Which means users might get truncated > > information (only information that fits in the buffer) and not the full > > information. > > > > Is that correct? > > > > If so, I would prefer to have a fix which outputs the full resource > > information. For that we would need seq_file(). > > I finally got some time to revisit this and convert /proc/ioports and > /proc/iomem to seq_file. See below patch -- it's backed against the > current BK tree. Hmm... Why not make the iterator traverse the resource tree instead? After all, all it takes is addition of pointer to parent resource into struct resource. Goes for both 2.4 and 2.6... - 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/