Hello, I'd like to access my Linux device driver using MMAP. This is no problem in C, but in Java I'm a little lost. From what I can tell the "FileChannel" class can implement the mmap call, but the problem is that it works on "real" files but not drivers. Mu suspicion is that it's actually trying to get the size of the file from the file system (?? perhaps ??) which doesn't work for the dummy char files (like /dev/zero for example).

Has anyone ever hooked up Java to a char driver before? (using MMAP or otherwise)