On Wed, 16 Oct 2019 13:54:08 +0900, Irfan Ullah said: > developed kernel space, and user space programs. Kernel and user space > programs working perfectly when I load and run these modules from the > terminal using “sudo insmod kernelmodule.ko”, and “./userspaceApp” > respectively. But, when I try to use kernel program (directly as a header > file #include "kernelmodule.h") with the kernel original file that is > “vmx.c” then it returns “NULL” while creating socket (nl_sk = NULL in nl_sk You're going to have to explain in more detail what you're doing, and possibly share your code. "when I try to use kernel program directly" doesn't make sense....