Moved to separate function, and I added a final fallback on 1024 if neither _SC_IOV_MAX_ nor IOV_MAX was available.