learning
learning

Reputation: 43

when i edit the linux kernel code, what is the process of building and running the modified kernel?

I am learning how to write some code in the Linux kernel, and i would like to start practicing writing code in the kernel, but my question is what is the process of building and running the modified kernel? should I just each time, when I modify the kernel code, to recompile the kernel, reinstall it on my machine and then reboot my machine, or is there another way of doing this process in the real life, in the industry?

Upvotes: 1

Views: 235

Answers (1)

Well, easiest is if you can have the code you're modifying in a module, then you can remove the old version and load in the new version.

Alternatively, you could run the kernel in a virtual machine inside your host computer! That way you need to only reboot the virtual machine, not the entire physical computer.

Upvotes: 1

Related Questions