Date: Wed, 17 Mar 2010 12:14:49 -0700 From: Oleksandr Tymoshenko <gonzo@bluezbox.com> To: Alex RAY <ray@ddteam.net> Cc: hackers@freebsd.org Subject: Re: GPIO button and userspace Message-ID: <A4CCE92C-CDDD-4EB8-B7B4-A920FFBF89AC@bluezbox.com> In-Reply-To: <c47304e21003171204j705da26av88afb5c57a3b7557@mail.gmail.com> References: <c47304e21003171204j705da26av88afb5c57a3b7557@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2010-03-17, at 12:04 PM, Alex RAY wrote: > Hackers > help find the correct answer, in what way I can send interrupt on GPIO = to > the userspace script. > I know that I can make the device, and open it in program, but it is > cumbersome. > I know what I can run the script from the kernel, as in Linux, but I = think > this is not the right way? IMHO the best way to implement it is to run scripts through devd. = e.g. create use subsystem "GPIO" and few event types: "BUTTON_DOWN", "BUTTON_UP", /add yours here/. =46rom the kernel side it's just a matter of calling = devctl_notify if I got it right. --=20 gonzo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A4CCE92C-CDDD-4EB8-B7B4-A920FFBF89AC>