函数 EnterSuspendToRamOs [SWS_SM_81112] Upstream: RS_SM_00402
void EnterSuspendToRamOs () noexcept;
Function to trigger OS to enter Suspend To RAM.
类 ara::sm::s2r::S2RHub 的成员函数 EnterSuspendToRamOs 用于指示操作系统启动 Suspend-to-RAM (S2R) 状态([SWS_SM_81112];AUTOSAR_AP_SWS_StateManagement §7.7 “ActionListItems”)。
该方法的签名为 void EnterSuspendToRamOs() noexcept;,不接收任何参数,也没有返回值([SWS_SM_81112])。它通常不直接由用户应用调用,而是在 ActionList 内相应的动作元素 EnterSuspendToRamOs 被触发时由 State Management 执行([SWS_SM_00692])。其先决条件是先前已创建 ara::sm::s2r::S2RHub 的实例([SWS_SM_00690])。
关于并发性与边界条件,适用以下规定:
- 线程安全性:该函数被明确归类为非线程安全(
not-threadsafe)([SWS_SM_81112])。必须避免对同一实例的并发调用。 - 错误处理:该操作被指定为
noexcept和exception safe([SWS_SM_81112]);不返回错误码,也不抛出异常。 - 执行顺序与执行上下文:在
ActionLists内部,动作元素按配置的顺序依次启动([SWS_SM_00609])。在通过EnterSuspendToRamOs进行操作系统挂起之前,前置动作(例如EnterSuspendToRam)会将支持 S2R 的应用置于就绪模式(AUTOSAR_AP_SWS_StateManagement §7.7 “Trigger EnterSuspendState”)。不建议在同一个控制器的同一挂起状态内多次出现EnterSuspendToRamOs,因为重复执行不会带来任何功能收益,反而可能导致冲突(AUTOSAR_AP_SWS_StateManagement §7.7 “Trigger EnterSuspendState”)。
本文字由 AI 创建,且完全基于版本 R25-11 的规范。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/sm/s2r/S2RHub.h" |
|---|---|
| Scope | class ara::sm::s2r::S2RHub |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not-threadsafe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_SM_81112- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_SM_81112@rel:R25-11#ff3180bf- Content hash
ff3180bf- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_StateManagement.pdf#nameddest=SWS_SM_81112
Status: valid/unmigrated
Version: rel:R25-11#f5258b13
Versionshistorie & Revisions (1 transition)
- Current State
valid/unmigrated- Reason
- mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
- Campaign
2026-08-13-status-backfill- Active Version
AUTOSAR/AP/record/SWS_SM_81112@rel:R25-11#f5258b13
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · 德文原文