Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 09:07:31 +0600 (ALMT)
From:      Boris Popov <bp@butya.kz>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        arch@freebsd.org, current@freebsd.org
Subject:   Re: HEADS-UP: await/asleep removal imminent
Message-ID:  <Pine.BSF.4.21.0101180858590.12054-100000@lion.butya.kz>
In-Reply-To: <20010117031618.K7240@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 17 Jan 2001, Alfred Perlstein wrote:

> I have a patch here that removes await/asleep from the kernel API.
> 
> http://people.freebsd.org/~alfred/noasleep.diff
> 
> Matt Dillon implemented alseep/await quite some time ago and the
> only thing that's using it is ata.  In order to clean up some of
> the schduler and vm system I'm removing support for it.

	Hmm, I've found this API usable for synchronization between two
kernel threads/processes:

	alseep(&somewhere);
	wakeup(&anotherprocess);
	await(&somewhere);

	where 'anotherprocess' do some job and call wakeup(&somewhere).

	I suspect that this can be emulated with mutexes and/or
conditional variables. So, it is possible to keep the API, but change its
implementation to allow mentioned cleanup of scheduler ?

P.S. it is already too hard to maintain external kernel modules even
within various releng_4s, not to mention -current and releng_3...
--
Boris Popov
http://www.butya.kz/~bp/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101180858590.12054-100000>