lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221121123833.164614-1-mmkurbanov@sberdevices.ru>
Date:   Mon, 21 Nov 2022 15:38:31 +0300
From:   Martin Kurbanov <mmkurbanov@...rdevices.ru>
To:     Pavel Machek <pavel@....cz>,
        Raphael Teysseyre <rteysseyre@...il.com>,
        Andy Shevchenko <andy.shevchenko@...il.com>
CC:     <linux-kernel@...r.kernel.org>, <linux-leds@...r.kernel.org>,
        <kernel@...rdevices.ru>,
        Martin Kurbanov <mmkurbanov@...rdevices.ru>
Subject: [PATCH v2 0/2] leds: trigger: pattern: notify usespace if pattern finished

In the current moment, userspace caller can schedule LED pattern with
appropriate parameters, but it doesn't have ability to listen to any
events indicated pattern finished. This patch series add support for a
'is_running' attribute to signal LED pattern state to userspace.

For example of user space code how to use the feature:
https://gist.github.com/m-kurbanov/775408521c436a371c3640d49808d08d

Changes v1 -> v2:
    - code style fixes (Andy Shevchenko)
    - typo fixes (Andy Shevchenko)
    - add ABI documentation (Andy Shevchenko)
    - added example on the gist (Andy Shevchenko)

Martin Kurbanov (2):
  leds: trigger: pattern: minor code style changes
  leds: trigger: pattern: notify usespace if pattern finished

 .../testing/sysfs-class-led-trigger-pattern   | 11 +++
 drivers/leds/trigger/ledtrig-pattern.c        | 92 ++++++++++++++-----
 2 files changed, 80 insertions(+), 23 deletions(-)

--
2.38.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ