1. 22 Jul, 2008 2 commits
    • Rusty Russell's avatar
      module: generic each_symbol iterator function · dafd0940
      Rusty Russell authored
      Introduce an each_symbol() iterator to avoid duplicating the knowledge
      about the 5 different sections containing symbols.  Currently only
      used by find_symbol(), but will be used by symbol_put_addr() too.
      
      (Includes NULL ptr deref fix by Jiri Kosina <jkosina@suse.cz>)
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Cc: Jiri Kosina <jkosina@suse.cz>
      dafd0940
    • Rusty Russell's avatar
      module: don't use stop_machine for waiting rmmod · da39ba5e
      Rusty Russell authored
      rmmod has a little-used "-w" option, meaning that instead of failing if the
      module is in use, it should block until the module becomes unused.
      
      In this case, we don't need to use stop_machine: Max Krasnyansky
      indicated that would be useful for SystemTap which loads/unloads new
      modules frequently.
      
      Cc: Max Krasnyansky <maxk@qualcomm.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      da39ba5e
  2. 21 Jul, 2008 38 commits