Follow these steps to create a Linux kernel code project using source insight:
(1) Open Source insight and click project to bring up the drop-down menu.
(2) Click the new project button. The new project dialog box is displayed. Enter the project name and storage path, and click OK.
(3) The Add/delete file dialog box is displayed. In the kernel source code path, select all 2.6.25 kernel code and click Close.
(4) The add to project dialog box is displayed. Select the Add sub-directory recursively and click OK.
(5) Synchronize files. Click project to bring up the drop-down menu.
(6) Click the synchronize file option. This process takes 20-30 minutes.
After the project is created, ensure the association and synchronization between files. This process takes about 20 minutes.
(7) complete project establishment and browse the code. Right-click the name of the function to be searched, and select jump to definition from the drop-down menu to track the function.
Gcc-m a. C to obtain all the header files on which a. c depends.
After coding the code in sourceinsight, it must be synchronized with the original project file and manually performed.
Some commands for code search in sourceinsight.