cvs commit: src/sys/kern kern_module.c
    Poul-Henning Kamp 
    phk at FreeBSD.org
       
    Wed Jul 14 15:37:37 PDT 2004
    
    
  
phk         2004-07-14 22:37:36 UTC
  FreeBSD src repository
  Modified files:
    sys/kern             kern_module.c 
  Log:
  A module with no modevent function gets modevent_nop() as default.
  
  Until now the function has just returned zero for any event, but
  that is downright wrong for MOD_UNLOAD and not very useful for any
  future events we add where it may be crucial to be able to tell
  if the event was unhandled or successful.
  
  Change the function to return as follows:
  
          MOD_LOAD -> 0
          MOD_UNLOAD -> EBUSY
          anything else -> EOPNOTSUPP
  
  Revision  Changes    Path
  1.44      +9 -1      src/sys/kern/kern_module.c
    
    
More information about the cvs-all
mailing list