Resolved, vmspace initialization was missing. I used uio_setup_sysspace(&my_uio);
Thanks for all your detailed answers. Peter