for (i; i <= count; i++) {
to = get_user(from);
to++;
from++;
}
both pointer are unsiged char *. from represents the address in user
space, to in kernel space.
After the loop I dump the data I read for debuging with following:
for(i=0; i<count; ){
printk("%i: %X %X %X %X\n", i, to[i], to[i+1], to[i+2], to[i+3]);
i += 4;
}
The data I stored in kernel space are not the one I wanted to get from
userspace, like I can seen in var/messages.
Is there a limit of transfering data, or have I to use other functions?
TIA
Vasili
please CC to vgo@ratio.de
**********************************************************************
* Vasili Goutas RATIO Entwicklungen GmbH *
* P:+49-(0)40-369007-37 Admiralitätstr. 59 *
* F:+49-(0)40-369007-25 D-20459 Hamburg *
* Email: mailto:vgo@ratio.de *
**********************************************************************
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html