blog/posts/2012-09-05-a-little-something-on-linux-device-drivers.markdown
Sanchayan Maity 01d0d50249 Initial commit for blog migration to Hakyll
Never gave a damn about jekyll/ruby except to use it for github pages.
Now use Hakyll/Haskell and migrate from jekyll/ruby.
2017-02-14 02:00:46 +05:30

1.5 KiB

author title tags
Sanchayan Maity A little something on Linux Device Drivers device drivers, linux

I have been struggling for a while now, trying to learn device drivers and system programming in Linux. One of the many questions i had was, how does the CPU using the Linux kernel know, which devices are present and what are the drivers for them. The answer to this question is through "Platform Device and Platform Data". Though soon enough, you may find them obsolete as Linux very well might completely start using Device Trees. Below, are a few links from which you can learn about the Platform Device API and Device Tree.

http://lwn.net/Articles/448499/

http://lxr.free-electrons.com/source/Documentation/driver-model/

http://www.devicetree.org/Device_Tree_Usage

You will find extra information at

http://lxr.free-electrons.com/source/Documentation/

under various sub divisions. For example, check out

http://lxr.free-electrons.com/source/Documentation/i2c/writing-clients

and

http://lxr.free-electrons.com/source/Documentation/i2c/instantiating-devices