HPSB_GET_TLABEL

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

hpsb_get_tlabel - allocate a transaction label  

SYNOPSIS

"SYNOPSIS"

int hpsb_get_tlabel (struct hpsb_packet * packet, int wait);  

ARGUMENTS

packet
the packet who's tlabel/tpool we set
wait
whether to sleep if no tlabel is available
 

DESCRIPTION

Every asynchronous transaction on the 1394 bus needs a transaction label to match the response to the request. This label has to be different from any other transaction label in an outstanding request to the same node to make matching possible without ambiguity.

There are 64 different tlabels, so an allocated tlabel has to be freed with hpsb_free_tlabel after the transaction is complete (unless it's reused again for the same target node).

wait cannot be set if in_interrupt  

RETURN VALUE

Zero on success, otherwise non-zero. A non-zero return generally means there are no available tlabels.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 04:40:47 GMT, October 06, 2005