实验环境是Ubuntu18.04, linux 5.5.4
新添加的系统调用为:
asmlinkage long testProcess(int id,char __user *buf, size_t count)
其中id是指定的进程pid
在测试时使用 syscall(548, 1139, buffer, count) 进行测试,1139是id参数值,但是在系统调用中获取到的值为1086799704这样的一串数字,而且每次编译运行该测试程序时都输出不一样的一串数字,就是不输出1139,这是为什么?