struct canque_edge_t

Name

struct canque_edge_t --  CAN message delivery subsystem graph edge

Synopsis

struct canque_edge_t {
  struct canque_fifo_t fifo;
  unsigned long filtid;
  unsigned long filtmask;
  struct list_head inpeers;
  struct list_head outpeers;
  struct canque_ends_t * inends;
  struct canque_ends_t * outends;
  atomic_t edge_used;
  int edge_prio;
  int edge_num;
};  

Members

fifo

place where primitive struct canque_fifo_t FIFO is located.

filtid

the possible CAN message identifiers filter.

filtmask

the filter mask, the comparison considers only filtid bits corresponding to set bits in the filtmask field.

inpeers

the lists of all peer FIFOs connected by their input side (inends) to the same terminal (struct canque_ends_t).

outpeers

the lists of all peer FIFOs connected by their output side (outends) to the same terminal (struct canque_ends_t).

inends

the pointer to the FIFO input side terminal (struct canque_ends_t).

outends

the pointer to the FIFO output side terminal (struct canque_ends_t).

edge_used

the atomic usage counter, mainly used for safe destruction of the edge.

edge_prio

the assigned queue priority from the range 0 to CANQUEUE_PRIO_NR-1

edge_num

edge sequential number intended for debugging purposes only

Description

This structure represents one direction connection from messages source (inends) to message consumer (outends) fifo ends hub. The edge contains &struct canque_fifo_t for message fifo implementation.