Date: Fri, 11 Aug 2006 19:56:27 +0200 From: "Johnny Choque" <jchoque@tlmat.unican.es> To: <freebsd-hackers@freebsd.org> Subject: Attach/detach devices Message-ID: <00bb01c6bd6f$77c8ddb0$2bba90c1@Altair>
next in thread | raw e-mail | index | archive | help
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? Cheers, Johnny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00bb01c6bd6f$77c8ddb0$2bba90c1>