The life time of kernel code

Can someone describe the life time of kernel code?

Where does it initially reside?

Upon first call is a copy made to the device, or is there always a copy on the device?

Once on the device is it stored in some special device memory or other memory for further recall, or is it destroyed once the kernel has terminated?

Once upon a time there was a kernel…