[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- To: rtl@rtlinux.org
- Subject: BOUNCE rtl@rtlinux.org: Approval required: (fwd)
- From: Der Herr Hofrat <der.herr@hofr.at>
- Date: Fri, 11 May 2001 19:59:28 +0200 (CEST)
>From owner-rtl Fri May 11 12:51:11 2001
Received: from hq.fsmlabs.com (localhost [[UNIX: localhost]])
by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f4BIp3g06980
for <rtl@rtlinux.org>; Fri, 11 May 2001 12:51:04 -0600
Received: (qmail 785 invoked by uid 1000); 11 May 2001 17:02:25 -0000
Date: Fri, 11 May 2001 21:02:25 +0400
From: Michael Barabanov <baraban@fsmlabs.com>
To: Sebastian Bolk <bolk@isr.uni-stuttgart.de>
Cc: "rtl@rtlinux.org" <rtl@rtlinux.org>
Subject: Re: [rtl] Semaphore in different modules
Message-ID: <20010511210225.B750@huevo.fsmlabs.com>
References: <3AFAAD8A.73BDD8AC@isr.uni-stuttgart.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.17i
In-Reply-To: <3AFAAD8A.73BDD8AC@isr.uni-stuttgart.de>; from bolk@isr.uni-stuttgart.de on Thu, May 10, 2001 at 05:02:34PM +0200
Organization: FSMLabs
Hello,
> I'm using RTlinux 3.0 with kernel 2.4.1.
> Is there a way to have different modules using the same semaphore?
Yes. Module 1:
sem_t semaphore;
...
sem_wait(&semaphore):
Module 2:
extern sem_t semaphore;
sem_post(&semaphore):
Module that defines the semaphore has to be loaded first of course.
Michael..