Am Freitag, 1. Juli 2005 17:58 schrieben Sie:
> Thanks!
>
> Yes that is my question! What will be the parameter for syscall open(). How
> will i get path of the USB device dynamically ?
If you absolutely insist on doing this dynamically, you should run hald
and query it via D-BUS. This question i
t: Friday, July 01, 2005 6:57 PM
Subject: Re: [linux-usb-devel] opening a device
> Am Freitag, 1. Juli 2005 14:37 schrieb oujin.rera:
> > Thanks again!
> >
> > But when will "open method" of the driver be called !! Am I missing
> > something :-(
>
>
On Fri, 1 Jul 2005, Oliver Neukum wrote:
> Am Freitag, 1. Juli 2005 14:37 schrieb oujin.rera:
> > Thanks again!
> >
> > But when will "open method" of the driver be called !! Am I missing
> > something :-(
>
> It is called when the syscall open() is called from user space.
Oliver, you're missin
Am Freitag, 1. Juli 2005 14:37 schrieb oujin.rera:
> Thanks again!
>
> But when will "open method" of the driver be called !! Am I missing
> something :-(
It is called when the syscall open() is called from user space.
Regards
Oliver
Thanks again!
But when will "open method" of the driver be called !! Am I missing
something :-(
TIA
OuJin
- Original Message -
From: "Oliver Neukum" <[EMAIL PROTECTED]>
To: "oujin.rera" <[EMAIL PROTECTED]>
Cc:
Sent: Friday, July 01, 2005 5:36 P
Am Freitag, 1. Juli 2005 11:56 schrieb oujin.rera:
> In the above code "open" requires a file name. How do i find the name of the
> USB device along with the path ?
Normally you don't. You claim a range of minor numers in your driver
descriptor and use the corresponding device nodes.
HTH
A
OuJin
- Original Message -
From: "Oliver Neukum" <[EMAIL PROTECTED]>
To:
Cc: "oujin.rera" <[EMAIL PROTECTED]>
Sent: Friday, July 01, 2005 1:57 PM
Subject: Re: [linux-usb-devel] opening a device
Am Freitag, 1. Juli 2005 07:42 schrieb oujin.rera:
> Hi
&g
Am Freitag, 1. Juli 2005 07:42 schrieb oujin.rera:
> Hi
>
> I have a very basic question.
>
> I have written a Kernel driver for an USB device. Now I want to write an
> user space application to open the device and get the handle. What will the
> parameter(Path) to the "open" function in the use