Notably, md is a little tricky for this, since the ioctl that configures the service also blocks in the kernel. Therefore, use an additional pthread to probe when the service is fully configured and the server can detach. Also, rawpart love.
and checks the same data can be retrieved.