IOSurface for reading or writing.
- iOS 3.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
The term “lock” is used loosely in this context, and is used along with the “unlock” information to put a bound on CPU access to the raw
If the seed parameter is non-NULL,
IOSurface will store the buffer’s internal modification seed value at the time you made the lock call. You can compare this value to a value returned previously to determine of the contents of the buffer has been changed since the last lock.
In the case of
IOSurface, the seed value returned will be the internal seed value at the time of the unlock. If you locked the buffer for writing, this value will be incremented as the unlock is performed and the new value will be returned.
See the kIOSurfaceLock enums for more information.