On the s390 architecture virtual kernel and user address spaces are never present at the same time, so how does copy_to_user work?
On the s390 architecture virtual kernel and user address spaces are never present at
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
copy_to_userfor s390 is implemented here: linux/arch/s390/include/asm/uaceess.h.uaccessis the pointer to copy_[to/from]_user actual implementation. It is setted up here (grep uaccess): arch/s390/kernel/setup.c. There are 4 implementations ofuaccess, depening from mode:uaccess_mvcos_switch,uaccess_pt,uaccess_mvcosanduaccess_stdFor example uaccess_std is here: http://lxr.linux.no/#linux+v3.2.1/arch/s390/lib/uaccess_std.c
…
The
mvcp/mvcsmechanism is used:http://publib.boulder.ibm.com/infocenter/zos/v1r11/topic/com.ibm.zos.r11.ieaa500/iea2a57031.htm