[openib-general] ib_get_dma_mr and dma_map_single
    Joe Damato 
    damato at psc.edu
       
    Tue Aug  9 10:45:19 PDT 2005
    
    
  
Hello -
       I am attempting to port code that calls the gen1 function 
ib_memory_register -- I saw the other posts about this issue -- I have 
looked into pci_map_single to map a buffer -- but I am failing to see 
how ib_get_dma_mr fits in with this....
       The sdp example (in 
gen2/trunk/src/linux-kernel/infiniband/ulp/sdp) makes a call to 
ib_get_dma_mr (sdp_conn.c:1812) and then calls to  dma_map_single 
(sdp_recv.c:85 and sdp_send.c:129) although I am failing to see the 
connection.
      Also, this might not be a question I should ask here, but why not? 
What is the difference between pci_map_single and dma_map_single ? Are 
they interchangable?
    Thanks.
   
    
    
More information about the general
mailing list