Re: Race conditions in comedi config?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 03 July 2003 10:36 am, Calin A. Culianu wrote:
> What happens if, theoretically speaking, more than one kernel thread
> calls comedi_device_attach() for the same board -- say as a result of
> two processes doing a devconfig ioctl simultaneously?

When a process does an ioctl, it calls lock_kernel().  The big kernel lock 
doesn't get released except while the process is suspended or when it 
finishes the ioctl.  Just something for you to keep in mind while looking 
at the code.

- -- 
Frank

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/BGDA5vihyNWuA4URAiv7AJwJ2j8D8s0Kf0LEIjGRIAxLpcV25wCgt8pO
SLhn6FhSoNBP6ueRIqzx/ic=
=4mVd
-----END PGP SIGNATURE-----

Received on 2003-07-03Z15:58:40