用户空间中的ktime_get()等效项 [英] ktime_get() equivalent in user space

查看:358
本文介绍了用户空间中的ktime_get()等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将通过ktime_get()在内核空间花费的时间映射到用户空间中相同单元的时间.

I want to map the time taken through ktime_get() at kernel space to something of the same unit from user space.

是否可以与ktime_get()进行比较的任何proc条目或任何其他源(在用户级别)?

Is there any proc entry or any other source(at user level) which can be compared with ktime_get()?

推荐答案

使用 clock_gettime (CLOCK_MONOTONIC).

这篇关于用户空间中的ktime_get()等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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