Skip to content
BSD syscall#525

svc · unix #525

net_qos_guideline

Asks the kernel for a recommendation on whether a given network operation should run now under current QoS policy.

Prototype

int net_qos_guideline(struct net_qos_param *param, uint32_t param_len);

Returns: int

Arguments

NameTypeDirDescription
paramstruct net_qos_param-
param_lenuint32_t-

Version history

XNU tagmacOS#
xnu-4570.1.46macOS 10.13 High Sierra525
xnu-4903.221.2macOS 10.14 Mojave525
xnu-6153.11.26macOS 10.15 Catalina525
xnu-7195.50.7.100.1macOS 11.0 Big Sur525
xnu-8019.41.5macOS 12.0 Monterey525
xnu-8792.41.9macOS 13.0 Ventura525
xnu-10002.1.13macOS 14.0 Sonoma525
xnu-11215.1.10macOS 15.0 Sequoia525
xnu-11417.101.15macOS 15.4 Sequoia525
xnu-12377.1.9macOS 26.0 Tahoe525
xnu-10002.41.9525
xnu-10002.61.3525
xnu-10002.81.5525
xnu-10063.101.15525
xnu-10063.121.3525
xnu-10063.141.1525
xnu-11215.41.3525
xnu-11215.61.5525
xnu-11215.81.4525
xnu-11417.121.6525
xnu-11417.140.69525
xnu-12377.101.15525
xnu-12377.41.6525
xnu-12377.61.12525
xnu-12377.81.4525
xnu-4570.20.62525
xnu-4570.31.3525
xnu-4570.41.2525
xnu-4570.51.1525
xnu-4570.61.1525
xnu-4570.71.2525
xnu-4903.231.4525
xnu-4903.241.1525
xnu-4903.270.47525
xnu-6153.101.6525
xnu-6153.121.1525
xnu-6153.141.1525
xnu-6153.41.3525
xnu-6153.61.1525
xnu-6153.81.5525
xnu-7195.101.1525
xnu-7195.121.3525
xnu-7195.141.2525
xnu-7195.60.75525
xnu-7195.81.3525
xnu-8019.61.5525
xnu-8019.80.24525
xnu-8020.101.4525
xnu-8020.121.3525
xnu-8020.140.41525
xnu-8792.61.2525
xnu-8792.81.2525
xnu-8796.101.5525
xnu-8796.121.2525
xnu-8796.141.3525

Notes

Backs the public NWAdvisor and Network.framework APIs that let apps cooperate with macOS's responsiveness goals — for example, background sync code can ask 'is the network currently being used for an interactive task?'. The kernel evaluates the request against the active QoS class (background, utility, default, user-initiated, user-interactive), recent foreground app activity, and Low Data Mode. Returns a verdict that callers honor voluntarily; it is advisory, not enforced.

Detection

Read-only and uninteresting to ES. Useful as a signal that an app is well-behaved; well-written networking code calls it before kicking off bulk transfers.

Related APIs

necp_client_actionsetsockoptgetsockopt