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
| ||
|
Date: Tue, 1 Aug 2017 16:50:25 +0200 From: Bartosz Golaszewski <brgl@...ev.pl> To: Linus Walleij <linus.walleij@...aro.org>, Thomas Gleixner <tglx@...utronix.de>, Marc Zyngier <marc.zyngier@....com>, Jonathan Corbet <corbet@....net>, Bamvor Jian Zhang <bamvor.zhangjian@...aro.org>, Jonathan Cameron <jic23@...nel.org>, Lars-Peter Clausen <lars@...afoo.de> Cc: linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org, linux-doc@...r.kernel.org, Bartosz Golaszewski <brgl@...ev.pl> Subject: [PATCH v2 0/3] simulated interrupts Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated interrupts that can be 'fired' from process context when needed and requested just like normal interrupts. This is useful for testing and development purposes. Currently this code is reimplemented by every user. This series proposes to add a new set of functions that can be used by drivers that want to simulate interrupts without having to duplicate any boilerplate code. The first patch adds a simple irq simulator framework. The second extends it with resource management. The third uses the new functionality in the gpio-mockup testing driver. NOTE: The next candidate for using this API would be iio-dummy-evgen. v1 -> v2: - added a call to irq_work_sync in irq_sim_fini() Bartosz Golaszewski (3): irq/irq_sim: add a simple interrupt simulator framework irq/irq_sim: add a devres variant of irq_sim_init() gpio: mockup: use irq_sim Documentation/driver-model/devres.txt | 1 + drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mockup.c | 77 ++-------------- include/linux/irq_sim.h | 41 +++++++++ init/Kconfig | 4 + kernel/Makefile | 1 + kernel/irq_sim.c | 162 ++++++++++++++++++++++++++++++++++ 7 files changed, 217 insertions(+), 71 deletions(-) create mode 100644 include/linux/irq_sim.h create mode 100644 kernel/irq_sim.c -- 2.13.2
Powered by blists - more mailing lists