chsh, I believe that with java you can write an external library in C++ that could access down to kernel level, then use the System.load(...) [it's something like that] command to load it in. Then you have access to any of the methods that you created in your C++ library.

I know you can do this with dll files, and I'm sure there must be a way to do it in *nix OSs.

ac