Currently this isn't possible - if you attempt to open System.Memory("/dev/some-device") it rejects it due to being unable to query the length of the file. It would be nice to be able to, for example, stick Pike on a Raspberry Pi, and then mmap /dev/gpiomem to manipulate things. Would it be of value to have a way to bypass that length check? I think that that's the only thing stopping it, although I'm not entirely certain.
ChrisA
pike-devel@lists.lysator.liu.se