22 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CONF 26 #include "conf/onwire_xc.h" 29 #define XCAST(xobj) ((struct m0_confx_process *)(&(xobj)->xo_u)) 89 if (
s->pc_cores.b_words !=
NULL)
122 { proc->
pc_services, &M0_CONF_PROCESS_SERVICES_FID }
131 static const struct m0_fid *rels[] = { &M0_CONF_PROCESS_SERVICES_FID,
142 m0_conf_process_bob_fini(
x);
143 if (
x->pc_cores.b_nr != 0)
163 .
ft_id = M0_CONF__PROCESS_FT_ID,
164 .ft_name =
"conf_process",
166 .cot_create = &process_create,
167 .cot_xt = &m0_confx_process_xc,
168 .cot_branch =
"u_process",
169 .cot_xc_init = &m0_xc_m0_confx_process_struct_init,
174 #undef M0_TRACE_SUBSYSTEM const struct m0_conf_obj_type * m0_conf_obj_type(const struct m0_conf_obj *obj)
M0_INTERNAL int conf_dirs_lookup(struct m0_conf_obj **out, const struct m0_fid *name, const struct conf_dir_relation *rels, size_t nr_rels)
M0_INTERNAL int m0_bitmap_init(struct m0_bitmap *map, size_t nr)
static int process_lookup(const struct m0_conf_obj *parent, const struct m0_fid *name, struct m0_conf_obj **out)
struct m0_buf xr_endpoint
M0_INTERNAL void m0_bitmap_fini(struct m0_bitmap *map)
static const struct m0_conf_obj_ops process_ops
static bool process_check(const void *bob)
uint64_t pc_memlimit_memlock
M0_INTERNAL bool m0_buf_streq(const struct m0_buf *buf, const char *str)
const struct m0_conf_obj_type M0_CONF_SERVICE_TYPE
bool(* coo_invariant)(const struct m0_conf_obj *obj)
M0_CONF__BOB_DEFINE(m0_conf_process, M0_CONF_PROCESS_MAGIC, process_check)
M0_INTERNAL bool m0_conf_obj_is_stub(const struct m0_conf_obj *obj)
uint64_t xr_mem_limit_memlock
M0_BASSERT(offsetof(struct m0_confx_process, xr_header)==0)
static bool process_match(const struct m0_conf_obj *cached, const struct m0_confx_obj *flat)
M0_INTERNAL void m0_bitmap_store(const struct m0_bitmap *im_map, struct m0_bitmap_onwire *ow_map)
struct m0_fid_arr xr_services
M0_INTERNAL int m0_conf_dir_new(struct m0_conf_obj *parent, const struct m0_fid *relfid, const struct m0_conf_obj_type *children_type, const struct m0_fid_arr *children_ids, struct m0_conf_dir **out)
uint64_t xr_mem_limit_stack
uint64_t pc_memlimit_stack
return M0_ERR(-EOPNOTSUPP)
const struct m0_fid_type cot_ftype
M0_INTERNAL int m0_bitmap_onwire_init(struct m0_bitmap_onwire *ow_map, size_t nr)
struct m0_confx_header xr_header
static size_t _bitmap_width(const struct m0_bitmap_onwire *bow)
M0_INTERNAL void confx_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
#define M0_BUF_INITS(str)
struct m0_bitmap pc_cores
#define M0_CONF_CAST(ptr, type)
M0_INTERNAL int arrfid_from_dir(struct m0_fid_arr *dest, const struct m0_conf_dir *dir)
uint64_t xr_mem_limit_rss
M0_INTERNAL int m0_buf_copy(struct m0_buf *dest, const struct m0_buf *src)
static int process_decode(struct m0_conf_obj *dest, const struct m0_confx_obj *src)
struct m0_bitmap_onwire xr_cores
struct m0_conf_dir * pc_services
M0_INTERNAL char * m0_buf_strdup(const struct m0_buf *buf)
static int process_encode(struct m0_confx_obj *dest, const struct m0_conf_obj *src)
enum m0_conf_status co_status
const struct m0_conf_obj_type M0_CONF_PROCESS_TYPE
static const struct m0_fid ** process_downlinks(const struct m0_conf_obj *obj)
M0_CONF__CTOR_DEFINE(process_create, m0_conf_process, &process_ops)
M0_INTERNAL void m0_bitmap_load(const struct m0_bitmap_onwire *ow_map, struct m0_bitmap *im_map)
static struct m0_addb2_source * s
M0_INTERNAL bool m0_conf_dir_elems_match(const struct m0_conf_dir *dir, const struct m0_fid_arr *fids)
struct m0_pdclust_src_addr src
#define offsetof(typ, memb)
static void process_delete(struct m0_conf_obj *obj)
M0_CONF__INVARIANT_DEFINE(process_invariant, m0_conf_process)