From: Greg KH <[EMAIL PROTECTED]>
Reply-To: linux-usb-devel@lists.sourceforge.net
To: [EMAIL PROTECTED]
CC: linux-usb-devel@lists.sourceforge.net, [EMAIL PROTECTED]
Subject: Re: [linux-usb-devel] Query over mouting mass-storage driver
Date: Thu, 27 Apr 2006 22:38:49 -0700

On Fri, Apr 28, 2006 at 05:01:32AM +0000, [EMAIL PROTECTED] wrote:
> Hi,
>
> I have question.
>
> I have written a Skelton driver for Mass-Storage device (init,exit, probe, > disconnect,release,and open). When I tried to test (by open ("/dev/sda5", > read-only)) my Skelton driver by writing an application, i failed to open.
> I noticed that I have to mount the memory stick after doing insmod
> my_driver.ko.

Yes, that's the way that block devices work.

> my questions are...

Our first one is, why write another mass-storage driver when the kernel
already has 2?

Greg I agree with you. There is no need to write a driver. But What I am trying to do is, I am learning, I am trying to learn how to write a USB driver in linux on my own, with the help of this group. So I just wrote a skelton driver and want to test.


> 1) Do I have to mount the stick like "mount -t vfat /dev/sda5 /mnt/storage"
> before doing open in the application?

You don't ever call "open" on a block device when dealing with a file
system.

Without calling "open( "/dev/usb/<node>", R_ONLY )" how can I access node for read/write in future when I will write them in my driver?

If you don't mind could be more clear?


> 2) If I mount with the above mentioned command, from my test application
> can I able to access the device with the open call?

No.

What should I do inorder to acess the device from my application by using by skelton driver?


> 3) Otherwise do I have to write any piece of code in the driver itself for
> mounting?

You just have to use the standard block driver or scsi interface.  You
are doing that, right?

:(......do you mean to say that the scsi commands like Inquiry, Test_unit_ready, Request_sense?


good luck,

help me....

Thank you,
Jeeva

greg k-h


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

_________________________________________________________________
NRIs: Still paying for money transfers? Now send Money2India for FREE! http://ads.mediaturf.net/event.ng/Type=click&FlightID=20273&AdID=65990&TargetID=11172&Targets=11172&Values=202,414,1093,1264,3122&Redirect=http:%2F%2Fwww.icicinri.net%2Fmoney2india%2F%3Fm2i%3DBAC-MSN%26att%3DMSNTLM2I70CHAR%26rfr%3DMSNTLM2I70CHAR



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to