canque_get_inslot

Name

canque_get_inslot --  finds one outgoing edge and allocates slot from it

Synopsis

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

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

Description

Function looks for the first non-blocked outgoing edge in qends structure and tries to allocate slot from it.

Return Value

If there is no usable edge or there is no free slot in edge negative value is returned.