From owner-freebsd-hackers Mon Sep 18 20:55:23 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from web115.yahoomail.com (web115.yahoomail.com [205.180.60.88]) by hub.freebsd.org (Postfix) with SMTP id DC0FE37B422 for ; Mon, 18 Sep 2000 20:55:19 -0700 (PDT) Received: (qmail 24196 invoked by uid 60001); 19 Sep 2000 03:55:19 -0000 Message-ID: <20000919035519.24195.qmail@web115.yahoomail.com> Received: from [164.164.56.2] by web115.yahoomail.com; Mon, 18 Sep 2000 20:55:19 PDT Date: Mon, 18 Sep 2000 20:55:19 -0700 (PDT) From: Mohan Krishna P Subject: semaphores inside kernel??? To: freebsd-hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, i am implementing a pseudo-devicer, many instaces of this device may be active, all have to share a resource. all instances have to synchronize their access to the resource. trying to implement this, i ended up with a less powerful version of semaphores. since the resultant code became little complex, i want to replace that with the more generic semaphores. i checked the include files, but i couldn't find any semaphore functions(semget,semctl,semop) which are specific or meant for use inside kernel. does it mean they aren't available inside kernel?? if i am wrong, can someone suggest me how to use them?? thank you, mohan __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message