Thanks Alan,
I now implemented the claim interface strategy and it seems to work
out fine. also that way /proc/bus/usb + /dev/bus/usb won't give me any
trouble (like two drivers for the same hardware etc.).
Thanks for all your help.
Regards, Andreas
On Tue, 18 Apr 2006, Andreas Jellinghaus wrote:
> hmm. ok, I moved to flock() and now several processes have the same file
> flock()#ed exclusively, i.e. that does not work either.
>
> next fcntl()?
>
> or are device files in any way special when it comes to flock(), fcntl() and
> friend? I only
hmm. ok, I moved to flock() and now several processes have the same file
flock()#ed exclusively, i.e. that does not work either.
next fcntl()?
or are device files in any way special when it comes to flock(), fcntl() and
friend? I only want to make sure that only one process is talking to some
usb
On Tue, 18 Apr 2006, Andreas Jellinghaus wrote:
> as alternative, I can use usb functions to claim the interface.
> would that also have the desired effect? it might be even better,
> as it would allow devices with several integrated components to be
> locked only on the endpoint I use, and leave
Am Dienstag, 18. April 2006 17:10 schrieb Alan Stern:
> > all of them open it with O_EXCL?
> >
> > does O_EXCL not work standalone? should I use flock or something like
> > that instead to prevent several processes accessing the same file?
> > Or are usb device file somehow special and those method
On Tue, 18 Apr 2006, Andreas Jellinghaus wrote:
> I tried once more, and this time with /dev/bus/usb only.
>
> How can there be five processes with the same file opened?
>
> [EMAIL PROTECTED]:~# lsof |grep /dev/bus/
> ifdhandle 26749 root3u CHR189,273
>
I tried once more, and this time with /dev/bus/usb only.
How can there be five processes with the same file opened?
[EMAIL PROTECTED]:~# lsof |grep /dev/bus/
ifdhandle 26749 root3u CHR189,273
51693 /dev/bus/usb/003/018
ifdhandle 26761 root3u
On Sun, 16 Apr 2006, Andreas Jellinghaus wrote:
> Andreas Jellinghaus wrote:
> > openct uses
> > open(device, O_EXCL | O_RDWR);
> >
> > so, I would assume that only one process can open a device
> > like this. unfortunatly this is not true: I have two processes
> > that have the same devi
Andreas Jellinghaus wrote:
> openct uses
> open(device, O_EXCL | O_RDWR);
>
> so, I would assume that only one process can open a device
> like this. unfortunatly this is not true: I have two processes
> that have the same device opened this way.
>
> note: I used /dev/bus/usb/*/* files, n