Searched refs:sem (Results 1 – 4 of 4) sorted by relevance
5 int init_rwsem(struct rw_semaphore *sem) in init_rwsem() argument7 return pthread_rwlock_init(&sem->lock, NULL); in init_rwsem()10 int exit_rwsem(struct rw_semaphore *sem) in exit_rwsem() argument12 return pthread_rwlock_destroy(&sem->lock); in exit_rwsem()15 int down_read(struct rw_semaphore *sem) in down_read() argument17 return perf_singlethreaded ? 0 : pthread_rwlock_rdlock(&sem->lock); in down_read()20 int up_read(struct rw_semaphore *sem) in up_read() argument22 return perf_singlethreaded ? 0 : pthread_rwlock_unlock(&sem->lock); in up_read()25 int down_write(struct rw_semaphore *sem) in down_write() argument27 return perf_singlethreaded ? 0 : pthread_rwlock_wrlock(&sem->lock); in down_write()[all …]
10 int init_rwsem(struct rw_semaphore *sem);11 int exit_rwsem(struct rw_semaphore *sem);13 int down_read(struct rw_semaphore *sem);14 int up_read(struct rw_semaphore *sem);16 int down_write(struct rw_semaphore *sem);17 int up_write(struct rw_semaphore *sem);
630 sem_t *sem; in acpi_os_create_semaphore() local643 sem = in acpi_os_create_semaphore()646 if (!sem) { in acpi_os_create_semaphore()653 sem = acpi_os_allocate(sizeof(sem_t)); in acpi_os_create_semaphore()654 if (!sem) { in acpi_os_create_semaphore()658 if (sem_init(sem, 0, initial_units) == -1) { in acpi_os_create_semaphore()659 acpi_os_free(sem); in acpi_os_create_semaphore()664 *out_handle = (acpi_handle)sem; in acpi_os_create_semaphore()682 sem_t *sem = (sem_t *) handle; in acpi_os_delete_semaphore() local684 if (!sem) { in acpi_os_delete_semaphore()[all …]
619 " colocando o nome desejado da unidade após o valor, sem qualquer espaço\n"