From owner-freebsd-current Sun Oct 25 16:23:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA02990 for freebsd-current-outgoing; Sun, 25 Oct 1998 16:23:52 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from Gatekeeper.Alameda.net (gatekeeper.Alameda.net [207.90.181.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA02984 for ; Sun, 25 Oct 1998 16:23:51 -0800 (PST) (envelope-from ulf@Gatekeeper.Alameda.net) Received: by Gatekeeper.Alameda.net (8.8.8/8.8.6) id QAA04246; Sun, 25 Oct 1998 16:23:18 -0800 (PST) Message-ID: <19981025162317.F21744@Alameda.net> Date: Sun, 25 Oct 1998 16:23:17 -0800 From: Ulf Zimmermann To: "Kenneth D. Merry" Cc: current@FreeBSD.ORG Subject: Re: Again, questions, questions Reply-To: ulf@Alameda.net References: <19981025155359.E21744@Alameda.net> <199810260009.RAA08950@panzer.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199810260009.RAA08950@panzer.plutotech.com>; from Kenneth D. Merry on Sun, Oct 25, 1998 at 05:09:47PM -0700 Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 2.2.6-STABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Oct 25, 1998 at 05:09:47PM -0700, Kenneth D. Merry wrote: > Ulf Zimmermann wrote... > > Ok, it seems I am now able to read and write to the Mylex system drive. > > it is still slow because the kernel is giving me a single block request. > > So how can I tell the kernel I can do more then 1 at a time ? > > Are you going through a block or character device? Character. > > > And how can I tell the kernel the size of a drive ? > > I assume this is sort of a disk driver (like da(4)) and a controller > driver (ahc(4), ahb(4)) rolled into one? Yes. > > If so, your interface to the upper-level code will have to be like a disk > device. That means you'll have a size routine that is registered in your > cdevsw structure. I have a size routine, but it never gets called. > > You may want to take a look at src/sys/cam/scsi/scsi_da.c for an example > disk driver. It has a routine, dasize(), that returns the size of the > disk. > > Ken > -- > Kenneth Merry > ken@plutotech.com -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-769-2936 Alameda Networks, Inc. | http://www.Alameda.net | Fax#: 510-521-5073 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message