I think the thread originator is asking about how the application knows which device file to read or write.<br>This is done by h/w management system udev. udev creates/manages device nodes in /dev/ dir and notifes applications based on the udev rules written (via HAL events or DBUS signals).<br>
<br>Thanks,<br>Paraneetharan C<br><br><br><div class="gmail_quote">On 5 July 2011 12:21, Philipp Ittershagen <span dir="ltr"><<a href="mailto:lists@gate-nine.de">lists@gate-nine.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 07/05/2011 06:15 AM, Bond wrote:<br>
> But he was expecting some thing more complex.<br>
<br>
</div>Well, to be honest, I also was expecting something more complex when I<br>
first looked at kernel programming and creating character devices ;) But<br>
the file_operations interface is really straight-forward and simple,<br>
very nice.<br>
<font color="#888888"><br>
<br>
Philipp<br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Paraneetharan C<br>