/* Get thread attributes object scheduling parameters. 
See IEEE 1003.1  */
int pthread_attr_getschedparam(const pthread_attr_t *_attr, struct sched_param *schedparam)
/* Get thread attributes object scheduling parameters. 
See IEEE 1003.1  */
int pthread_attr_getschedparam(const pthread_attr_t *_attr, struct sched_param *schedparam)
{
	struct posix_thread_attr *attr = (struct posix_thread_attr *)_attr;
	if (!__attr_is_initialized(attr) || (schedparam == NULL)) {
		return EINVAL;
	}
	schedparam->sched_priority = attr->priority;
	return 0;
}