hd controller
Greg Freemyer
greg.freemyer at gmail.com
Thu Feb 7 15:18:47 EST 2013
On Thu, Feb 7, 2013 at 1:13 PM, <Valdis.Kletnieks at vt.edu> wrote:
> On Thu, 07 Feb 2013 16:19:33 +0800, horseriver said:
> > hi:)
> >
> > I am curious about how hd controller work .
> > When user am reaing/writing hd ,it was implemented by sending command
> > to hd controller's special port.Then ,how does the controller know
> > a new command has received?
> >
> > In this procedure , what work does the hd driver do ?
>
> You may wish to get a copy of 'Linux Device Drivers, 3rd Edition'
> and read it before posting lots of questions here.
>
> A free version is available online, and last I checked it was the very
> first hit if you google for 'Linux device drivers".
>
>
Be sure to read about scatter/gather list processing at the disk controller
level. I believe most hd controllers these days can accept an array of
pointers that tells it where to find (place) date for writes (reads). It
would be the drivers responsibility to build the scatter/gather meta
information to be compatible with what the controller specs call for.
There is a little info about that here:
http://www.makelinux.net/books/ulk3/understandlk-CHP-14-SECT-1
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130207/c436d5a1/attachment.html
More information about the Kernelnewbies
mailing list