I'd like to mmap a raw /dev/ada drive or partition, but mmap returns "Invalid argument". Is it unsupported?
int fd = open("/dev/ada0p2", O_RDONLY);
if(fd < 0) err(EX_OSERR, "open");
void *p = mmap(0, 32*1024*1024, PROT_READ, MAP_SHARED, fd, 0);
if(p == MAP_FAILED) err(EX_OSERR...