The USB HID device which works along with my application needs a third party driver(libhid). So I have to detach the device from the kernel before I starting using my own drivers. So I need superuser permission for that to detach the USB device from the kernel. I call hid_force_open() (this is a libhid() call which detaches the USB device from the kernel and then start using its own driver)<br>
<br>Hope this makes it clear as to what I am trying to do. :)<br><br>Thanks<br>Shivaprasad<br><br><div class="gmail_quote">On Tue, Jun 24, 2008 at 9:29 PM, Deepak Saxena <<a href="mailto:dsaxena@laptop.org">dsaxena@laptop.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Jun 24 2008, at 17:35, shivaprasad javali was caught saying:<br>
<div><div></div><div class="Wj3C7c">> Hi,<br>
><br>
> I have USB devices (not storage devices, just some usb devices), which<br>
> I can use along with my application on the olpc. The driver for these USB<br>
> devices are third paty drivers so I have to detach the kernel usb driver so<br>
> that I can use my own driver for that USB device. For this I need to have<br>
> super user privileges while running my application.<br>
><br>
> I am new to programming on Linux. Could anybody point me as to how I<br>
> can give superuser privileges to my driver code.<br>
<br>
</div></div>See <a href="http://wiki.laptop.org/go/Su" target="_blank">http://wiki.laptop.org/go/Su</a><br>
<br>
I am not completely sure I grok what you need. Are you trying to load<br>
a driver via insmod or run some installer for the driver? Note that<br>
until two days ago, the USB driver was built into to the kernel, so<br>
you can't unload it. What specific device and driver is this?<br>
<br>
~Deepak<br>
<font color="#888888"><br>
--<br>
Deepak Saxena <<a href="mailto:dsaxena@laptop.org">dsaxena@laptop.org</a>><br>
</font></blockquote></div><br>