Searched refs:sembuffer (Results 1 – 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
D | thugetlb.c | 77 int get_semaphore(int sem_id, struct sembuf *sembuffer) in get_semaphore() argument 79 sembuffer->sem_num = 0; in get_semaphore() 80 sembuffer->sem_op = -1; in get_semaphore() 81 sembuffer->sem_flg = SEM_UNDO; in get_semaphore() 82 return semop(sem_id, sembuffer, 1); in get_semaphore() 85 int put_semaphore(int sem_id, struct sembuf *sembuffer) in put_semaphore() argument 87 sembuffer->sem_num = 0; in put_semaphore() 88 sembuffer->sem_op = 1; in put_semaphore() 89 sembuffer->sem_flg = SEM_UNDO; in put_semaphore() 90 return semop(sem_id, sembuffer, 1); in put_semaphore() [all …]
|
D | tinjpage.c | 611 int get_semaphore(int sem_id, struct sembuf *sembuffer) in get_semaphore() argument 613 sembuffer->sem_num = 0; in get_semaphore() 614 sembuffer->sem_op = -1; in get_semaphore() 615 sembuffer->sem_flg = SEM_UNDO; in get_semaphore() 616 return semop(sem_id, sembuffer, 1); in get_semaphore() 619 int put_semaphore(int sem_id, struct sembuf *sembuffer) in put_semaphore() argument 621 sembuffer->sem_num = 0; in put_semaphore() 622 sembuffer->sem_op = 1; in put_semaphore() 623 sembuffer->sem_flg = SEM_UNDO; in put_semaphore() 624 return semop(sem_id, sembuffer, 1); in put_semaphore() [all …]
|