node-drivers/base-driver/drivers/vca/bus/vca_csa_bus.c
static int vca_csa_dev_match(struct device *dv, struct device_driver *dr)
{
	unsigned int i;
	struct vca_csa_device *dev = dev_to_vca_csa(dv);
	const struct vca_csa_device_id *ids;

	ids = drv_to_vca_csa(dr)->id_table;
	for (i = 0; ids[i].device; i++)
		if (vca_csa_id_match(dev, &ids[i]))
			return 1;
	return 0;
}
/*
 * This looks through all the IDs a driver claims to support.  If any of them
 * match, we return 1 and the kernel will call vca_csa_dev_probe().
 */
This looks through all the IDs a driver claims to support.  If any of them
match, we return 1 and the kernel will call vca_csa_dev_probe().
This looks through all the IDs a driver claims to support . If any of them match we return 1 and the kernel will call vca_csa_dev_probe () .
static int vca_csa_dev_match(struct device *dv, struct device_driver *dr)
{
	unsigned int i;
	struct vca_csa_device *dev = dev_to_vca_csa(dv);
	const struct vca_csa_device_id *ids;
	ids = drv_to_vca_csa(dr)->id_table;
	for (i = 0; ids[i].device; i++)
		if (vca_csa_id_match(dev, &ids[i]))
			return 1;
	return 0;
}
static int vca_csa_dev_match ( struct device * dv , struct device_driver * dr ) { unsigned int i ; struct vca_csa_device * dev = dev_to_vca_csa ( dv ) ; const struct vca_csa_device_id * ids ; ids = drv_to_vca_csa ( dr ) -> id_table ; for ( i = 0 ; ids [ i ] . device ; i ++ ) if ( vca_csa_id_match ( dev , & ids [ i ] ) ) return 1 ; return 0 ; }
This looks through all the IDs a driver claims to support.
This looks through all the IDs a driver claims to support .