]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod-module: probe: add flag to stop loading on already loaded
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 30 Jan 2012 18:26:52 +0000 (16:26 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 30 Jan 2012 22:05:34 +0000 (20:05 -0200)
commit5f3514731ef82084c1a24b15445e0f1352681a19
tree4e1542cb7b5bec139718abe1888ef74b824c6bf7
parentdfdfb962d3e204972facc8439239e258b7d59420
libkmod-module: probe: add flag to stop loading on already loaded

It's not as simple as tell user to check if the module is loaded before
calling this function. Due to race conditions, module might not be
loaded before the function call, but fail later because another process
inserted it.
libkmod/libkmod-module.c
libkmod/libkmod.h