比如内核文档中的 filesystems/vfs.txt 文件中介绍struct file_operations结构时,有下面这几行:
unlocked_ioctl: called by the ioctl(2) system call.
compat_ioctl: called by the ioctl(2) system call when 32 bit system calls
are used on 64 bit kernels.
mmap: called by the mmap(2) system call
"ioctl(2) system call" 和 "mmap(2) system call" 就是指 ioctl 和 mmap 这两个系统调用吧,后面加个 (2) 有什么含义?
此外,还有这写网站,里面在描述系统调用时也都加上了小括号2,不知道什么意思
http://bama.ua.edu/cgi-bin/man-cgi?fork+2