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?
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
Forum posts: 114
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