idm_socreate
so = idm_socreate(AF_INET, SOCK_STREAM, 0);
so = idm_socreate(AF_INET6, SOCK_STREAM, 0);
if ((esi.esi_so = idm_socreate(PF_INET6, SOCK_STREAM, 0)) ==
socket = idm_socreate(PF_INET, SOCK_DGRAM, 0);
if ((so_svc->is_so = idm_socreate(PF_INET6, SOCK_STREAM, 0)) == NULL) {
if ((so6 = idm_socreate(PF_INET6, SOCK_DGRAM, 0)) == NULL)
if ((so4 = idm_socreate(PF_INET, SOCK_DGRAM, 0)) == NULL) {
so = idm_socreate(cr->cr_domain, cr->cr_type,
idm_socreate(int domain, int type, int protocol);