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-prev] [day] [month] [year] [list]
Date:   Fri, 12 Feb 2021 11:39:16 +0000
From:   Anand Ashok Dumbre <ANANDASH@...inx.com>
To:     Lars-Peter Clausen <lars@...afoo.de>,
        Jonathan Cameron <jic23@...nel.org>,
        "knaack.h@....de" <knaack.h@....de>,
        Peter Meerwald-Stadler <pmeerw@...erw.net>,
        Michal Simek <michals@...inx.com>,
        "linux-iio@...r.kernel.org" <linux-iio@...r.kernel.org>,
        "linux-arm-kernel@...ts.infradead.org" 
        <linux-arm-kernel@...ts.infradead.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: Adding custom functional callbacks to IIO driver

Thanks a lot I will go through it. 

> -----Original Message-----
> From: Lars-Peter Clausen <lars@...afoo.de>
> Sent: Friday 12 February 2021 5:06 PM
> To: Anand Ashok Dumbre <ANANDASH@...inx.com>; Jonathan Cameron
> <jic23@...nel.org>; knaack.h@....de; Peter Meerwald-Stadler
> <pmeerw@...erw.net>; Michal Simek <michals@...inx.com>; linux-
> iio@...r.kernel.org; linux-arm-kernel@...ts.infradead.org; linux-
> kernel@...r.kernel.org
> Subject: Re: Adding custom functional callbacks to IIO driver
> 
> On 2/12/21 12:07 PM, Anand Ashok Dumbre wrote:
> > Hello,
> >
> > I have an IIO adc driver that measures temperatures and voltages on the
> SOC.
> > There are other kernel modules interested in the temperature and voltage
> event information.
> >
> > Would using a custom callback registration mechanism be advisable?
> > Is there something similar done already in IIO that can be leveraged?
> 
> Hi,
> 
> Have a look at the IIO consumer API that allows other kernel modules to
> subscribe to the output of an IIO device.
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/inclu
> de/linux/iio/consumer.h
> 
> 
> - Lars

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ