Re: [PATCH 1/1] console: add /proc/consoles

From: Greg KH
Date: Wed Nov 03 2010 - 12:13:16 EST


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?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/