driver to driver call

Login to reply to this topic.
Mon, 2008-08-18 18:43
Joined: 2006-03-15
Forum posts: 9

Hi
I am writing a device driver (kernel side) and I have to get service from another driver. Can I use User::LoadPhysicalDevice User::LoadLogicalDevice from my driver ? normally User::LoadLogicalDevice etc are for user side code !
Does anybody know a better way to communicate between drivers (ldd,pdd) in the kernel side?

Thanks


Sat, 2008-08-23 11:08
Joined: 2007-09-20
Forum posts: 114
Re: driver to driver call

Hi,

The call "User::LoadPhysicalDevice()" can not be used in kernel code. The user of LDD should load the phsical device as done for the LDD.

In your driver the variable "iParseMask" should be set to "KDeviceAllowPhysicalDevice" and the name of the physical device should be passed in the "DoCreate()" method of the RBusLogicalChannel class.
If no name is explicitly specified in "DoCreate()" method then the LDD searches for all the PDD's that have name matching with that of the LDD.
Check the SDK for more details


Chao,
Raghav

  • Login to reply to this topic.