Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
vxWorks リアルタイム プロセスでは、メインルーチンのパラメータの 1 つとして環境変数を渡すことができます。
カーネルコンテキストで環境変数をどのように使用しますか?
Vxworks 環境変数のサポートは、envLib によって提供されます。
putenv("VAR=value")を使用して、環境変数の値を設定します。
char* var = getenv("VAR")を使用して値を取得します。
これを VxWorks シェルから直接呼び出します。
putenv "<VARIABLE NAME>=<VALUE>"
環境変数名と設定したい値に置き換えます。