struct msgobj_t

Name

struct msgobj_t --  structure holding communication object state

Synopsis

struct msgobj_t {
  unsigned long obj_base_addr;
  unsigned int minor;
  unsigned int object;
  unsigned long flags;
  int ret;
  struct canque_ends_t * qends;
  struct canque_edge_t * tx_qedge;
  struct canque_slot_t * tx_slot;
  int tx_retry_cnt;
  struct canmsg_t rx_msg;
  struct chip_t * hostchip;
  atomic_t obj_used;
  struct list_head obj_users;
};  

Members

obj_base_addr

minor

associated device minor number

object

object number in chip_t structure +1

flags

message object flags

ret

field holding status of the last Tx operation

qends

pointer to message object corresponding ends structure

tx_qedge

edge corresponding to transmitted message

tx_slot

slot holding transmitted message, slot is taken from canque_test_outslot call and is freed by canque_free_outslot or rescheduled canque_again_outslot

tx_retry_cnt

transmission attempt counter

rx_msg

temporary storage to hold received messages before calling to canque_filter_msg2edges

hostchip

pointer to the &chip_t structure this object belongs to

obj_used

counter of users (associated file structures for Linux userspace clients) of this object

obj_users

list of user structures of type &canuser_t.