FreeBSD/sys/dev/firewire/firewire.c
/*
 * Lookup fwdev by node id.
 */
Lookup fwdev by node id.
Lookup fwdev by node id .
struct fw_device *
fw_noderesolve_nodeid(struct firewire_comm *fc, int dst)
{
	struct fw_device *fwdev;
	FW_GLOCK(fc);
	STAILQ_FOREACH(fwdev, &fc->devices, link)
		if (fwdev->dst == dst && fwdev->status != FWDEVINVAL)
			break;
	FW_GUNLOCK(fc);
	return fwdev;
}
struct fw_device * fw_noderesolve_nodeid ( struct firewire_comm * fc , int dst ) { struct fw_device * fwdev ; FW_GLOCK ( fc ) ; STAILQ_FOREACH ( fwdev , & fc -> devices , link ) if ( fwdev -> dst == dst && fwdev -> status != FWDEVINVAL ) break ; FW_GUNLOCK ( fc ) ; return fwdev ; }
Lookup fwdev by node id.
Lookup fwdev by node id .