tail head cat sleep
QR code linking to this page

manページ  — STORE

名称

store, subyte, susword, suswintr, suword – ユーザ空間へのデータの格納

内容

書式

#include <sys/types.h>
#include <sys/time.h>
#include <sys/systm.h>
#include <sys/resourcevar.h>

int
subyte(void *base, int byte);

int
susword(void *base, int word);

int
suswintr(void *base, int word);

int
suword(void *base, long word);

解説

store 関数群はユーザ空間へ小さなデータをコピーするようにデザインされています。

store ルーチンは以下の機能を提供します。
subyte()
  1 バイトのデータをユーザ空間のアドレス base へ格納します。
susword()
  1 ショートワードのデータをユーザ空間のアドレス base へ格納します。
suswintr()
  1 ショートワードのデータをユーザ空間のアドレス base へ格納します。 この関数は割り込みコンテキスト中でも安全に呼び出せます。
suword()
  1 ワードのデータをユーザ空間のアドレス base へ格納します。

戻り値

store 関数は 0 を返しますが、失敗した場合は -1 を返します。

関連項目

copy(9), fetch(9)

STORE (9) January 7, 1996

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

Modern Unix impedes progress in computer science, wastes billions of dollars, and destroys the common sense of many who seriously use it.
— The Unix Haters' handbook