I'm trying to copy_to_user kernel structure dm_dirty_log in custom syscall(educational task).
I learned some Linux kernel code and found the header where it declared, but I can't understand if it exists only in the stack or this structure is allocated somewhere in kernel space and I can access it from my syscall.
If somebody has any ideas about my problem? How should I do it?