Adapted Linux memaccess to new interface