Lines Matching defs:action

77 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,
108 int action = uap->action;
166 error = handle_background(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
169 error = handle_hwaccess(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
172 error = handle_lowresrouce(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
175 error = handle_resourceuse(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
179 error = handle_applifecycle(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
183 error = handle_apptype(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
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)
206 switch (action) {
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)
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)
328 if (action == PROC_POLICY_ACTION_RESTORE)
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)
358 switch (action) {
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)
415 switch (action) {
464 if (action == PROC_POLICY_ACTION_APPLY) {
486 if (action == PROC_POLICY_ACTION_APPLY) {
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)
534 switch (action) {
556 proc_apply_resource_actions(void * bsdinfo, int type, int action)
560 switch(action) {
589 proc_restore_resource_actions(void * bsdinfo, __unused int type, int action)
593 switch(action) {