SNIP_CLASSIC_OS_SECTION_8_4_2_GetCurrentApplicationID
Wortlaut
8.4.2 GetCurrentApplicationID
[SWS_Os_00797] Definition of API function GetCurrentApplicationID ⌈
Service Name
GetCurrentApplicationID
Syntax
ApplicationType GetCurrentApplicationID (
void
)
Service ID [hex]
0x27
Sync/Async
Synchronous
Reentrancy
Reentrant
Parameters (in)
None
Parameters (inout)
None
Parameters (out)
None
Return value
ApplicationType
<identifier of the OS-Application> or INVALID_OSAPPLICATION
Description
This service determines the OS-Application where the caller of the service is currently
executing. Note that if the caller is not within a CallTrustedFunction() call the value is equal to
the result of GetApplicationID().
Available via
Os.h
⌋
[SWS_Os_00798] ⌈GetCurrentApplicationID shall return the application identifier in which the current Task/Cat2 ISR/hook is executed.⌋
This means that the return value of GetCurrentApplicationID, when called from
a category 1 ISR, is undefined.
[SWS_Os_00799] ⌈If no OS-Application is running, GetCurrentApplicationID
shall return INVALID_OSAPPLICATION.⌋
[SWS_Os_00800] ⌈Availability of GetCurrentApplicationID: Available in Scalability Classes 3 and 4.⌋
Versionen & Provenienz · Zugeordnete Anforderungen
Diese Angaben zeigt der Versions-Explorer.
Begründung & Zuweisungs-Evidenz
Cited verbatim in the snippet (deterministic citation).
Dokumenten-Herkunft & Rückverfolgbarkeit
| Spezifikations-Dokument | SWS_OS.pdf |
|---|---|
| Dokumentseite | Seite 162 |
| Ziel-Modul | os (classic) |
| Ziel-Anforderung | SWS_Os_00800 |
| Semantische Rolle | constitutive |
| Automatisierungs-Konfidenz | 0.95 |