Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756163Ab0KCRtE (ORCPT ); Wed, 3 Nov 2010 13:49:04 -0400 Received: from cantor2.suse.de ([195.135.220.15]:38683 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753106Ab0KCRtC (ORCPT ); Wed, 3 Nov 2010 13:49:02 -0400 Date: Wed, 3 Nov 2010 10:39:44 -0700 From: Greg KH To: Jiri Slaby Cc: Andrew Morton , linux-kernel@vger.kernel.org, jirislaby@gmail.com, "[cleanups]"@suse.de, "Dr. Werner Fink" , Al Viro Subject: Re: [PATCH 1/1] console: add /proc/consoles Message-ID: <20101103173944.GA6589@suse.de> References: <1288798509-23550-1-git-send-email-jslaby@suse.cz> <20101103161342.GA4942@suse.de> <4CD18ACB.4060108@suse.cz> <20101103162251.GA5404@suse.de> <4CD18CFC.7080100@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CD18CFC.7080100@suse.cz> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1707 Lines: 42 On Wed, Nov 03, 2010 at 05:25:32PM +0100, Jiri Slaby wrote: > On 11/03/2010 05:22 PM, Greg KH wrote: > > On Wed, Nov 03, 2010 at 05:16:11PM +0100, Jiri Slaby wrote: > >> On 11/03/2010 05:13 PM, Greg KH wrote: > >>> On Wed, Nov 03, 2010 at 04:35:09PM +0100, Jiri Slaby wrote: > >>>> It allows users to see what consoles are currently known to the system > >>>> and with what flags. > >>>> > >>>> It is based on Werner's patch, the part about traversing fds was > >>>> removed, the code was moved to kernel/printk.c, where consoles are > >>>> handled and it makes more sense to me. > >>> > >>> Why kernel/printk.c? I don't think that makes sense, it's just a random > >>> proc file, so why not put it into something like fs/proc/ instead? > >>> > >>> Does it rely on any functions in the printk.c file? > >> > >> No it doesn't. I will move it to fs/proc/ if that's preferred. I checked > >> how VM proc stuff is handled and it was in in mm/, so I put this into > >> kernel/... > >> > >> (Then it will depend on the console cleanup series which I sent few > >> minutes ago...) > > > > That's fine, I can take those through my tree as well, as it makes sense > > to do so. > > Actually where this code should be in fs/proc/? Most of the /proc/* is > handled elsewhere (fs/ mm/ kernel/). The rest is handled in specialized > fs/proc/FILE.c. What's wrong with putting it into fs/proc/proc_tty.c? That seems like the most logical thing to me... thanks, greg k-h -- 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/