blog/posts/2012-09-05-a-little-something-on-linux-device-drivers.markdown
Sanchayan Maity 8719aa4672 Fix tags
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
2020-04-04 20:15:31 +05:30

1.5 KiB

author title tags
Sanchayan Maity A little something on Linux Device Drivers device-driver, 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