First page Back Continue Last page Overview Graphics
Exchanging data with user-space (1)
Kernel code isn't allowed to directly access user-space memory, using memcpy or direct pointer dereferencing
- Doing so does not work on some architectures
- If the address passed by the application was invalid, the application would segfault
To keep the kernel code portable and have proper error handling, your driver must use special kernel functions to exchange data with user-space