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

Function __ceph_plugin_init

src/extblkdev/fcm/ExtBlkDevPluginFcm.cc:546–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544const char *__ceph_plugin_version() { return CEPH_GIT_NICE_VER; }
545
546int __ceph_plugin_init(CephContext *cct,
547 const std::string& type,
548 const std::string& name)
549{
550 auto plg=new ExtBlkDevPluginFcm(cct);
551 if(plg==0) return -ENOMEM;
552 int rc=cct->get_plugin_registry()->add(type, name, plg);
553 if(rc!=0){
554 delete plg;
555 }
556 return rc;
557}

Callers

nothing calls this directly

Calls 2

get_plugin_registryMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected