Hacker News new | ask | show | jobs
by traxys 653 days ago
I read parts of the Linux kernel source code pretty often, and getting the definition of a function is often pretty involved:

- I don't always know the return code type, as the calling code assigned a field whose definition I don't know to find either

- I don't know if it's a C function or a preprocessor macro

This often results in me searching for the exact function name, and combing through the uses in the drivers. You then need to re-start all that recursively to understand the function you just read.

I could use clangd for that, but I don't have the ressources on my laptop to compile a kernel

3 comments

You might find this site useful: https://elixir.bootlin.com
Why not simply hold Ctrl and click on the name of the function?
> I don't have the resources on my laptop to compile a kernel
ctags?