Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
compat.c File Reference
#include <linux/linkage.h>
#include <linux/compat.h>
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/syscalls.h>
#include <linux/unistd.h>
#include <linux/security.h>
#include <linux/timex.h>
#include <linux/export.h>
#include <linux/migrate.h>
#include <linux/posix-timers.h>
#include <linux/times.h>
#include <linux/ptrace.h>
#include <linux/gfp.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  compat_sysinfo
 

Functions

asmlinkage long compat_sys_gettimeofday (struct compat_timeval __user *tv, struct timezone __user *tz)
 
asmlinkage long compat_sys_settimeofday (struct compat_timeval __user *tv, struct timezone __user *tz)
 
int get_compat_timeval (struct timeval *tv, const struct compat_timeval __user *ctv)
 
 EXPORT_SYMBOL_GPL (get_compat_timeval)
 
int put_compat_timeval (const struct timeval *tv, struct compat_timeval __user *ctv)
 
 EXPORT_SYMBOL_GPL (put_compat_timeval)
 
int get_compat_timespec (struct timespec *ts, const struct compat_timespec __user *cts)
 
 EXPORT_SYMBOL_GPL (get_compat_timespec)
 
int put_compat_timespec (const struct timespec *ts, struct compat_timespec __user *cts)
 
 EXPORT_SYMBOL_GPL (put_compat_timespec)
 
int compat_get_timeval (struct timeval *tv, const void __user *utv)
 
 EXPORT_SYMBOL_GPL (compat_get_timeval)
 
int compat_put_timeval (const struct timeval *tv, void __user *utv)
 
 EXPORT_SYMBOL_GPL (compat_put_timeval)
 
int compat_get_timespec (struct timespec *ts, const void __user *uts)
 
 EXPORT_SYMBOL_GPL (compat_get_timespec)
 
int compat_put_timespec (const struct timespec *ts, void __user *uts)
 
 EXPORT_SYMBOL_GPL (compat_put_timespec)
 
asmlinkage long compat_sys_nanosleep (struct compat_timespec __user *rqtp, struct compat_timespec __user *rmtp)
 
asmlinkage long compat_sys_getitimer (int which, struct compat_itimerval __user *it)
 
asmlinkage long compat_sys_setitimer (int which, struct compat_itimerval __user *in, struct compat_itimerval __user *out)
 
asmlinkage long compat_sys_times (struct compat_tms __user *tbuf)
 
asmlinkage long compat_sys_setrlimit (unsigned int resource, struct compat_rlimit __user *rlim)
 
asmlinkage long compat_sys_getrlimit (unsigned int resource, struct compat_rlimit __user *rlim)
 
int put_compat_rusage (const struct rusage *r, struct compat_rusage __user *ru)
 
asmlinkage long compat_sys_getrusage (int who, struct compat_rusage __user *ru)
 
asmlinkage long compat_sys_wait4 (compat_pid_t pid, compat_uint_t __user *stat_addr, int options, struct compat_rusage __user *ru)
 
asmlinkage long compat_sys_waitid (int which, compat_pid_t pid, struct compat_siginfo __user *uinfo, int options, struct compat_rusage __user *uru)
 
asmlinkage long compat_sys_sched_setaffinity (compat_pid_t pid, unsigned int len, compat_ulong_t __user *user_mask_ptr)
 
asmlinkage long compat_sys_sched_getaffinity (compat_pid_t pid, unsigned int len, compat_ulong_t __user *user_mask_ptr)
 
int get_compat_itimerspec (struct itimerspec *dst, const struct compat_itimerspec __user *src)
 
int put_compat_itimerspec (struct compat_itimerspec __user *dst, const struct itimerspec *src)
 
long compat_sys_timer_create (clockid_t which_clock, struct compat_sigevent __user *timer_event_spec, timer_t __user *created_timer_id)
 
long compat_sys_timer_settime (timer_t timer_id, int flags, struct compat_itimerspec __user *new, struct compat_itimerspec __user *old)
 
long compat_sys_timer_gettime (timer_t timer_id, struct compat_itimerspec __user *setting)
 
long compat_sys_clock_settime (clockid_t which_clock, struct compat_timespec __user *tp)
 
long compat_sys_clock_gettime (clockid_t which_clock, struct compat_timespec __user *tp)
 
long compat_sys_clock_adjtime (clockid_t which_clock, struct compat_timex __user *utp)
 
long compat_sys_clock_getres (clockid_t which_clock, struct compat_timespec __user *tp)
 
long compat_sys_clock_nanosleep (clockid_t which_clock, int flags, struct compat_timespec __user *rqtp, struct compat_timespec __user *rmtp)
 
int get_compat_sigevent (struct sigevent *event, const struct compat_sigevent __user *u_event)
 
long compat_get_bitmap (unsigned long *mask, const compat_ulong_t __user *umask, unsigned long bitmap_size)
 
long compat_put_bitmap (compat_ulong_t __user *umask, unsigned long *mask, unsigned long bitmap_size)
 
void sigset_from_compat (sigset_t *set, compat_sigset_t *compat)
 
 EXPORT_SYMBOL_GPL (sigset_from_compat)
 
asmlinkage long compat_sys_rt_sigtimedwait (compat_sigset_t __user *uthese, struct compat_siginfo __user *uinfo, struct compat_timespec __user *uts, compat_size_t sigsetsize)
 
asmlinkage long compat_sys_rt_tgsigqueueinfo (compat_pid_t tgid, compat_pid_t pid, int sig, struct compat_siginfo __user *uinfo)
 
asmlinkage long compat_sys_adjtimex (struct compat_timex __user *utp)
 
asmlinkage long compat_sys_sysinfo (struct compat_sysinfo __user *info)
 
void __usercompat_alloc_user_space (unsigned long len)
 
 EXPORT_SYMBOL_GPL (compat_alloc_user_space)
 

Function Documentation

void __user* compat_alloc_user_space ( unsigned long  len)

Definition at line 1222 of file compat.c.

long compat_get_bitmap ( unsigned long mask,
const compat_ulong_t __user umask,
unsigned long  bitmap_size 
)

Definition at line 885 of file compat.c.

int compat_get_timespec ( struct timespec ts,
const void __user uts 
)

Definition at line 198 of file compat.c.

int compat_get_timeval ( struct timeval tv,
const void __user utv 
)

Definition at line 180 of file compat.c.

long compat_put_bitmap ( compat_ulong_t __user umask,
unsigned long mask,
unsigned long  bitmap_size 
)

Definition at line 926 of file compat.c.

int compat_put_timespec ( const struct timespec ts,
void __user uts 
)

Definition at line 207 of file compat.c.

int compat_put_timeval ( const struct timeval tv,
void __user utv 
)

Definition at line 189 of file compat.c.

asmlinkage long compat_sys_adjtimex ( struct compat_timex __user utp)

Definition at line 1080 of file compat.c.

long compat_sys_clock_adjtime ( clockid_t  which_clock,
struct compat_timex __user utp 
)

Definition at line 769 of file compat.c.

long compat_sys_clock_getres ( clockid_t  which_clock,
struct compat_timespec __user tp 
)

Definition at line 792 of file compat.c.

long compat_sys_clock_gettime ( clockid_t  which_clock,
struct compat_timespec __user tp 
)

Definition at line 752 of file compat.c.

long compat_sys_clock_nanosleep ( clockid_t  which_clock,
int  flags,
struct compat_timespec __user rqtp,
struct compat_timespec __user rmtp 
)

Definition at line 833 of file compat.c.

long compat_sys_clock_settime ( clockid_t  which_clock,
struct compat_timespec __user tp 
)

Definition at line 735 of file compat.c.

asmlinkage long compat_sys_getitimer ( int  which,
struct compat_itimerval __user it 
)

Definition at line 293 of file compat.c.

asmlinkage long compat_sys_getrlimit ( unsigned int  resource,
struct compat_rlimit __user rlim 
)

Definition at line 473 of file compat.c.

asmlinkage long compat_sys_getrusage ( int  who,
struct compat_rusage __user ru 
)

Definition at line 519 of file compat.c.

asmlinkage long compat_sys_gettimeofday ( struct compat_timeval __user tv,
struct timezone __user tz 
)

Definition at line 113 of file compat.c.

asmlinkage long compat_sys_nanosleep ( struct compat_timespec __user rqtp,
struct compat_timespec __user rmtp 
)

Definition at line 239 of file compat.c.

asmlinkage long compat_sys_rt_sigtimedwait ( compat_sigset_t __user uthese,
struct compat_siginfo __user uinfo,
struct compat_timespec __user uts,
compat_size_t  sigsetsize 
)

Definition at line 979 of file compat.c.

asmlinkage long compat_sys_rt_tgsigqueueinfo ( compat_pid_t  tgid,
compat_pid_t  pid,
int  sig,
struct compat_siginfo __user uinfo 
)

Definition at line 1013 of file compat.c.

asmlinkage long compat_sys_sched_getaffinity ( compat_pid_t  pid,
unsigned int  len,
compat_ulong_t __user user_mask_ptr 
)

Definition at line 631 of file compat.c.

asmlinkage long compat_sys_sched_setaffinity ( compat_pid_t  pid,
unsigned int  len,
compat_ulong_t __user user_mask_ptr 
)

Definition at line 611 of file compat.c.

asmlinkage long compat_sys_setitimer ( int  which,
struct compat_itimerval __user in,
struct compat_itimerval __user out 
)

Definition at line 305 of file compat.c.

asmlinkage long compat_sys_setrlimit ( unsigned int  resource,
struct compat_rlimit __user rlim 
)

Definition at line 427 of file compat.c.

asmlinkage long compat_sys_settimeofday ( struct compat_timeval __user tv,
struct timezone __user tz 
)

Definition at line 130 of file compat.c.

asmlinkage long compat_sys_sysinfo ( struct compat_sysinfo __user info)

Definition at line 1171 of file compat.c.

long compat_sys_timer_create ( clockid_t  which_clock,
struct compat_sigevent __user timer_event_spec,
timer_t __user created_timer_id 
)

Definition at line 677 of file compat.c.

long compat_sys_timer_gettime ( timer_t  timer_id,
struct compat_itimerspec __user setting 
)

Definition at line 718 of file compat.c.

long compat_sys_timer_settime ( timer_t  timer_id,
int  flags,
struct compat_itimerspec __user new,
struct compat_itimerspec __user old 
)

Definition at line 695 of file compat.c.

asmlinkage long compat_sys_times ( struct compat_tms __user tbuf)

Definition at line 331 of file compat.c.

asmlinkage long compat_sys_wait4 ( compat_pid_t  pid,
compat_uint_t __user stat_addr,
int  options,
struct compat_rusage __user ru 
)

Definition at line 539 of file compat.c.

asmlinkage long compat_sys_waitid ( int  which,
compat_pid_t  pid,
struct compat_siginfo __user uinfo,
int  options,
struct compat_rusage __user uru 
)

Definition at line 567 of file compat.c.

EXPORT_SYMBOL_GPL ( get_compat_timeval  )
EXPORT_SYMBOL_GPL ( put_compat_timeval  )
EXPORT_SYMBOL_GPL ( get_compat_timespec  )
EXPORT_SYMBOL_GPL ( put_compat_timespec  )
EXPORT_SYMBOL_GPL ( compat_get_timeval  )
EXPORT_SYMBOL_GPL ( compat_put_timeval  )
EXPORT_SYMBOL_GPL ( compat_get_timespec  )
EXPORT_SYMBOL_GPL ( compat_put_timespec  )
EXPORT_SYMBOL_GPL ( sigset_from_compat  )
EXPORT_SYMBOL_GPL ( compat_alloc_user_space  )
int get_compat_itimerspec ( struct itimerspec dst,
const struct compat_itimerspec __user src 
)

Definition at line 659 of file compat.c.

int get_compat_sigevent ( struct sigevent event,
const struct compat_sigevent __user u_event 
)

Definition at line 871 of file compat.c.

int get_compat_timespec ( struct timespec ts,
const struct compat_timespec __user cts 
)

Definition at line 164 of file compat.c.

int get_compat_timeval ( struct timeval tv,
const struct compat_timeval __user ctv 
)

Definition at line 148 of file compat.c.

int put_compat_itimerspec ( struct compat_itimerspec __user dst,
const struct itimerspec src 
)

Definition at line 668 of file compat.c.

int put_compat_rusage ( const struct rusage r,
struct compat_rusage __user ru 
)

Definition at line 494 of file compat.c.

int put_compat_timespec ( const struct timespec ts,
struct compat_timespec __user cts 
)

Definition at line 172 of file compat.c.

int put_compat_timeval ( const struct timeval tv,
struct compat_timeval __user ctv 
)

Definition at line 156 of file compat.c.

void sigset_from_compat ( sigset_t set,
compat_sigset_t *  compat 
)

Definition at line 967 of file compat.c.