Linux 内核 - 遍历缓冲区头

发布于 2024-08-29 19:15:54 字数 161 浏览 3 评论 0原文

在Linux内核中,有没有办法从模块内向下遍历到buffer_heads?

我可以看到如何获取 struct bio(task_struct 宏:current->bio)。但是我怎样才能到达缓冲区头呢? buffer_head 结构保存了一些我想在任何时候获得的有关物理块编号的信息。

In the Linux kernel, is there a way to traverse down to the buffer_heads from within a module?

I can see how to get to struct bio (task_struct macro: current->bio). But how can I get to the buffer heads? The buffer_head struct holds some information I'd like to obtain at any point regarding physical block numbers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

愿得七秒忆 2024-09-05 19:15:54

没关系。我看这个错了。

Nevermind. I was looking at this wrong.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文