在Linux中是否可以从任何用户空间程序注册中断处理程序? [英] Is it possible in linux to register a interrupt handler from any user-space program?

查看:192
本文介绍了在Linux中是否可以从任何用户空间程序注册中断处理程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Linux中断处理机制,只是怀疑是否允许从用户空间注册中断处理程序?

I am studying about Linux Interrupt handling mechanism, just got doubt whether registering an interrupt handler from user-space is allowed or not?

推荐答案

不,中断已在内核中注册,并且必须将驱动程序/模块加载到内核空间中才能接收该中断.它可以将处理传递给挂接到内核模块的用户空间守护程序,但必须将某些内容插入内核.

No, interrupts are registered in the kernel and a driver / module must be loaded into kernel space to receive the interrupt. It could pass handling onto a user space daemon that hooks into the kernel module, but the something must be inserted into the kernel.

这篇关于在Linux中是否可以从任何用户空间程序注册中断处理程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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