<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=424331410-07122008><FONT face=Arial color=#0000ff size=2>My
belief, we have to get rid of both.</FONT></SPAN></DIV>
<DIV><SPAN class=424331410-07122008><FONT face=Arial color=#0000ff size=2>IBAL
is now a filter driver, sitting above HCA driver, and there is no need
to use this cumbersome mechanism at all.</FONT></SPAN></DIV>
<DIV><SPAN class=424331410-07122008><FONT face=Arial color=#0000ff size=2>IBAL
should just send a QUERY_INTERFACE IRP ...</FONT></SPAN></DIV><BR>
<BLOCKQUOTE
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> Saturday, December 06, 2008 11:02 AM<BR><B>To:</B> Sean
Hefty<BR><B>Cc:</B> ofw@lists.openfabrics.org<BR><B>Subject:</B> Re: [ofw]
***SPAM*** IoGetDeviceObjectPointer in H/W driver code<BR></FONT><BR></DIV>
<DIV></DIV>No it's not a suggestion.<BR><BR>Rather this is my question that
"Does callback registered get called in system thread context by PnP
Manager?"<BR><BR>If not then we should make sure that
"IoGetDeviceObjectPointer" is called in system thread context.<BR><BR>MSDN
documentation of IoRegisterPlugPlayNotification doesn't specify that callback
will be called in which context.<BR><BR>Regards<BR>Deepak<BR><BR><BR>
<DIV class=gmail_quote>On Fri, Dec 5, 2008 at 10:51 PM, Sean Hefty <SPAN
dir=ltr><<A
href="mailto:sean.hefty@intel.com">sean.hefty@intel.com</A>></SPAN>
wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV class=Ih2E3d>>According to MSDN documentation
"IoGetDeviceObjectPointer" should be called in<BR>>system thread
context.<BR><BR></DIV>>From the WDK docs for
IoGetDeviceObjectPointer:<BR><BR>"Callers of IoGetDeviceProperty must be
running at IRQL = PASSIVE_LEVEL in the<BR>context of a system thread."<BR>
<DIV class=Ih2E3d><BR>>How are we making sure that callback is being
called in system thread context?<BR>>Are callbacks registered using
"IoRegisterPlugPlayNotification" called in<BR>>system thread
context?<BR><BR></DIV>And for IoRegisterPlugPlayNotification:<BR><BR>"The
PnP manager calls driver callback routines at IRQL =
PASSIVE_LEVEL"<BR><BR>Are you suggesting that the PnP manager does not use a
system thread?<BR><BR>-
Sean<BR><BR>_______________________________________________<BR>ofw mailing
list<BR><A
href="mailto:ofw@lists.openfabrics.org">ofw@lists.openfabrics.org</A><BR><A
href="http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw"
target=_blank>http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw</A><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>