class LoaderService

Defined at line 105 of file ../../src/lib/loader_service/loader_service.h

Concrete implementation of a fuchsia.ldsvc.Loader FIDL server that serves libraries from a single

directory, e.g. from a component's specific "/pkg/lib/" directory.

Public Methods

std::shared_ptr<LoaderService> Create (async_dispatcher_t * dispatcher, fbl::unique_fd lib_dir, std::string name)

This takes ownership of the 'lib_dir` fd and will close it automatically once all connections

to the loader service are closed and copies of this object are destroyed. `name` is used to

provide context when logging.

Defined at line 133 of file ../../src/lib/loader_service/loader_service.cc

Protected Methods

void LoaderService (async_dispatcher_t * dispatcher, fbl::unique_fd lib_dir, std::string name)

Defined at line 114 of file ../../src/lib/loader_service/loader_service.h

zx::result<zx::vmo> LoadObjectImpl (std::string path)

Defined at line 140 of file ../../src/lib/loader_service/loader_service.cc