Results 1 to 1 of 1
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 ...
- 10-01-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 2
Java / Linux device driver access
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)


Reply With Quote