Lines Matching refs:sem_wait
86 ret = sem_wait(sem);
182 * sem_wait() call should fail only if we are awakened by a signal.
185 ret = sem_wait(&dev->d_bfsem);
188 PRINT_ERR("ERROR: sem_wait failed: %d\n", ret);
254 ret = sem_wait(&dev->d_rdsem);
257 /* The sem_wait() call should fail only if we are awakened by
261 PRINT_ERR("ERROR: sem_wait failed: %d\n", ret);
402 ret = sem_wait(&dev->d_bfsem);
431 ret = sem_wait(&dev->d_rdsem);
433 if (ret < 0 || (ret = sem_wait(&dev->d_bfsem)) < 0)
500 sem_wait(&dev->d_rdsem);
505 ret = sem_wait(&dev->d_rdsem);
511 ret = sem_wait(&dev->d_bfsem);
577 * is because it calls sem_wait (via pipecommon_semtake below) and
578 * sem_wait cannot be called from interrupt level. This actually
591 ret = sem_wait(&dev->d_bfsem);