On Thu, Feb 7, 2013 at 1:13 PM, <[email protected]> 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
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to