Per-user shared memory segment.
Per-user shared memory segment.This structure is allocated when a user logs in. It is shared throughout the system and contains the user's account (useracc_t), the online record, onlinerec_t and a 2 kbyte free-for-all, generic scratch buffer.
For each runtime, there are two pointers to such structures: thisshm and othrshm. The former holds the current user's particulars. The latter is normally unused, but is instantiated by function in this part of the API to point to some other user's shared structure. This is used to allow transactions between users.
There are six macro shortcuts to access the three fields of each of the two shared memory segments.