canque_get_inslot4id_wait_kern

Name

canque_get_inslot4id_wait_kern --  find or wait for best outgoing edge and slot for given ID

Synopsis

int canque_get_inslot4id_wait_kern (struct canque_ends_t * qends, struct canque_edge_t ** qedgep, struct canque_slot_t ** slotp, int cmd, unsigned long id, int prio);

Arguments

qends

ends structure belonging to calling communication object

qedgep

place to store pointer to found edge

slotp

place to store pointer to allocated slot

cmd

command type for slot

id

communication ID of message to send into edge

prio

optional priority of message

Description

Same as canque_get_inslot4id, except, that it waits for free slot in case, that queue is full. Function is specific for Linux userspace clients.

Return Value

If there is no usable edge negative value is returned.