Motr  M0
semaphore.c File Reference
#include <linux/jiffies.h>
#include "lib/semaphore.h"
#include "lib/assert.h"
#include "lib/trace.h"
Include dependency graph for semaphore.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_M0T1FS
 

Functions

M0_INTERNAL int m0_semaphore_init (struct m0_semaphore *semaphore, unsigned value)
 
M0_INTERNAL void m0_semaphore_fini (struct m0_semaphore *semaphore)
 
M0_INTERNAL void m0_semaphore_down (struct m0_semaphore *semaphore)
 
M0_INTERNAL bool m0_semaphore_trydown (struct m0_semaphore *semaphore)
 
M0_INTERNAL void m0_semaphore_up (struct m0_semaphore *semaphore)
 
M0_INTERNAL unsigned m0_semaphore_value (struct m0_semaphore *semaphore)
 
M0_INTERNAL bool m0_semaphore_timeddown (struct m0_semaphore *semaphore, const m0_time_t abs_timeout)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_M0T1FS

Definition at line 27 of file semaphore.c.