implicit declaration of function 'copy_from_user'

内核中使用copy_from_user()和copy_to_user()函数,编译出现错误:

    implicit declaration of function 'copy_from_user'

需要添加头文件:

    #include <linux/uaccess.h>

 

posted @ 2016-05-26 11:41  SuperTao1024  阅读(3121)  评论(0编辑  收藏  举报