I tried to copy data from python process with loadable kernel module (LKM) with the copy_from_user
function it worked fine.
When I wrote it on c program but when I copied the address of the python variable it didn't work.
This my code for finding the address.
x="message"
print(hex(id(x))