当我创建模块时,它会发出此警告,然后构建模块。但是没有实现我的系统调用" mycall"什么是构建模块的使用
root@akshit-Vostro-1550:~/Desktop/Device_Drivers/newsource/linux-2.6.32# make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
<stdin>:1523:2: warning: #warning syscall mycall not implemented [-Wcpp]
答案 0 :(得分:1)
我通过添加此行解决了
__ SYSCALL(__ NR_mycall,sys_mycall)
到arch / x86 / include / asm / unistd_64.h