On Thu, Feb 7, 2013 at 1:13 PM, <Valdis.Kletnieks@xxxxxx> wrote:
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
On Thu, 07 Feb 2013 16:19:33 +0800, horseriver said:You may wish to get a copy of 'Linux Device Drivers, 3rd Edition'
> 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 ?
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 Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies