Osys_Lowmem_Callback_Register()

Abstract

Registers a callback to address memory shortages of a specified priority.

Syntax

Osys_Lowmem_Callback_Register (callback_proc, state_ptr, callback_priority)
Argument Type Description
callback_proc OsysT_Lowmem_Callback_Proc Callback to deal with a low-memory condition.
state_ptr void * User-defined state to be passed to callback_proc when called.
callback_priority int The priority level associated with callback_proc (see Details).

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the callback is registered successfully; PrgC_Compcode_Failure otherwise.

osys_lowmem_funcs.h

Details

Possible values for callback_priority are:

  • OsysC_Lowmem_Callback_Priority_Garbage
  • OsysC_Lowmem_Callback_Priority_Performance
  • OsysC_Lowmem_Callback_Priority_Emergency

Typically, custom low-memory callbacks will be registered at the Garbage or Performance level.

The prototype for callback_proc is given in OsysT_Lowmem_Callback_Proc.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com