Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 7 Feb 2002 16:37:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 7 Feb 2002 16:37:27 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:2473 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Thu, 7 Feb 2002 16:37:12 -0500 Date: Thu, 7 Feb 2002 16:37:07 -0500 (EST) From: Alexander Viro To: Patrick Mochel cc: Petr Vandrovec , linux-kernel@vger.kernel.org Subject: Re: [PATCH] read() from driverfs files can read more bytes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Feb 2002, Patrick Mochel wrote: > issues discussed in this thread. What's even nicer is that if I convert to > that, driver callbacks become something like either: > > int driver_show(struct device * dev, struct seq_file * m) > > or > > int driver_show(struct device * dev, char * buf) Preferably the former. > Have you considered doing write()? I had and that's going to be resurrected when remount() will be dealt with (options-parsing both benefits a lot from and is a good testbed for such helpers). - 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/