Home
last modified time | relevance | path

Searched refs:d_rdsem (Results 1 – 2 of 2) sorted by relevance

/third_party/NuttX/drivers/pipes/
Dpipe_common.c140 sem_init(&dev->d_rdsem, 0, 0); in pipecommon_allocdev()
160 sem_destroy(&dev->d_rdsem); in pipecommon_freedev()
220 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval == 0) in pipecommon_open()
222 sem_post(&dev->d_rdsem); in pipecommon_open()
254 ret = sem_wait(&dev->d_rdsem); in pipecommon_open()
316 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval == 0) in pipecommon_close()
318 sem_post(&dev->d_rdsem); in pipecommon_close()
431 ret = sem_wait(&dev->d_rdsem); in pipecommon_read()
498 while (sem_getvalue(&dev->d_rdsem, &sval) == 0 && sval != 0) in pipecommon_read()
500 sem_wait(&dev->d_rdsem); in pipecommon_read()
[all …]
Dpipe_common.h113 sem_t d_rdsem; /* Empty buffer - Reader waits for data write */ member