STORE(9)
πΎ STORE(9) πΎ
okay bestie, welcome to the Kernel Developer's Manual entry for STORE(9) β this is literally the group chat where we store data to user-space π
β¨
β¨ NAME β¨
store, subyte, suword β store data to user-space π«Ά
π SYNOPSIS π
#include <sys/types.h>
#include <sys/time.h>
#include <sys/systm.h>
int
subyte(volatile void *base, int byte);
int
suword(volatile void *base, long word);
int
suword16(volatile void *base, int word);
int
suword32(volatile void *base, int32_t word);
int
suword64(volatile void *base, int64_t word);
π DESCRIPTION π
The store functions are designed to copy small amounts of data to user-space. If the user address is naturally aligned, then the operation will be performed atomically. Otherwise it may fail or be performed non-atomically, depending on the platform.
β οΈ alignment vibe check: naturally aligned = atomic slay; otherwise it may fail or be performed non-atomically, depending on the platform. not me warning you twice, it's literally in the paragraph above π
The store routines provide the following functionality:
subyte()β stores a byte of data to the user-space addressbase. πsuword()β stores a word of data to the user-space addressbase. πsuword16()β stores 16 bits of data to the user-space addressbase. β¨suword32()β stores 32 bits of data to the user-space addressbase. π₯suword64()β stores 64 bits of data to the user-space addressbase. π
π RETURN VALUES π
The store functions return 0 on success or -1 on failure. That's it. no notes. π
π¦ SEE ALSO π¦
copy(9), fetch(9) β go read those too bestie, iykyk π
okay that's the whole page! mwah π β Debian, July 22, 2021, STORE(9) ππ«Ά
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1996 Jason R. Thorpe
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms