Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2006 22:17:06 +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/ddb db_command.c ddb.h src/sys/dev/aic7xxx aic79xx_osm.c
Message-ID:  <200603072217.k27MH6vM038095@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2006-03-07 22:17:06 UTC

  FreeBSD src repository

  Modified files:
    sys/ddb              db_command.c ddb.h 
    sys/dev/aic7xxx      aic79xx_osm.c 
  Log:
  Clean up the way we handle auxiliary commands for a given ddb command
  table.  Previously, the ddb code knew of each linker set of auxiliary
  commands and which explicit command list they were tied to.  These changes
  add a simple command_table struct that contains both the static list of
  commands and the pointers for any auxiliary linker set of additional
  commands.  This also makes it possible for other arbitrary command tables
  to be defined in other parts of the kernel w/o having to edit ddb itself.
  
  The DB_SET macro has also been trimmed down to just creating an entry in
  a linker set.  A new DB_FUNC macro does what the old DB_SET did which is
  to not only add an entry to the linker set but also to include a function
  prototype for the function being added.  With these changes, it's now also
  possible to create aliases for ddb functions using DB_SET() directly if
  desired.
  
  Revision  Changes    Path
  1.65      +87 -97    src/sys/ddb/db_command.c
  1.41      +19 -8     src/sys/ddb/ddb.h
  1.24      +1 -1      src/sys/dev/aic7xxx/aic79xx_osm.c



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