如何在内核中放置微秒延迟? [英] How to place microsecond delay in kernel?

查看:57
本文介绍了如何在内核中放置微秒延迟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Linux 内核 中放置微秒延迟.哪些功能支持它,以及要为其添加什么头文件?

I want to place microsecond delay in Linux kernel. Which functions supports it and what header file to be added for it?

推荐答案

最好阅读Linux内核源代码中的 Documentation/timers/timers-howto.txt .

It's better for you to read Documentation/timers/timers-howto.txt in linux kernel source code.

简而言之,可以使用标头为 linux/delay.h

In brief, you can use msleep(unsigned long msecs) whose header is linux/delay.h

这篇关于如何在内核中放置微秒延迟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆