Motr  M0
chan.c File Reference
#include "ut/ut.h"
#include "lib/thread.h"
#include "lib/mutex.h"
#include "lib/chan.h"
#include "lib/assert.h"
#include "lib/timer.h"
Include dependency graph for chan.c:

Go to the source code of this file.

Enumerations

enum  { NR = 16 }
 

Functions

static void t0 (int self)
 
static bool cb1 (struct m0_clink *clink)
 
static bool cb2 (struct m0_clink *clink)
 
static bool cb_filter (struct m0_clink *clink)
 
static bool mfilter (struct m0_clink *clink)
 
unsigned long signal_the_chan_in_timer (unsigned long data)
 
void test_chan (void)
 

Variables

static struct m0_thread t [NR]
 
static struct m0_chan cc [NR]
 
static struct m0_mutex m [NR]
 
static struct m0_clink l [NR]
 
static int flag
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NR 

Definition at line 30 of file chan.c.

Function Documentation

◆ cb1()

static bool cb1 ( struct m0_clink clink)
static

Definition at line 57 of file chan.c.

Here is the caller graph for this function:

◆ cb2()

static bool cb2 ( struct m0_clink clink)
static

Definition at line 63 of file chan.c.

Here is the caller graph for this function:

◆ cb_filter()

static bool cb_filter ( struct m0_clink clink)
static

Definition at line 69 of file chan.c.

Here is the caller graph for this function:

◆ mfilter()

static bool mfilter ( struct m0_clink clink)
static

Definition at line 74 of file chan.c.

Here is the caller graph for this function:

◆ signal_the_chan_in_timer()

unsigned long signal_the_chan_in_timer ( unsigned long  data)

Definition at line 82 of file chan.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ t0()

static void t0 ( int  self)
static

Definition at line 39 of file chan.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_chan()

void test_chan ( void  )

Definition at line 89 of file chan.c.

Here is the call graph for this function:

Variable Documentation

◆ cc

struct m0_chan cc[NR]
static

Definition at line 35 of file chan.c.

◆ flag

int flag
static

Definition at line 55 of file chan.c.

◆ l

struct m0_clink l[NR]
static

Definition at line 37 of file chan.c.

◆ m

struct m0_mutex m[NR]
static

Definition at line 36 of file chan.c.

◆ t

struct m0_thread t[NR]
static

Definition at line 34 of file chan.c.