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.

As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.
— Maurice Wilkes