On Mon, Oct 11, 2004 at 10:08:16 -0700, Om wrote: > > > > > > > > > > No, you can't. The user-space memory is not directly addressable from > > > > > kernel. > then how does copy_from_user and copy_to_user work? (I don't know enough > assembly to understand the code in uaccess.h) On architectures that have segmentation (like i386 does), user-land memory is usualy accessed through different segment register than the default one for data access. Since C compiler can't generate such instructions that use non-default segment registers, they have to be written by hand. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb@xxxxxx>
Attachment:
signature.asc
Description: Digital signature