1. Installing Cscope
sudo Install Cscope
2. Generate an index file
CD linux-3.8. - make xxx-config make Cscope
3. Configure VIM
ifHas ("Cscope") Set CSPRG=/usr/local/bin/Cscope Set Csto=0set CST Set Nocsverb"Add any database in current directory ifFilereadable ("Cscope.out") CS Add cscope.out"Else Add database pointed to by environmentElseIf $CSCOPE _db! =""CS Add $CSCOPE _db endif set csverb endif nmap<c-\>s:csFindS <c-r>=expand ("<cword>") <CR><CR>Nmap<c-\>g:csFindG <c-r>=expand ("<cword>") <CR><CR>Nmap<c-\>c:csFindC <c-r>=expand ("<cword>") <CR><CR>Nmap<c-\>t:csFindT <c-r>=expand ("<cword>") <CR><CR>Nmap<c-\>e:csFindE <c-r>=expand ("<cword>") <CR><CR>Nmap<c-\>f:csFindF <c-r>=expand ("<cfile>") <CR><CR>Nmap<c-\>i:csFindI ^<c-r>=expand ("<cfile>") <CR>$<CR>Nmap<c-\>d:csFindD <c-r>=expand ("<cword>") <CR><CR>
Vim + cscope Read Linux kernel