[ofw] ***SPAM*** IoGetDeviceObjectPointer in H/W driver code

Leonid Keller leonid at mellanox.co.il
Sun Dec 7 02:17:13 PST 2008


My belief, we have to get rid of both.
IBAL is now a filter driver, sitting above HCA driver, and there is no
need to use this cumbersome mechanism at all.
IBAL should just send a QUERY_INTERFACE IRP ...


________________________________

	From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Deepak Gupta
	Sent: Saturday, December 06, 2008 11:02 AM
	To: Sean Hefty
	Cc: ofw at lists.openfabrics.org
	Subject: Re: [ofw] ***SPAM*** IoGetDeviceObjectPointer in H/W
driver code
	
	
	No it's not a suggestion.
	
	Rather this is my question that "Does callback registered get
called in system thread context by PnP Manager?"
	
	If not then we should make sure that "IoGetDeviceObjectPointer"
is called in system thread context.
	
	MSDN documentation of IoRegisterPlugPlayNotification doesn't
specify that callback will be called in which context.
	
	Regards
	Deepak
	
	
	
	On Fri, Dec 5, 2008 at 10:51 PM, Sean Hefty
<sean.hefty at intel.com> wrote:
	

		>According to MSDN documentation
"IoGetDeviceObjectPointer" should be called in
		>system thread context.
		
		
		>From the WDK docs for IoGetDeviceObjectPointer:
		
		"Callers of IoGetDeviceProperty must be running at IRQL
= PASSIVE_LEVEL in the
		context of a system thread."
		

		>How are we making sure that callback is being called in
system thread context?
		>Are callbacks registered using
"IoRegisterPlugPlayNotification" called in
		>system thread context?
		
		
		And for IoRegisterPlugPlayNotification:
		
		"The PnP manager calls driver callback routines at IRQL
= PASSIVE_LEVEL"
		
		Are you suggesting that the PnP manager does not use a
system thread?
		
		- Sean
		
		_______________________________________________
		ofw mailing list
		ofw at lists.openfabrics.org
	
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
		


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081207/bb5f99f5/attachment.html>


More information about the ofw mailing list