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

Method call_function

qiling/loader/pe_uefi.py:188–200  ·  view source on GitHub ↗

Call a function after properly setting up its arguments and return address. Args: addr : function address args : a sequence of arguments to pass to the function; may be empty ret : return address; may be None

(self, addr: int, args: Sequence[int], ret: Optional[int])

Source from the content-addressed store, hash-verified

186 self.modules.append(module_info)
187
188 def call_function(self, addr: int, args: Sequence[int], ret: Optional[int]):
189 """Call a function after properly setting up its arguments and return address.
190
191 Args:
192 addr : function address
193 args : a sequence of arguments to pass to the function; may be empty
194 ret : return address; may be None
195 """
196
197 types = (PARAM_INTN, ) * len(args)
198 targs = tuple(zip(types, args))
199
200 self.ql.os.fcall.call_native(addr, targs, ret)
201
202 def unload_modules(self, context: UefiContext) -> bool:
203 """Invoke images unload callbacks, if set.

Callers 1

__notify_nextFunction · 0.80

Calls 1

call_nativeMethod · 0.80

Tested by

no test coverage detected