Re: How to tell whether a struct file is held by a process?

From: Alan Cox
Date: Fri May 22 2009 - 09:42:56 EST


> 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 ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/