HPSB_GET_TLABEL

Section: (9)
Updated: 09 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);  

ARGUMENTS

packet
the packet who's tlabel/tpool we set
 

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).  

RETURN VALUE

Zero on success, otherwise non-zero. A non-zero return generally means there are no available tlabels. If this is called out of interrupt or atomic context, then it will sleep until can return a tlabel.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 00:02:12 GMT, October 09, 2005