__user tells, that the variable is outside kernel-space, in user space. You should use it always when You are doing any communication between kernel- and user-space, for example read / write functions on /dev/your_dev in Your module. I think it isn't required and I don't know if using __user takes any influence on Your program, but it is much more simple to read the code later, especially if You have two buffers, one in kernel-space and one in user-space
http://forum.kernelnewbies.or
http://forum.kernelnewbies.org/read.php?12,270
__user tells, that the variable is outside kernel-space, in user space. You should use it always when You are doing any communication between kernel- and user-space, for example read / write functions on /dev/your_dev in Your module. I think it isn't required and I don't know if using __user takes any influence on Your program, but it is much more simple to read the code later, especially if You have two buffers, one in kernel-space and one in user-space
감사합니다 이해가 됬습니다ㅜㅠ
쓰지 않아도 되지만 __user를 쓸경우
프로그램이 커널공간이 아니라 user space에서 실행되고 있다는 걸 알려주는 일종의 도구였군요
감사합니다ㅜㅠ
============================================
비가오면 사람들은 눈물흘리고
그빗물에 흘러내린 눈물감추고
__user 때문에 그러시는 건가요?
저도 정확하게
예 그렇습니다
그부분이 정확히 이해가 안갑니다 ;;
============================================
비가오면 사람들은 눈물흘리고
그빗물에 흘러내린 눈물감추고
__user 때문에 그러시는 건가요?
저도 정확하게
http://kldp.org/node/96789
http://kldp.org/node/96789
댓글 달기