MCPcopy Create free account
hub / github.com/qilingframework/qiling / wrapper

Function wrapper

qiling/os/linux/fncc.py:13–17  ·  view source on GitHub ↗
(ql: Qiling, pc: int, api_name: str)

Source from the content-addressed store, hash-verified

11def linux_kernel_api(params: Mapping[str, Any] = {}, passthru: bool = False):
12 def decorator(func):
13 def wrapper(ql: Qiling, pc: int, api_name: str):
14 onenter = ql.os.user_defined_api[QL_INTERCEPT.ENTER].get(api_name)
15 onexit = ql.os.user_defined_api[QL_INTERCEPT.EXIT].get(api_name)
16
17 return ql.os.call(pc, func, params, onenter, onexit, passthru=passthru)
18
19 return wrapper
20

Callers 1

setup_procfsMethod · 0.70

Calls 2

getMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected