I have a pointer to an array with symbols.
char *myArr = kmalloc(100, GFP_KERNEL); //put message in kernel
for(int i = 0; i < 100; ++i) {
myArr[i] = x30; //put symbols here
}
printk(KERN_INFO "The string is located at virtual address %p, physical address %lx\n", myArr, __pa(myArr));
I compiled this module with make and uploaded this module using the command:
sudo insmod ./my_module.ko
How can I read this string when this module is in kernel? Do I have to use some specific programs?