开发者社区> 问答> 正文

Linux内核常用API中断与定时中 hrtimer 相关代码有什么?

已解决

Linux内核常用API中断与定时中 hrtimer 相关代码有什么?

展开
收起
去校区学技术 2022-04-02 19:30:50 694 0
1 条回答
写回答
取消 提交回答
  • 推荐回答

    hrtimer (回调函数在运行在中断上下文)

    void hrtimer_init(struct hrtimer *timer, clockid_t clock_id, enum hrtimer_mode mode)
    int hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum hrtimer_mode mode)
    static inline u64 hrtimer_forward_now(struct hrtimer *timer, ktime_t interval)
    int hrtimer_cancle(struct hrtimer *timer)
    
    2022-04-02 19:54:03
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Alibaba Cloud Linux 3 发布 立即下载
ECS系统指南之Linux系统诊断 立即下载
ECS运维指南 之 Linux系统诊断 立即下载