Re: copy_to/from_use query?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux