Event on interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Event on interrupt

591 次查看
mathew_k_t
Contributor II

Hi,

I'm using iMX6ULL Evaluation kit. I have a gpio interrupt. Whenever an interrupt is occured, I would like send a message to userspace application from ISR in kernel driver. 

How to implement this?

Can you share some samples?

Regards

标签 (3)
0 项奖励
2 回复数

468 次查看
igorpadykov
NXP Employee
NXP Employee

Hi mathew_k_t

one can look at interrupt event example provided in touch drivers, for example

i.MX6UL Touch Screen detection 

or elan_ts.c driver used with some nxp boards

elan_ts.c\touchscreen\input\drivers - linux-imx - i.MX Linux kernel 

imx7d-sdb.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励

468 次查看
mathew_k_t
Contributor II

Hi,

Can I use netlink socket for sending message to userspace?

Regards

0 项奖励