Is there a way to have a ioctl() with new(customized) command

故事扮演 提交于 2019-12-12 05:04:47

问题


I am working on a testing tool for nvme-cli(written in c and can run on linux).

For SSD validation purpose, i was actually looking for a custom command(For e.g. I/O command, write and then read the same and finally compare if both the data are same)

In user space i need to invoke minimum of 2 ioclt() one with write command(nvme_cmd_write) and another with read command(nvme_cmd_read) and compare both the buffer contents.

Issue is actually when i wanted to send this command in parallel. At block level (using ioclt())we were not able to put this command in different I/O submission queues.

so can we have a custom command (nvme_cmd_write_compare) sent from ioclt() and have a new module at driver level for handling this new command.

Since I am new to this nvme/ioctl(), if there is any mistakes please correct me.

I wanted to know if we can implement this.

来源:https://stackoverflow.com/questions/47668183/is-there-a-way-to-have-a-ioctl-with-newcustomized-command

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!