User Tools

Site Tools


lkmp:lkmp_first_kernel_patch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lkmp:lkmp_first_kernel_patch [2019/04/30 19:14]
ShuahKhanLF
lkmp:lkmp_first_kernel_patch [2019/08/08 22:22] (current)
ShuahKhanLF
Line 280: Line 280:
 Once you have the name of a driver, it's time to find out where the .c and .h files for that driver are in the Linux kernel repository. ​ You can do that by searching through the Makefiles to find out what C files are compiled into the driver binary. The best way to do that is with "**git grep**"​. Unlike normal grep, git grep only searches through checked-in files in the repository. Normal grep will also search the binary files, and even the .git directory, which isn't useful and wastes your time. Once you have the name of a driver, it's time to find out where the .c and .h files for that driver are in the Linux kernel repository. ​ You can do that by searching through the Makefiles to find out what C files are compiled into the driver binary. The best way to do that is with "**git grep**"​. Unlike normal grep, git grep only searches through checked-in files in the repository. Normal grep will also search the binary files, and even the .git directory, which isn't useful and wastes your time.
  
-For example, if you wanted to search for the files that are compiled into the xhci-hcd ​driver, you would run this command:+For example, if you wanted to search for the files that are compiled into the uvcvideo ​driver, you would run this command:
  
 <​code>​ <​code>​
lkmp/lkmp_first_kernel_patch.1556651649.txt.gz · Last modified: 2019/04/30 19:14 by ShuahKhanLF