Motr  M0
m0_param_source Struct Reference

#include <param.h>

Collaboration diagram for m0_param_source:
Collaboration graph

Data Fields

void *(* ps_param_get )(const struct m0_param_source *src, const char *key)
 
struct m0_tlink ps_link
 
uint64_t ps_magic
 

Detailed Description

Source of parameters.

Some (but not all) possible sources of parameters are:

  • "env": ->ps_param_get() uses getenv(3) to obtain the values of environment variables;
  • "kv pairs": ->ps_param_get() scans a set of KV pairs, which is accessible through an object ambient to m0_param_source;
  • "confc": ->ps_param_get() translates the key into confc path (a sequence of m0_fids) and accesses conf object and/or its field;
  • "argv": ->ps_param_get() looks for ‘-K key=val’ in argv[] and returns the pointer to ‘val’.

Definition at line 59 of file param.h.

Field Documentation

◆ ps_link

struct m0_tlink ps_link

Linkage to m0::i_param_sources.

Definition at line 63 of file param.h.

◆ ps_magic

uint64_t ps_magic

Definition at line 64 of file param.h.

◆ ps_param_get

void*(* ps_param_get) (const struct m0_param_source *src, const char *key)

Definition at line 60 of file param.h.


The documentation for this struct was generated from the following file: