lkml.org 
[lkml]   [2006]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/5] VT binding: Add sysfs support
On Fri, Jun 09, 2006 at 04:39:51PM +0800, Antonino A. Daplas wrote:
> Add sysfs attributes for binding and unbinding VT console drivers. The
> attributes are located in /sys/class/tty/console and are namely:
>
> A. backend - list registered drivers in the following format:
>
> "I C: Description"

No, this violates the "one value per file" issue with sysfs. How do you
know you will not overflow the buffer passed to you?

>
> Where: I = ID number of the driver
> C = status of the driver which can be:
>
> S = system driver
> B = bound modular driver
> U = unbound modular driver
>
> Description - text description of the driver
>
> B. bind - binds a driver to the console layer
>
> echo <ID> > /sys/class/tty/console/bind
>
> C. unbind - unbinds a driver from the console layer
>
> echo <ID> > /sys/class/tty/console/unbind
>
> The tty layer does nothing to these attributes except create them and punt all
> requests to the VT layer.

Why is this needed? What is wrong with the current scheme of binding
ttys to the console?

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/

\
 
 \ /
  Last update: 2006-06-10 00:12    [W:1.149 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site