Home
last modified time | relevance | path

Searched refs:policy (Results 226 - 250 of 1790) sorted by relevance

12345678910>>...72

/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dnlattr.c46 struct libbpf_nla_policy *policy) in validate_nla()
55 pt = &policy[type]; in validate_nla()
92 * @arg policy Attribute validation policy.
98 * compatibility. If \a policy is not NULL, the attribute will be
99 * validated using the specified policy.
105 int len, struct libbpf_nla_policy *policy) in libbpf_nla_parse()
118 if (policy) { in libbpf_nla_parse()
119 err = validate_nla(nla, maxtype, policy); in libbpf_nla_parse()
141 * @arg policy Attribut
45 validate_nla(struct nlattr *nla, int maxtype, struct libbpf_nla_policy *policy) validate_nla() argument
104 libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, struct libbpf_nla_policy *policy) libbpf_nla_parse() argument
149 libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, struct libbpf_nla_policy *policy) libbpf_nla_parse_nested() argument
[all...]
/third_party/libbpf/src/
H A Dnlattr.c46 struct libbpf_nla_policy *policy) in validate_nla()
55 pt = &policy[type]; in validate_nla()
92 * @arg policy Attribute validation policy.
98 * compatibility. If \a policy is not NULL, the attribute will be
99 * validated using the specified policy.
105 int len, struct libbpf_nla_policy *policy) in libbpf_nla_parse()
118 if (policy) { in libbpf_nla_parse()
119 err = validate_nla(nla, maxtype, policy); in libbpf_nla_parse()
141 * @arg policy Attribut
45 validate_nla(struct nlattr *nla, int maxtype, struct libbpf_nla_policy *policy) validate_nla() argument
104 libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, struct libbpf_nla_policy *policy) libbpf_nla_parse() argument
149 libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, struct libbpf_nla_policy *policy) libbpf_nla_parse_nested() argument
[all...]
/kernel/linux/linux-5.10/net/ethtool/
H A Dnetlink.c62 /* No validation here, command policy should have a nested policy set in ethnl_parse_header_dev_get()
696 .policy = ethnl_strset_get_policy,
705 .policy = ethnl_linkinfo_get_policy,
712 .policy = ethnl_linkinfo_set_policy,
721 .policy = ethnl_linkmodes_get_policy,
728 .policy = ethnl_linkmodes_set_policy,
737 .policy = ethnl_linkstate_get_policy,
746 .policy = ethnl_debug_get_policy,
753 .policy
[all...]
/kernel/linux/linux-6.6/tools/net/ynl/lib/
H A Dynl.c48 ynl_err_walk_report_one(struct ynl_policy_nest *policy, unsigned int type, in ynl_err_walk_report_one() argument
51 if (!policy) { in ynl_err_walk_report_one()
53 *n += snprintf(str, str_sz, "!policy"); in ynl_err_walk_report_one()
57 if (type > policy->max_attr) { in ynl_err_walk_report_one()
63 if (!policy->table[type].name) { in ynl_err_walk_report_one()
71 ".%s", policy->table[type].name); in ynl_err_walk_report_one()
77 struct ynl_policy_nest *policy, char *str, int str_sz, in ynl_err_walk()
87 if (!policy) { in ynl_err_walk()
89 n += snprintf(str, str_sz, "!policy"); in ynl_err_walk()
111 if (ynl_err_walk_report_one(policy, typ in ynl_err_walk()
76 ynl_err_walk(struct ynl_sock *ys, void *start, void *end, unsigned int off, struct ynl_policy_nest *policy, char *str, int str_sz, struct ynl_policy_nest **nest_pol) ynl_err_walk() argument
309 struct ynl_policy_attr *policy; ynl_attr_validate() local
[all...]
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/
H A DIt_posix_pthread_089.c58 int policy; in PthreadF01() local
66 rc = pthread_getschedparam(pthread_self(), &policy, &param); in PthreadF01()
69 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01()
96 int policy; in PthreadF02() local
106 rc = pthread_getschedparam(pthread_self(), &policy, &param); in PthreadF02()
109 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF02()
H A DIt_posix_pthread_088.c59 int policy; in PthreadF01() local
67 rc = pthread_getschedparam(pthread_self(), &policy, &param); in PthreadF01()
70 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF01()
97 int policy; in PthreadF02() local
105 rc = pthread_getschedparam(pthread_self(), &policy, &param); in PthreadF02()
108 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in PthreadF02()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
H A DIt_posix_pthread_089.cpp54 int policy; in pthread_f01() local
62 rc = pthread_getschedparam(pthread_self(), &policy, &param); in pthread_f01()
65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f01()
92 int policy; in pthread_f02() local
102 rc = pthread_getschedparam(pthread_self(), &policy, &param); in pthread_f02()
105 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f02()
H A DIt_posix_pthread_088.cpp54 int policy; in pthread_f01() local
62 rc = pthread_getschedparam(pthread_self(), &policy, &param); in pthread_f01()
65 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f01()
91 int policy; in pthread_f02() local
99 rc = pthread_getschedparam(pthread_self(), &policy, &param); in pthread_f02()
102 ICUNIT_GOTO_EQUAL(policy, SCHED_RR, policy, EXIT); in pthread_f02()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
H A D21-2.c32 int new_priority, max_priority, policy, result; in main() local
42 policy = sched_getscheduler(getpid()); in main()
43 max_priority = sched_get_priority_max(policy); in main()
45 sched_get_priority_min(policy) : max_priority; in main()
69 if (pthread_getschedparam(tid, &policy, &param) != 0) { in main()
H A D20-1.c32 int new_priority, max_priority, policy, result; in main() local
43 policy = sched_getscheduler(getpid()); in main()
44 max_priority = sched_get_priority_max(policy); in main()
46 sched_get_priority_min(policy) : max_priority; in main()
71 if (pthread_getschedparam(tid, &policy, &param) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/
H A D17-6.c11 * Test that the policy and scheduling parameters remain unchanged when the
16 * Atempt to change the policy of the process whose ID is 1 which is generally
19 * 1. Get the old policy and priority.
21 * 3. Check that the policy and priority have not changed.
63 int max_priority, old_priority, old_policy, new_policy, policy; in main() local
88 /* Make sure that policy != old_policy */ in main()
89 policy = old_policy == SCHED_FIFO ? SCHED_RR : SCHED_FIFO; in main()
92 max_priority = sched_get_priority_max(policy); in main()
94 sched_get_priority_min(policy) : max_priority; in main()
96 sched_setscheduler(1, policy, in main()
[all...]
H A D17-7.c11 * Test that the policy and scheduling parameters remain unchanged when no
17 * 1. Get the old policy and priority.
21 * 5. Check that the policy and priority have not changed.
33 int max_priority, old_priority, old_policy, new_policy, policy; in main() local
49 /* Make sure that policy != old_policy */ in main()
50 policy = old_policy == SCHED_FIFO ? SCHED_RR : SCHED_FIFO; in main()
53 max_priority = sched_get_priority_max(policy); in main()
55 sched_get_priority_min(policy) : max_priority; in main()
73 sched_setscheduler(child_pid, policy, &param); in main()
95 printf("The policy ha in main()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_getschedpolicy/
H A D2-1.c12 * 2. Call pthread_attr_setschedpolicy with policy parameter
13 * 3. Call pthread_attr_getschedpolicy to get the policy
33 int policy; in verify_policy() local
35 rc = pthread_attr_getschedpolicy(attr, &policy); in verify_policy()
42 if (policy != FIFOPOLICY) { in verify_policy()
43 printf(ERROR_PREFIX "got wrong policy param\n"); in verify_policy()
48 if (policy != RRPOLICY) { in verify_policy()
49 printf(ERROR_PREFIX "got wrong policy param\n"); in verify_policy()
54 if (policy != OTHERPOLICY) { in verify_policy()
55 printf(ERROR_PREFIX "got wrong policy para in verify_policy()
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedprio/
H A D1-1.c9 * policy and scheduling parameters for the thread whose thread ID is
11 * policy and param, respectively. The priority value returned from
29 int policy, priority, policy_1; in a_thread_func() local
32 policy = SCHED_FIFO; in a_thread_func()
33 priority = sched_get_priority_min(policy); in a_thread_func()
36 rc = pthread_setschedparam(pthread_self(), policy, &sparam); in a_thread_func()
46 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); in a_thread_func()
47 if (policy_1 != policy || sparam.sched_priority != priority) { in a_thread_func()
63 printf("policy: %d, priority: %d\n", policy_1, sparam.sched_priority); in a_thread_func()
/foundation/systemabilitymgr/samgr_lite/samgr_endpoint/source/
H A Dendpoint_rpc.c37 const PolicyTrans *policy, uint32 policyNum);
90 router->policy = NULL; in SAMGR_AddRouter()
268 PolicyTrans *policy = NULL; in SAMGR_ProcPolicy() local
270 ret = RegisterIdentity(saName, &saInfo, &policy, &policyNum); in SAMGR_ProcPolicy()
271 if (ret != EC_SUCCESS || policy == NULL) { in SAMGR_ProcPolicy()
272 SAMGR_Free(policy); in SAMGR_ProcPolicy()
277 ret = AddPolicyToRouter(endpoint, &saInfo, policy, policyNum); in SAMGR_ProcPolicy()
278 SAMGR_Free(policy); in SAMGR_ProcPolicy()
288 const PolicyTrans *policy, uint32 policyNum) in AddPolicyToRouter()
290 if (endpoint == NULL || saInfo == NULL || policy in AddPolicyToRouter()
287 AddPolicyToRouter(const Endpoint *endpoint, const SvcIdentity *saInfo, const PolicyTrans *policy, uint32 policyNum) AddPolicyToRouter() argument
[all...]
/kernel/linux/linux-5.10/drivers/cpufreq/
H A Ds3c24xx-cpufreq.c148 static int s3c_cpufreq_settarget(struct cpufreq_policy *policy, in s3c_cpufreq_settarget() argument
210 cpufreq_freq_transition_begin(policy, &freqs.freqs); in s3c_cpufreq_settarget()
254 cpufreq_freq_transition_end(policy, &freqs.freqs, 0); in s3c_cpufreq_settarget()
270 static int s3c_cpufreq_target(struct cpufreq_policy *policy, in s3c_cpufreq_target() argument
285 s3c_freq_dbg("%s: policy %p, target %u, relation %u\n", in s3c_cpufreq_target()
286 __func__, policy, target_freq, relation); in s3c_cpufreq_target()
289 index = cpufreq_frequency_table_target(policy, target_freq, in s3c_cpufreq_target()
311 tmp_policy.min = policy->min * 1000; in s3c_cpufreq_target()
312 tmp_policy.max = policy->max * 1000; in s3c_cpufreq_target()
313 tmp_policy.cpu = policy in s3c_cpufreq_target()
344 s3c_cpufreq_init(struct cpufreq_policy *policy) s3c_cpufreq_init() argument
382 s3c_cpufreq_suspend(struct cpufreq_policy *policy) s3c_cpufreq_suspend() argument
391 s3c_cpufreq_resume(struct cpufreq_policy *policy) s3c_cpufreq_resume() argument
[all...]
H A Dppc_cbe_cpufreq.h23 void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy);
24 void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy);
29 static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {} in cbe_cpufreq_pmi_policy_init() argument
30 static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {} in cbe_cpufreq_pmi_policy_exit() argument
/foundation/filemanagement/app_file_service/test/unittest/file_share_ndk_test/file_share_permission_test/
H A Dfile_share_permission_test.cpp98 FileShare_PolicyInfo policy = {.uri = policyUriChar, in HWTEST_F() local
102 FileShare_PolicyInfo policies[] = {policy}; in HWTEST_F()
124 FileShare_PolicyInfo policy = {.uri = policyUriChar, in HWTEST_F() local
128 FileShare_PolicyInfo policies[] = {policy}; in HWTEST_F()
161 FileShare_PolicyInfo policy = {.uri = policyUriChar, in HWTEST_F() local
165 FileShare_PolicyInfo policies[] = {policy}; in HWTEST_F()
230 FileShare_PolicyInfo policy = {.uri = policyUriChar, in HWTEST_F() local
234 FileShare_PolicyInfo policies[] = {policy}; in HWTEST_F()
259 FileShare_PolicyInfo policy = {.uri = policyUriChar, in HWTEST_F() local
263 FileShare_PolicyInfo policies[] = {policy}; in HWTEST_F()
297 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
371 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
400 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
438 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
512 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
545 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
583 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
660 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
699 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
739 FileShare_PolicyInfo policy = {.uri = policyUriChar, HWTEST_F() local
821 FileShare_PolicyInfo policy = { HWTEST_F() local
845 FileShare_PolicyInfo policy = { HWTEST_F() local
870 FileShare_PolicyInfo policy = { HWTEST_F() local
895 FileShare_PolicyInfo policy = { HWTEST_F() local
[all...]
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dppc_cbe_cpufreq.h23 void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy);
24 void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy);
29 static inline void cbe_cpufreq_pmi_policy_init(struct cpufreq_policy *policy) {} in cbe_cpufreq_pmi_policy_init() argument
30 static inline void cbe_cpufreq_pmi_policy_exit(struct cpufreq_policy *policy) {} in cbe_cpufreq_pmi_policy_exit() argument
H A Dsparc-us2e-cpufreq.c265 static int us2e_freq_target(struct cpufreq_policy *policy, unsigned int index) in us2e_freq_target() argument
267 unsigned int cpu = policy->cpu; in us2e_freq_target()
272 static int us2e_freq_cpu_init(struct cpufreq_policy *policy) in us2e_freq_cpu_init() argument
274 unsigned int cpu = policy->cpu; in us2e_freq_cpu_init()
292 policy->cpuinfo.transition_latency = 0; in us2e_freq_cpu_init()
293 policy->cur = clock_tick; in us2e_freq_cpu_init()
294 policy->freq_table = table; in us2e_freq_cpu_init()
299 static int us2e_freq_cpu_exit(struct cpufreq_policy *policy) in us2e_freq_cpu_exit() argument
301 us2e_freq_target(policy, 0); in us2e_freq_cpu_exit()
/third_party/musl/porting/liteos_m/user/src/thread/
H A Dpthread_setschedparam.c5 _LIBC_TEXT_SECTION int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *param) in pthread_setschedparam() argument
9 if (policy != SCHED_RR && policy != SCHED_FIFO) { in pthread_setschedparam()
18 r = !t->tid ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param->sched_priority, MUSL_TYPE_THREAD); in pthread_setschedparam()
/kernel/linux/linux-6.6/security/apparmor/
H A Dlib.c21 #include "include/policy.h"
55 * Split a namespace name from a profile name (see policy.c for naming
345 state = aa_dfa_next(rules->policy.dfa, in aa_profile_match_label()
346 rules->policy.start[AA_CLASS_LABEL], in aa_profile_match_label()
437 * aa_policy_init - initialize a policy structure
438 * @policy: policy to initialize (NOT NULL)
440 * @name: name of the policy, init will make a copy of it (NOT NULL)
445 * Returns: true if policy init successful
447 bool aa_policy_init(struct aa_policy *policy, cons argument
477 aa_policy_destroy(struct aa_policy *policy) aa_policy_destroy() argument
[all...]
/third_party/python/Lib/email/
H A Dcontentmanager.py101 mp = msg.policy
111 header.fold(policy=msg.policy))) from exc
144 def _encode_text(string, charset, cte, policy):
146 linesep = policy.linesep.encode('ascii')
151 if max((len(x) for x in lines), default=0) <= policy.max_line_length:
156 if policy.cte_type == '8bit':
160 policy.max_line_length)
175 policy.max_line_length)
177 data = _encode_base64(embedded_body(lines), policy
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_ads.c60 static void guc_policy_init(struct guc_policy *policy) in guc_policy_init() argument
62 policy->execution_quantum = POLICY_DEFAULT_EXECUTION_QUANTUM_US; in guc_policy_init()
63 policy->preemption_time = POLICY_DEFAULT_PREEMPTION_TIME_US; in guc_policy_init()
64 policy->fault_time = POLICY_DEFAULT_FAULT_TIME_US; in guc_policy_init()
65 policy->policy_flags = 0; in guc_policy_init()
70 struct guc_policy *policy; in guc_policies_init() local
78 policy = &policies->policy[p][i]; in guc_policies_init()
80 guc_policy_init(policy); in guc_policies_init()
/kernel/linux/linux-6.6/tools/testing/selftests/amd-pstate/
H A Drun.sh65 # $1: policy
73 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
74 for policy in $policies; do
75 cur_gov=$(find_current_governor $policy)
76 echo "$policy $cur_gov" >> $OUTFILE.backup_governor.log
87 for policy in $policies; do
92 echo $governor > $CPUFREQROOT/$policy/scaling_governor
101 policies=$(ls $CPUFREQROOT| grep "policy[0-9].*")
102 for policy in $policies; do
103 filepath=$CPUFREQROOT/$policy/scaling_available_governor
[all...]

Completed in 12 milliseconds

12345678910>>...72