This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Block device IO
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Savin Zlobec <savin at elatec dot si>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 19 Aug 2003 08:07:00 -0600
- Subject: Re: [ECOS] Block device IO
- Organization: MLB Associates
- References: <3F422F89.3070907@elatec.si>
On Tue, 2003-08-19 at 08:09, Savin Zlobec wrote:
> Hello,
>
> I've just finished writting the basic block device IO stuff.
> It consists of 3 layers:
>
> 1. layer just reads and writtes blocks through cyg_io_bread/write (len
> and pos being in blocks)
>
> 2. layer does the block caching on top of first one - access is also
> trough cyg_io_bread/write (len and pos being in blocks)
>
> 3. layer does byte access trough cyg_io_bread/write (len and pos being
> in bytes,
> block number set/get is done trough cyg_io_set/get_config - you only
> need
> to set block numbers if you get over the 32 bit boundary since the
> block number
> is adjusted according to the position)
>
> the layering method used is the same as the one used in serial - tty -
> termios drivers, so
> they can also be used separatly.
>
> There are probably some bugs and holes around the code, but if anyone is
> interested in finding bugs, extending or commenting I can post it on
> discuss or better on devel list.
>
Absolutely, please send it to ecos-devel. That way, we can all look at
it, see what you're up to, provide feedback, etc.
Thanks.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss