<div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 7, 2012 at 11:41 AM, Sannu K <span dir="ltr">&lt;<a href="mailto:sannumail4foss@gmail.com" target="_blank">sannumail4foss@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class=""><div class="h5">On Fri, Dec 7, 2012 at 9:40 AM, sanchayan maity &lt;<a href="mailto:victorascroft@gmail.com">victorascroft@gmail.com</a>&gt; wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I wanted to use the usb-skeleton driver for transferring data to a pen<br>
&gt; drive. I am using Ubuntu 12.04 with kernel version 3.2.0. I remove the<br>
&gt; usb-storage driver with rmmod and then inserted the skeleton module. The<br>
&gt; module is inserted successfully. On inserting the drive, usb-storage module<br>
&gt; gets automatically loaded.<br>
&gt;<br>
&gt; To avoid this, i tried blacklisting the module by including a blacklist<br>
&gt; entry in blacklist.conf  and rebooting. This didn&#39;t work either and<br>
&gt; usb-storage gets automatically loaded again.<br>
&gt;<br>
&gt; Can someone point out how i can use the usb-skeleton driver and also test<br>
&gt; it.<br>
&gt;<br>
&gt; I also have Arch linux set up, but, i have not tried the above on it yet.<br>
&gt;<br>
&gt; Thanks &amp; Regards,<br>
&gt; Sanchayan.<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Kernelnewbies mailing list<br>
&gt; <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
&gt; <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
&gt;<br>
<br>
Try rmmoding usb-storage after it gets loaded.<br></blockquote><div><br><br><i>Try rmmoding usb-storage after it gets loaded</i>. &lt;&lt; I had tried that. <br><br>Sorry, i didn&#39;t explain my problem clearly i guess with this sentence &quot; Can someone point out how i can use the usb-skeleton driver and also test
it.&quot; But, i understand it i think, what i was doing wrong. <br><br>I read the USB Drivers chapter once more and i had missed this point somehow. <br><br>&quot;If the USB driver is not associated with another type of subsystem that handles the user interaction with the device (such as input, tty, video, etc.), the driver can use the USB major number in order to use the traditional char driver interface with userspace. To do this, the USB driver must call the usb_register_dev function in the probe function when it wants to register a device with the USB core.&quot; <br>
<br>I have only worked with char drivers till now and after registering my driver, i was expecting it to show up in /proc/devices and then do a mknod. I missed the point of using the USB major number already available and then do a mknod with the major (already available)/ minor combination(available from dev_info) and then access it using the /dev interface from a user space application. <br>
<br>I haven&#39;t tried this yet as i am at work, but, gonna do this first thing after i reach home. Hopefully, it will work. <br><br>Thanks &amp; Regards,<br>Sanchayan. <br></div></div><br><br></div>