From owner-freebsd-hackers Sat Jun 23 12:59: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (diskworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id AC47637B405 for ; Sat, 23 Jun 2001 12:59:01 -0700 (PDT) (envelope-from roam@ringworld.nanolink.com) Received: (qmail 2737 invoked by uid 1000); 23 Jun 2001 19:55:36 -0000 Date: Sat, 23 Jun 2001 22:55:36 +0300 From: Peter Pentchev To: j mckitrick Cc: Matthew Jacob , freebsd-hackers@FreeBSD.ORG Subject: Re: how to invalidate scsi connection to driver module Message-ID: <20010623225536.B564@ringworld.oblivion.bg> Mail-Followup-To: j mckitrick , Matthew Jacob , freebsd-hackers@FreeBSD.ORG References: <20010623145429.D29940@ringworld.oblivion.bg> <20010623200945.A96038@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010623200945.A96038@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Sat, Jun 23, 2001 at 08:09:46PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jun 23, 2001 at 08:09:46PM +0100, j mckitrick wrote: > On Sat, Jun 23, 2001 at 10:38:53AM -0700, Matthew Jacob wrote: > | > | But the unit numbers can and do recycle. > > So the question is then, how can i get it to do that? If 'camcontrol rescan' would do what you want, then look at how it is implemented in kernel space. I'm not too comfortable around kernel code, but 'rescan' invokes the CAMIOCOMMAND ioctl with an argument of XPT_SCAN_BUS, and the xpt device ioctl's in src/sys/cam/cam_xpt.c around line 978 (on -stable) seem to call some cam_*() internal functions that you could probably call yourself. Hope this help some.. G'luck, Peter -- I had to translate this sentence into English because I could not read the original Sanskrit. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message