SMLISTSH(1)
π SMLISTSH π β the shared-memory linked list test shell, bestie edition
okay so. <pink>SMLISTSH(1)</pink> lives in the <purple>ICI executables</purple> section, and it is genuinely one of my faves, no cap. it's a little interactive shell for poking at shared-memory linked list management functions and honestly? she ate. π«Ά
β¨ NAME β¨
<mint>smlistsh</mint> β shared-memory linked list test shell. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
smlistsh partition_size
β¨ DESCRIPTION β¨
so here's the tea. <mint>smlistsh</mint> attaches to a region of system memory β and like, it'll allocate that region if it needs to, and it'll place it under PSM management if it needs to, she's very self-sufficient π
β and then it hands you an interactive "shell" so you can test out all the various shared-memory linked list management functions. it's giving sandbox, it's giving lab, it's giving main character energy.
she prints a prompt string β literally just ": " β to stdout, then takes a command from stdin, executes it (maybe printing a diagnostic message along the way), then prints another prompt string, and on and on and on. forever. until you say stop. π
here's every single command she supports, and yes we're doing all of them:
hβ the help command. makes<mint>smlistsh</mint>print a summary of the available commands. same effect as the?command. twin behaviour, iconic.?β another help command. makes<mint>smlistsh</mint>print a summary of the available commands. same effect as thehcommand. (yes they're the same, she's generous like that π)kβ the key command. computes and prints an unused shared-memory key, for possible use in attaching to a shared-memory region. go off, get that key π+ key_value sizeβ the attach command. attaches<mint>smlistsh</mint>to a region of shared memory.key_valueidentifies an existing shared-memory region, in the event that you want to attach to an existing shared-memory region (possibly created by another<mint>smlistsh</mint>process running on the same computer). to create and attach to a new shared-memory region that other processes can attach to, use akey_valueas returned by the key command and supply thesizeof the new region. if you want to create and attach to a new shared-memory region that is for strictly private use, use-1as key and supply thesizeof the new region. (so many options, we love a flexible queen π)-β the detach command. detaches<mint>smlistsh</mint>from the region of shared memory it is currently using, but does not free any memory. noted. not freeing. zero freeing happening. π«₯nβ the new command. creates a new shared-memory list to operate on, within the currently attached shared-memory region. prints the address of the list. fresh list, fresh start, new era β¨s list_addressβ the share command. selects an existing shared-memory list to operate on, within the currently attached shared-memory region. pick your fave, she's not judging.a element_valueβ the append command. appends a new list element, containingelement_value, to the list on which<mint>smlistsh</mint>is currently operating. adding to the end, respectfully.p element_valueβ the prepend command. prepends a new list element, containingelement_value, to the list on which<mint>smlistsh</mint>is currently operating. front of the line, she's impatient, love that for her.wβ the walk command. prints the addresses and contents of all elements of the list on which<mint>smlistsh</mint>is currently operating. the full tour. the whole walkthrough. πΆββοΈf element_valueβ the find command. finds the list element that containselement_value, within the list on which<mint>smlistsh</mint>is currently operating, and prints the address of that list element. found her!! πd element_addressβ the delete command. deletes the list element located atelement_address. bye bestie π (she's really gone, this one is for real)rβ the report command. prints a partition usage report, as perpsm_report(3). receipts, basically π§Ύqβ the quit command. detaches<mint>smlistsh</mint>from the region of shared memory it is currently using (without freeing any memory) and terminates `smlistsh. goodbye forever, mwah π
β¨ EXIT STATUS β¨
"0"β<mint>smlistsh</mint>has terminated. that's it, that's the only one, she keeps it simple π
β¨ FILES β¨
no configuration files are needed. none. zero. she's low maintenance like that π
β¨ ENVIRONMENT β¨
no environment variables apply. nope, not a single one π
β¨ DIAGNOSTICS β¨
no diagnostics apply. nothing to report, all clear β
β¨ BUGS β¨
found a bug? report bugs to <ion-bugs@korgano.eecs.ohiou.edu> β do it, they wanna know π
β¨ SEE ALSO β¨
smlist(3)β go read her sibling, the whole family is slaying π
okay that's the whole page, bestie. <pink>smlistsh</pink>, <purple>ICI executables</purple>, and this version of the docs was generated by <cyan>perl v5.24.1</cyan> back on <yellow>2016-07-07</yellow> β so if you're reading this, shoutout to 2016, she was lowkey ahead of her time. periodt. π
β¨
π¦ where this page comes from
- ubuntu jammy: ion 3.2.1+dfsg-1.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms