Motr  M0
m0_stob_type_ops Struct Reference

#include <type.h>

Collaboration diagram for m0_stob_type_ops:
Collaboration graph

Data Fields

void(* sto_register )(struct m0_stob_type *type)
 
void(* sto_deregister )(struct m0_stob_type *type)
 
int(* sto_domain_cfg_init_parse )(const char *str_cfg_init, void **cfg_init)
 
void(* sto_domain_cfg_init_free )(void *cfg_init)
 
int(* sto_domain_cfg_create_parse )(const char *str_cfg_create, void **cfg_create)
 
void(* sto_domain_cfg_create_free )(void *cfg_create)
 
int(* sto_domain_init )(struct m0_stob_type *type, const char *location_data, void *cfg_init, struct m0_stob_domain **out)
 
int(* sto_domain_create )(struct m0_stob_type *type, const char *location_data, uint64_t dom_key, void *cfg_create)
 
int(* sto_domain_destroy )(struct m0_stob_type *type, const char *location_data)
 

Detailed Description

Stob type operations vector

Definition at line 71 of file type.h.

Field Documentation

◆ sto_deregister

void(* sto_deregister) (struct m0_stob_type *type)
See also
m0_stob_type_deregister()

Definition at line 75 of file type.h.

◆ sto_domain_cfg_create_free

void(* sto_domain_cfg_create_free) (void *cfg_create)

Frees configuration allocated by successful m0_stob_type_ops::sto_domain_cfg_create_parse()

Definition at line 91 of file type.h.

◆ sto_domain_cfg_create_parse

int(* sto_domain_cfg_create_parse) (const char *str_cfg_create, void **cfg_create)

Parses configuration for m0_stob_domain_create()

Definition at line 85 of file type.h.

◆ sto_domain_cfg_init_free

void(* sto_domain_cfg_init_free) (void *cfg_init)

Frees configuration allocated by successful m0_stob_type_ops::sto_domain_cfg_init_parse()

Definition at line 83 of file type.h.

◆ sto_domain_cfg_init_parse

int(* sto_domain_cfg_init_parse) (const char *str_cfg_init, void **cfg_init)

Parses configuration for m0_stob_domain_init()

Definition at line 77 of file type.h.

◆ sto_domain_create

int(* sto_domain_create) (struct m0_stob_type *type, const char *location_data, uint64_t dom_key, void *cfg_create)

Creates stob domain.

Note
There is no m0_stob_domain parameter here, so this function shouldn't initialise stob domain. Initialisation will be done by domain generic code after successful create call. Currently m0_stob_domain uses only 64-bit key and 8-bit type from 128-bit fid identifier and it may be changed in the future.
See also
m0_stob_domain_create()

Definition at line 108 of file type.h.

◆ sto_domain_destroy

int(* sto_domain_destroy) (struct m0_stob_type *type, const char *location_data)
See also
m0_stob_domain_destroy_location()

Definition at line 113 of file type.h.

◆ sto_domain_init

int(* sto_domain_init) (struct m0_stob_type *type, const char *location_data, void *cfg_init, struct m0_stob_domain **out)
See also
m0_stob_domain_init()

Definition at line 93 of file type.h.

◆ sto_register

void(* sto_register) (struct m0_stob_type *type)
See also
m0_stob_type_register()

Definition at line 73 of file type.h.


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