From owner-freebsd-current Thu Aug 19 0:43:26 1999 Delivered-To: freebsd-current@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 5C88F14E9B for ; Thu, 19 Aug 1999 00:43:25 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id AAA04137 for ; Thu, 19 Aug 1999 00:37:20 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199908190737.AAA04137@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: current@freebsd.org Subject: HEADS UP: at_shutdown going away Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 19 Aug 1999 00:37:20 -0700 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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