From owner-freebsd-current Sun Oct 25 16:10:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA01732 for freebsd-current-outgoing; Sun, 25 Oct 1998 16:10:27 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from panzer.plutotech.com (panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA01727 for ; Sun, 25 Oct 1998 16:10:25 -0800 (PST) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id RAA08950; Sun, 25 Oct 1998 17:09:48 -0700 (MST) From: "Kenneth D. Merry" Message-Id: <199810260009.RAA08950@panzer.plutotech.com> Subject: Re: Again, questions, questions In-Reply-To: <19981025155359.E21744@Alameda.net> from Ulf Zimmermann at "Oct 25, 98 03:53:59 pm" To: ulf@Alameda.net Date: Sun, 25 Oct 1998 17:09:47 -0700 (MST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? > 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? 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. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message