发明名称 METHOD AND DEVICE FOR BINDING KERNEL SYMBOL IN LINUX DRIVER
摘要 Disclosed are a method and device for binding a kernel symbol in a Linux driver, the method comprising: defining a pointer for each of kernel symbols required in a driver; upon initializing the driver, searching a kernel symbol list for the kernel symbol required by the driver by analyzing the kernel symbol list; assigning an address of each of the found kernel symbols in the kernel to the pointer corresponding to each of the kernel symbols defined by the driver; and accessing the kernel symbol in the driver by means of the pointer. The technical solution of the present invention can develop a general-purpose driver compatible with different versions of kernels, eliminating the need of compiling source code of the different versions of the kernels separately, thus reducing workloads of developing and adaptation.
申请公布号 WO2016091078(A1) 申请公布日期 2016.06.16
申请号 WO2015CN95632 申请日期 2015.11.26
申请人 BEIJING QIHOO TECHNOLOGY COMPANY LIMITED;QIZHI SOFTWARE (BEIJING) COMPANY LIMITED 发明人 CHEN, ZHANGQI
分类号 G06F13/10 主分类号 G06F13/10
代理机构 代理人
主权项
地址