1. 首页
  2. 数据库
  3. 其它
  4. Linux Kernel代码艺术?数组初始化

Linux Kernel代码艺术?数组初始化

上传者: 2021-01-17 05:46:18上传 PDF文件 58.03KB 热度 12次
前几天看内核中系统调用代码,在系统调用向量表初始化中,有下面这段代码写的让我有点摸不着头脑: const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = { /* * Smells like a compiler bug — it doesn't work * when the & below is removed. */ [0 ... __NR_syscall_max] = &sys_ni_syscall, #include }; 咱先不管上面代码的意思,先来回顾一下 C 语言中数组初始
下载地址
用户评论