Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 1996 20:03:07 -0700
From:      Julian Elischer <julian@whistle.com>
To:        hackers@freebsd.org
Cc:        julian@whistle.com
Subject:   Rebooting and related topics..
Message-ID:  <320FF06B.15FB7483@whistle.com>

next in thread | raw e-mail | index | archive | help
I've added a small callout list to the reboot code so that we and 
other third party types can add modules which require actions at 
shutdown. looking at the boot code however, I see that about 90%
of boot() in machdep.c is in fact NOT mach dependent at all.
I'd like to move most of this out to somewhere more generic
while I'm adding my callout code..

several questions..

1/ am I correct?
2/ can anyone suggest the correct place for it?
3/ The callout code has a prototype for the function at_reboot()
	where should this prototype live? (I've dropped it into
	systm.h at the moment)

the reason for a kerenl based callout list
rather than a user-based rc.shutdown is to do with the nature
of the modules being added here..

I'd eventually like to add similar callout lists to exit() and fork()
but they are not needed for these particular modules.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?320FF06B.15FB7483>