Re: hd controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, Feb 7, 2013 at 1:13 PM, <Valdis.Kletnieks@xxxxxx> 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
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux