(ql: Qiling, pc: int, api_name: str)
| 11 | def 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 |
no test coverage detected