Messages in this thread | | | Date | Thu, 13 Jul 2006 11:37:03 -0700 | From | Greg KH <> | Subject | Re: Opinions on removing /proc/tty? |
| |
On Tue, Jul 11, 2006 at 06:32:26PM -0400, Jon Smirl wrote: > If you really want to stick with the one value model on the read-only > attributes, how about a sysfs function that takes a variable and a > string array of enum values. It creates a subdirectory named for the > variable and makes attributes in the directory matching the names from > the enum. The subdirectory avoids namespace collisions. The attributes > are then managed like a set of radio buttons so that only one can be > set non-zero at a time. The driver read/write functions for the > variable never knows this is going on, read/write just works with an > index into the array.
That might be interesting. Send a patch and I'll seriously consider it.
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/
| |