Motr  M0
m0_sm_ast Struct Reference

#include <sm.h>

Collaboration diagram for m0_sm_ast:
Collaboration graph

Data Fields

void(* sa_cb )(struct m0_sm_group *grp, struct m0_sm_ast *)
 
void * sa_datum
 
struct m0_sm_astsa_next
 
struct m0_smsa_mach
 

Detailed Description

Asynchronous system trap.

A request to execute a call-back under group mutex. An ast can be posted by a call to m0_sm_ast_post() in any context.

It will be executed later, see AST section of the comment at the top of this file.

Only m0_sm_ast::sa_cb and m0_sm_ast::sa_datum fields are public. The rest of this structure is for internal use by sm code.

Definition at line 504 of file sm.h.

Field Documentation

◆ sa_cb

void(* sa_cb) (struct m0_sm_group *grp, struct m0_sm_ast *)

Call-back to be executed.

Definition at line 506 of file sm.h.

◆ sa_datum

void* sa_datum

This field is reserved for the user and not used by the sm code.

Definition at line 508 of file sm.h.

◆ sa_mach

struct m0_sm* sa_mach

Definition at line 510 of file sm.h.

◆ sa_next

struct m0_sm_ast* sa_next

Definition at line 509 of file sm.h.


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