I am a beginner of kernel programming. I just need some inspiration. I know I can write some functions in the kernel source, rebuild and reboot the kernel. The codes might be some hardware driver controlling the hardware. But how can our user space program use those functions? I know through syscall the user space program can communicate with kernel space, and the loadable kernel module can also use the functions defined in kernel source code. But how can our user program achieve this?
PS:现在我正在学习qemu-kvm。 我知道qemu是用户空间方案,kvm是掩体。 我只想说明“qemu”方案如何使用kvm。
我知道这是一个非常基本的核心问题,但长期以来,它使我感到困惑。 一个人能否给我一个 h?