kernels/linux-2.4.0/drivers/ieee1394/video1394.c
/* find which context is listening to this channel */
find which context is listening to this channel
find which context is listening to this channel
int ir_ctx_listening(struct video_card *video, int channel)
{
	int i;
	struct ti_ohci *ohci = video->ohci;
	for (i=0;i<ohci->nb_iso_rcv_ctx-1;i++) 
		if (video->ir_context[i]) {
			if (video->ir_context[i]->channel==channel)
				return i;
		}
	PRINT(KERN_ERR, ohci->id, 
	      "no iso context is listening to channel %d",
	      channel);
	return -1;
}
int ir_ctx_listening ( struct video_card * video , int channel ) { int i ; struct ti_ohci * ohci = video -> ohci ; for ( i = 0 ; i < ohci -> nb_iso_rcv_ctx - 1 ; i ++ ) if ( video -> ir_context [ i ] ) { if ( video -> ir_context [ i ] -> channel == channel ) return i ; } PRINT ( KERN_ERR , ohci -> id , " " , channel ) ; return -1 ; }
find which context is listening to this channel
find which context is listening to this channel