From owner-freebsd-current Thu Aug 19 12:18: 9 1999 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id E28A214EAF for ; Thu, 19 Aug 1999 12:18:02 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id MAA62499; Thu, 19 Aug 1999 12:10:31 -0700 (PDT) Date: Thu, 19 Aug 1999 12:11:49 -0700 (PDT) From: Julian Elischer To: Mike Smith Cc: current@FreeBSD.ORG Subject: Re: HEADS UP: at_shutdown going away In-Reply-To: <199908190737.AAA04137@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG there was external code at TRW but I don't know if it is still in use.. We have uses of it here at whistle too. (that's why I wrote it..) but I guess I can handle them... why the change? If you re-aranged the arguments you'd have EVENTHANDLER_REGISTER == at_shutdown_pri. :-) what are the selectabel (available) event queues? On Thu, 19 Aug 1999, Mike Smith wrote: > > That's right, systems will never shut down. 8) > > Seriously though, I'm in the process of replacing a number of the > ad-hoc event handler callout lists in the kernel (most notably the > at_shutdown and apm* lists) with a generic implementation. > > The upshot of this is that at_shutdown will go away. The old calls: > > at_shutdown(func, arg, queue) > at_shutdown_pri(func, arg, queue, priority) > > will be replaced with > > EVENTHANDLER_REGISTER(queue, func, arg, priority) > > Due to the way the event handler works, this means that event handler > functions which were originally > > void func(int howto, void *arg) > > will become > > void func(void *arg, int howto) > > This is unfortunate but more or less unavoidable. > > I will be converting all users of at_shutdown in the kernel to the new > mechanism, but it's of some concern to me that there may be external > code using the old at_shutdown* interfaces that may benefit from a > compatibility interface (which could be done relatively easily). > > Is there significant interest in having this implemented? > > -- > \\ The mind's the standard \\ Mike Smith > \\ of the man. \\ msmith@freebsd.org > \\ -- Joseph Merrick \\ msmith@cdrom.com > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message