<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE></STYLE>
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=841254813-23012008><FONT face=Arial color=#0000ff size=2>Direct
function call by name requires interlinkage between the different drivers (MTHCA
and IBBUS - in this case).</FONT></SPAN></DIV>
<DIV><SPAN class=841254813-23012008><FONT face=Arial color=#0000ff size=2>We
don't want that.</FONT></SPAN></DIV>
<DIV><SPAN class=841254813-23012008><FONT face=Arial color=#0000ff size=2>We
want the drivers to be independent, be loaded in any order and to call each
other by versioned interfaces.</FONT></SPAN></DIV>
<DIV><SPAN class=841254813-23012008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Deepak
Gupta<BR><B>Sent:</B> Wednesday, January 23, 2008 11:11 AM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw] Functions exporting from
driver module<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have the following doubt</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why do we use two step mehanism for interacting
HCA driver with IBBUS.SYS.</FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>Mechanism Used</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2> First we look for the
GUID_IB_CI_INTERFACE's (created by IBBUS) arrival in HCA
driver</FONT></DIV>
<DIV><FONT face=Arial size=2> Then we get the ib_register_ca
,ib_deregister_ca and other function pointer via IRP_MN_QUERY_INTERFACE on
ibbus.</FONT></DIV>
<DIV><FONT face=Arial size=2> Then we regiser HCA driver to
the core(ibbus) providing funtion pointer to the verbs
implementation</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Above interaction could
have achieved in just one step if IBBUS.SYS would have exported <FONT
color=#ff0000>ib_register_ca ,ib_bus_deregister_ca.</FONT></FONT></DIV>
<DIV><FONT face=Arial color=#ff0000 size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Or Mechanism used satisfy some other requirements
also which I am not able to decipher.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV><FONT face=Arial size=2>Deepak</FONT></DIV>
<DIV><FONT face=Arial size=2>
</FONT></DIV></BLOCKQUOTE></BODY></HTML>