1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2019 Intel Corporation.
7 DPDK's stack library provides an API for configuration and use of a bounded
10 The stack library provides the following basic operations:
12 * Create a uniquely named stack of a user-specified size and using a
13 user-specified socket.
15 * Push and pop a burst of one or more stack objects (pointers). These function
16 are multi-threading safe.
18 * Free a previously created stack.
20 * Lookup a pointer to a stack by its name.
22 * Query a stack's current depth and number of free entries.
27 The stack consists of a contiguous array of pointers, a current index, and a
28 spinlock. Accesses to the stack are made multi-thread safe by the spinlock.