| 157 | | strcpy(dev->dev_info->linux_kernel_module[dev->dev_info->linux_kernel_module_count], module_name); |
| 158 | | dev->dev_info->linux_kernel_module_count++; |
| | 157 | bool found=false; |
| | 158 | |
| | 159 | /* Scan all known kernel modules for this pci device */ |
| | 160 | for (int i=0; i<dev->dev_info->linux_kernel_module_count; i++) { |
| | 161 | |
| | 162 | /* Try to detect if we already knew the same kernel module*/ |
| | 163 | if (strstr(dev->dev_info->linux_kernel_module[i], module_name)) { |
| | 164 | found=true; |
| | 165 | break; |
| | 166 | } |
| | 167 | } |
| | 168 | /* If we don't have this kernel module, let's add it */ |
| | 169 | if (!found) { |
| | 170 | strcpy(dev->dev_info->linux_kernel_module[dev->dev_info->linux_kernel_module_count], module_name); |
| | 171 | dev->dev_info->linux_kernel_module_count++; |
| | 172 | } |
| 705 | | strcpy(dev->dev_info->linux_kernel_module[dev->dev_info->linux_kernel_module_count], module_name); |
| 706 | | dev->dev_info->linux_kernel_module_count++; |
| | 719 | bool found=false; |
| | 720 | |
| | 721 | /* Scan all known kernel modules for this pci device */ |
| | 722 | for (int i=0; i<dev->dev_info->linux_kernel_module_count; i++) { |
| | 723 | |
| | 724 | /* Try to detect if we already knew the same kernel module*/ |
| | 725 | if (strstr(dev->dev_info->linux_kernel_module[i], module_name)) { |
| | 726 | found=true; |
| | 727 | break; |
| | 728 | } |
| | 729 | } |
| | 730 | /* If we don't have this kernel module, let's add it */ |
| | 731 | if (!found) { |
| | 732 | strcpy(dev->dev_info->linux_kernel_module[dev->dev_info->linux_kernel_module_count], module_name); |
| | 733 | dev->dev_info->linux_kernel_module_count++; |
| | 734 | } |