[Toc][Index]

MFSH_VIRT2PHYS - Convert virtual to physical address

  
Purpose   
Translate the address of a data buffer into a physical address. 
Calling Sequence   

int far pascal MFSH_VIRT2PHYS(ulVirtAddr, pulPhysAddr)

unsigned long ulVirtAddr;
unsigned long far * pulPhysAddr;


Where   
ulVirtAddr contains the virtual address of the data area. 
PhysAddr is a pointer to a double word in which the helper returns the 
physical address of the data area. 
  
Returns   
If no error is detected, a zero error code is returned. If an error is 
detected, the following error is returned: 
oERROR_PROTECTION_VIOLATION 
the supplied address is invalid. 
  
Remarks   
This helper is for use by a mini-FSD with an imbedded device driver. It is 
the same as the standard device driver helper VIRTTOPHYS.   

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs