admin管理员组文章数量:1336563
I'm working on a block device driver kernel module. Most tutorials use the genhd.h
header file, but when I checked my kernel code (version Linux 5.19.8), I couldn't find that header file. How should I proceed? Where has the content of that header file been moved in the newer versions? Or how can I implement the block device driver kernel module without using that header file?
I'm working on a block device driver kernel module. Most tutorials use the genhd.h
header file, but when I checked my kernel code (version Linux 5.19.8), I couldn't find that header file. How should I proceed? Where has the content of that header file been moved in the newer versions? Or how can I implement the block device driver kernel module without using that header file?
1 Answer
Reset to default 0Apparently genhd.h
has been removed; see https://lore.kernel./all/[email protected]/t/
Commit message says:
This patchset removes the
<linux/genhd.h>
header, which has no clearly split responsibilities from<linux/blkdev.h>
and is included by the latter
From that I would infer that the workaround is to #include blkdev.h
instead. (Or drop the genhd.h
#include entirely if it was redundant.)
本文标签: Linux 5198 has removed genhdhStack Overflow
版权声明:本文标题:Linux 5.19.8 has removed genhd.h? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742382900a2464448.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论