cvs commit: src/sys/kern kern_linker.c src/sys/sys linker.h src/sys/compat/ndis subr_ndis.c

John Baldwin jhb at
Tue Jun 20 20:37:18 UTC 2006

jhb         2006-06-20 20:37:18 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_linker.c 
    sys/sys              linker.h 
    sys/compat/ndis      subr_ndis.c 
  - Add a new linker_file_foreach() function that walks the list of linker
    file objects calling a user-specified predicate function on each object.
    The iteration terminates either when the entire list has been iterated
    over or the predicate function returns a non-zero value.
    linker_file_foreach() returns the value returned by the last invocation
    of the predicate function.  It also accepts a void * context pointer that
    is passed to the predicate function as well.  Using an iterator function
    avoids exposing linker internals to the rest of the kernel making locking
  - Use linker_file_foreach() instead of walking the list of linker files
    manually to lookup ndis files in ndis(4).
  - Use linker_file_foreach() to implement linker_hwpmc_list_objects().
  Revision  Changes    Path
  1.105     +31 -19    src/sys/compat/ndis/subr_ndis.c
  1.131     +52 -28    src/sys/kern/kern_linker.c
  1.43      +12 -0     src/sys/sys/linker.h

More information about the cvs-src mailing list