Could you tell me, please, how may I create a linked list of structures in kernel mode? If I use malloc(9) I get address in heap (0xff), but I can't get it from userland.
Code:
(gdb) p kshmptr->u.shm_pi
$1 = (struct shmid_pi *) 0xfffffe0019cd3800
(gdb) p kshmptr->u.shm_pi->shm_pid
Error accessing memory address 0xfffffe0019cd3800: Address is not correct.