cvs commit: src/sys/kern kern_module.c src/sys/sys module.h

John Baldwin jhb at
Mon Apr 17 19:44:45 UTC 2006

jhb         2006-04-17 19:44:44 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_module.c 
    sys/sys              module.h 
  Add a new module_file() function that returns the linker_file_t associated
  with a given module_t.  I use this in some the MOD_LOAD event handler for
  some test kernel modules to ask the kernel linker to look up the linker
  sets in my test modules. (I use linker sets to generate the list of
  possible events that I then signal to execute via a sysctl.  On non-amd64,
  ld(8) would resolve the entire linker set, but on amd64 I have to ask the
  kernel linker to do it for me, and having the kernel linker do it works on
  all archs.)
  Revision  Changes    Path
  1.49      +7 -0      src/sys/kern/kern_module.c
  1.22      +1 -0      src/sys/sys/module.h

More information about the cvs-src mailing list