Motr  M0
m0_cm_cp_ops Struct Reference

#include <cp.h>

Collaboration diagram for m0_cm_cp_ops:
Collaboration graph

Data Fields

int(* co_phase_next )(struct m0_cm_cp *cp)
 
bool(* co_invariant )(const struct m0_cm_cp *cp)
 
uint64_t(* co_home_loc_helper )(const struct m0_cm_cp *cp)
 
void(* co_complete )(struct m0_cm_cp *cp)
 
void(* co_free )(struct m0_cm_cp *cp)
 
uint32_t co_action_nr
 
int(* co_action [])(struct m0_cm_cp *cp)
 

Detailed Description

Copy packet operations.

Definition at line 226 of file cp.h.

Field Documentation

◆ co_action

int(* co_action[])(struct m0_cm_cp *cp)

Per phase action for copy packet. This function should return M0_FSO_WAIT or M0_FSO_AGAIN.

Definition at line 259 of file cp.h.

◆ co_action_nr

uint32_t co_action_nr

Size of m0_cm_cp_ops::co_action[].

Definition at line 253 of file cp.h.

◆ co_complete

void(* co_complete) (struct m0_cm_cp *cp)

Called when copy packet processing is completed successfully.

Definition at line 244 of file cp.h.

◆ co_free

void(* co_free) (struct m0_cm_cp *cp)

Copy machine type specific copy packet destructor. This is invoked from m0_cm_cp::c_fom::fo_ops::fo_fini().

Definition at line 250 of file cp.h.

◆ co_home_loc_helper

uint64_t(* co_home_loc_helper) (const struct m0_cm_cp *cp)

Returns a scalar based on copy packet details, used to select a request handler home locality for copy packet FOM.

Definition at line 241 of file cp.h.

◆ co_invariant

bool(* co_invariant) (const struct m0_cm_cp *cp)

Specific copy packet invariant.

Definition at line 235 of file cp.h.

◆ co_phase_next

int(* co_phase_next) (struct m0_cm_cp *cp)

Changes copy packet phase based on current phase and layout information. This function should set FOM phase internally and return M0_FSO_WAIT or M0_FSO_AGAIN.

Definition at line 232 of file cp.h.


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