Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

vipderegistermem.c File Reference

#include "vipl_priv.h"

Go to the source code of this file.

Functions

VIP_ENTRY_POINT VIP_RETURN VipDeregisterMem (VIP_NIC_HANDLE NicHandle, VIP_PVOID VirtualAddress, VIP_MEM_HANDLE MemoryHandle)


Detailed Description

The VI-GM function VipDeregisterMem implementation.

Definition in file vipderegistermem.c.


Function Documentation

VIP_ENTRY_POINT VIP_RETURN VipDeregisterMem VIP_NIC_HANDLE  NicHandle,
VIP_PVOID  VirtualAddress,
VIP_MEM_HANDLE  MemoryHandle
 

VipDeregisterMem() de-registers memory that was previously registered using the VipRegisterMem() function and unlocks the associated pages from physical memory. The contents and attributes of the region of virtual memory being de-registered are not altered in any way.

Return values:
VIP_SUCCESS The memory region was successfully de-registered.
VIP_ERROR_RESOURCE The operation failed due to insufficient resources.
VIP_INVALID_PARAMETER One of the parameters was invalid.
Parameters:
NicHandle (IN) The handle for the NIC that owns the memory region being de-registered.
VirtualAddress (IN) Address of the region of memory to be de-registered.
MemoryHandle (IN) Memory handle for the region; obtained from a previous call to VipRegisterMem().
See also:
VipRegisterMem VIP_MEM
Author:
Patrick Geoffray
Version:
1.0

Definition at line 42 of file vipderegistermem.c.

References VIP_GM::lock, VI_GM_MAX_REGISTER_REGIONS, VIP_ASSERT, vip_avl_deregister_memory(), VIP_DEBUG, VIP_DEBUG_LABEL, VIP_ERROR_RESOURCE, vip_free_handle(), VIP_INVALID_MEM_HANDLE, VIP_INVALID_NIC_HANDLE, VIP_INVALID_PARAMETER, VIP_INVALID_PTAG, VIP_INVALID_PTAG_HANDLE, VIP_MUTEX_LOCK, VIP_MUTEX_UNLOCK, VIP_PROGRESSION, and VIP_SUCCESS.

VI-GM-1.3 by Myricom © 1997-2006. Documentation generated on 20 May 2006 by doxygen 1.4.4.