in Linux kernel space, are “down_trylock(&sem)” and “down_interruptible(&sem)” valid alternatives for “sem_trywait(&sem)” and “sem_wait(&sem)”?
This is a code snippet from a c code utilizing semaphores:
This is a code snippet from a c code utilizing semaphores: