To me it actually sounds like a better approach than blindly following "everything is a file" mantra.
Not sure if relevant to this discussion, but here's the problems I've experienced working with files for system devices:
[1] here's just a discovery of a logitech mouse receiver, notice that it touches:
* /sys/class/*
* /sys/module/*
* /sys/class/hidraw/*/device/driver
I must take care that each dir might not be present, symlinks may be dangling, and access to multiple files is not atomic.It would be much easier and stable using just one SQLite query, for example.
[1] https://github.com/Lekensteyn/ltunify/blob/master/ltunify.c#...
I will admit that it's likely that the same thing could be done with loadable kernel modules, that said.