/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | max1619.c | 142 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_show() local 145 return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index])); in temp_show() 152 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_store() local 161 data->temp[attr->index] = temp_to_reg(val); in temp_store() 162 i2c_smbus_write_byte_data(client, regs_write[attr->index], in temp_store() 163 data->temp[attr->index]); in temp_store() 168 static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, in alarms_show() argument 175 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show() argument 178 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() 197 &sensor_dev_attr_temp1_input.dev_attr.attr, [all...] |
H A D | tmp401.c | 153 * Sysfs attr show / store functions 423 struct device_attribute *attr, char *buf) in update_interval_show() 431 struct device_attribute *attr, in update_interval_store() 488 &sensor_dev_attr_temp1_input.dev_attr.attr, 489 &sensor_dev_attr_temp1_min.dev_attr.attr, 490 &sensor_dev_attr_temp1_max.dev_attr.attr, 491 &sensor_dev_attr_temp1_crit.dev_attr.attr, 492 &sensor_dev_attr_temp1_crit_hyst.dev_attr.attr, 493 &sensor_dev_attr_temp1_max_alarm.dev_attr.attr, 494 &sensor_dev_attr_temp1_min_alarm.dev_attr.attr, 422 update_interval_show(struct device *dev, struct device_attribute *attr, char *buf) update_interval_show() argument 430 update_interval_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) update_interval_store() argument [all...] |
H A D | sht3x.c | 261 struct device_attribute *attr, char *buf) in temp1_input_show() 272 struct device_attribute *attr, char *buf) in humidity1_input_show() 316 struct device_attribute *attr, in temp1_limit_show() 320 u8 index = to_sensor_dev_attr(attr)->index; in temp1_limit_show() 327 struct device_attribute *attr, in humidity1_limit_show() 331 u8 index = to_sensor_dev_attr(attr)->index; in humidity1_limit_show() 387 struct device_attribute *attr, in temp1_limit_store() 394 u8 index = to_sensor_dev_attr(attr)->index; in temp1_limit_store() 411 struct device_attribute *attr, in humidity1_limit_store() 418 u8 index = to_sensor_dev_attr(attr) in humidity1_limit_store() 260 temp1_input_show(struct device *dev, struct device_attribute *attr, char *buf) temp1_input_show() argument 271 humidity1_input_show(struct device *dev, struct device_attribute *attr, char *buf) humidity1_input_show() argument 315 temp1_limit_show(struct device *dev, struct device_attribute *attr, char *buf) temp1_limit_show() argument 326 humidity1_limit_show(struct device *dev, struct device_attribute *attr, char *buf) humidity1_limit_show() argument 386 temp1_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) temp1_limit_store() argument 410 humidity1_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) humidity1_limit_store() argument 460 status_register_read(struct device *dev, struct device_attribute *attr, char *buffer, int length) status_register_read() argument 474 temp1_alarm_show(struct device *dev, struct device_attribute *attr, char *buf) temp1_alarm_show() argument 489 humidity1_alarm_show(struct device *dev, struct device_attribute *attr, char *buf) humidity1_alarm_show() argument 504 heater_enable_show(struct device *dev, struct device_attribute *attr, char *buf) heater_enable_show() argument 519 heater_enable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) heater_enable_store() argument 547 update_interval_show(struct device *dev, struct device_attribute *attr, char *buf) update_interval_show() argument 557 update_interval_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) update_interval_store() argument [all...] |
H A D | lineage-pem.c | 275 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(da); in pem_bool_show() local 282 status = data->data_string[attr->nr] & attr->index; in pem_bool_show() 289 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in pem_data_show() local 297 attr->index); in pem_data_show() 305 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in pem_input_show() local 313 attr->index); in pem_input_show() 321 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in pem_fan_show() local 329 attr->index); in pem_fan_show() 373 &sensor_dev_attr_in1_input.dev_attr.attr, [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/ |
H A D | intel_engine_heartbeat.c | 41 if (rq && rq->sched.attr.priority >= I915_PRIORITY_BARRIER && in next_heartbeat() 88 const struct i915_sched_attr *attr) in heartbeat_commit() 93 __i915_request_queue(rq, attr); in heartbeat_commit() 111 rq->sched.attr.priority); in show_heartbeat() 137 struct i915_sched_attr attr = { .priority = I915_PRIORITY_MIN }; in heartbeat() local 184 rq->sched.attr.priority < I915_PRIORITY_BARRIER) { in heartbeat() 191 attr.priority = 0; in heartbeat() 192 if (rq->sched.attr.priority >= attr.priority) in heartbeat() 193 attr in heartbeat() 87 heartbeat_commit(struct i915_request *rq, const struct i915_sched_attr *attr) heartbeat_commit() argument 276 struct i915_sched_attr attr = { .priority = I915_PRIORITY_BARRIER }; __intel_engine_pulse() local 378 struct i915_sched_attr attr = { .priority = I915_PRIORITY_MIN }; intel_engine_flush_barriers() local [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | max1619.c | 142 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_show() local 145 return sprintf(buf, "%d\n", temp_from_reg(data->temp[attr->index])); in temp_show() 152 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_store() local 161 data->temp[attr->index] = temp_to_reg(val); in temp_store() 162 i2c_smbus_write_byte_data(client, regs_write[attr->index], in temp_store() 163 data->temp[attr->index]); in temp_store() 168 static ssize_t alarms_show(struct device *dev, struct device_attribute *attr, in alarms_show() argument 175 static ssize_t alarm_show(struct device *dev, struct device_attribute *attr, in alarm_show() argument 178 int bitnr = to_sensor_dev_attr(attr)->index; in alarm_show() 197 &sensor_dev_attr_temp1_input.dev_attr.attr, [all...] |
H A D | smpro-hwmon.c | 206 static int smpro_read_temp(struct device *dev, u32 attr, int channel, long *val) in smpro_read_temp() argument 212 switch (attr) { in smpro_read_temp() 231 static int smpro_read_in(struct device *dev, u32 attr, int channel, long *val) in smpro_read_in() argument 237 switch (attr) { in smpro_read_in() 250 static int smpro_read_curr(struct device *dev, u32 attr, int channel, long *val) in smpro_read_curr() argument 256 switch (attr) { in smpro_read_curr() 269 static int smpro_read_power(struct device *dev, u32 attr, int channel, long *val_pwr) in smpro_read_power() argument 275 switch (attr) { in smpro_read_power() 294 u32 attr, int channel, long *val) in smpro_read() 298 return smpro_read_temp(dev, attr, channe in smpro_read() 293 smpro_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) smpro_read() argument 310 smpro_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, const char **str) smpro_read_string() argument 360 smpro_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) smpro_is_visible() argument [all...] |
H A D | lineage-pem.c | 275 struct sensor_device_attribute_2 *attr = to_sensor_dev_attr_2(da); in pem_bool_show() local 282 status = data->data_string[attr->nr] & attr->index; in pem_bool_show() 289 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in pem_data_show() local 297 attr->index); in pem_data_show() 305 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in pem_input_show() local 313 attr->index); in pem_input_show() 321 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in pem_fan_show() local 329 attr->index); in pem_fan_show() 373 &sensor_dev_attr_in1_input.dev_attr.attr, [all...] |
/third_party/mbedtls/library/ |
H A D | psa_crypto_storage.c | 238 const psa_key_attributes_t *attr, in psa_format_key_data_for_storage() 247 MBEDTLS_PUT_UINT32_LE(attr->lifetime, storage_format->lifetime, 0); in psa_format_key_data_for_storage() 248 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->type, storage_format->type, 0); in psa_format_key_data_for_storage() 249 MBEDTLS_PUT_UINT16_LE((uint16_t) attr->bits, storage_format->bits, 0); in psa_format_key_data_for_storage() 250 MBEDTLS_PUT_UINT32_LE(attr->policy.usage, storage_format->policy, 0); in psa_format_key_data_for_storage() 251 MBEDTLS_PUT_UINT32_LE(attr->policy.alg, storage_format->policy, sizeof(uint32_t)); in psa_format_key_data_for_storage() 252 MBEDTLS_PUT_UINT32_LE(attr->policy.alg2, storage_format->policy, 2 * sizeof(uint32_t)); in psa_format_key_data_for_storage() 270 psa_key_attributes_t *attr) in psa_parse_key_data_from_storage() 307 attr->lifetime = MBEDTLS_GET_UINT32_LE(storage_format->lifetime, 0); in psa_parse_key_data_from_storage() 308 attr in psa_parse_key_data_from_storage() 236 psa_format_key_data_for_storage(const uint8_t *data, const size_t data_length, const psa_key_attributes_t *attr, uint8_t *storage_data) psa_format_key_data_for_storage() argument 266 psa_parse_key_data_from_storage(const uint8_t *storage_data, size_t storage_data_length, uint8_t **key_data, size_t *key_data_length, psa_key_attributes_t *attr) psa_parse_key_data_from_storage() argument 317 psa_save_persistent_key(const psa_key_attributes_t *attr, const uint8_t *data, const size_t data_length) psa_save_persistent_key() argument 355 psa_load_persistent_key(psa_key_attributes_t *attr, uint8_t **data, size_t *data_length) psa_load_persistent_key() argument [all...] |
/third_party/musl/porting/liteos_a/user/src/thread/ |
H A D | pthread_create.c | 209 int __pthread_init_and_check_attr(const pthread_attr_t *restrict attrp, pthread_attr_t *attr) in __pthread_init_and_check_attr() argument 216 if (attrp && !c11) memcpy(attr, attrp, sizeof(pthread_attr_t)); in __pthread_init_and_check_attr() 219 pthread_attr_init(attr); in __pthread_init_and_check_attr() 222 if (!attr->_a_sched) { in __pthread_init_and_check_attr() 225 attr->_a_policy = policy; in __pthread_init_and_check_attr() 226 attr->_a_prio = param.sched_priority; in __pthread_init_and_check_attr() 227 attr->_a_deadline = param.sched_deadline; in __pthread_init_and_check_attr() 228 attr->_a_period = param.sched_period; in __pthread_init_and_check_attr() 243 pthread_attr_t attr = { 0 }; in __pthread_create() local 251 ret = __pthread_init_and_check_attr(attrp, &attr); in __pthread_create() [all...] |
/third_party/musl/src/thread/liteos_a/ |
H A D | pthread_create.c | 209 int __pthread_init_and_check_attr(const pthread_attr_t *restrict attrp, pthread_attr_t *attr) in __pthread_init_and_check_attr() argument 216 if (attrp && !c11) memcpy(attr, attrp, sizeof(pthread_attr_t)); in __pthread_init_and_check_attr() 219 pthread_attr_init(attr); in __pthread_init_and_check_attr() 222 if (!attr->_a_sched) { in __pthread_init_and_check_attr() 225 attr->_a_policy = policy; in __pthread_init_and_check_attr() 226 attr->_a_prio = param.sched_priority; in __pthread_init_and_check_attr() 227 attr->_a_deadline = param.sched_deadline; in __pthread_init_and_check_attr() 228 attr->_a_period = param.sched_period; in __pthread_init_and_check_attr() 243 pthread_attr_t attr = { 0 }; in __pthread_create() local 251 ret = __pthread_init_and_check_attr(attrp, &attr); in __pthread_create() [all...] |
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | stratix10-rsu.c | 280 struct device_attribute *attr, char *buf) in current_image_show() 291 struct device_attribute *attr, char *buf) in fail_image_show() 301 static ssize_t version_show(struct device *dev, struct device_attribute *attr, in version_show() argument 312 static ssize_t state_show(struct device *dev, struct device_attribute *attr, in state_show() argument 324 struct device_attribute *attr, char *buf) in error_location_show() 335 struct device_attribute *attr, char *buf) in error_details_show() 346 struct device_attribute *attr, char *buf) in retry_counter_show() 357 struct device_attribute *attr, char *buf) in max_retry_show() 368 struct device_attribute *attr, char *buf) in dcmf0_show() 379 struct device_attribute *attr, cha in dcmf1_show() 279 current_image_show(struct device *dev, struct device_attribute *attr, char *buf) current_image_show() argument 290 fail_image_show(struct device *dev, struct device_attribute *attr, char *buf) fail_image_show() argument 323 error_location_show(struct device *dev, struct device_attribute *attr, char *buf) error_location_show() argument 334 error_details_show(struct device *dev, struct device_attribute *attr, char *buf) error_details_show() argument 345 retry_counter_show(struct device *dev, struct device_attribute *attr, char *buf) retry_counter_show() argument 356 max_retry_show(struct device *dev, struct device_attribute *attr, char *buf) max_retry_show() argument 367 dcmf0_show(struct device *dev, struct device_attribute *attr, char *buf) dcmf0_show() argument 378 dcmf1_show(struct device *dev, struct device_attribute *attr, char *buf) dcmf1_show() argument 389 dcmf2_show(struct device *dev, struct device_attribute *attr, char *buf) dcmf2_show() argument 400 dcmf3_show(struct device *dev, struct device_attribute *attr, char *buf) dcmf3_show() argument 411 reboot_image_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) reboot_image_store() argument 436 notify_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) notify_store() argument [all...] |
/kernel/linux/linux-5.10/drivers/thermal/intel/int340x_thermal/ |
H A D | int3400_thermal.c | 70 struct device_attribute attr; member 74 struct bin_attribute *attr, char *buf, loff_t off, size_t count) in data_vault_read() 76 memcpy(buf, attr->private + off, count); in data_vault_read() 87 static ssize_t imok_store(struct device *dev, struct device_attribute *attr, in imok_store() argument 107 &dev_attr_imok.attr, 117 struct device_attribute *attr, in available_uuids_show() 152 struct device_attribute *attr, in current_uuid_store() 180 &dev_attr_available_uuids.attr, 181 &dev_attr_current_uuid.attr, 272 static ssize_t odvp_show(struct device *dev, struct device_attribute *attr, in odvp_show() argument 73 data_vault_read(struct file *file, struct kobject *kobj, struct bin_attribute *attr, char *buf, loff_t off, size_t count) data_vault_read() argument 116 available_uuids_show(struct device *dev, struct device_attribute *attr, char *buf) available_uuids_show() argument 151 current_uuid_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) current_uuid_store() argument [all...] |
/kernel/linux/linux-6.6/drivers/soc/aspeed/ |
H A D | aspeed-uart-routing.c | 51 struct device_attribute *attr, 55 struct device_attribute *attr, 59 .attr = {.name = _name, \ 269 &ast2500_io6_sel.dev_attr.attr, 270 &ast2500_uart5_sel.dev_attr.attr, 271 &ast2500_uart4_sel.dev_attr.attr, 272 &ast2500_uart3_sel.dev_attr.attr, 273 &ast2500_uart2_sel.dev_attr.attr, 274 &ast2500_uart1_sel.dev_attr.attr, 275 &ast2500_io5_sel.dev_attr.attr, 491 aspeed_uart_routing_show(struct device *dev, struct device_attribute *attr, char *buf) aspeed_uart_routing_show() argument 518 aspeed_uart_routing_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) aspeed_uart_routing_store() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_stub.c | 13 struct bpf_prog_load_attr attr; in bpf_prog_test_load() local 15 memset(&attr, 0, sizeof(struct bpf_prog_load_attr)); in bpf_prog_test_load() 16 attr.file = file; in bpf_prog_test_load() 17 attr.prog_type = type; in bpf_prog_test_load() 18 attr.expected_attach_type = 0; in bpf_prog_test_load() 19 attr.prog_flags = BPF_F_TEST_RND_HI32; in bpf_prog_test_load() 20 attr.log_level = extra_prog_load_log_flags; in bpf_prog_test_load() 22 return bpf_prog_load_xattr(&attr, pobj, prog_fd); in bpf_prog_test_load()
|
/kernel/linux/linux-5.10/drivers/sh/superhyway/ |
H A D | superhyway-sysfs.c | 18 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 37 &dev_attr_perr_flags.attr, 38 &dev_attr_merr_flags.attr, 39 &dev_attr_mod_vers.attr, 40 &dev_attr_mod_id.attr, 41 &dev_attr_bot_mb.attr, 42 &dev_attr_top_mb.attr, 43 &dev_attr_resource.attr,
|
/kernel/linux/linux-6.6/drivers/sh/superhyway/ |
H A D | superhyway-sysfs.c | 18 static ssize_t name##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 37 &dev_attr_perr_flags.attr, 38 &dev_attr_merr_flags.attr, 39 &dev_attr_mod_vers.attr, 40 &dev_attr_mod_id.attr, 41 &dev_attr_bot_mb.attr, 42 &dev_attr_top_mb.attr, 43 &dev_attr_resource.attr,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | redirect_ingress.c | 11 struct mlx5_flow_attr *attr) in tc_act_can_offload_redirect_ingress() 18 parse_attr = attr->parse_attr; in tc_act_can_offload_redirect_ingress() 19 esw_attr = attr->esw_attr; in tc_act_can_offload_redirect_ingress() 55 struct mlx5_flow_attr *attr) in tc_act_parse_redirect_ingress() 57 struct mlx5_esw_flow_attr *esw_attr = attr->esw_attr; in tc_act_parse_redirect_ingress() 61 attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in tc_act_parse_redirect_ingress() 63 err = mlx5e_set_fwd_to_int_port_actions(priv, attr, out_dev->ifindex, in tc_act_parse_redirect_ingress() 65 &attr->action, esw_attr->out_count); in tc_act_parse_redirect_ingress() 8 tc_act_can_offload_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) tc_act_can_offload_redirect_ingress() argument 52 tc_act_parse_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) tc_act_parse_redirect_ingress() argument
|
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
H A D | bhrb_filter_map_test.c | 58 event.attr.sample_period = 1000; in bhrb_filter_map_test() 59 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK; in bhrb_filter_map_test() 60 event.attr.disabled = 1; in bhrb_filter_map_test() 68 event.attr.branch_sample_type = 1U << i; in bhrb_filter_map_test() 74 event.attr.branch_sample_type = bhrb_filter_map_valid_common[i]; in bhrb_filter_map_test() 88 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i]; in bhrb_filter_map_test() 94 event.attr.branch_sample_type = bhrb_filter_map_valid_p10[i]; in bhrb_filter_map_test() 105 event.attr.branch_sample_type = PERF_SAMPLE_BRANCH_ANY | PERF_SAMPLE_BRANCH_ANY_CALL; in bhrb_filter_map_test()
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/full/ |
H A D | It_posix_pthread_011.c | 42 pthread_attr_t attr; in Testcase() local 46 ret = pthread_attr_init(&attr); in Testcase() 52 ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE - 1); in Testcase() 55 ret = pthread_attr_setdetachstate(&attr, 3); // 3, test the param of function. in Testcase() 61 ret = pthread_attr_getdetachstate(&attr, NULL); in Testcase() 64 ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in Testcase() 67 ret = pthread_attr_getdetachstate(&attr, &detachstate); in Testcase() 71 ret = pthread_attr_destroy(&attr); in Testcase()
|
H A D | It_posix_pthread_013.c | 42 pthread_attr_t attr; in Testcase() local 46 ret = pthread_attr_init(&attr); in Testcase() 52 ret = pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED - 1); in Testcase() 55 ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED + 1); in Testcase() 61 ret = pthread_attr_getinheritsched(&attr, NULL); in Testcase() 64 ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); in Testcase() 67 ret = pthread_attr_getinheritsched(&attr, &inherit); in Testcase() 71 ret = pthread_attr_destroy(&attr); in Testcase()
|
H A D | It_posix_pthread_177.c | 44 pthread_attr_t attr; in Testcase() local 47 ret = pthread_attr_init(&attr); in Testcase() 50 ret = pthread_attr_getscope(&attr, &scope); in Testcase() 55 ret = pthread_attr_setscope(&attr, g_pthreadScopeValue); in Testcase() 58 ret = pthread_attr_getscope(&attr, &scope); in Testcase() 63 ret = pthread_attr_setscope(&attr, g_pthreadScopeValue); in Testcase() 66 ret = pthread_attr_getscope(&attr, &scope); in Testcase() 70 ret = pthread_attr_destroy(&attr); in Testcase()
|
/kernel/liteos_m/testsuites/sample/posix/pthread/ |
H A D | It_posix_pthread_004.c | 35 pthread_attr_t attr; in Testcase() local 39 ret = pthread_attr_init(&attr); in Testcase() 45 ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE - 2); // 2: used to create a invalid argument in Testcase() 48 ret = pthread_attr_setdetachstate(&attr, 3); // 3, test the param of function. in Testcase() 54 ret = pthread_attr_getdetachstate(&attr, NULL); in Testcase() 57 ret = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); in Testcase() 60 ret = pthread_attr_getdetachstate(&attr, &detachstate); in Testcase() 65 ret = pthread_attr_destroy(&attr); in Testcase()
|
H A D | It_posix_pthread_005.c | 35 pthread_attr_t attr; in Testcase() local 39 ret = pthread_attr_init(&attr); in Testcase() 45 ret = pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED - 1); in Testcase() 48 ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED + 1); in Testcase() 54 ret = pthread_attr_getinheritsched(&attr, NULL); in Testcase() 57 ret = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); in Testcase() 60 ret = pthread_attr_getinheritsched(&attr, &inherit); in Testcase() 65 ret = pthread_attr_destroy(&attr); in Testcase()
|
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/ |
H A D | It_posix_pthread_045.cpp | 49 pthread_attr_t attr; in Testcase() local 55 ret = pthread_attr_init(&attr); in Testcase() 59 ret = pthread_attr_setstacksize(&attr, stacksize); in Testcase() 62 ret = pthread_create(&newTh, &attr, pthread_f01, NULL); in Testcase() 72 ret = pthread_attr_getstacksize(&attr, &stacksize2); in Testcase() 76 pthread_attr_setstacksize(&attr, LOS_TASK_MIN_STACK_SIZE - 2 * sizeof(UINTPTR)); in Testcase() 77 ret = pthread_create(&newTh, &attr, pthread_f01, NULL); in Testcase() 83 ret = pthread_attr_destroy(&attr); in Testcase()
|