
00001 /******************************************************** 00002 * Myricom VI-GM networking software and documentation * 00003 * Copyright (c) 2001 by Myricom, Inc. * 00004 * All rights reserved. * 00005 * See the file `COPYING' for copyright notice. * 00006 ********************************************************/ 00007 00013 #include "vipl_priv.h" 00014 00015 00038 VIP_ENTRY_POINT VIP_RETURN 00039 VipNSShutdown (VIP_NIC_HANDLE NicHandle) 00040 { 00041 VIP_NIC *vip_nic_ptr; 00042 VIP_DEBUG_LABEL (("VipNSShutdown")); 00043 00044 00045 /* check nic handle */ 00046 vip_nic_ptr = (VIP_NIC *) NicHandle; 00047 if (VIP_INVALID_NIC_HANDLE (vip_nic_ptr)) 00048 { 00049 VIP_DEBUG (("Invalid NIC handle")); 00050 return VIP_INVALID_PARAMETER; 00051 } 00052 VIP_MUTEX_LOCK (&(vip_nic_ptr->lock)); 00053 00054 /* check if the name service is initialized */ 00055 if (vip_nic_ptr->ns_initialized == VIP_FALSE) 00056 { 00057 VIP_DEBUG (("Name service not previously initialized")); 00058 VIP_MUTEX_UNLOCK (&(vip_nic_ptr->lock)); 00059 return VIP_ERROR_NAMESERVICE; 00060 } 00061 00062 vip_nic_ptr->ns_initialized = VIP_FALSE; 00063 VIP_DEBUG (("Success")); 00064 VIP_MUTEX_UNLOCK (&(vip_nic_ptr->lock)); 00065 return VIP_SUCCESS; 00066 }
1.4.4.