Dell - Internal Use - Confidential Hi Michael, My intention is to write some data in Disk using UEFI application. To achieve this how I have to modify my code ? Regards Parmeshwr
From: Kinney, Michael D [mailto:michael.d.kin...@intel.com] Sent: Thursday, October 17, 2013 9:48 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] problem in openprotocol Parmeshwr, Likely because a different driver has already opened that specific Disk I/O protocol instance. The BY_DRIVER open mode is a request to open the protocol and then prevent other drivers from opening the same protocol. If you use the openinfo shell command on the handle that contains the Disk I/O protocol, you will see which drivers have already opened that protocol. Are you working on an app that need temporary exclusive access to that protocol, or a driver that will eventually be part of the platform firmware? Thanks, Mike From: parmeshwr_pra...@dell.com<mailto:parmeshwr_pra...@dell.com> [mailto:parmeshwr_pra...@dell.com] Sent: Thursday, October 17, 2013 5:55 AM To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net> Subject: [edk2] problem in openprotocol Hi all, I am working on some project where I need to open Disk protocol. Below is my code- Status = gBS->OpenProtocol(ControllerHandle ,&gEfiDiskIoProtocolGuid,(VOID **) &DiskIo, gImageHandle, NULL, EFI_OPEN_PROTOCOL_BY_DRIVER); if (EFI_ERROR(Status)) { Print(L"Disk IO error %d\n",Status); return Status; } Why this code always goes to error condition. If I use EFI_OPEN_PROTOCOL_GET_PROTOCOL as parameter it will not go to error condition, how to get rid of this problem ? Best Regards, Parmeshwr Prasad [cid:image001.png@01CECBE9.17357180]
<<inline: image001.png>>
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel