From owner-freebsd-current Mon Apr 20 20:57:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA15321 for freebsd-current-outgoing; Mon, 20 Apr 1998 20:57:36 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA15271 for ; Tue, 21 Apr 1998 03:57:22 GMT (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id UAA21643; Mon, 20 Apr 1998 20:50:22 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpd021641; Tue Apr 21 03:50:13 1998 Message-ID: <353C1637.31D2DE92@whistle.com> Date: Mon, 20 Apr 1998 20:44:55 -0700 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Nate Williams CC: Charlie ROOT , FreeBSD-Current Subject: Re: [CAM]?DEVFS not for PCMCIA? References: <353BAF9E.6201DD56@whistle.com> <199804202347.RAA03390@mt.sri.com> <353BE7E0.5656AEC7@whistle.com> <199804210310.VAA04208@mt.sri.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nate Williams wrote: > > > Nate, what context does the 'attach' code for a driver get > > called from in the case of a OC-CARD insertion? > > > > is it in the kernel level context of a daemon, or is it > > run from an interrupt level event? > > It's inside of the kernel, with interrupts disabled (but allocated, > which is a known bug). So you call it from the interrup layer? bummer. because that makes it hard to run justin's stuff from there directly.. we'd have to "schedule it to run at a later time". (maybe a timeout()) I guess that'd be possible. Imagine if you will that a SCSI card is probed at boot. it schedules itself to have it's scsi bus probed at a later time after interrupts are turned on. All such requests are run near the end of boot... Now imagine the same scenario on the insertion of a PCCARD SCSI adapter.. end-of-boot has already passed so they don't happen. Maybe Justin has a suggestion. > > Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message