Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2011 17:38:34 +0300
From:      arrowdodger <6yearold@gmail.com>
To:        Sushanth Rai <sushanth_rai@yahoo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Using kevent for signalling user app from kernel
Message-ID:  <CALH631=8%2Bew6UYdVHTgtVPTBOckbHyZOLPLtU7gp14MNiugEDg@mail.gmail.com>
In-Reply-To: <1324533811.54730.YahooMailClassic@web180006.mail.gq1.yahoo.com>
References:  <1324533811.54730.YahooMailClassic@web180006.mail.gq1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 22, 2011 at 10:03 AM, Sushanth Rai <sushanth_rai@yahoo.com>wrote:

> Hi,
>
> I'm planning to use kqueue/kevent mechanism to notify a user application
> from the kernel. Basically I set up a file descriptor for read event from
> the user application by calling kevent(). Now, I would like to wake-up the
> process from within the kernel. The wake-up will happen due to one of the
> internal events (not due to data being available to read). I have access to
> the process structure and vnode corresponding to file descriptor. Is there
> a mechanism available from the kernel to trigger a wakeup and clear the
> kernel break notify message ?
>
> Thanks,
> Sushanth
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>

Hi. I'm not very experienced in this stuff, but you can try to look at how
EVFILT_USER is handled. Specifically, take a look at what is going on when
this filter is triggered from userland.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631=8%2Bew6UYdVHTgtVPTBOckbHyZOLPLtU7gp14MNiugEDg>