Function

IOSurfaceLookupFromMachPort

Recreates an IOSurfaceRef from a mach port.

Declaration

IOSurfaceRef IOSurfaceLookupFromMachPort(mach_port_t port);

Discussion

This call takes a mach_port_t created via IOSurfaceCreatePort() and recreates an IOSurfaceRef from it.