Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在浏览新的内核代码,看起来结构cmd中的字段(在 linux/blkdev.h 中定义)不再存在。这是它在早期版本中的样子。request
cmd
request
我正在使用该字段将特定的请求结构(struct nvme_command更具体地说)发送到块设备。如何更新我的代码以使用最新版本的blkdev.h? nvme_command更具体地说,既然没有cmd字段,我如何将我的结构发送到块设备?
struct nvme_command
blkdev.h
nvme_command