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

Function __ceph_plugin_init

src/extblkdev/vdo/ExtBlkDevPluginVdo.cc:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47const char *__ceph_plugin_version() { return CEPH_GIT_NICE_VER; }
48
49int __ceph_plugin_init(CephContext *cct,
50 const std::string& type,
51 const std::string& name)
52{
53 auto plg = new ExtBlkDevPluginVdo(cct);
54 if(plg == 0) return -ENOMEM;
55 int rc = cct->get_plugin_registry()->add(type, name, plg);
56 if(rc != 0){
57 delete plg;
58 }
59 return rc;
60}

Callers

nothing calls this directly

Calls 2

get_plugin_registryMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected