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

Method load

dpdk/buildtools/pmdinfogen.py:144–160  ·  view source on GitHub ↗
(cls, image, symbol)

Source from the content-addressed store, hash-verified

142
143 @classmethod
144 def load(cls, image, symbol):
145 name = symbol.string_value
146
147 options = {}
148 for key, suffix in cls.OPTIONS:
149 option_symbol = image.find_by_name("__%s%s" % (name, suffix))
150 if option_symbol:
151 value = option_symbol.string_value
152 options[key] = value
153
154 driver = cls(name, options)
155
156 pci_table_name_symbol = image.find_by_name("__%s_pci_tbl_export" % name)
157 if pci_table_name_symbol:
158 driver.pci_ids = cls._load_pci_ids(image, pci_table_name_symbol)
159
160 return driver
161
162 @staticmethod
163 def _load_pci_ids(image, table_name_symbol):

Callers 5

ucode_load_apFunction · 0.80
ucode_load_bspFunction · 0.80
load_driversFunction · 0.80
load_configFunction · 0.80
mainFunction · 0.80

Calls 2

_load_pci_idsMethod · 0.80
find_by_nameMethod · 0.45

Tested by

no test coverage detected