John Baldwin 03e161fdb1 Make system call modules a bit more robust:
- If we fail to register the system call during MOD_LOAD, then note that
  so that we don't try to deregister it or invoke the chained event handler
  during the subsequent MOD_UNLOAD event.  Doing the deregister when the
  register failed could result in trashing system call entries.
- Add a SI_SUB_SYSCALLS just before starting up init and use that to
  register syscall modules instead of SI_SUB_DRIVERS.  Registering system
  calls as late as possible increases the chances that any other module
  event handlers or SYSINITs in a module are executed to initialize the
  data in a kld before a syscall dependent on that data is able to be
  invoked.

MFC after:	3 days
2006-08-01 16:32:20 +00:00
..
2006-07-28 19:08:37 +00:00
2006-07-14 17:55:36 +00:00
2005-12-04 02:12:43 +00:00
2006-06-30 08:10:55 +00:00
2006-07-17 21:00:42 +00:00
2006-05-28 22:15:28 +00:00
2006-07-28 19:08:37 +00:00