文件名称:xitongdiaoyong
介绍说明--下载内容均来自于网络,请自行研究使用
1:修改dev.c文件,定义一个全局变量int count=0 然后用它来统计包的个数。
2.修改sys.C文件,添加extern int count 然后定义自己的函数,asmlinkage int sys_mycall(void)
3.修改entry.S和unistd.h文件,为自己定义的函数增加系统调用号。
4.自己写个函数进行系统调用。-1: Modify dev.c file, define a global variable int count = 0 then use it to the number of statistical packages. (2) modify sys.C file, add extern int count and then define your own functions, asmlinkage int sys_mycall (void) 3. Entry.S and unistd.h files to modify for their own defined function to increase the system call number. 4 to write a function for system calls.
2.修改sys.C文件,添加extern int count 然后定义自己的函数,asmlinkage int sys_mycall(void)
3.修改entry.S和unistd.h文件,为自己定义的函数增加系统调用号。
4.自己写个函数进行系统调用。-1: Modify dev.c file, define a global variable int count = 0 then use it to the number of statistical packages. (2) modify sys.C file, add extern int count and then define your own functions, asmlinkage int sys_mycall (void) 3. Entry.S and unistd.h files to modify for their own defined function to increase the system call number. 4 to write a function for system calls.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
xitongdiaoyong
..............\dev.c
..............\entry.S
..............\sys.c
..............\test.c
..............\unistd.h
..............\结果图片..jpg
..............\说明.txt
..............\dev.c
..............\entry.S
..............\sys.c
..............\test.c
..............\unistd.h
..............\结果图片..jpg
..............\说明.txt