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: Thu, 21 Jul 2022 22:46:19 +0800 From: Tao Zhou <tao.zhou@...ux.dev> To: Daniel Bristot de Oliveira <bristot@...nel.org> Cc: Steven Rostedt <rostedt@...dmis.org>, Wim Van Sebroeck <wim@...ux-watchdog.org>, Guenter Roeck <linux@...ck-us.net>, Jonathan Corbet <corbet@....net>, Ingo Molnar <mingo@...hat.com>, Thomas Gleixner <tglx@...utronix.de>, Peter Zijlstra <peterz@...radead.org>, Will Deacon <will@...nel.org>, Catalin Marinas <catalin.marinas@....com>, Marco Elver <elver@...gle.com>, Dmitry Vyukov <dvyukov@...gle.com>, "Paul E. McKenney" <paulmck@...nel.org>, Shuah Khan <skhan@...uxfoundation.org>, Gabriele Paoloni <gpaoloni@...hat.com>, Juri Lelli <juri.lelli@...hat.com>, Clark Williams <williams@...hat.com>, Randy Dunlap <rdunlap@...radead.org>, linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org, linux-trace-devel@...r.kernel.org, Tao Zhou <tao.zhou@...ux.dev> Subject: Re: [PATCH V6 02/16] rv: Add runtime reactors interface On Tue, Jul 19, 2022 at 07:27:07PM +0200, Daniel Bristot de Oliveira wrote: > diff --git a/include/linux/rv.h b/include/linux/rv.h > index b6bcdb4888e6..4f5b70eee557 100644 > --- a/include/linux/rv.h > +++ b/include/linux/rv.h > @@ -7,6 +7,12 @@ > #ifndef _LINUX_RV_H > #define _LINUX_RV_H > > +struct rv_reactor { > + char *name; > + char *description; > + void (*react)(char *msg); > +}; Like the definition of name and description in structure rv_monitor, use `const char *` for name and description. > +#ifdef CONFIG_RV_REACTORS > +struct rv_reactor_def { > + struct list_head list; > + struct rv_reactor *reactor; > + /* protected by the monitor interface lock */ > + int counter; Not see the `counter` be used(inc/dec). > +}; > +#endif
Powered by blists - more mailing lists