[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ac3eb2510905231547y6da1b3a6m6ef8921c8f56dc00@mail.gmail.com>
Date: Sun, 24 May 2009 00:47:51 +0200
From: Kay Sievers <kay.sievers@...y.org>
To: Alan Stern <stern@...land.harvard.edu>
Cc: Alan Cox <alan@...rguk.ukuu.org.uk>,
Kyle Moffett <kyle@...fetthome.net>,
Pantelis Koukousoulas <pktoss@...il.com>,
Al Viro <viro@...iv.linux.org.uk>,
Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: How to tell whether a struct file is held by a process?
On Sat, May 23, 2009 at 00:07, Alan Stern <stern@...land.harvard.edu> wrote:
>> Can't we just add ioctls to the hub device
>> nodes to implement the locking?
>
> Yes, that would work. Closing the hub device file would release all
> the locked ports.
>
> It wouldn't leave any lock files for user programs. They would have to
> arrange the locking among themselves somehow. Would that be okay?
I would expect that userspace drivers competing about raw USB devices
wouldn't be that common. And I guess, most of these problems can
probably be solved by simple file permissions/ACLs applied to the USB
device nodes, in the same way the access to the hub device node would
be granted to lock-out the kernel drivers.
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists