Date: Thu, 29 Apr 2004 00:34:30 +0900 From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> To: Buzz Slye <buzz@gaia.arc.nasa.gov> Cc: freebsd-firewire@freebsd.org Subject: Re: iso receive Message-ID: <87hdv4xgjd.wl@tora.nunu.org> In-Reply-To: <Pine.GSO.4.58.0404271245250.9410@mono.arc.nasa.gov> References: <Pine.GSO.4.58.0404271245250.9410@mono.arc.nasa.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
You need to allocate receive buffer by ioctl() with FW_SSTBUF before setting the channel. The only way to stop the iso listening is to close the fd for now. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html At Tue, 27 Apr 2004 12:46:53 -0700 (PDT), Buzz Slye wrote: > > > The following code is used to set the channel to listen to for > iso receive. > > int raw1394_set_channel(struct raw1394_handle *handle, int channel) > { > struct fw_isochreq chreq; > > chreq.ch = channel; > chreq.tag = 0; > if (ioctl(handle->fd, FW_SRSTREAM, &chreq) < 0) return (-1); > > return 0; > } > > This code crashes the system. What are we doing wrong here? > > It used to work OK last june 2003 in version 1.2.4.10 of fwdev.c > > Also, how does one stop iso listening on a channel? > > Robert Slye > NASA - Ames Research Center > Moffett Field CA 94035 > > buzz@gaia.arc.nasa.gov > > > _______________________________________________ > freebsd-firewire@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-firewire > To unsubscribe, send any mail to "freebsd-firewire-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87hdv4xgjd.wl>
