4 ms·
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
by traxys 2y 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
- dvh 2y agoWhy not simply hold Ctrl and click on the name of the function?
- GeneralMayhem 2y ago> I don't have the resources on my laptop to compile a kernel
- gregjor 2y agoctags?
- trussy 2y agoYou might find this site useful: https://elixir.bootlin.com https://elixir.bootlin.com