static inline unsigned char get_user_byte(const char * addr); static inline unsigned char get_fs_byte(const char *addr);
static inline unsigned short get_user_word(const short *addr); static inline unsigned short get_fs_word(const short *addr);
static inline unsigned long get_user_long(const int *addr); static inline unsigned long get_fs_long(const int *addr);
static inline void put_user_byte(char val,char *addr); static inline void put_fs_byte(char val,char *addr);
static inline void put_user_word(short val,short * addr); static inline void put_fs_word(short val,short * addr)
static inline void put_user_long(unsigned long val,int * addr); static inline void put_fs_long(unsigned long val,int * addr);
static inline void __generic_memcpy_tofs(void * dest, const void * src, unsigned long n);
static inline void __constant_memcpy_tofs(void * dest, const void * src, unsigned long n);
static inline void __generic_memcpy_fromfs(void * dest, const void * src, unsigned long n);
static inline void __constant_memcpy_fromfs(void * dest, const void * src, unsigned long n);
static inline void memcpy_fromfs(void * dest, const void * src, unsigned long n);
static inline void memcpy_tofs(void * dest,const void * src, unsigned long n);
get_{user,fs}_{byte,word,long}()
returns one byte, word or long, from addr in user space to kernel space.
put_{user,fs}_{byte,word,long}()
copies val from kernel space to addr in user space.
__generic_memcpy_tofs()
This function is is not available on all architectures.
__constant_memcpy_tofs()
This function is used from memcpy_tofs when n is a constant which can be deterimined at compile time. This function is not available on all architectures.
__generic_memcpy_fromfs()
This function is not available on all architectures.
__constant_memcpy_fromfs()
This function is used from memcpy_tofs when n is a constant which can be deterimined at compile time. This function is not available on all architectures.
memcpy_fromfs()
On i386 it is determined at compile time if n is a constant with __builtin_constant_p(n) from gcc. If n is a constant then __constant_memcpy_fromfs() is used, else __generic_memcpy_fromfs() is used.
memcpy_tofs()
On i386 it is determined at compile time if n is a constant with __builtin_constant_p(n) from gcc. If n is a constant then __constant_memcpy_tofs() is used, else __generic_memcpy_tofs() is used.