You don't read interrupts in user space. Rather trigger something for user space when the interrupt arrives. So, for example, you may implement the poll system call which unblock on interrupt.
RegardsPassion: http://sysplay.in (Playing with Systems)
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAvht3V%2BtUvZsGm5MWMWVuCtAea-so_LP66HaOFeupybGnT0qw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/5b8fa60b-d111-2da9-e2a4-4812eef95554%40sarika-pugs.com.
Did you implement the poll system call in your driver?
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAvht3VoQn-2L_XOBzsbqm%3D6NqBEdFHA8m1m5op92aFoo1vu0g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/a121d474-80cd-d3e1-75f2-913414f061de%40sarika-pugs.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAvht3XRFkFnA_emj8FPXkYxS4UfvggrkARDPuCE%3DDVksUfo_Q%40mail.gmail.com.
poll_wait need to be called in the poll function only.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAvht3XRFkFnA_emj8FPXkYxS4UfvggrkARDPuCE%3DDVksUfo_Q%40mail.gmail.com.
poll_wait need to be called in the poll function only.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAvht3XRFkFnA_emj8FPXkYxS4UfvggrkARDPuCE%3DDVksUfo_Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/6d5e3cea-455f-3aef-930e-6d31b30576bc%40sarika-pugs.com.
Look into the code suggested by Krishna.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CAAvht3Vj7JSR%2B0QhnSy5bvECdxPoSmMCc8TLvC08bXKpDbMa9A%40mail.gmail.com.