Date: Wed, 7 Aug 2002 00:15:24 -0700 (PDT) From: Hiten Pandya <hitmaster2k@yahoo.com> To: Ed Yu <edlyu@yahoo.com>, freebsd-hackers@freebsd.org Subject: Re: mutex in kernel modules? Message-ID: <20020807071524.15758.qmail@web21110.mail.yahoo.com> In-Reply-To: <20020806182343.89911.qmail@web20702.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- Ed Yu <edlyu@yahoo.com> wrote: > Hi, what mutex is available when writing kernel > modules? I want something like declaring of > "semaphore" and be able to lock and unlock it. I found > simplelock in <sys/lock.h>. I saw some modules using > struct mtx but I couldn't find it anywhere in the > header files. Man pages for both of them do not show > anything. I'm running FreeBSD-stable. Any help would > be greatly appreciated. Thank you. You cannot have mutexes in FreeBSD-STABLE. All the Premptive Multitasking and the related jazz is being done in FreeBSD-CURRENT. Please checkout: http://www.FreeBSD.org/smp -- Information about Locking and stuff http://www.lemis.com/~grog/SMPng/AOSS2/index.html -- FreeBSD SMP Article And you can checkout the man pages mutex(9), sx(9), mtx_pool(9), sema(9) etc. at: http://www.freebsd.org/cgi/man.cgi?query=&manpath=FreeBSD+5.0-current This is the web interface to the FreeBSD 5.0 Manual Pages. Hope this helps. -- Hiten __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020807071524.15758.qmail>