MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / CreateService

Method CreateService

Kernel/src/objects/service.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36FancyRefPtr<Service> ServiceFS::CreateService(const char* name){
37 auto svc = FancyRefPtr<Service>(new Service(name));
38
39 services.add_back(svc);
40 (*svc.getRefCount())--; // Really hacky but means that the service list entry does not count as a reference
41
42 return svc;
43}
44
45Service::Service(const char* _name){
46 name = strdup(_name);

Callers 1

SysCreateServiceFunction · 0.80

Calls 2

getRefCountMethod · 0.80
add_backMethod · 0.45

Tested by

no test coverage detected