os

package
v0.6.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package os provides Go bindings for the os framework.

Coordinate the scheduling and synchronization of your app’s tasks, and log information to the console to diagnose issues.

Essentials

Logs

  • Logging: Capture telemetry from your app for debugging and performance analysis using the unified logging system. (OSLogType, OSSignpostType)

Memory

Functions

Enumerations

Key Types

Code generated from Apple documentation. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOSBlock

func NewOSBlock(handler OSBlock) (objc.ID, func())

NewOSBlock wraps a Go OSBlock as an Objective-C block. The caller must defer the returned cleanup function.

func OSActivityApply added in v0.6.17

func OSActivityApply(activity OSActivity, block OSBlock)

OSActivityApply execute a block using a given activity object.

See: https://developer.apple.com/documentation/os/os_activity_apply

func OSActivityApplyF added in v0.6.17

func OSActivityApplyF(activity OSActivity, context unsafe.Pointer, function OSFunction)

OSActivityApplyF execute a function using a given activity object.

See: https://developer.apple.com/documentation/os/os_activity_apply_f

func OSActivityScopeEnter added in v0.6.17

func OSActivityScopeEnter(activity OSActivity, state OSActivityScopeState)

OSActivityScopeEnter switches the current activity, saving the existing execution context.

See: https://developer.apple.com/documentation/os/os_activity_scope_enter

func OSActivityScopeLeave added in v0.6.17

func OSActivityScopeLeave(state OSActivityScopeState)

OSActivityScopeLeave restores the current activity to a previously saved state.

See: https://developer.apple.com/documentation/os/os_activity_scope_leave

func OSLogCreate added in v0.6.17

func OSLogCreate(subsystem string, category string) kernel.Os_log_t

OSLogCreate creates a custom log object.

See: https://developer.apple.com/documentation/os/os_log_create

func OSLogTypeEnabled added in v0.6.17

func OSLogTypeEnabled(oslog kernel.Os_log_t, type_ OSLogType) bool

OSLogTypeEnabled returns a Boolean value that indicates whether the log can write messages with the specified log type.

See: https://developer.apple.com/documentation/os/OSLog/isEnabled(type:)

func OSRelease added in v0.6.17

func OSRelease(object unsafe.Pointer)

OSRelease.

See: https://developer.apple.com/documentation/os/os_release-c.func

func OSRetain added in v0.6.17

func OSRetain(object unsafe.Pointer) unsafe.Pointer

OSRetain.

See: https://developer.apple.com/documentation/os/os_retain-c.func

func OSSecurityConfigGetForProc added in v0.6.17

func OSSecurityConfigGetForProc(pid int32, config *OSSecurityConfig) int32

OSSecurityConfigGetForProc.

See: https://developer.apple.com/documentation/os/os_security_config_get_for_proc

func OSSecurityConfigGetForTask added in v0.6.17

func OSSecurityConfigGetForTask(task uint32, config *OSSecurityConfig) int32

OSSecurityConfigGetForTask.

See: https://developer.apple.com/documentation/os/os_security_config_get_for_task

func OSSignpostEnabled added in v0.6.17

func OSSignpostEnabled(log kernel.Os_log_t) bool

OSSignpostEnabled returns a Boolean value that indicates whether signposts are in an enabled state for the specified log.

See: https://developer.apple.com/documentation/os/os_signpost_enabled

func OSSyncWaitOnAddress added in v0.6.17

func OSSyncWaitOnAddress(addr unsafe.Pointer, value uint64, size uintptr, flags OSSyncWaitOnAddressFlags) int32

OSSyncWaitOnAddress an atomic compare-and-wait operation, used to implement higher-level synchronization primitives.

See: https://developer.apple.com/documentation/os/os_sync_wait_on_address

func OSSyncWaitOnAddressWithDeadline added in v0.6.17

func OSSyncWaitOnAddressWithDeadline(addr unsafe.Pointer, value uint64, size uintptr, flags OSSyncWaitOnAddressFlags, clockid OSClockid, deadline uint64) int32

OSSyncWaitOnAddressWithDeadline an atomic compare-and-wait operation with a deadline, used to implement higher-level synchronization primitives.

See: https://developer.apple.com/documentation/os/os_sync_wait_on_address_with_deadline

func OSSyncWaitOnAddressWithTimeout added in v0.6.17

func OSSyncWaitOnAddressWithTimeout(addr unsafe.Pointer, value uint64, size uintptr, flags OSSyncWaitOnAddressFlags, clockid OSClockid, timeout_ns uint64) int32

OSSyncWaitOnAddressWithTimeout an atomic compare-and-wait operation with a timeout, used to implement higher-level synchronization primitives.

See: https://developer.apple.com/documentation/os/os_sync_wait_on_address_with_timeout

func OSSyncWakeByAddressAll added in v0.6.17

func OSSyncWakeByAddressAll(addr unsafe.Pointer, size uintptr, flags OSSyncWakeByAddressFlags) int32

OSSyncWakeByAddressAll an atomic operation that wakes all threads blocked on a futex wait, used to implement higher-level synchronization primitives.

See: https://developer.apple.com/documentation/os/os_sync_wake_by_address_all

func OSSyncWakeByAddressAny added in v0.6.17

func OSSyncWakeByAddressAny(addr unsafe.Pointer, size uintptr, flags OSSyncWakeByAddressFlags) int32

OSSyncWakeByAddressAny an atomic operation that wakes one thread blocked on a futex wait, used to implement higher-level synchronization primitives.

See: https://developer.apple.com/documentation/os/os_sync_wake_by_address_any

func OSUnfairLockAssertNotOwner added in v0.6.17

func OSUnfairLockAssertNotOwner(lock *[4]byte)

OSUnfairLockAssertNotOwner triggers an assertion if the calling thread owns the specified unfair lock.

See: https://developer.apple.com/documentation/os/os_unfair_lock_assert_not_owner

func OSUnfairLockAssertOwner added in v0.6.17

func OSUnfairLockAssertOwner(lock *[4]byte)

OSUnfairLockAssertOwner triggers an assertion if the calling thread doesn’t own the specified unfair lock.

See: https://developer.apple.com/documentation/os/os_unfair_lock_assert_owner

func OSUnfairLockLock added in v0.6.17

func OSUnfairLockLock(lock unsafe.Pointer)

OSUnfairLockLock a low-level lock that allows waiters to block efficiently on contention.

See: https://developer.apple.com/documentation/os/os_unfair_lock_lock

func OSUnfairLockLockWithFlags added in v0.6.17

func OSUnfairLockLockWithFlags(lock unsafe.Pointer, flags OSUnfairLockFlags)

OSUnfairLockLockWithFlags.

See: https://developer.apple.com/documentation/os/os_unfair_lock_lock_with_flags

func OSUnfairLockTrylock added in v0.6.17

func OSUnfairLockTrylock(lock unsafe.Pointer) bool

OSUnfairLockTrylock locks an unfair lock if it is not already locked.

See: https://developer.apple.com/documentation/os/os_unfair_lock_trylock

func OSUnfairLockUnlock added in v0.6.17

func OSUnfairLockUnlock(lock unsafe.Pointer)

OSUnfairLockUnlock unlocks an unfair lock.

See: https://developer.apple.com/documentation/os/os_unfair_lock_unlock

func OSWorkgroupCancel added in v0.6.17

func OSWorkgroupCancel(wg OSWorkgroup)

OSWorkgroupCancel cancels and invalidates the specified workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_cancel

func OSWorkgroupCopyPort added in v0.6.17

func OSWorkgroupCopyPort(wg OSWorkgroup, mach_port_out *uint32) int32

OSWorkgroupCopyPort returns the Mach port associated with the workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_copy_port

func OSWorkgroupGetWorkingArena added in v0.6.17

func OSWorkgroupGetWorkingArena(wg OSWorkgroup, index_out *OSWorkgroupIndex) unsafe.Pointer

OSWorkgroupGetWorkingArena retrieves the workgroup’s shared data, and the thread-specific index into that data.

See: https://developer.apple.com/documentation/os/os_workgroup_get_working_arena

func OSWorkgroupIntervalFinish added in v0.6.17

func OSWorkgroupIntervalFinish(wg OSWorkgroupInterval, data OSWorkgroupIntervalData) int32

OSWorkgroupIntervalFinish stops the current interval-based execution of the workgroup’s threads.

See: https://developer.apple.com/documentation/os/os_workgroup_interval_finish

func OSWorkgroupIntervalStart added in v0.6.17

func OSWorkgroupIntervalStart(wg OSWorkgroupInterval, start uint64, deadline uint64, data OSWorkgroupIntervalData) int32

OSWorkgroupIntervalStart starts the regular execution of the workgroup’s threads at the specified time.

See: https://developer.apple.com/documentation/os/os_workgroup_interval_start

func OSWorkgroupIntervalUpdate added in v0.6.17

func OSWorkgroupIntervalUpdate(wg OSWorkgroupInterval, deadline uint64, data OSWorkgroupIntervalData) int32

OSWorkgroupIntervalUpdate schedules a new deadline for workgroup threads that run at regular intervals.

See: https://developer.apple.com/documentation/os/os_workgroup_interval_update

func OSWorkgroupJoin added in v0.6.17

func OSWorkgroupJoin(wg OSWorkgroup, token_out OSWorkgroupJoinToken) int32

OSWorkgroupJoin adds the current thread to the specified workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_join

func OSWorkgroupLeave added in v0.6.17

func OSWorkgroupLeave(wg OSWorkgroup, token OSWorkgroupJoinToken)

OSWorkgroupLeave removes the current thread from the workgroup it previously joined.

See: https://developer.apple.com/documentation/os/os_workgroup_leave

func OSWorkgroupMaxParallelThreads added in v0.6.17

func OSWorkgroupMaxParallelThreads(wg OSWorkgroup, attr OSWorkgroupMptAttr) int32

OSWorkgroupMaxParallelThreads returns the maximum number of threads that the system recommends you add to the specified workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_max_parallel_threads

func OSWorkgroupSetWorkingArena added in v0.6.17

func OSWorkgroupSetWorkingArena(wg OSWorkgroup, arena unsafe.Pointer, max_workers uint32, destructor OSWorkgroupWorkingArenaDestructor) int32

OSWorkgroupSetWorkingArena distributes a block of managed memory to the threads of a workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_set_working_arena

func OSWorkgroupTestcancel added in v0.6.17

func OSWorkgroupTestcancel(wg OSWorkgroup) bool

OSWorkgroupTestcancel returns a Boolean value that indicates whether the workgroup is canceled.

See: https://developer.apple.com/documentation/os/os_workgroup_testcancel

Types

type IOSLog

type IOSLog interface {
	objectivec.IObject
}

An interface definition for the OSLog class.

See: https://developer.apple.com/documentation/os/OSLog

type IOSOSWorkgroup added in v0.6.17

type IOSOSWorkgroup interface {
	IOSObject
}

An interface definition for the OSOSWorkgroup class.

See: https://developer.apple.com/documentation/os/OS_os_workgroup

type IOSOSWorkgroupInterval added in v0.6.17

type IOSOSWorkgroupInterval interface {
	IOSOSWorkgroup
	OS_os_workgroup_interval
}

An interface definition for the OSOSWorkgroupInterval class.

See: https://developer.apple.com/documentation/os/OS_os_workgroup_interval-c.class

type IOSOSWorkgroupParallel added in v0.6.17

type IOSOSWorkgroupParallel interface {
	IOSOSWorkgroup
	OS_os_workgroup_parallel
}

An interface definition for the OSOSWorkgroupParallel class.

See: https://developer.apple.com/documentation/os/OS_os_workgroup_parallel-c.class

type IOSObject added in v0.6.17

type IOSObject interface {
	objectivec.IObject
}

An interface definition for the OSObject class.

See: https://developer.apple.com/documentation/os/OS_object

type OSActivity

type OSActivity = objectivec.Object

OSActivity is an object that represents an activity triggered by the user.

See: https://developer.apple.com/documentation/os/os_activity_t

func OSActivityFromID added in v0.6.17

func OSActivityFromID(id objc.ID) OSActivity

OSActivityFromID constructs a OSActivity from an objc.ID.

type OSActivityFlag

type OSActivityFlag uint32
const (
	// OSActivityFlagDefault: Creates a new activity and associates it as a child of any provided parent activity.
	OSActivityFlagDefault OSActivityFlag = 0
	// OSActivityFlagDetached: Creates a new activity that is independent of any provided parent activity.
	OSActivityFlagDetached OSActivityFlag = 0x1
	// OSActivityFlagIfNonePresent: Creates a new activity only if one is not already present.
	OSActivityFlagIfNonePresent OSActivityFlag = 0x2
)

func (OSActivityFlag) String added in v0.6.17

func (e OSActivityFlag) String() string

type OSActivityID

type OSActivityID = uint64

OSActivityID is a number that uniquely identifies an activity.

See: https://developer.apple.com/documentation/os/os_activity_id_t

func OSActivityGetIdentifier added in v0.6.17

func OSActivityGetIdentifier(activity OSActivity, parent_id *OSActivityID) OSActivityID

OSActivityGetIdentifier retrieves the identifier for a given activity object.

See: https://developer.apple.com/documentation/os/os_activity_get_identifier

type OSActivityScopeState

type OSActivityScopeState = uintptr

OSActivityScopeState is an opaque structure that contains a saved activity-execution context.

See: https://developer.apple.com/documentation/os/os_activity_scope_state_t

type OSActivityScopeStateS added in v0.6.17

type OSActivityScopeStateS struct {
	Opaque [2]uint64 // Opaque data that the system uses to store the execution state.

}

OSActivityScopeStateS

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_activity_scope_state_s

type OSBlock

type OSBlock = func()

OSBlock is a block that takes no arguments and returns no value.

See: https://developer.apple.com/documentation/os/os_block_t

type OSClockid

type OSClockid uint32
const (
	// OSClockMachAbsoluteTime: Units relative to Mach absolute time value.
	OSClockMachAbsoluteTime OSClockid = 32
)

func (OSClockid) String added in v0.6.17

func (e OSClockid) String() string

type OSFunction

type OSFunction = func(unsafe.Pointer)

OSFunction is a pointer to a function.

See: https://developer.apple.com/documentation/os/os_function_t

type OSLog

type OSLog struct {
	objectivec.Object
}

A container of related log messages.

Overview

A log categorizes the messages you write and makes it easy to sort and filter them. Each log contains a subsystem and a category, which you define. A subsystem identifies a major functional area of your app, which you specify using reverse DNS notation, such as `com.Your_companyXCUIElementTypeYour_subsystem_name()`. A category segregates specific areas within a subsystem.

See: https://developer.apple.com/documentation/os/OSLog

func NewOSLog

func NewOSLog() OSLog

NewOSLog creates a new OSLog instance.

func OSLogFromID

func OSLogFromID(id objc.ID) OSLog

OSLogFromID constructs a OSLog from an objc.ID.

A container of related log messages.

func (OSLog) Autorelease

func (o OSLog) Autorelease() OSLog

Autorelease adds the receiver to the current autorelease pool.

func (OSLog) Init

func (o OSLog) Init() OSLog

Init initializes the instance.

type OSLogClass

type OSLogClass struct {
	// contains filtered or unexported fields
}

func GetOSLogClass

func GetOSLogClass() OSLogClass

GetOSLogClass returns the class object for OSLog.

func (OSLogClass) Alloc

func (oc OSLogClass) Alloc() OSLog

Alloc allocates memory for a new instance of the class.

func (OSLogClass) Class

func (oc OSLogClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type OSLogType

type OSLogType uint8

See: https://developer.apple.com/documentation/os/OSLogType

const (
	// OSLogTypeDebug: The debug log level.
	OSLogTypeDebug OSLogType = 0x2
	// OSLogTypeDefault: The default log level.
	OSLogTypeDefault OSLogType = 0
	// OSLogTypeError: The error log level.
	OSLogTypeError OSLogType = 0x10
	// OSLogTypeFault: The fault log level.
	OSLogTypeFault OSLogType = 0x11
	// OSLogTypeInfo: The informational log level.
	OSLogTypeInfo OSLogType = 0x1
)

func (OSLogType) String added in v0.6.17

func (e OSLogType) String() string

type OSOSWorkgroup added in v0.6.17

type OSOSWorkgroup struct {
	OSObject
}

See: https://developer.apple.com/documentation/os/OS_os_workgroup

func NewOSOSWorkgroup added in v0.6.17

func NewOSOSWorkgroup() OSOSWorkgroup

NewOSOSWorkgroup creates a new OSOSWorkgroup instance.

func OSOSWorkgroupFromID added in v0.6.17

func OSOSWorkgroupFromID(id objc.ID) OSOSWorkgroup

OSOSWorkgroupFromID constructs a OSOSWorkgroup from an objc.ID.

func OS_os_workgroupFromID

func OS_os_workgroupFromID(id objc.ID) OSOSWorkgroup

OS_os_workgroupFromID is an alias for OSOSWorkgroupFromID for cross-framework compatibility.

func (OSOSWorkgroup) Autorelease added in v0.6.17

func (o OSOSWorkgroup) Autorelease() OSOSWorkgroup

Autorelease adds the receiver to the current autorelease pool.

func (OSOSWorkgroup) Init added in v0.6.17

func (o OSOSWorkgroup) Init() OSOSWorkgroup

Init initializes the instance.

type OSOSWorkgroupClass added in v0.6.17

type OSOSWorkgroupClass struct {
	// contains filtered or unexported fields
}

func GetOSOSWorkgroupClass added in v0.6.17

func GetOSOSWorkgroupClass() OSOSWorkgroupClass

GetOSOSWorkgroupClass returns the class object for OS_os_workgroup.

func (OSOSWorkgroupClass) Alloc added in v0.6.17

func (oc OSOSWorkgroupClass) Alloc() OSOSWorkgroup

Alloc allocates memory for a new instance of the class.

func (OSOSWorkgroupClass) Class added in v0.6.17

func (oc OSOSWorkgroupClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type OSOSWorkgroupInterval added in v0.6.17

type OSOSWorkgroupInterval struct {
	OSOSWorkgroup
}

See: https://developer.apple.com/documentation/os/OS_os_workgroup_interval-c.class

func NewOSOSWorkgroupInterval added in v0.6.17

func NewOSOSWorkgroupInterval() OSOSWorkgroupInterval

NewOSOSWorkgroupInterval creates a new OSOSWorkgroupInterval instance.

func OSOSWorkgroupIntervalFromID added in v0.6.17

func OSOSWorkgroupIntervalFromID(id objc.ID) OSOSWorkgroupInterval

OSOSWorkgroupIntervalFromID constructs a OSOSWorkgroupInterval from an objc.ID.

func OS_os_workgroup_intervalFromID

func OS_os_workgroup_intervalFromID(id objc.ID) OSOSWorkgroupInterval

OS_os_workgroup_intervalFromID is an alias for OSOSWorkgroupIntervalFromID for cross-framework compatibility.

func (OSOSWorkgroupInterval) Autorelease added in v0.6.17

Autorelease adds the receiver to the current autorelease pool.

func (OSOSWorkgroupInterval) Init added in v0.6.17

Init initializes the instance.

type OSOSWorkgroupIntervalClass added in v0.6.17

type OSOSWorkgroupIntervalClass struct {
	// contains filtered or unexported fields
}

func GetOSOSWorkgroupIntervalClass added in v0.6.17

func GetOSOSWorkgroupIntervalClass() OSOSWorkgroupIntervalClass

GetOSOSWorkgroupIntervalClass returns the class object for OS_os_workgroup_interval.

func (OSOSWorkgroupIntervalClass) Alloc added in v0.6.17

Alloc allocates memory for a new instance of the class.

func (OSOSWorkgroupIntervalClass) Class added in v0.6.17

Class returns the underlying Objective-C class pointer.

type OSOSWorkgroupParallel added in v0.6.17

type OSOSWorkgroupParallel struct {
	OSOSWorkgroup
}

See: https://developer.apple.com/documentation/os/OS_os_workgroup_parallel-c.class

func NewOSOSWorkgroupParallel added in v0.6.17

func NewOSOSWorkgroupParallel() OSOSWorkgroupParallel

NewOSOSWorkgroupParallel creates a new OSOSWorkgroupParallel instance.

func OSOSWorkgroupParallelFromID added in v0.6.17

func OSOSWorkgroupParallelFromID(id objc.ID) OSOSWorkgroupParallel

OSOSWorkgroupParallelFromID constructs a OSOSWorkgroupParallel from an objc.ID.

func OS_os_workgroup_parallelFromID

func OS_os_workgroup_parallelFromID(id objc.ID) OSOSWorkgroupParallel

OS_os_workgroup_parallelFromID is an alias for OSOSWorkgroupParallelFromID for cross-framework compatibility.

func (OSOSWorkgroupParallel) Autorelease added in v0.6.17

Autorelease adds the receiver to the current autorelease pool.

func (OSOSWorkgroupParallel) Init added in v0.6.17

Init initializes the instance.

type OSOSWorkgroupParallelClass added in v0.6.17

type OSOSWorkgroupParallelClass struct {
	// contains filtered or unexported fields
}

func GetOSOSWorkgroupParallelClass added in v0.6.17

func GetOSOSWorkgroupParallelClass() OSOSWorkgroupParallelClass

GetOSOSWorkgroupParallelClass returns the class object for OS_os_workgroup_parallel.

func (OSOSWorkgroupParallelClass) Alloc added in v0.6.17

Alloc allocates memory for a new instance of the class.

func (OSOSWorkgroupParallelClass) Class added in v0.6.17

Class returns the underlying Objective-C class pointer.

type OSObject added in v0.6.17

type OSObject struct {
	objectivec.Object
}

See: https://developer.apple.com/documentation/os/OS_object

func NewOSObject added in v0.6.17

func NewOSObject() OSObject

NewOSObject creates a new OSObject instance.

func OSObjectFromID added in v0.6.17

func OSObjectFromID(id objc.ID) OSObject

OSObjectFromID constructs a OSObject from an objc.ID.

func OS_objectFromID

func OS_objectFromID(id objc.ID) OSObject

OS_objectFromID is an alias for OSObjectFromID for cross-framework compatibility.

func (OSObject) Autorelease added in v0.6.17

func (o OSObject) Autorelease() OSObject

Autorelease adds the receiver to the current autorelease pool.

func (OSObject) Init added in v0.6.17

func (o OSObject) Init() OSObject

Init initializes the instance.

type OSObjectClass added in v0.6.17

type OSObjectClass struct {
	// contains filtered or unexported fields
}

func GetOSObjectClass added in v0.6.17

func GetOSObjectClass() OSObjectClass

GetOSObjectClass returns the class object for OS_object.

func (OSObjectClass) Alloc added in v0.6.17

func (oc OSObjectClass) Alloc() OSObject

Alloc allocates memory for a new instance of the class.

func (OSObjectClass) Class added in v0.6.17

func (oc OSObjectClass) Class() objc.Class

Class returns the underlying Objective-C class pointer.

type OSSecurityConfig

type OSSecurityConfig uint64
const (
	// OSSecurityConfigGuardObjects: # Discussion
	OSSecurityConfigGuardObjects OSSecurityConfig = 0x100
	// OSSecurityConfigHardenedHeap: # Discussion
	OSSecurityConfigHardenedHeap OSSecurityConfig = 0x1
	// OSSecurityConfigMte: # Discussion
	OSSecurityConfigMte OSSecurityConfig = 0x4
	// OSSecurityConfigNone: # Discussion
	OSSecurityConfigNone OSSecurityConfig = 0
	// OSSecurityConfigTpro: # Discussion
	OSSecurityConfigTpro OSSecurityConfig = 0x2
)

func OSSecurityConfigGet added in v0.6.17

func OSSecurityConfigGet() OSSecurityConfig

OSSecurityConfigGet.

See: https://developer.apple.com/documentation/os/os_security_config_get

func (OSSecurityConfig) String added in v0.6.17

func (e OSSecurityConfig) String() string

type OSSignpostID

type OSSignpostID = uint64

OSSignpostID is an identifier you use to distinguish between signposts that have the same name and destination log.

See: https://developer.apple.com/documentation/os/os_signpost_id_t

func OSSignpostIDGenerate added in v0.6.17

func OSSignpostIDGenerate(log kernel.Os_log_t) OSSignpostID

OSSignpostIDGenerate creates a signpost identifier that’s unique among signposts logged to a specified log.

See: https://developer.apple.com/documentation/os/os_signpost_id_generate

func OSSignpostIDMakeWithPointer added in v0.6.17

func OSSignpostIDMakeWithPointer(log kernel.Os_log_t, ptr unsafe.Pointer) OSSignpostID

OSSignpostIDMakeWithPointer creates a signpost identifier that’s unique among signposts logging to the specified log, using a pointer value to generate the unique value.

See: https://developer.apple.com/documentation/os/os_signpost_id_make_with_pointer

type OSSignpostType

type OSSignpostType uint8

See: https://developer.apple.com/documentation/os/OSSignpostType

const (
	// OSSignpostEvent: A signpost that marks an event in your code.
	OSSignpostEvent OSSignpostType = 0
	// OSSignpostIntervalBegin: A signpost that marks the start of a time interval of interest in your code.
	OSSignpostIntervalBegin OSSignpostType = 0x1
	// OSSignpostIntervalEnd: A signpost that marks the end of a time interval of interest in your code.
	OSSignpostIntervalEnd OSSignpostType = 0x2
)

func (OSSignpostType) String added in v0.6.17

func (e OSSignpostType) String() string

type OSSyncWaitOnAddressFlags

type OSSyncWaitOnAddressFlags uint32
const (
	// OSSyncWaitOnAddressNone: Default behavior for futex functions that block a thread.
	OSSyncWaitOnAddressNone OSSyncWaitOnAddressFlags = 0
	// OSSyncWaitOnAddressShared: Flag to indicate an address is in a shared memory region, allowing for a futex wake from another process.
	OSSyncWaitOnAddressShared OSSyncWaitOnAddressFlags = 0x1
)

func (OSSyncWaitOnAddressFlags) String added in v0.6.17

func (e OSSyncWaitOnAddressFlags) String() string

type OSSyncWakeByAddressFlags

type OSSyncWakeByAddressFlags uint32
const (
	// OSSyncWakeByAddressNone: The default behavior for futex functions that wake a thread.
	OSSyncWakeByAddressNone OSSyncWakeByAddressFlags = 0
	// OSSyncWakeByAddressShared: A flag to indicate an address is in a shared memory region, allowing you to wake another waiting process.
	OSSyncWakeByAddressShared OSSyncWakeByAddressFlags = 0x1
)

func (OSSyncWakeByAddressFlags) String added in v0.6.17

func (e OSSyncWakeByAddressFlags) String() string

type OSUnfairLock

type OSUnfairLock = [4]byte

OSUnfairLock is a structure that contains the data for an unfair lock.

See: https://developer.apple.com/documentation/os/os_unfair_lock

type OSUnfairLockFlags

type OSUnfairLockFlags uint32
const (
	OSUnfairLockFlagAdaptiveSpin OSUnfairLockFlags = 0x40000
	OSUnfairLockFlagNone         OSUnfairLockFlags = 0
)

func (OSUnfairLockFlags) String added in v0.6.17

func (e OSUnfairLockFlags) String() string

type OSUnfairLockS added in v0.6.17

type OSUnfairLockS struct {
	// contains filtered or unexported fields
}

OSUnfairLockS

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_unfair_lock_s

type OSWorkgroup

type OSWorkgroup = *OSOSWorkgroup

OSWorkgroup is an opaque object representing a default workgroup in the current process.

See: https://developer.apple.com/documentation/os/os_workgroup_t

func OSWorkgroupCreateWithPort added in v0.6.17

func OSWorkgroupCreateWithPort(name string, mach_port uint32) OSWorkgroup

OSWorkgroupCreateWithPort creates a new workgroup that is bound to the workgroup with the specified Mach port.

See: https://developer.apple.com/documentation/os/os_workgroup_create_with_port

func OSWorkgroupCreateWithWorkgroup added in v0.6.17

func OSWorkgroupCreateWithWorkgroup(name string, wg OSWorkgroup) OSWorkgroup

OSWorkgroupCreateWithWorkgroup create a new workgroup that is bound to the specified workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_create_with_workgroup

type OSWorkgroupAttr

type OSWorkgroupAttr = uintptr

OSWorkgroupAttr is an opaque structure for storing workgroup-related attributes.

See: https://developer.apple.com/documentation/os/os_workgroup_attr_t

type OSWorkgroupAttrOpaqueS added in v0.6.17

type OSWorkgroupAttrOpaqueS struct {
	Sig    uint32
	Opaque [60]int8
}

OSWorkgroupAttrOpaqueS

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_workgroup_attr_opaque_s

type OSWorkgroupIndex

type OSWorkgroupIndex = uint32

OSWorkgroupIndex is a unique index that the workgroup assigns to its joined threads.

See: https://developer.apple.com/documentation/os/os_workgroup_index

type OSWorkgroupInterval

type OSWorkgroupInterval = unsafe.Pointer

OSWorkgroupInterval is a workgroup object that supports the scheduling of threads on a repeating cadence.

See: https://developer.apple.com/documentation/os/os_workgroup_interval_t

type OSWorkgroupIntervalData

type OSWorkgroupIntervalData = uintptr

OSWorkgroupIntervalData is an opaque structure that contains additional configuration data for the interval workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_interval_data_t

type OSWorkgroupIntervalDataOpaqueS added in v0.6.17

type OSWorkgroupIntervalDataOpaqueS struct {
	Sig    uint32
	Opaque [56]int8
}

OSWorkgroupIntervalDataOpaqueS

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_workgroup_interval_data_opaque_s

type OSWorkgroupJoinToken

type OSWorkgroupJoinToken = uintptr

OSWorkgroupJoinToken is an opaque token that represents a connection between a thread and a workgroup.

See: https://developer.apple.com/documentation/os/os_workgroup_join_token_t

type OSWorkgroupJoinTokenOpaqueS added in v0.6.17

type OSWorkgroupJoinTokenOpaqueS struct {
	Sig    uint32
	Opaque [36]int8
}

OSWorkgroupJoinTokenOpaqueS

[Full Topic] [Full Topic]: https://developer.apple.com/documentation/os/os_workgroup_join_token_opaque_s

type OSWorkgroupMptAttr

type OSWorkgroupMptAttr = uintptr

OSWorkgroupMptAttr is an opaque structure containing attributes related to a request for the maximum number of parallel threads.

See: https://developer.apple.com/documentation/os/os_workgroup_mpt_attr_t

type OSWorkgroupMptAttrS

type OSWorkgroupMptAttrS unsafe.Pointer

See: https://developer.apple.com/documentation/os/os_workgroup_mpt_attr_s OSWorkgroupMptAttrS is an unresolved C aggregate typedef.

type OSWorkgroupParallel

type OSWorkgroupParallel = unsafe.Pointer

OSWorkgroupParallel is a workgroup object that supports the scheduling of threads that work in parallel to complete a task.

See: https://developer.apple.com/documentation/os/os_workgroup_parallel_t

func OSWorkgroupParallelCreate added in v0.6.17

func OSWorkgroupParallelCreate(name string, attr OSWorkgroupAttr) OSWorkgroupParallel

OSWorkgroupParallelCreate creates a new workgroup that manges threads working on a single task in parallel.

See: https://developer.apple.com/documentation/os/os_workgroup_parallel_create

type OSWorkgroupWorkingArenaDestructor

type OSWorkgroupWorkingArenaDestructor = func(unsafe.Pointer)

OSWorkgroupWorkingArenaDestructor is a function that deallocates a workgroup’s currently assigned shared memory.

See: https://developer.apple.com/documentation/os/os_workgroup_working_arena_destructor_t

type OS_os_activity

type OS_os_activity interface {
	objectivec.IObject
}

OS_os_activity protocol.

See: https://developer.apple.com/documentation/os/OS_os_activity

type OS_os_activityObject

type OS_os_activityObject struct {
	objectivec.Object
}

OS_os_activityObject wraps an existing Objective-C object that conforms to the OS_os_activity protocol.

func OS_os_activityObjectFromID

func OS_os_activityObjectFromID(id objc.ID) OS_os_activityObject

OS_os_activityObjectFromID constructs a OS_os_activityObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (OS_os_activityObject) BaseObject

func (o OS_os_activityObject) BaseObject() objectivec.Object

type OS_os_log

type OS_os_log interface {
	objectivec.IObject
}

OS_os_log protocol.

See: https://developer.apple.com/documentation/os/OS_os_log

type OS_os_logObject

type OS_os_logObject struct {
	objectivec.Object
}

OS_os_logObject wraps an existing Objective-C object that conforms to the OS_os_log protocol.

func OS_os_logObjectFromID

func OS_os_logObjectFromID(id objc.ID) OS_os_logObject

OS_os_logObjectFromID constructs a OS_os_logObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (OS_os_logObject) BaseObject

func (o OS_os_logObject) BaseObject() objectivec.Object

type OS_os_workgroup_interval

type OS_os_workgroup_interval interface {
	objectivec.IObject
}

OS_os_workgroup_interval protocol.

See: https://developer.apple.com/documentation/os/OS_os_workgroup_interval-c.protocol

type OS_os_workgroup_intervalObject added in v0.6.17

type OS_os_workgroup_intervalObject struct {
	objectivec.Object
}

OS_os_workgroup_intervalObject wraps an existing Objective-C object that conforms to the OS_os_workgroup_interval protocol.

func OS_os_workgroup_intervalObjectFromID added in v0.6.17

func OS_os_workgroup_intervalObjectFromID(id objc.ID) OS_os_workgroup_intervalObject

OS_os_workgroup_intervalObjectFromID constructs a OS_os_workgroup_intervalObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (OS_os_workgroup_intervalObject) BaseObject added in v0.6.17

type OS_os_workgroup_parallel

type OS_os_workgroup_parallel interface {
	objectivec.IObject
}

OS_os_workgroup_parallel protocol.

See: https://developer.apple.com/documentation/os/OS_os_workgroup_parallel-c.protocol

type OS_os_workgroup_parallelObject added in v0.6.17

type OS_os_workgroup_parallelObject struct {
	objectivec.Object
}

OS_os_workgroup_parallelObject wraps an existing Objective-C object that conforms to the OS_os_workgroup_parallel protocol.

func OS_os_workgroup_parallelObjectFromID added in v0.6.17

func OS_os_workgroup_parallelObjectFromID(id objc.ID) OS_os_workgroup_parallelObject

OS_os_workgroup_parallelObjectFromID constructs a OS_os_workgroup_parallelObject from an objc.ID. The object is determined to conform to the protocol at runtime.

func (OS_os_workgroup_parallelObject) BaseObject added in v0.6.17

type Os_activity_flag_t

type Os_activity_flag_t = OSActivityFlag

Os_activity_flag_t is a C-name alias for OSActivityFlag.

type Os_activity_id_t

type Os_activity_id_t = OSActivityID

Os_activity_id_t is a C-name alias for OSActivityID.

type Os_activity_scope_state_s

type Os_activity_scope_state_s = OSActivityScopeStateS

Os_activity_scope_state_s is a type alias for OSActivityScopeStateS for use in objc.Send[T] calls.

type Os_activity_scope_state_t

type Os_activity_scope_state_t = OSActivityScopeState

Os_activity_scope_state_t is a C-name alias for OSActivityScopeState.

type Os_activity_t

type Os_activity_t = OSActivity

Os_activity_t is a C-name alias for OSActivity.

type Os_block_t

type Os_block_t = OSBlock

Os_block_t is a C-name alias for OSBlock.

type Os_clockid_t

type Os_clockid_t = OSClockid

Os_clockid_t is a C-name alias for OSClockid.

type Os_function_t

type Os_function_t = OSFunction

Os_function_t is a C-name alias for OSFunction.

type Os_log_type_t

type Os_log_type_t = OSLogType

Os_log_type_t is a C-name alias for OSLogType.

type Os_security_config_t

type Os_security_config_t = OSSecurityConfig

Os_security_config_t is a C-name alias for OSSecurityConfig.

type Os_signpost_id_t

type Os_signpost_id_t = OSSignpostID

Os_signpost_id_t is a C-name alias for OSSignpostID.

type Os_signpost_type_t

type Os_signpost_type_t = OSSignpostType

Os_signpost_type_t is a C-name alias for OSSignpostType.

type Os_sync_wait_on_address_flags_t

type Os_sync_wait_on_address_flags_t = OSSyncWaitOnAddressFlags

Os_sync_wait_on_address_flags_t is a C-name alias for OSSyncWaitOnAddressFlags.

type Os_sync_wake_by_address_flags_t

type Os_sync_wake_by_address_flags_t = OSSyncWakeByAddressFlags

Os_sync_wake_by_address_flags_t is a C-name alias for OSSyncWakeByAddressFlags.

type Os_unfair_lock added in v0.6.17

type Os_unfair_lock = OSUnfairLock

Os_unfair_lock is a C-name alias for OSUnfairLock.

type Os_unfair_lock_flags_t

type Os_unfair_lock_flags_t = OSUnfairLockFlags

Os_unfair_lock_flags_t is a C-name alias for OSUnfairLockFlags.

type Os_unfair_lock_s added in v0.6.17

type Os_unfair_lock_s = OSUnfairLockS

Os_unfair_lock_s is a type alias for OSUnfairLockS for use in objc.Send[T] calls.

type Os_workgroup_attr_opaque_s

type Os_workgroup_attr_opaque_s = OSWorkgroupAttrOpaqueS

Os_workgroup_attr_opaque_s is a type alias for OSWorkgroupAttrOpaqueS for use in objc.Send[T] calls.

type Os_workgroup_attr_s

type Os_workgroup_attr_s = OSWorkgroupAttrS

Os_workgroup_attr_s is a C-name alias for OSWorkgroupAttrS.

type Os_workgroup_attr_t

type Os_workgroup_attr_t = OSWorkgroupAttr

Os_workgroup_attr_t is a C-name alias for OSWorkgroupAttr.

type Os_workgroup_index

type Os_workgroup_index = OSWorkgroupIndex

Os_workgroup_index is a C-name alias for OSWorkgroupIndex.

type Os_workgroup_interval_data_opaque_s

type Os_workgroup_interval_data_opaque_s = OSWorkgroupIntervalDataOpaqueS

Os_workgroup_interval_data_opaque_s is a type alias for OSWorkgroupIntervalDataOpaqueS for use in objc.Send[T] calls.

type Os_workgroup_interval_data_s

type Os_workgroup_interval_data_s = OSWorkgroupIntervalDataS

Os_workgroup_interval_data_s is a C-name alias for OSWorkgroupIntervalDataS.

type Os_workgroup_interval_data_t

type Os_workgroup_interval_data_t = OSWorkgroupIntervalData

Os_workgroup_interval_data_t is a C-name alias for OSWorkgroupIntervalData.

type Os_workgroup_interval_t

type Os_workgroup_interval_t = OSWorkgroupInterval

Os_workgroup_interval_t is a C-name alias for OSWorkgroupInterval.

type Os_workgroup_join_token_opaque_s

type Os_workgroup_join_token_opaque_s = OSWorkgroupJoinTokenOpaqueS

Os_workgroup_join_token_opaque_s is a type alias for OSWorkgroupJoinTokenOpaqueS for use in objc.Send[T] calls.

type Os_workgroup_join_token_s

type Os_workgroup_join_token_s = OSWorkgroupJoinTokenS

Os_workgroup_join_token_s is a C-name alias for OSWorkgroupJoinTokenS.

type Os_workgroup_join_token_t

type Os_workgroup_join_token_t = OSWorkgroupJoinToken

Os_workgroup_join_token_t is a C-name alias for OSWorkgroupJoinToken.

type Os_workgroup_mpt_attr_s

type Os_workgroup_mpt_attr_s = OSWorkgroupMptAttrS

Os_workgroup_mpt_attr_s is a C-name alias for OSWorkgroupMptAttrS.

type Os_workgroup_mpt_attr_t

type Os_workgroup_mpt_attr_t = OSWorkgroupMptAttr

Os_workgroup_mpt_attr_t is a C-name alias for OSWorkgroupMptAttr.

type Os_workgroup_parallel_t

type Os_workgroup_parallel_t = OSWorkgroupParallel

Os_workgroup_parallel_t is a C-name alias for OSWorkgroupParallel.

type Os_workgroup_t

type Os_workgroup_t = OSWorkgroup

Os_workgroup_t is a C-name alias for OSWorkgroup.

type Os_workgroup_working_arena_destructor_t

type Os_workgroup_working_arena_destructor_t = OSWorkgroupWorkingArenaDestructor

Os_workgroup_working_arena_destructor_t is a C-name alias for OSWorkgroupWorkingArenaDestructor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL