]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod-module: add visited field
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Wed, 18 Jan 2012 03:26:44 +0000 (01:26 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 30 Jan 2012 15:52:22 +0000 (13:52 -0200)
commitece09aac7f516549c6f14b7af68cd9c24d709b68
tree0e5521b0b6a3fcae1ce780819c48e12da50784d3
parentd48b8a792dc4140223e65f43542ddd9703efd322
libkmod-module: add visited field

This field can be used to iterate the modules, controlling whether we
are revisiting a certain module. A function to clear the values in all
modules is needed since when we are iterating, we don't know if the
module is created anew or if it's picked from the pool. Therefore we
can't know if the field is true because of a previous iteration or if
the module was indeed already visited.
libkmod/libkmod-module.c
libkmod/libkmod-private.h
libkmod/libkmod.c