]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stack(9): dynamic allocation is not necessary
authorEric van Gyzen <vangyzen@FreeBSD.org>
Mon, 7 Mar 2022 01:12:28 +0000 (19:12 -0600)
committerEric van Gyzen <vangyzen@FreeBSD.org>
Sat, 26 Mar 2022 01:10:38 +0000 (20:10 -0500)
commita65bee6705ac73bb334ee052bcf1e85bcc9efceb
tree591c866a2ee997bca7cdcceda6edd598daa3d1f8
parenta8cbb835bfdf086249fab8f9cb3d2a3533214eac
stack(9): dynamic allocation is not necessary

The man page said dynamic allocation was required, but struct stack
can be allocated in any way, including on the stack.  Make this clear,
and explain how to initialize the struct.

While I'm here, stack_save does not require any lock.

Reviewed by: markj, Pau Amma <pauamma_gundo.com>
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D34461
share/man/man9/stack.9