Jesper> /proc is such a mess already, do we have to add another Jesper> file to it? How about using sysfs instead? I know that is Jesper> "one value pr file", but then simply make one file pr Jesper> leaked pointer or something like that...

Actually debugfs would make the most sense I think -- and the codeto create a debugfs file is simpler than the corresponding procfs code.