MCPcopy Create free account
hub / github.com/NetSys/bess / LoadPlugin

Function LoadPlugin

core/bessd.cc:416–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416bool LoadPlugin(const std::string &path) {
417 void *handle = dlopen(path.c_str(), RTLD_NOW | RTLD_GLOBAL);
418 if (handle != nullptr) {
419 plugin_handles.emplace(path, handle);
420 return true;
421 }
422 return false;
423}
424
425bool UnloadPlugin(const std::string &path) {
426 auto it = plugin_handles.find(path);

Callers 2

ImportPluginMethod · 0.85
LoadPluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected