On Wed, 17 Mar 2010 12:14:49 -0700 Oleksandr Tymoshenko <go...@bluezbox.com> wrote:
> > 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/. From the kernel side it's just a matter of calling > devctl_notify if I got it right. > > -- > gonzo > > > Sorry, I forgot to clarify that no devd here and no free space for it :) Embedded, Flash 4M for all. -- Alex RAY <r...@ddteam.net> _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"