static int cfs_access_process_vm(struct task_struct *tsk, unsigned long addr,
void *buf, int len, int write)
{
-#ifdef HAVE_ACCESS_PROCESS_VM
- return access_process_vm(tsk, addr, buf, len, write);
-#else
/* Just copied from kernel for the kernels which doesn't
* have access_process_vm() exported */
struct mm_struct *mm;
mmput(mm);
return buf - old_buf;
-#endif /* HAVE_ACCESS_PROCESS_VM */
}
/* Read the environment variable of current process specified by @key. */