Hi- can I write:
to copy n bytes from kernAddr[0..n-1] in kernel space into usrAddr[offset..offset+n-1] in user space?Code:
char __user *userAddr;
unsigned offset, n;
copy_to_user(userAddr + offset, kernAddr, n);
I don't really understand how the user/kernel memory division works, so apologies if this is a silly question.