Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2006 16:32:20 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_syscalls.c src/sys/sys kernel.h sysent.h
Message-ID:  <200608011632.k71GWKMJ006941@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2006-08-01 16:32:20 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_syscalls.c 
    sys/sys              kernel.h sysent.h 
  Log:
  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
  
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608011632.k71GWKMJ006941>