Re: Opinions on removing /proc/tty?

From: Greg KH
Date: Tue Jul 11 2006 - 18:03:51 EST


On Sun, Jul 09, 2006 at 08:44:24PM -0400, Jon Smirl wrote:
> Much simpler solution:
>
> cat /sys/class/graphics/fb0/modes
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> mode_string
> ...

How do you handle the issue when this file overflows a PAGE_SIZE buffer?

> echo mode_string >/sys/class/graphics/fb0/mode

Yeah, that initially looks very simple, but again, it violates the sysfs
rules. No matter how stupid you think they are, it still doesn't
matter...

If you really don't like it, make a fbfs, it's only about 200 lines of
code...

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/