MCPcopy Create free account
hub / github.com/ceph/ceph / __ceph_plugin_init

Function __ceph_plugin_init

src/librbd/plugin/WriteLogImageCache.cc:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int __ceph_plugin_init(CephContext *cct, const std::string& type,
24 const std::string& name) {
25 auto plugin_registry = cct->get_plugin_registry();
26 return plugin_registry->add(
27 type, name, new librbd::plugin::WriteLogImageCache<librbd::ImageCtx>(cct));
28}
29
30} // extern "C"
31

Callers

nothing calls this directly

Calls 2

get_plugin_registryMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected