MCPcopy Create free account
hub / github.com/F-Stack/f-stack / dev_is_bound_vfio_platform

Function dev_is_bound_vfio_platform

dpdk/drivers/bus/platform/platform.c:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static bool
139dev_is_bound_vfio_platform(const char *dev_name)
140{
141 char *kdrv;
142 int ret;
143
144 kdrv = dev_kernel_driver_name(dev_name);
145 if (!kdrv)
146 return false;
147
148 ret = strcmp(kdrv, "vfio-platform");
149 free(kdrv);
150
151 return ret == 0;
152}
153
154static int
155platform_bus_scan(void)

Callers 2

platform_bus_scanFunction · 0.85
platform_bus_plugFunction · 0.85

Calls 3

dev_kernel_driver_nameFunction · 0.85
strcmpFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected