Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 1998 16:23:17 -0800
From:      Ulf Zimmermann <ulf@Alameda.net>
To:        "Kenneth D. Merry" <ken@plutotech.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: Again, questions, questions
Message-ID:  <19981025162317.F21744@Alameda.net>
In-Reply-To: <199810260009.RAA08950@panzer.plutotech.com>; from Kenneth D. Merry on Sun, Oct 25, 1998 at 05:09:47PM -0700
References:  <19981025155359.E21744@Alameda.net> <199810260009.RAA08950@panzer.plutotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981025162317.F21744>