Event on interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Event on interrupt

890 Views
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

Labels (3)
0 Kudos
Reply
2 Replies

767 Views
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 Kudos
Reply

767 Views
mathew_k_t
Contributor II

Hi,

Can I use netlink socket for sending message to userspace?

Regards

0 Kudos
Reply