问题标签 [lxr]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
638 浏览

c - 如何在网站 lxr.free-electrons.com 上找到结构的完整定义?

当我想在 linux 内核中查找结构的定义时,站点lxr.free-electrons.com非常有用。

然而,令人讨厌的是:

如果在许多其他头文件中声明了一个结构,那么找到的结果将是很多不完整的声明和一个完整的结构定义。很难区分定义和声明。

例如,搜索结果为struct task_struct

任务结构

定义为结构类型:

驱动程序/mmc/card/queue.h,第 7 行驱动程序/oprofile/cpu_buffer.h,第 21 行

驱动程序/网络/无线/cw1200/cw1200.h,第 34 行

包括/uapi/linux/capability.h,第 18 行

包括/asm-generic/syscall.h,第 22 行

……

……

找到完整的定义是非常可怕的struct task_struct

如何解决这个问题呢?

0 投票
2 回答
459 浏览

linux - linux 0.01 内核交叉引用

我正在寻找第一个 linux 内核 0.01 的 linux 交叉引用,

许多网站从 2.x 开始为现有内核提供 LXR(Linux 交叉参考),但不包括旧内核。