小编eps*_*712的帖子

IRQ Handling from User Space Linux

I'm writting a driver for a synthesized device in an FPGA. The device has several IRQs and have requested them on my driver:

irq = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
rc = request_irq(irq, &Custom_driver_handler,IRQF_TRIGGER_RISING , DRIVER_NAME, base_addr);
Run Code Online (Sandbox Code Playgroud)

My problem is that i want that the irq_handler calls a function of an user space application. Is there any way to call my user space application from the irq_handler of the driver on kernel space??

I know i could save a flag from the …

linux driver handler irq userspace

6
推荐指数
1
解决办法
9167
查看次数

标签 统计

driver ×1

handler ×1

irq ×1

linux ×1

userspace ×1