Date: Fri, 11 Aug 2006 14:16:41 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: jchoque@tlmat.unican.es Cc: freebsd-hackers@freebsd.org Subject: Re: Attach/detach devices Message-ID: <20060811.141641.824013164.imp@bsdimp.com> In-Reply-To: <00bb01c6bd6f$77c8ddb0$2bba90c1@Altair> References: <00bb01c6bd6f$77c8ddb0$2bba90c1@Altair>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <00bb01c6bd6f$77c8ddb0$2bba90c1@Altair> "Johnny Choque" <jchoque@tlmat.unican.es> writes: : Hi, : : I'm trying to do a userland program that detect the event when a device is : attached/detached. In particular, I would like to detect these events for : wireless pc card insertion/ejection or when tear down the connection of the : wireless interface build-in laptop. I've found that functions : device_attach/device_detach are used by the kernel when a device is : attached/detached respectively, and, e.g, when a device is detached "a : notification event is sent to userland for user-based device management : service", how can I use that notification event in my userland program? : Could you give me some ideas to do my program? man 8 devd Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060811.141641.824013164.imp>