canque_get_outslot_wait_kern

Name

canque_get_outslot_wait_kern --  receive or wait for ready slot for given ends

Synopsis

int canque_get_outslot_wait_kern (struct canque_ends_t * qends, struct canque_edge_t ** qedgep, struct canque_slot_t ** slotp);

Arguments

qends

ends structure belonging to calling communication object

qedgep

place to store pointer to found edge

slotp

place to store pointer to received slot

Description

The same as canque_test_outslot, except it waits in the case, that there is no ready slot for given ends. Function is specific for Linux userspace clients.

Return Value

Negative value informs, that there is no ready output slot for given ends. Positive value is equal to the command slot has been allocated by the input side.