Lines Matching refs:iattr
30 struct pthread_attr *iattr; in __pthread_attr_setaffinity_np() local
32 iattr = (struct pthread_attr *) attr; in __pthread_attr_setaffinity_np()
36 if (iattr->extension != NULL) in __pthread_attr_setaffinity_np()
38 free (iattr->extension->cpuset); in __pthread_attr_setaffinity_np()
39 iattr->extension->cpuset = NULL; in __pthread_attr_setaffinity_np()
40 iattr->extension->cpusetsize = 0; in __pthread_attr_setaffinity_np()
45 int ret = __pthread_attr_extension (iattr); in __pthread_attr_setaffinity_np()
49 if (iattr->extension->cpusetsize != cpusetsize) in __pthread_attr_setaffinity_np()
51 void *newp = realloc (iattr->extension->cpuset, cpusetsize); in __pthread_attr_setaffinity_np()
55 iattr->extension->cpuset = newp; in __pthread_attr_setaffinity_np()
56 iattr->extension->cpusetsize = cpusetsize; in __pthread_attr_setaffinity_np()
59 memcpy (iattr->extension->cpuset, cpuset, cpusetsize); in __pthread_attr_setaffinity_np()