home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Lib32 / lxkmod.c < prev    next >
C/C++ Source or Header  |  2002-04-26  |  449b  |  25 lines

  1. /* $Id: lxkmod.c,v 1.2 2002/04/26 23:09:23 smilcke Exp $ */
  2.  
  3. /*
  4.  * kmod.c
  5.  * Autor:               Stefan Milcke
  6.  * Erstellt am:         31.10.2001
  7.  * Letzte Aenderung am: 12.11.2001
  8.  *
  9. */
  10.  
  11. #include <linux/wait.h>
  12. #include <asm/semaphor.h>
  13.  
  14. //static DECLARE_MUTEX(dev_probe_sem);
  15. static struct semaphore dev_probe_sem;
  16.  
  17. void dev_probe_lock(void)
  18. {
  19.  down(&dev_probe_sem);
  20. }
  21.  
  22. void dev_probe_unlock(void)
  23. {
  24.  up(&dev_probe_sem);
  25. }