CRED_TO_VNET
CURVNET_SET(CRED_TO_VNET(curthread->td_ucred));
CURVNET_SET(CRED_TO_VNET(curthread->td_ucred));
CURVNET_SET(CRED_TO_VNET(nmp->nm_sockreq.nr_cred));
CURVNET_SET(CRED_TO_VNET(nmp->nm_sockreq.nr_cred));
CURVNET_SET(CRED_TO_VNET(cred));
so = soalloc(CRED_TO_VNET(cred));
CURVNET_SET(CRED_TO_VNET(cred));
#define TD_TO_VNET(td) CRED_TO_VNET((td)->td_ucred)
#define P_TO_VNET(p) CRED_TO_VNET((p)->p_ucred)