The HyperNews Linux KHG Discussion Pages

## memcpy_*fs(): which way is "fs"?

  Forum: Supporting Functions
  Keywords: USER KERNEL SPACE MEMORY COPY
  Date: Thu, 09 Jan 1997 05:00:55 GMT
  From: Reinhold J. Gerharz <rgerharz@erols.com>

memcpy_*fs() inline void memcpy_tofs(void * to, const void * from, unsigned long n) inline void memcpy_fromfs(void * to, const void * from, unsigned long n) It is not clear which way the copy occurs. Does "from" mean user space, or kernel space. Contrarily, does "to" mean kernel space or user space? Assuming the "tofs" and "fromfs" refer to the Frame Segment register, can one assume it always points to user space? How does this carry over to other architectures? Do they have Frame Segment registers?

Messages

1. memcpy_tofs() and memcpy_fromfs() by David Hinds