发明名称 Method and apparatus for accessing hardware resource
摘要 A method and an apparatus for accessing a hardware resource are provided. The method includes configuring permission for one or more privileged instructions that are used for hardware access such that when the privileged instructions are used by a user mode application program, the application program can access a hardware resource without trapping into a kernel, and executing the privileged instructions that are encapsulated in the privileged application programming interface (API) that is called at the code level by the application program , and a privileged instruction for direct access to a hardware resource is set and encapsulated into an API, which is deployed in user space in order to reduce system overheads for accessing the hardware resource and improve processing efficiency.
申请公布号 US9529650(B2) 申请公布日期 2016.12.27
申请号 US201615059380 申请日期 2016.03.03
申请人 Huawei Technologies Co., Ltd. 发明人 Zheng Chen;Hou Ruihua;Zhan Jianfeng;Zhang Lixin
分类号 G06F13/00;G06F9/54;G06F9/46;G06F12/10;G06F13/24 主分类号 G06F13/00
代理机构 Conley Rose, P.C. 代理人 Conley Rose, P.C.
主权项 1. A method for accessing a hardware resource, comprising: configuring permission for one or more privileged instructions that are used for accessing the hardware resource such that when used by a user mode application program, the privileged instructions can access the hardware resource without trapping into a kernel, wherein the application program calls, at a code level, a privileged application programming interface (API) that is in user mode and has the privileged instructions encapsulated therein; and executing the privileged instructions that are encapsulated in the privileged API that is called at the code level by the application program.
地址 Shenzhen CN