Re: [PATCH v3] leds: Introduce userspace leds driver

From: Pavel Machek
Date: Fri Sep 16 2016 - 01:59:41 EST


+The current brightness is found by reading a single byte from the
+device. Values are unsigned: 0 to 255. Reading does not block and
always returns
+the most recent brightness value. The device node can also be polled
to notify
+when the brightness value changes.

What is going on there? We have O_NONBLOCK, user should be able to
select if he wants blocking behaviour or not.

And yes, there's interface for creating a LED, but not one for
deleting it?

And... how is it going to work with multiple LEDs? Userspace gets
single bytes with brightness. How does it know to which LED the
brightness belongs?

(cesky, pictures)