c - IORING_ENTER_SQ_WAKEUP - 对“io_uring_enter”的未定义引用
问题描述
我正在尝试使用 IORING_SETUP_SQPOLL 运行一些测试,但是当它设置并调用时,io_uring_cqe_get_data(cqe);
我得到“cqe failed: Bad file descriptor”。阅读io_uring.pdf中的内核端轮询,看来我可能不得不打电话:
/* fills in new sqe entries */
add_more_io();
/*
* need to call io_uring_enter() to make the kernel notice the new IO
* if polled and the thread is now sleeping.
*/
if ((*sqring→flags) & IORING_SQ_NEED_WAKEUP)
io_uring_enter(ring_fd, to_submit, to_wait, IORING_ENTER_SQ_WAKEUP);
但是当我尝试编译它时,gcc 找不到 io_uring_enter() (未定义对 `io_uring_enter' 的引用)
- 我正在使用 Ubuntu 18.04.5 LTS - 内核:5.4.0-62-generic。
- 代码可以在这里找到
有没有人对此选项/标志有一些经验?
解决方案
推荐阅读
- powerbi - 如何在 Power BI 中消除子列和/或将子列转换为列
- xml - Innertext 并不总是返回 xml 元素的内容
- c# - 在 ASP.net Framework 和 Core 2 之间使用身份验证 Cookie 进行单点登录
- sql - 如何更改查询中列的顺序?
- javascript - 将当前元素 + 其他参数传递给 .every 回调函数
- java - 地图获取方式
> 从 yaml 使用snakeyaml - javascript - 如何使用 javascript 更改 url 的多个部分?
- sql - oracle (12c) regexp_substr 拆分文件名和目录名
- angular - ng-multiselect-dropdown 向复选框标签元素添加“alt”标签
- c# - Application Insights QuickPulseTelemetryModule 生成大量计划任务。这可能是什么原因造成的?