Accessing Linux kernel structure

75 Views Asked by At

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?

0

There are 0 best solutions below