Motr  M0
m0_addb2_sensor_ops Struct Reference

#include <addb2.h>

Collaboration diagram for m0_addb2_sensor_ops:
Collaboration graph

Data Fields

void(* so_snapshot )(struct m0_addb2_sensor *s, uint64_t *area)
 
void(* so_fini )(struct m0_addb2_sensor *s)
 

Detailed Description

Sensor operations invoked by IMPLEMENTATION.

Definition at line 291 of file addb2.h.

Field Documentation

◆ so_fini

void(* so_fini) (struct m0_addb2_sensor *s)

Invoked by IMPLEMENTATION when the sensor goes out of context, i.e., when the label, which was top-most when the sensor was added, is popped.

Definition at line 304 of file addb2.h.

◆ so_snapshot

void(* so_snapshot) (struct m0_addb2_sensor *s, uint64_t *area)

IMPLEMENTATION calls this periodically to read sensor measurements.

"area" points to a buffer, where ->so_snapshot() should write out its payload, no more than m0_addb2_sensor::s_nr elements.

Definition at line 298 of file addb2.h.


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