Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 14 of 14) sorted by relevance

/bionic/libc/include/
Dpthread.h110 int pthread_attr_init(pthread_attr_t * attr);
111 int pthread_attr_destroy(pthread_attr_t * attr);
113 int pthread_attr_setdetachstate(pthread_attr_t * attr, int state);
114 int pthread_attr_getdetachstate(pthread_attr_t const * attr, int * state);
116 int pthread_attr_setschedpolicy(pthread_attr_t * attr, int policy);
117 int pthread_attr_getschedpolicy(pthread_attr_t const * attr, int * policy);
119 int pthread_attr_setschedparam(pthread_attr_t * attr, struct sched_param const * param);
120 int pthread_attr_getschedparam(pthread_attr_t const * attr, struct sched_param * param);
122 int pthread_attr_setstacksize(pthread_attr_t * attr, size_t stack_size);
123 int pthread_attr_getstacksize(pthread_attr_t const * attr, size_t * stack_size);
[all …]
/bionic/libc/bionic/
Dpthread.c167 *p_stack_size = thread->attr.stack_size; in __get_stack_base()
168 return thread->attr.stack_base; in __get_stack_base()
210 void _init_thread(pthread_internal_t * thread, pid_t kernel_id, pthread_attr_t * attr, void * stack… in _init_thread() argument
212 if (attr == NULL) { in _init_thread()
213 thread->attr = gDefaultPthreadAttr; in _init_thread()
215 thread->attr = *attr; in _init_thread()
217 thread->attr.stack_base = stack_base; in _init_thread()
221 if (thread->attr.sched_policy != SCHED_NORMAL) { in _init_thread()
223 param.sched_priority = thread->attr.sched_priority; in _init_thread()
224 sched_setscheduler(kernel_id, thread->attr.sched_policy, &param); in _init_thread()
[all …]
Dpthread-rwlocks.c70 int pthread_rwlockattr_init(pthread_rwlockattr_t *attr) in pthread_rwlockattr_init() argument
72 if (!attr) in pthread_rwlockattr_init()
75 *attr = PTHREAD_PROCESS_PRIVATE; in pthread_rwlockattr_init()
79 int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr) in pthread_rwlockattr_destroy() argument
81 if (!attr) in pthread_rwlockattr_destroy()
84 *attr = -1; in pthread_rwlockattr_destroy()
88 int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared) in pthread_rwlockattr_setpshared() argument
90 if (!attr) in pthread_rwlockattr_setpshared()
96 *attr = pshared; in pthread_rwlockattr_setpshared()
103 int pthread_rwlockattr_getpshared(pthread_rwlockattr_t *attr, int *pshared) in pthread_rwlockattr_getpshared() argument
[all …]
Dpthread_internal.h39 pthread_attr_t attr; member
49 extern void _init_thread(pthread_internal_t * thread, pid_t kernel_id, pthread_attr_t * attr, void …
/bionic/libc/kernel/common/linux/
Dsysfs.h31 #define __ATTR(_name,_mode,_show,_store) { .attr = {.name = __stringify(_name), .mode = _mode, .o…
33 #define __ATTR_RO(_name) { .attr = { .name = __stringify(_name), .mode = 0444, .owner = THIS_MODU…
35 #define __ATTR_NULL { .attr = { .name = NULL } }
37 #define attr_name(_attr) (_attr).attr.name
42 struct attribute attr; member
47 int (*mmap)(struct kobject *, struct bin_attribute *attr,
Dsysdev.h30 struct attribute attr; member
35 …me,_mode,_show,_store) struct sysdev_class_attribute attr_##_name = { .attr = {.name = __string…
53 struct attribute attr; member
58 #define SYSDEV_ATTR(_name,_mode,_show,_store) struct sysdev_attribute attr_##_name = { .attr = {…
Ddevice.h62 struct attribute attr; member
88 struct attribute attr; member
120 struct attribute attr; member
128 struct attribute attr; member
163 struct attribute attr; member
164 ssize_t (*show)(struct device *dev, struct device_attribute *attr,
166 ssize_t (*store)(struct device *dev, struct device_attribute *attr,
Dcoda.h299 struct coda_vattr attr; member
305 struct coda_vattr attr; member
341 struct coda_vattr attr; member
350 struct coda_vattr attr; member
389 struct coda_vattr attr; member
396 struct coda_vattr attr; member
413 struct coda_vattr attr; member
Dmsdos_fs.h150 __u8 attr; member
164 __u8 attr; member
Delevator.h68 struct attribute attr; member
Dmodule.h53 struct attribute attr; member
/bionic/libc/stdio/
Dflockfile.c125 pthread_mutexattr_t attr; in flockfile() local
136 pthread_mutexattr_init(&attr); in flockfile()
137 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); in flockfile()
138 pthread_mutex_init( &lock->mutex, &attr ); in flockfile()
/bionic/libc/kernel/common/linux/netfilter/
Dnfnetlink.h49 #define NFA_TYPE(attr) ((attr)->nfa_type & 0x7fff) argument
/bionic/libc/kernel/common/linux/raid/
Dmd_k.h169 struct attribute attr; member