PPI install-locate and notify-install method

来源:互联网 发布:怎么取消淘宝卖家的钻 编辑:程序博客网 时间:2024/05/20 21:44

原文来自:http://blog.csdn.net/hezp1984/article/details/6047903

PEI阶段PPI的用法,分两种:

第一种,install - locate

Driver 1 install 了PPI B,PPI B由Guid和一个structure指针组成。

Driver 2 要想使用PPI B下的B1或者B2的function,必须先根据PPI B的guid找到它,然后另写code再去call PPI B下面的成员函数B1或者B2.

第二种,notify - install

Driver 1 notify了PPI A,PPI A由Guid和一个function name组成,它只是一个单一的function,不能是structure。

Driver 3 要想调用A1,只需要在它自己的entry point里install PPI A就可以了,function A1会自动执行,执行完毕后返回到之前的位置。不需要User再另写code去call A1。

 

原创粉丝点击