<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:10pt"><div><span><div><span>Hi All,</span></div><div><span></span> </div><div><span><span id="misspell-0" class="mark">Netlink</span> sockets provide simple solution to the problem.</span></div><div><span></span> </div><div><span>please refer this link.</span></div><div><span></span> </div><div><span><a href="http://people.ee.ethz.ch/~arkeller/linux/multi/kernel_user_space_howto-3.html">http://people.ee.ethz.ch/~arkeller/linux/multi/kernel_user_space_howto-3.html</a></span></div><div><span></span> </div></div><div><span>section 3.3 <span id="misspell-1" class="mark">Netlink</span> Sockets explain the <span id="misspell-2" class="mark">IPC</span> <span id="misspell-3"><span>mechanism</span></span> to talk to <span id="misspell-4" class="mark">usersapce</span> from the kernel.</span></div><div><span></span> </div><div><div><span>-Anand
Moon</span></span></div></div><div style="font-family: lucida console, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <div style="margin: 5px 0px; padding: 0px; border: 1px solid rgb(204, 204, 204); height: 0px; line-height: 0; font-size: 0px;" class="hr" contentEditable="false" readonly="true"></div> <b><span style="font-weight: bold;">From:</span></b> "jeshkumar555@gmail.com" <jeshkumar555@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Mulyadi Santosa <mulyadi.santosa@gmail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> kernelnewbies <Kernelnewbies@kernelnewbies.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, November 3, 2012 9:56 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Callback function from kernel module<br> </font> </div> <br>
<div id="yiv1782359491">hello Mulyadi,<br><br>As per my design, a <span id="misspell-10" class="mark">userspace</span> application shall call some function in the application for each interrupt occur in particular kernel module. So what mechanism shall go ? As <span id="misspell-11" class="mark">subramaniam</span> referred <span id="misspell-12" class="mark">kobject</span>, I am going on with it. ( understanding <span id="misspell-13" class="mark">kobject</span>)<br><br>Sent from my <span id="misspell-14" class="mark">HTC</span><br>Excuse for typo.<br><br>----- Reply message -----<br>From: "Mulyadi Santosa" <mulyadi.santosa@gmail.com><br>Date: Sat, Nov 3, 2012 9:42 pm<br>Subject: Callback function from kernel module<br>To: "<span id="misspell-17" class="mark">Jeshwanth</span> <span id="misspell-18" class="mark">Kumar</span> N K <span id="misspell-19" class="mark">Jeshu</span>" <jeshkumar555@gmail.com><br>Cc: "kernelnewbies"
<Kernelnewbies@kernelnewbies.org><br><br><br>Hi..<br><br>On Sat, Nov 3, 2012 at 8:44 PM, <span id="misspell-21" class="mark">Jeshwanth</span> <span id="misspell-22" class="mark">Kumar</span> N K <span id="misspell-23" class="mark">Jeshu</span><br><jeshkumar555@gmail.com> wrote:<br>> Hello All,<br>><br>> Can I call <span id="misspell-24" class="mark">userspace</span> function from kernel module ? Actually I need to<br>> process some data in user space for every event <span id="misspell-25" class="mark">occured</span> in kernel module.<br><br>user space function or user space program? for later, <span id="misspell-26" class="mark">IIRC</span> you can use<br><span id="misspell-27" class="mark">usermode</span>_helper...<br><br><br>-- <br>regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com/" target="_blank">the-hydra.blogspot.com</a><br>training: <a
href="http://mulyaditraining.blogspot.com/" target="_blank">mulyaditraining.blogspot.com</a><br><br><br></div><br>_______________________________________________<br>Kernelnewbies mailing list<br><a href="mailto:Kernelnewbies@kernelnewbies.org" ymailto="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><br> </div> </div> </div></body></html>