Contents

IOConnectUnmapMemory64(_:_:_:_:)

Remove a mapping made with IOConnectMapMemory64.

Declaration

func IOConnectUnmapMemory64(_ connect: io_connect_t, _ memoryType: UInt32, _ fromTask: task_port_t, _ atAddress: mach_vm_address_t) -> kern_return_t

Parameters

  • connect:

    The connect handle created by IOServiceOpen.

  • memoryType:

    The memory type originally requested in IOConnectMapMemory.

  • fromTask:

    The task port for the task in which to remove the mapping. This may be different to the task which the opened the connection.

  • atAddress:

    The address of the mapping to be removed.

Return Value

A kern_return_t error code.

Discussion

This is a generic method to remove a mapping in the callers task.

See Also

Miscellaneous