小编joa*_*ira的帖子

没有类型声明的linux内核代码不是注释,这是什么意思?

我正在阅读 Linux 的源代码,并且遇到了以下部分:

/*
 * This begins the randomizable portion of task_struct. Only
 * scheduling-critical items should be added above here.
 */
randomized_struct_fields_start

void                *stack;
refcount_t          usage;
/* Per task flags (PF_*), defined further below: */
unsigned int            flags;
unsigned int            ptrace;
Run Code Online (Sandbox Code Playgroud)

我对“randomized_struct_fields_start”感到困惑,它只是一些没有“;”的松散文本,没有数据类型声明,“//”或“/**/”...有人知道这是什么吗?我相信我的问题是关于c语言的,而不是linux,如果我错了,请告诉我,我会在其他地方问这个问题。

c linux linux-kernel

2
推荐指数
1
解决办法
126
查看次数

标签 统计

c ×1

linux ×1

linux-kernel ×1