From owner-freebsd-current Sun Oct 25 16:29:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA03382 for freebsd-current-outgoing; Sun, 25 Oct 1998 16:29:23 -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 QAA03376 for ; Sun, 25 Oct 1998 16:29:22 -0800 (PST) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.9.1/8.8.5) id RAA09070; Sun, 25 Oct 1998 17:28:45 -0700 (MST) From: "Kenneth D. Merry" Message-Id: <199810260028.RAA09070@panzer.plutotech.com> Subject: Re: Again, questions, questions In-Reply-To: <19981025162317.F21744@Alameda.net> from Ulf Zimmermann at "Oct 25, 98 04:23:17 pm" To: ulf@Alameda.net Date: Sun, 25 Oct 1998 17:28:44 -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... > 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. I may be off base here, but I think you need to go through a block device if you want block device semantics. > > > > > 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. It may have something to do with going through the character instead of the block device. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message