kqueue for KBD.
Hans Petter Selasky
hps at bitfrost.no
Thu Feb 27 11:02:42 UTC 2014
On 02/27/14 11:59, Kohji Okuno wrote:
> + sc = kbd->kb_dev->si_drv1;
> + knlist_clear(&sc->gkb_rsel.si_note, 0);
> + knlist_destroy(&sc->gkb_rsel.si_note);
> +
> free(kbd->kb_dev->si_drv1, M_DEVBUF);
> destroy_dev(kbd->kb_dev);
Hi,
You should put the "knlist_destroy()" after the "destroy_dev()" and
leave out the "knlist_clear()" I think! Because "destroy_dev()" is a
synchronous function which ensure that all character device refs are
gone including knotes, if I'm not mistaken.
--HPS
More information about the freebsd-current
mailing list