STORE(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸ’Ύ 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 address base. πŸ“
  • suword() β€” stores a word of data to the user-space address base. πŸ’–
  • suword16() β€” stores 16 bits of data to the user-space address base. ✨
  • suword32() β€” stores 32 bits of data to the user-space address base. πŸ”₯
  • suword64() β€” stores 64 bits of data to the user-space address base. πŸ‘‘

πŸ’– 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