MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / system_call

Method system_call

python/mediumlevelil.py:4450–4472  ·  view source on GitHub ↗

``system_call`` returns an expression which performs a system call with the parameters defined in ``params`` returning values in the variables in ``output``. :param List['variable.Variable'] output: output variables :param List[ExpressionIndex] params: parameter variables :param ILSource

(
		self, output: List['variable.Variable'], params: List[ExpressionIndex],
		loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

4448 )
4449
4450 def system_call(
4451 self, output: List['variable.Variable'], params: List[ExpressionIndex],
4452 loc: Optional['ILSourceLocation'] = None
4453 ) -> ExpressionIndex:
4454 """
4455 ``system_call`` returns an expression which performs a system call
4456 with the parameters defined in ``params`` returning values in the variables in ``output``.
4457
4458 :param List['variable.Variable'] output: output variables
4459 :param List[ExpressionIndex] params: parameter variables
4460 :param ILSourceLocation loc: location of returned expression
4461 :return: The expression ``output = syscall(dest, params...)``
4462 :rtype: ExpressionIndex
4463 """
4464 return self.expr(
4465 MediumLevelILOperation.MLIL_SYSCALL,
4466 len(output),
4467 self.add_variable_list(output),
4468 len(params),
4469 self.add_operand_list(params),
4470 size=0,
4471 source_location=loc
4472 )
4473
4474 def system_call_untyped(
4475 self, output: List['variable.Variable'], params: List[ExpressionIndex],

Callers

nothing calls this directly

Calls 3

exprMethod · 0.95
add_variable_listMethod · 0.95
add_operand_listMethod · 0.95

Tested by

no test coverage detected