Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

示例程序-提交队列轮询.c 执行问题 #2

Open
kanshanlei opened this issue Mar 17, 2023 · 0 comments
Open

示例程序-提交队列轮询.c 执行问题 #2

kanshanlei opened this issue Mar 17, 2023 · 0 comments

Comments

@kanshanlei
Copy link

运行uring的示例程序-提交队列轮询.c 有如下问题:
首先,编译的时候120行会报warning,这个return 0就可以了
test_ioring.cpp:120:1: warning: control reaches end of non-void function [-Wreturn-type]
120 | }

然后,程序运行起来,会提示错误。我的环境是linux 5.4.0
$ sudo ./uring
Kernel thread io_uring-sq is not running.
Error in async operation: Invalid argument
Result of the operation: -22
Error in async operation: Invalid argument
Result of the operation: -22
1363500 ? 00:00:00 io_uring-sq
Kernel thread io_uring-sq found running...
Error in async operation: Invalid argument
Result of the operation: -22
Error in async operation: Invalid argument
Result of the operation: -22
Contents read from file:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant