Searched refs:scope (Results 1 - 12 of 12) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Dprocess_policy.c77 static int handle_background(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
78 static int handle_hwaccess(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
79 static int handle_lowresrouce(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
80 static int handle_resourceuse(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
81 static int handle_apptype(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
87 static int handle_applifecycle(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid);
94 *int process_policy(int scope, int action, int policy, int policy_subtype,
97 *{ int process_policy(int scope, int action, int policy, int policy_subtype,
106 int scope = uap->scope; local
201 handle_background(int scope, int action, __unused int policy, __unused int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid) argument
300 handle_hwaccess(__unused int scope, __unused int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, __unused proc_t proc, __unused uint64_t target_threadid) argument
316 handle_lowresrouce(__unused int scope, int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, proc_t proc, __unused uint64_t target_threadid) argument
338 handle_resourceuse(__unused int scope, __unused int action, __unused int policy, int policy_subtype, user_addr_t attrp, proc_t proc, __unused uint64_t target_threadid) argument
395 handle_applifecycle(__unused int scope, int action, __unused int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid) argument
504 handle_apptype(__unused int scope, int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, proc_t target_proc, __unused uint64_t target_threadid) argument
[all...]
H A Dkern_authorization.c67 * If a listener comes in for a scope that is not active we hang the listener
68 * off our kauth_dangling_listeners list and once the scope becomes active we
69 * remove it from kauth_dangling_listeners and add it to the active scope.
78 /* XXX - kauth_todo - there is a race if a scope listener is removed while we
80 * a scope lock in order to get the best possible performance. we will fix this
124 static int kauth_scope_valid(kauth_scope_t scope);
189 * Allocate and populate the scope structure.
243 * Look for listeners waiting for this scope, move them to the active scope
253 * the active scope
275 kauth_deregister_scope(kauth_scope_t scope) argument
398 kauth_authorize_action(kauth_scope_t scope, kauth_cred_t credential, kauth_action_t action, uintptr_t arg0, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3) argument
[all...]
H A Dkern_exec.c169 int task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope);
/darwin-on-arm/xnu/pexpert/gen/
H A Ddevice_tree.c55 RealDTEntry scope; member in struct:DTSavedScope
311 DTSavedScopePtr scope; local
313 while ((scope = iter->savedScope) != NULL) {
314 iter->savedScope = scope->nextScope;
315 kfree(scope, sizeof(struct DTSavedScope));
332 newScope->scope = iter->currentScope;
355 iter->currentScope = newScope->scope;
391 // which (if true) causes restarting at the outer scope
392 // rather than the current scope.
393 DTSavedScopePtr scope;
[all...]
/darwin-on-arm/xnu/bsd/netinet6/
H A Dscope6.c106 /* grow scope index array */
138 /* by default, we don't care about scope boundary for these scopes. */
216 * Get a scope of the address. Node-local, link-local, site-local or global.
222 int scope; local
225 scope = addr->s6_addr8[1] & 0xc0;
227 switch (scope) {
242 scope = addr->s6_addr8[1] & 0x0f;
245 * due to other scope such as reserved,
246 * return scope doesn't work.
248 switch (scope) {
283 int scope = in6_addrscope(addr); local
492 int scope; local
[all...]
H A Din6_src.c258 * If the specified address is ambiguous wrt the scope zone,
333 * We'll never take an address that breaks the scope zone
367 /* Rule 2: Prefer appropriate scope */
681 * IPV6_PKTINFO, use the scope ID in the destination address.
707 * to use for transmission; if a scope ID has been specified,
713 unsigned int scope = ifscope; local
719 * If no scope is specified and the route is stale (pointing
722 * with the same IPv6 address. Otherwise pick up the scope
727 if (scope == IFSCOPE_NONE) {
728 scope
[all...]
H A Dnd6_rtr.c996 uint16_t *scope = &dr0.rtaddr.s6_addr16[1]; local
998 if (*scope == 0) {
999 *scope = htons(dr_ifp->if_index);
1000 } else if (*scope != htons(dr_ifp->if_index)) {
3837 /* XXX: scope zone ID? */
3987 /* XXX: scope zone ID? */
/darwin-on-arm/xnu/bsd/sys/
H A Dprocess_policy.h39 /* defns of scope */
196 int process_policy(int scope, int action, int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64_t target_threadid);
/darwin-on-arm/xnu/osfmk/kern/
H A Dtask_policy.c54 int task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope);
1382 * PROC_POLICY_RSRCACT_THROTTLE ENOTSUP Task-wide scope only
1383 * PROC_POLICY_RSRCACT_SUSPEND Task-wide scope only ENOTSUP
1384 * PROC_POLICY_RSRCACT_TERMINATE Task-wide scope only ENOTSUP
1385 * PROC_POLICY_RSRCACT_NOTIFY_KQ Task-wide scope only ENOTSUP
1386 * PROC_POLICY_RSRCACT_NOTIFY_EXC ENOTSUP Per-thread scope only
1393 * aggregate entity (so-called "Task-wide" or "Proc-wide" scope, whereby the CPU time consumed by all threads
1394 * in the task are added together), or by any one thread in the task (so-called "per-thread" scope).
1401 * Currently, requesting notification via an exception is the only way to get per-thread scope for a
1402 * CPU limit. All other types of notifications force task-wide scope fo
1408 int scope; local
1539 task_set_cpuusage(task_t task, uint64_t percentage, uint64_t interval, uint64_t deadline, int scope) argument
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_output.c659 * If the caller didn't explicitly specify the scope,
3121 * to use for transmission; if the caller has specified a scope,
3127 unsigned int scope = ifscope; local
3130 * If no scope is specified and the route is stale (pointing
3133 * with the same IP address. Otherwise pick up the scope
3138 if (scope == IFSCOPE_NONE) {
3139 scope = rt_ifp->if_index;
3140 if (scope != get_primary_ifscope(AF_INET) &&
3142 scope = get_primary_ifscope(AF_INET);
3145 ifa = (struct ifaddr *)ifa_foraddr_scoped(src.s_addr, scope);
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dif.c693 * Similar to ifa_foraddr, except with the added interface scope
695 * case there is no scope restriction).
698 ifa_foraddr_scoped(unsigned int addr, unsigned int scope) argument
706 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) {
728 ifa_foraddr6_scoped(struct in6_addr *addr6, unsigned int scope) argument
736 (scope == IFSCOPE_NONE || ia->ia_ifp->if_index == scope)) {
1020 * If we're looking up with a scope,
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Ddtrace.c6568 * out of that scope because in the case of DIF expression
9367 err += efunc(i, "unrecognized variable scope %d\n",
9729 uchar_t scope;
9744 scope = DIFV_SCOPE_THREAD;
9757 scope = DIFV_SCOPE_THREAD;
9759 scope = DIFV_SCOPE_GLOBAL;
9827 if (v->dtdv_id == id && v->dtdv_scope == scope) {
9870 uint8_t scope = v->dtdv_scope;
9878 switch (scope) {
10038 uint8_t scope
[all...]

Completed in 173 milliseconds