sockopt_alloc
(void)sockopt_alloc(sopt, size, KM_SLEEP);
error = sockopt_alloc(sopt, len, KM_NOSLEEP);