tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: wpi0: radio is disabled by hardware switch



On Tue, Dec 02, 2014 at 10:02:21PM +0100, Martin Husemann wrote:
> On Tue, Dec 02, 2014 at 05:11:16PM +0100, Manuel Bouyer wrote:
> > There's no way to get the radio button events up to userland
> 
> The pmf_inject_event() is the right way to do this.
> 
> > It looks like this should be hooked up to powerd(4), which already has
> > notifications for various switches.
> 
> And this is the userland part for it.
> 
> I agree that handling IFF_UP in the driver is hackish, but back then was
> the simplest solution. Leaving this part to a powerd script is fine.

Now I'm confused; does powerd gets notifications from pmf_inject_event() ?
I though it gets only envsys(4) events.

Can you point me to the code which gets pmf(4) events in userland ?
All references I can find are in kernel.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index