/xnu-2782.1.97/libsyscall/wrappers/ |
H A D | getiopolicy_np.c | 33 int policy, error; local 39 policy = -1; 48 policy = -1; 52 policy = iop_param.iop_policy; 55 return policy; 59 setiopolicy_np(int iotype, int scope, int policy) argument 66 iop_param.iop_policy = policy;
|
/xnu-2782.1.97/bsd/net/ |
H A D | netsrc.c | 141 struct in6_addrpolicy *policy; local 164 policy = in6_addrsel_lookup_policy(&v4entry); 165 if (policy->label != -1) { 166 nrp.nrp_label = policy->label; 167 nrp.nrp_precedence = policy->preced; 169 nrp.nrp_dstlabel = policy->label; 170 nrp.nrp_dstprecedence = policy->preced; 221 struct in6_addrpolicy *policy; local 236 policy = in6_addrsel_lookup_policy(&sin6); 237 if (policy [all...] |
H A D | necp.c | 62 * kernel control socket to create high-level policy sessions, which 75 * can specify the sub-order for each policy it creates which will be 84 * and generate kernel policies. There are two phases of kernel policy 87 * 1. The session policy is parsed to create kernel policies at the socket 88 * and IP layers, when applicable. For example, a policy that requires 89 * all traffic from App1 to Pass will generate a socket kernel policy to 90 * match App1 and mark packets with ID1, and also an IP policy to match 93 * policy lists. 105 * The app layer map is used for policy checks coming in from user space, and is one 279 * A note on policy 'map 1210 struct necp_session_policy *policy = NULL; local 1378 struct necp_session_policy *policy = NULL; local 1525 struct necp_session_policy *policy = NULL; local 1580 struct necp_session_policy *policy = NULL; local 1624 struct necp_session_policy *policy; local 1728 struct necp_session_policy *policy = NULL; local 1743 necp_policy_get_result_type(struct necp_session_policy *policy) argument 1749 necp_policy_get_result_parameter_length(struct necp_session_policy *policy) argument 1755 necp_policy_get_result_parameter(struct necp_session_policy *policy, u_int8_t *parameter_buffer, size_t parameter_buffer_length) argument 1772 necp_policy_mark_for_deletion(struct necp_session *session, struct necp_session_policy *policy) argument 1790 struct necp_session_policy *policy = NULL; local 1801 necp_policy_delete(struct necp_session *session, struct necp_session_policy *policy) argument 1828 necp_policy_unapply(struct necp_session_policy *policy) argument 1898 necp_policy_apply(struct necp_session *session, struct necp_session_policy *policy) argument 2356 struct necp_session_policy *policy = NULL; local 2539 struct necp_kernel_socket_policy *policy = NULL; local 2567 struct necp_kernel_socket_policy *policy = NULL; local 2634 necp_kernel_socket_policy_is_unnecessary(struct necp_kernel_socket_policy *policy, struct necp_kernel_socket_policy **policy_array, int valid_indices) argument 3345 struct necp_kernel_ip_output_policy *policy = NULL; local 3368 struct necp_kernel_ip_output_policy *policy = NULL; local 3410 necp_kernel_ip_output_policy_is_unnecessary(struct necp_kernel_ip_output_policy *policy, struct necp_kernel_ip_output_policy **policy_array, int valid_indices) argument [all...] |
/xnu-2782.1.97/libsyscall/mach/ |
H A D | thread_act.c | 35 thread_policy(thread_act_t thr_act, policy_t policy, policy_base_t base, mach_msg_type_number_t baseCnt, boolean_t set_limit) argument 39 kr = _kernelrpc_thread_policy(thr_act, policy, base, baseCnt, set_limit); 65 thread_set_policy(thread_act_t thr_act, processor_set_t pset, policy_t policy, policy_base_t base, mach_msg_type_number_t baseCnt, policy_limit_t limit, mach_msg_type_number_t limitCnt) argument 69 kr = _kernelrpc_thread_set_policy(thr_act, pset, policy, base, baseCnt, limit, limitCnt);
|
/xnu-2782.1.97/tools/tests/affinity/ |
H A D | tags.c | 45 thread_affinity_policy_data_t policy; local 47 policy.affinity_tag = tag; 50 (thread_policy_t) &policy, 63 thread_affinity_policy_data_t policy; local 68 (thread_policy_t) &policy, &count, &get_default); 74 return policy.affinity_tag;
|
H A D | pool.c | 171 thread_affinity_policy_data_t policy; local 173 policy.affinity_tag = tag; 176 (thread_policy_t) &policy,
|
H A D | sets.c | 188 thread_affinity_policy_data_t policy; local 199 policy.affinity_tag = lp->setnum; 202 (thread_policy_t) &policy,
|
/xnu-2782.1.97/osfmk/kern/ |
H A D | mk_sp.c | 46 #include <mach/policy.h> 66 * Set scheduling policy and parameters, both base and limit, for 67 * the given thread. Policy can be any policy implemented by the 74 policy_t policy, 87 if (invalid_policy(policy)) 92 switch (policy) { 170 result = thread_set_mode_and_absolute_pri(thread, policy, bas); 182 * Set scheduling policy and parameters, both base and limit, for 183 * the given thread. Policy must be a policy which is enabled for the 189 policy_t policy, 71 thread_set_policy( thread_t thread, processor_set_t pset, policy_t policy, policy_base_t base, mach_msg_type_number_t base_count, policy_limit_t limit, mach_msg_type_number_t limit_count) argument 187 thread_policy( thread_t thread, policy_t policy, policy_base_t base, mach_msg_type_number_t count, boolean_t set_limit) argument [all...] |
H A D | task_swap.c | 48 #include <mach/policy.h>
|
H A D | wait_queue.h | 82 wq_fifo:1, /* fifo wakeup policy? */ 308 int policy); 311 int policy); 315 int policy); 321 int policy); 374 int policy); 383 int policy);
|
H A D | sync_lock.c | 66 __unused int policy) 62 lock_set_create( __unused task_t task, __unused lock_set_t *new_lock_set, __unused int n_ulocks, __unused int policy) argument
|
H A D | wait_queue.c | 221 * KERN_INVALID_ARGUMENT - The policy parameter was invalid 226 int policy) 229 if ((policy & SYNC_POLICY_FIXED_PRIORITY) != 0) 232 wq->wq_fifo = ((policy & SYNC_POLICY_REVERSED) == 0); 253 int policy) 260 ret = wait_queue_init(wq, policy); 294 * KERN_INVALID_ARGUMENT - The policy parameter was invalid 299 int policy) 303 ret = wait_queue_init(&wqset->wqs_wait_queue, policy); 308 if (policy 224 wait_queue_init( wait_queue_t wq, int policy) argument 252 wait_queue_alloc( int policy) argument 297 wait_queue_set_init( wait_queue_set_t wqset, int policy) argument 319 wait_queue_sub_init( wait_queue_set_t wqset, int policy) argument 361 wait_queue_set_alloc( int policy) argument [all...] |
/xnu-2782.1.97/bsd/kern/ |
H A D | process_policy.c | 30 * process policy syscall implementation 73 static int handle_lowresource(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid); 74 static int handle_resourceuse(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid); 75 static int handle_apptype(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid); 76 static int handle_boost(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, proc_t proc, uint64_t target_threadid); 85 *int process_policy(int scope, int action, int policy, int policy_subtype, 88 *{ int process_policy(int scope, int action, int policy, int policy_subtype, 98 int policy = uap->policy; local 126 if ((policy ! 177 handle_lowresource(__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 199 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 293 handle_apptype( 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 378 handle_boost(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 D | kern_resource.c | 1435 * Description: System call MUX for use in manipulating I/O policy attributes of the current process or thread 1438 * arg Pointer to policy arguments 1441 * EINVAL Invalid command or invalid policy arguments 1446 iopolicysys_disk(struct proc *p, int cmd, int scope, int policy, struct _iopol_param_t *iop_param); 1448 iopolicysys_vfs(struct proc *p, int cmd, int scope, int policy, struct _iopol_param_t *iop_param); 1491 iopolicysys_disk(struct proc *p __unused, int cmd, int scope, int policy, struct _iopol_param_t *iop_param) argument 1508 /* Not allowed to combine QoS and (non-PASSIVE) IO policy, doing so strips the QoS */ 1510 switch (policy) { 1545 /* Validate policy */ 1547 switch (policy) { 1585 policy); local 1603 iopolicysys_vfs(struct proc *p, int cmd, int scope, int policy, struct _iopol_param_t *iop_param) argument [all...] |
/xnu-2782.1.97/osfmk/mach/ |
H A D | policy.h | 63 * mach/policy.h 65 * Definitions for scheduing policy. 87 * policy 'class'. 97 * Check if policy is of 'class' fixed-priority. 102 * Check if policy is valid. 104 #define invalid_policy(policy) \ 105 ((policy) != POLICY_TIMESHARE && \ 106 (policy) != POLICY_RR && \ 107 (policy) != POLICY_FIFO) 111 * Types for TIMESHARE policy [all...] |
H A D | processor_set.defs | 99 * Enable policy for processor set 103 policy : int); 106 * Disable policy for processor set 110 policy : int; 129 * Allows control of enabled policies, and per-policy base and limit
|
H A D | thread_info.h | 73 #include <mach/policy.h> 96 policy_t policy; /* scheduling policy in effect */ member in struct:thread_basic_info
|
H A D | flipc_types.h | 66 * sched policy. 220 int policy; /* Allocations lock sched policy. member in struct:FLIPC_domain_info
|
H A D | sync.defs | 87 policy : int; 107 policy : int);
|
H A D | task_info.h | 71 #include <mach/policy.h> 105 policy_t policy; /* default policy for new threads */ member in struct:task_basic_info_32 121 policy_t policy; /* default policy for new threads */ member in struct:task_basic_info_64 141 policy_t policy; /* default policy for new threads */ member in struct:task_basic_info 274 policy_t policy; /* default policy for new threads */ member in struct:mach_task_basic_info
|
H A D | task.defs | 251 policy : int); 268 policy : int; 276 * Set/get policy information for a task. 310 policy : policy_t; 397 policy : policy_t;
|
H A D | thread_act.defs | 266 policy : policy_t; 271 * Set/get policy information for a thread. 335 policy : policy_t;
|
/xnu-2782.1.97/bsd/netinet6/ |
H A D | ipsec.c | 175 &ip4_def_policy.policy, 0, &sysctl_def_policy, "I", ""); 197 /* for performance, we bypass ipsec until a security policy is set */ 224 def_policy, CTLFLAG_RW | CTLFLAG_LOCKED, &ip6_def_policy.policy, 0, ""); 275 int old_policy = ip4_def_policy.policy; 280 if (ip4_def_policy.policy != IPSEC_POLICY_NONE && 281 ip4_def_policy.policy != IPSEC_POLICY_DISCARD) { 282 ip4_def_policy.policy = old_policy; 286 /* Turn off the bypass if the default security policy changes */ 287 if (ipsec_bypass != 0 && ip4_def_policy.policy != IPSEC_POLICY_NONE) 312 struct secpolicy *currsp = NULL; /* policy o [all...] |
/xnu-2782.1.97/bsd/sys/ |
H A D | systm.h | 225 void throttle_set_thread_io_policy(int policy); 234 * 'policy' should be specified as either IOPOL_UTILITY or IPOL_THROTTLE, 237 int throttle_info_io_will_be_throttled(void *throttle_info_handle, int policy);
|
H A D | process_policy.h | 44 #define PROC_POLICY_SCOPE_PROCESS 1 /* the policy setting is for process wide effect */ 45 #define PROC_POLICY_SCOPE_THREAD 2 /* the policy setting is for thread inside a proc */ 48 #define PROC_POLICY_ACTION_APPLY 1 /* enforce the set policy */ 50 #define PROC_POLICY_ACTION_DENYINHERIT 3 /* set for no inheritence of the specified policy */ 51 #define PROC_POLICY_ACTION_DENYSELFSET 4 /* set for the process to set its own policy */ 52 #define PROC_POLICY_ACTION_ENABLE 5 /* enable policy and its actions */ 53 #define PROC_POLICY_ACTION_DISABLE 6 /* disable policy and its actions, also clears any actions that have already happened */ 55 #define PROC_POLICY_ACTION_SET 10 /* set the policy attributes */ 56 #define PROC_POLICY_ACTION_GET 11 /* get the policy attributes */ 57 #define PROC_POLICY_ACTION_ADD 12 /* add a policy attribut [all...] |