Messages in this thread | | | Date | Fri, 22 May 2009 14:43:43 +0100 | From | Alan Cox <> | Subject | Re: How to tell whether a struct file is held by a process? |
| |
> Suppose a device needs a reset as part of its init sequence (a whole lot > of them do, this is not purely hypothetical). Then a different process may > get to operate the device before and after the reset and hilarity may result > from that.
Thats surely up to you to get your lock file usage right. The kernel isn't there to play mother to crap programming.
> So, if there is a clean / acceptable way to handle the reset issue in userspace
Firstly can you explain *why* you think there is a problem ?
| |