]> err.no Git - linux-2.6/commit
module: generic each_symbol iterator function
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 23 Jul 2008 00:24:25 +0000 (19:24 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jul 2008 09:24:26 +0000 (19:24 +1000)
commitdafd0940c96fec67974a88ed8e6b8ba3160394cd
tree616da8f0f283509ec71ff2d6e467fa4c6877edc6
parentda39ba5e1d65e997a98f6eb93ba6e6eb505f6e3c
module: generic each_symbol iterator function

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: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jiri Kosina <jkosina@suse.cz>
kernel/module.c