According to Linux design on x86 and ppc, the 4g virtual address space is divided by 3: 1. User virtual address up to 3g.
Now, if the user application executes ioctl, passing the pointer to the buffer, the kernel module can directly execute memcpy, I tried and worked. => Why do we need the user copy_to / copy_from.
Note. If the page is exchanged, then the error handler in the kernel file will return, and it is invisible to the kernel module.
need yr ideas ... comments
source
share