<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi Arun,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><span style="font-family:arial,sans-serif;font-size:13px">If it is just an event you want to send across to user space how about kernel input sub system. Your userspace can poll on the input device node. Once the event is received from kernel it can launch a script or do what you say you want to do.</span><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 11, 2014 at 6:49 PM, arun c <span dir="ltr">&lt;<a href="mailto:arun.edarath@gmail.com" target="_blank">arun.edarath@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I want to run a program when DP monitor is plugged in/out.</div><div>My linux kernel ( 3.14.0-00348-gbfcbf45) gets an interrupt when DP cable is removed or inserted.</div>
<div>From the graphics driver interrupt handler I can differentiate the two events.</div>
<div><br></div><div>I want to run a user space program when this removal/insertion happens. What are the possible</div><div>ways to achieve this?</div><div><br></div><div>when I google for this I am seeing examples related to udev(How to run a script when a usb device is inserted/removed); but in my case it is not device insertion/removal. There is no need for a device creation when the DP monitor is plugged in/out(There is no device node available for me).</div>

<div>Basically I want to send this removal/insertion event from my kernel interrupt handler to </div><div>user space program.</div><div><br></div><div>Regards,</div><div>Arun C </div></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks and Regards<br>Pramod<br>
</div>