Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2006 20:37:18 +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_linker.c src/sys/sys linker.h src/sys/compat/ndis subr_ndis.c
Message-ID:  <200606202037.k5KKbIbg062746@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 
  Log:
  - 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
    simpler.
  - 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



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