This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lkmp:lkmp_first_kernel_patch [2019/04/08 19:30] 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> | ||
Line 390: | Line 390: | ||
</code> | </code> | ||
- | Search for your pr_info in the log file by typing "**/I changed**". You should be able to find this message within the driver output during boot. If you don't see this message, ask for help on the #kernelnewbies IRC channel on irc.oftc.net, or on the linux-kernel-mentees mailing list | + | Search for your pr_info in the log file by typing "**/I changed**". You should be able to find this message within the driver output during boot. If you don't see this message, ask for help on the #linux-kernel-mentees IRC Channel on [[https://freenode.net/|freenode]] irc.freenode.net, or on the linux-kernel-mentees mailing list |
==== Revert your changes ==== | ==== Revert your changes ==== |