cvs commit: src/sys/kern kern_syscalls.c src/sys/sys kernel.h sysent.h

John Baldwin jhb at
Tue Aug 1 16:32:24 UTC 2006

jhb         2006-08-01 16:32:20 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_syscalls.c 
    sys/sys              kernel.h sysent.h 
  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
  MFC after:      3 days
  Revision  Changes    Path
  1.12      +11 -1     src/sys/kern/kern_syscalls.c
  1.131     +1 -0      src/sys/sys/kernel.h
  1.49      +1 -1      src/sys/sys/sysent.h

More information about the cvs-src mailing list