Add runtime configurable functor

Signed-off-by: Jan Blunck <jblunck@infradead.org>