From owner-freebsd-current Tue Nov 30 15: 3:43 1999 Delivered-To: freebsd-current@freebsd.org Received: from cheddar.netmonger.net (cheddar.netmonger.net [209.54.21.140]) by hub.freebsd.org (Postfix) with ESMTP id 6126915828; Tue, 30 Nov 1999 15:03:20 -0800 (PST) (envelope-from chris@cheddar.netmonger.net) Received: (from chris@localhost) by cheddar.netmonger.net (8.8.8/8.8.8) id SAA24459; Tue, 30 Nov 1999 18:03:17 -0500 (EST) Message-ID: <19991130180309.B22943@netmonger.net> Date: Tue, 30 Nov 1999 18:03:09 -0500 From: Christopher Masto To: frank@exit.com Cc: Warner Losh , Nick Hibma , Mike Smith , FreeBSD CURRENT Mailing List Subject: Re: PCCARD eject freeze (was Re: your mail) References: <19991130173920.A22943@netmonger.net> <199911302254.OAA56273@realtime.exit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199911302254.OAA56273@realtime.exit.com>; from Frank Mayhar on Tue, Nov 30, 1999 at 02:54:28PM -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Nov 30, 1999 at 02:54:28PM -0800, Frank Mayhar wrote: > > On Tue, Nov 30, 1999 at 02:59:10PM -0700, Warner Losh wrote: > > > pccarddev = devclass_get_device(pccard_devclass, slt->slot); > > > device_get_children(pccarddev, &kids, &nkids) > > > for (i = 0; i < nkids; i++) > > > device_delete_child(pccarddev, kid[0]); > > I'll bet Warner meant > device_delete_child(pccarddev, kid[i]); > up there, and not > device_delete_child(pccarddev, kid[0]); > > Did you try that? Yes, the actual code I used is: pccarddev = devclass_get_device(pccard_devclass, slt->slotnum); device_get_children(pccarddev, &kids, &nkids); printf("pccard: %d kids\n", nkids); for (i = 0; i < nkids; i++) { printf("pccard: deleting kid %d\n", i); if (ret=device_delete_child(pccarddev, kids[i])) printf("pccard: delete kid %d failed: %d\n", i, ret); } It's not quite working. I think I got away ok with the ethernet card because it wasn't being accessed, but my CDPD card with a running PPP session pretty reliably still freezes up. Hrm. No, it's not freezing up, it's a panic, but I'm running X and can't get to it. -- Christopher Masto Senior Network Monkey NetMonger Communications chris@netmonger.net info@netmonger.net http://www.netmonger.net Free yourself, free your machine, free the daemon -- http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message