On 06/11/14 06:50, Andrew fish wrote: > I posted a while back on the list how to do this. Search for > safeopenprotocol. > > You can use the driver binding protocol to make it safe, but you need > to wrap the protocol access in a library for the application.
>> On Jun 10, 2014, at 8:31 PM, Evgeny Yakovlev <[email protected]> wrote: >> Is it possible for UEFI application to open a protocol and receive >> some kind of a notification is about to be disconnected? I know >> that drivers can use BY_DRIVER and receve driver binding Stop(), >> but what about applications? >> >> What i am trying to do is work with removable media and detect when >> UsbIo protocol i got in an application is about to be removed. It was unusually hard for me to find Andrew's library. It had not been easy for others either, as indicated by http://thread.gmane.org/gmane.comp.bios.tianocore.devel/3850/focus=3861 The patch is attached to: http://thread.gmane.org/gmane.comp.bios.tianocore.devel/1989 From: Andrew Fish <[email protected]> Date: Mon, 11 Feb 2013 11:33:27 -0800 Message-id: <[email protected]> Subject: Re: [edk2] Device Type? The patch in the GMANE archive (see link above) has a bunch of zeroes appended (full size: 94222), but it otherwise matches the "safe.patch" file that I have in my mailbox (full size: 60138). Laszlo ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
